Site={Buttons:function(){$('.buttonov').hover(function(){var src=$(this).attr('src');$(this).attr('src',src.replace('.png','_active.png'));},function(){var src=$(this).attr('src');$(this).attr('src',src.replace('_active.png','.png'));});},SliderBanner:function(){$("#bannerSlide").jCarouselLite({mouseWheel:false,auto:6000,speed:500,easing:"expoin",visible:1,vertical:false,circular:true,start:0,scroll:1});},SliderBanner2:function(){$("#bannerSlide2").jCarouselLite({mouseWheel:false,auto:6000,speed:500,easing:"expoin",visible:1,vertical:false,circular:true,start:0,scroll:1});},SliderNews:function(){$("#NewsSlide").jCarouselLite({btnNext:"#news-left",btnPrev:"#news-right",mouseWheel:false,auto:6000,speed:1,easing:"expoin",visible:1,vertical:false,circular:true,start:0,scroll:1,beforeStart:function(a){$(a).parent().fadeTo(250,0);var bg=$(a).find('img').attr('src');$('#NewsSlide').css({backgroundImage:"url("+bg+")"},250);},afterEnd:function(a){$(a).parent().fadeTo(100,1);}});},promo1:function(){$("#promo1").jCarouselLite({btnNext:"#promo1-left",btnPrev:"#promo1-right",mouseWheel:false,auto:4000,speed:500,easing:"expoin",visible:2,vertical:false,circular:true,start:0,scroll:2});},promo2:function(){$("#promo2").jCarouselLite({btnNext:"#promo2-left",btnPrev:"#promo2-right",mouseWheel:false,auto:4000,speed:500,easing:"expoin",visible:2,vertical:false,circular:true,start:0,scroll:2});},promo3:function(){$("#promo3").jCarouselLite({btnNext:"#promo3-left",btnPrev:"#promo3-right",mouseWheel:false,auto:4000,speed:500,easing:"expoin",visible:1,vertical:false,circular:true,start:0,scroll:1});},promo4:function(){$("#promo4").jCarouselLite({btnNext:"#promo4-left",btnPrev:"#promo4-right",mouseWheel:false,auto:4000,speed:500,easing:"expoin",visible:1,vertical:false,circular:true,start:0,scroll:1});},xsell:function(){$("#xsell").jCarouselLite({btnNext:"#xsell-left",btnPrev:"#xsell-right",mouseWheel:false,auto:6000,speed:500,easing:"easein",visible:4,vertical:false,circular:true,start:0,scroll:4});},secureSlide:function(){$("#secureSlide").jCarouselLite({mouseWheel:false,auto:6000,speed:0,visible:1,vertical:false,circular:true,start:0,scroll:1});},run:function(){this.Buttons();this.SliderBanner();this.SliderBanner2();this.SliderNews();this.promo1();this.promo2();this.promo3();this.promo4();this.xsell();this.secureSlide();}}
$(function(){Site.run();});function createCookie(name,value,days){if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires="; expires="+date.toGMTString();}
else var expires="";document.cookie=name+"="+value+expires+"; path=/";}
function readCookie(name){var nameEQ=name+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length);}
return null;}
$(document).ready(function(){$("a[id^='zoom']").prettyPhoto({animation_speed:'fast',slideshow:5000,autoplay_slideshow:false,opacity:0.40,show_title:false,allow_resize:true,default_width:500,default_height:344,counter_separator_label:'/',theme:'pp_default',hideflash:false,wmode:'opaque',autoplay:true,modal:false,deeplinking:false,overlay_gallery:false,keyboard_shortcuts:true,changepicturecallback:function(){},callback:function(){},ie6_fallback:true,markup:'<div class="pp_pic_holder"><div class="ppt">&nbsp;</div><div class="pp_top"><div class="pp_left"></div><div class="pp_middle"></div><div class="pp_right"></div></div><div class="pp_content_container"><div class="pp_left"><div class="pp_right"><div class="pp_content"><div class="pp_loaderIcon"></div><div class="pp_fade"><a href="#" class="pp_expand" title="Expand the image">Expand</a><a class="pp_close" href="#">Close</a><div class="pp_hoverContainer"><a class="pp_next" href="#">next</a><a class="pp_previous" href="#">previous</a></div><div id="pp_full_res"></div><div class="pp_details"><div class="pp_nav"><a href="#" class="pp_arrow_previous">Previous</a><p class="currentTextHolder">0/0</p><a href="#" class="pp_arrow_next">Next</a></div><p class="pp_description"></p>{pp_social}</div></div></div></div></div></div><div class="pp_bottom"><div class="pp_left"></div><div class="pp_middle"></div><div class="pp_right"></div></div></div><div class="pp_overlay"></div>',gallery_markup:'<div class="pp_gallery"><a href="#" class="pp_arrow_previous">Previous</a><div><ul>{gallery}</ul></div><a href="#" class="pp_arrow_next">Next</a></div>',image_markup:'<img id="fullResImage" src="{path}" />',flash_markup:'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>',quicktime_markup:'<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>',iframe_markup:'<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>',inline_markup:'<div class="pp_inline">{content}</div>',custom_markup:'',social_tools:'<div class="pp_social"><div class="twitter"><a href="http://twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="facebook"><iframe src="http://www.facebook.com/plugins/like.php?locale=en_US&href='+location.href+'&amp;send=false&amp;layout=button_count&amp;width=310&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=24" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:310px; height:24px;" allowTransparency="true"></iframe></div></div>'});$('.absoluteIframeDOMWindow').openDOMWindow({height:640,width:700,eventType:'click',positionType:'centered',windowSource:'iframe',windowPadding:1,loader:1,loaderImagePath:'loading.gif',loaderHeight:19,loaderWidth:220});$('#slider').nivoSlider({effect:'fade',slices:15,boxCols:8,boxRows:4,animSpeed:200,pauseTime:5000,startSlide:0,directionNav:true,directionNavHide:true,controlNav:true,controlNavThumbs:false,controlNavThumbsFromRel:false,keyboardNav:true,pauseOnHover:true,manualAdvance:false,captionOpacity:0.8,prevText:'Prev',nextText:'Next'});var ac_config={source:"includes/lookup_zip.php",select:function(event,ui){$("#city").val(ui.item.city);$("#state").val(ui.item.state);$("#zip").val(ui.item.zip);},minLength:3};$("#zip").autocomplete(ac_config);$('a#sortlink').click(function(){return false;});var x=readCookie('menuMem');var cx1=readCookie('cx1');var cx2=readCookie('cx2');var cx3=readCookie('cx3');var cx4=readCookie('cx4');if(x=="brand"){if(cx1%2==1)$('ul.the_menu1').slideToggle('fast');var cx1=0;}
if(x=="men"){if(cx2%2==1)$('ul.the_menu2').slideToggle('fast');var cx2=0;}
if(x=="women"){if(cx3%2==1)$('ul.the_menu3').slideToggle('fast');var cx3=0;}
if(x=="type"){if(cx4%2==1)$('ul.the_menu4').slideToggle('fast');var cx4=0;}
$('img.homecx').click(function(){createCookie('menuMem','',-1);});$('img.menu_class1').click(function(){$('ul.the_menu1').slideToggle('fast');cx1++;createCookie('menuMem','brand',1);createCookie('cx1',cx1,1);});$('img.menu_class2').click(function(){$('ul.the_menu2').slideToggle('fast');cx2++;createCookie('menuMem','men',1);createCookie('cx2',cx2,1);});$('img.menu_class3').click(function(){$('ul.the_menu3').slideToggle('fast');cx3++;createCookie('menuMem','women',1);createCookie('cx3',cx3,1);});$('img.menu_class4').click(function(){$('ul.the_menu4').slideToggle('fast');cx4++;createCookie('menuMem','type',2);createCookie('cx4',cx4,1);});if(window.opera){if($("a.jqbookmark").attr("rel")!=""){$("a.jqbookmark").attr("rel","sidebar");}}
$("a.jqbookmark").click(function(event){event.preventDefault();var url=this.href;var title=this.title;if(window.sidebar){window.sidebar.addPanel(title,url,"");}else if(window.external){window.external.AddFavorite(url,title);}else if(window.opera){return false;}else{alert('Unfortunately, this browser does not support the requested action,'+' please bookmark this page manually.');}});var searchBoxes=$(".text");var searchBox2=$("#email_address");var searchBox2Default="ENTER YOUR EMAIL";searchBoxes.focus(function(e){$(this).addClass("active");});searchBoxes.blur(function(e){$(this).removeClass("active");});searchBox2.focus(function(){if($(this).attr("value")==searchBox2Default)$(this).attr("value","");});searchBox2.blur(function(){if($(this).attr("value")=="")$(this).attr("value",searchBox2Default);});});$(function(){$(".NewsSlide").jCarouselLite({btnNext:".next",btnPrev:".prev"});});
