function pageload(a){if(a){if($("#wrapper-fluid").length>0){$("#wrapper-fluid").attr("id","wrapper");}$.get("/product/"+a,function(b){$("#maincontent").html(b);$("a[rel='nofollow']").attr("target","_blank");$("a[rel='external']").attr("target","_blank");$("a[rel='product']").click(function(){$("#maincontent").html('<div class="center"><img src="images/loading.gif" alt="loading..."/></div>');var c=this.href;c=c.replace(/^.*#/,"");$.historyLoad(c);return false;});initFancy();});$("html").scrollTop(0);}else{window.location.replace(document.location.href.replace("#",""));}}$(document).ready(function(){getPage();$.historyInit(pageload);$("a[rel='nofollow']").attr("target","_blank");$("a[rel='external']").attr("target","_blank");$("a[rel='product']").click(function(){$("#maincontent").html('<div class="center"><img src="images/loading.gif" alt="loading..."/></div>');var a=this.href;a=a.replace(/^.*#/,"");$.historyLoad(a);return false;});initFancy();});function getPage(){if(document.location.hash!=""){var a=document.location.hash.replace(/^.*#/,"");$.get("/product/"+a,function(b){$("#maincontent").html(b);$("a[rel='nofollow']").attr("target","_blank");$("a[rel='external']").attr("target","_blank");$("a[rel='product']").click(function(){$("#maincontent").html('<div class="center"><img src="images/loading.gif" alt="loading..."/></div>');var c=this.href;c=c.replace(/^.*#/,"");$.historyLoad(c);return false;});initFancy();});}}function initFancy(){$("a[rel=group_image]").fancybox({transitionIn:"none",transitionOut:"none",titlePosition:"over",titleFormat:function(d,c,a,b){return'<span id="fancybox-title-over">Image '+(a+1)+" / "+c.length+(d.length?" &nbsp; "+d:"")+"</span>";}});$("a#single_image").fancybox({titleShow:false,transitionIn:"elastic",transitionOut:"elastic"});}
