	jQuery(function() {
		jQuery("#lavalamp").lavaLamp({
			//fx: "backout", /* Commented out this effect and added a new one below as starting with version 1.3 of easing.js names have changed*/
			fx: "easeOutBack",
			speed: 700,
			click: function(event, menuItem) {
				return false;
			}
		});
	});

jQuery(document).ready(function(){
/* header newsletter */
jQuery(".header-nl-top-open").click(function(){
	jQuery(".header-nl-top-open").hide();
	jQuery(".header-nl-top-close").show();
	jQuery(".header-nl-bottom").slideDown("slow");
  });
jQuery(".header-nl-top-close").click(function(){
	jQuery(".header-nl-bottom").slideUp("slow");
	jQuery(".header-nl-top-open").show();
	jQuery(".header-nl-top-close").hide();
  });
/* header giftcenter */
jQuery(".header-gift-top-open").click(function(){
	jQuery(".header-gift-top-open").hide();
	jQuery(".header-gift-top-close").show();
	jQuery(".header-gift-bottom").slideDown("slow");
  });
jQuery(".header-gift-top-close").click(function(){
	jQuery(".header-gift-bottom").slideUp("slow");
	jQuery(".header-gift-top-open").show();
	jQuery(".header-gift-top-close").hide();
  });
/* header salecenter */ 
jQuery(".header-sale-top-tag").click(function(){
	jQuery(".header-sale-top-open").hide();
	jQuery(".header-sale-top-close").show();
	jQuery(".header-sale-bottom").slideDown("slow");
  });
jQuery(".header-sale-top-open").click(function(){
	jQuery(".header-sale-top-open").hide();
	jQuery(".header-sale-top-close").show();
	jQuery(".header-sale-bottom").slideDown("slow");
  });
jQuery(".header-sale-top-close").click(function(){
	jQuery(".header-sale-bottom").slideUp("slow");
	jQuery(".header-sale-top-open").show();
	jQuery(".header-sale-top-close").hide();
  });
/* header brand tabs */
jQuery(".header-brands-totes").click(function(){
	jQuery(".header-totes").slideToggle("400");
	jQuery(".header-isotoner").slideUp("400");
	jQuery(".header-acorn").slideUp("400");
  });
jQuery(".header-brands-isotoner").click(function(){
	jQuery(".header-isotoner").slideToggle("400");
	jQuery(".header-totes").slideUp("400");
	jQuery(".header-acorn").slideUp("400");
  });
jQuery(".header-brands-acorn").click(function(){
	jQuery(".header-acorn").slideToggle("400");
	jQuery(".header-totes").slideUp("400");
	jQuery(".header-isotoner").slideUp("400");
  });
jQuery(".header-brands-close").click(function(){
	jQuery(".header-totes").slideUp("400");
	jQuery(".header-isotoner").slideUp("400");
	jQuery(".header-acorn").slideUp("400");
  });
});


(function(jQuery){jQuery.fn.wslide=function(h){h=jQuery.extend({width:150,height:150,pos:1,col:1,effect:'swing',fade:false,horiz:false,autolink:false,duration:1500},h);function gogogo(g){g.each(function(i){var a=jQuery(this);var e=a.attr('id');if(e==undefined){e='wslide'+i}jQuery(this).wrap('<div class="wslide-wrap" id="'+e+'-wrap"></div>');a=jQuery('#'+e+'-wrap');var b=a.find('ul li');var f=h.effect;if(jQuery.easing.easeInQuad==undefined&&(f!='swing'||f!='normal')){f='swing'}var g=h.width;var j=h.height;function resultante(a){var b=a;b=b.split('px');b=b[0];return Number(b)}var k=g-(resultante(b.css('padding-left'))+resultante(b.css('padding-right')));var l=j-(resultante(b.css('padding-top'))+resultante(b.css('padding-bottom')));var m=h.col;if(h.horiz){m=Number(b.length+1)}var n='';var o=Math.ceil(Number(b.length)/m);a.css('overflow','hidden').css('position','relative').css('text-align','left').css('height',j+'px').css('width',g+'px').css('margin','0').css('padding','0');a.find('ul').css('position','absolute').css('margin','0').css('padding','0').css('width',Number((m+0)*g)+'px').css('height',Number(o*j)+'px');b.css('display','block').css('overflow','hidden').css('float','left').css('height',l+'px').css('width',k+'px');b.each(function(i){var b=a.offset();var c=jQuery(this).offset();jQuery(this).attr('id',e+'-'+Number(i+1)).attr('rel',Number(c.left-b.left)+':'+Number(c.top-b.top));n+=' <a href="#'+e+'-'+Number(i+1)+'">'+Number(i+1)+'</a>'});if(typeof h.autolink=='boolean'){if(h.autolink){a.after('<div class="wslide-menu" id="'+e+'-menu">'+n+'</div>')}}else if(typeof h.autolink=='string'){if(jQuery('#'+h.autolink).length){jQuery('#'+h.autolink).html(n)}else{a.after('<div id="#'+h.autolink+'">'+n+'</div>')}}var p='#'+e+'-';var q="";jQuery('a[href*="'+p+'"]').click(function(){jQuery('a[href*="'+q+'"]').removeClass("wactive");jQuery(this).addClass("wactive");var b=jQuery(this).attr('href');b=b.split('#');b='#'+b[1];q=b;var c=jQuery(b).attr('rel');c=c.split(':');var d=c[1];d=-d;c=c[0];c=-c;if(h.fade){a.find('ul').animate({opacity:0},h.duration/2,f,function(){jQuery(this).css('top',d+'px').css('left',c+'px');jQuery(this).animate({opacity:1},h.duration/2,f)})}else{a.find('ul').animate({top:d+'px',left:c+'px'},h.duration,f)}return false});if(h.pos<=0){h.pos=1}jQuery('a[hrefjQuery="'+p+h.pos+'"]').addClass("wactive");var r=jQuery('a[href*="'+p+'"]:eq('+Number(h.pos-1)+')').attr('href');r=r.split('#');r='#'+r[1];q=r;var s=jQuery(r).attr('rel');s=s.split(':');var t=s[1];t=-t;s=s[0];s=-s;a.find('ul').css('top',t+'px').css('left',s+'px')})}gogogo(this);return this}})(jQuery);

jQuery(document).ready(function(){
	jQuery("#slidebanner").wslide({
		width: 730,
		height: 330,
		pos: 1,
		horiz: true,
		duration: 1500,
		effect: 'easeOutQuint'
	});
});
jQuery(function () {
	jQuery('ul.slidebanner-links a').click(function () {
		jQuery('ul.slidebanner-links a').removeClass('selected');
		jQuery(this).addClass('selected');
		return false;
	}).filter(':first').click();
});
