var Seasons={};Seasons.modules=function(){var a=[];return{add:function(b){a[a.length]=b},run:function(){for(var b in a){a[b]()}}}}();Seasons.modal_window=function(){var obj_jquery_tools,str_overlay_div="#overlay",str_content_id="",hide=function(){$(str_overlay_div).hide()},obj_expose={color:"#999999",loadSpeed:"fast",closeSpeed:"fast",onBeforeClose:hide},initialise=function(){obj_jquery_tools=$(str_overlay_div).expose(obj_expose);$("a.modal_window").each(function(){var a=$(this).attr("id");if(a=="guarantee_and_returns"||a=="privacy_policy"||a=="terms_and_conditions"){return}$(this).click(function(){render($(this))})});$(str_overlay_div+" .close img").click(close);$(str_overlay_div+" .close span").click(close)},render=function(obj_this,str_function){if(str_content_id.length==0){str_content_id=obj_this.attr("id")+"_content"}$(str_overlay_div+" .header .inner").empty();$(str_overlay_div+" .body .inner").empty();if($("#"+str_content_id).size()>0){obj_container_clone=$("#"+str_content_id).clone();$("*",obj_container_clone).each(function(){if($(this).attr("id").length>0){$(this).attr("id",$(this).attr("id")+"_real")}});obj_container_clone.prependTo(str_overlay_div+" .body .inner");$(str_overlay_div+" .body .inner").children().each(function(){$(this).show()})}$(str_overlay_div+" .body .inner > div > h3:first").appendTo(str_overlay_div+" .header .inner");var int_top=$(window).scrollTop()+($(window).height()-$(str_overlay_div).outerHeight())/2;var int_left=$(window).scrollLeft()+($(window).width()-$(str_overlay_div).outerWidth())/2;$(str_overlay_div).css("top",int_top).css("left",int_left);obj_jquery_tools.expose().load();$(str_overlay_div).show();str_content_id="";str_function=obj_this.attr("href").substr(1);if(str_function){eval("Seasons."+str_function+"()")}return false},close=function(){obj_jquery_tools.expose().close()};Seasons.modules.add(initialise);var obj_public={show:function(a){str_content_id=a;render()},hide:function(){close()}};return obj_public}();Seasons.menu=Seasons.menu?Seasons.menu:{};Seasons.menu.brand=function(){var a={int_start_height:312,str_transition_speed:"normal"},b="#menu_brand",c="#see_more",d=-1,e=function(){f();g()},f=function(){d=$(b).height();$(b).css("overflow","hidden");$(b).height(a.int_start_height)},g=function(){var a='<p id="see_more"><a href="#">Show more brands...</a></p>';$(b).after(a);$(c+" a").click(h)},h=function(){$(c).remove();$(b).animate({height:d},a.str_transition_speed);return false};return{}}();Seasons.listing_image_swap=function(){var a="",b=function(){$(".product_image_container").hover(c,d)},c=function(){a=$(this).children().attr("id");if($("#"+a+"_sec").length==1){$("#"+a).hide();$("#"+a+"_sec").show()}},d=function(){if($("#"+a+"_sec").length==1){$("#"+a+"_sec").hide();$("#"+a).show()}};Seasons.modules.add(b);return{}}();Seasons.search=function(){var a="#field",b="",c=function(){b=$(a).val();$(a).focus(d);$(a).blur(e)},d=function(){if(b===this.value){this.value=""}},e=function(){if(this.value==""){this.value=b}};Seasons.modules.add(c);return{}}();$(document).ready(function(){Seasons.modules.run()})
