function getobj(A){return document.getElementById(A)
}function toggleHeight(B){var A=getobj("ml_"+B);
if(A){A.innerHTML=toggleText(A.innerHTML,"[+]","[-]")
}var C=getobj(B);
if(C){if(C.style.height=="1px"){C.style.height="auto";
C.style.overflow=""
}else{C.style.height="1px";
C.style.overflow="hidden"
}}}function toggleHeightscroll(B){var A=getobj("ml_"+B);
var C=getobj(B);
if(C){if(C.style.display=="none"){C.style.display="block";
A.className="collapse"
}else{C.style.display="none";
A.className="expand"
}}}function changeStatus(A){window.status=A;
return false
}function searchCheck(B,E,D){if(!D){D=self
}var A=B.siblings("span.no-searchword");
var F=B.siblings("input.searchwords");
if(F.val().replace(/\s*/g,"")==""){F.addClass("error").val(A.html());
return false
}else{if(F.val()==A.html()){F.addClass("error");
return false
}else{F.val(F.val().replace(/[\/:%~\\;&]/g," "));
F.val(F.val().replace(/\s{2,}/g," "));
F.val(F.val().replace(/^\s(.+?)\s$/,"$1"));
if(F.val().replace(/\s*/g,"")==""){F.val(A.html());
return false
}var C=E+"/q/"+encodeURIComponent(F.val())+"/";
D.location.href=C
}}return false
}function toggleText(C,B,A){if(C.indexOf(B)>-1){C=C.replace(B,A)
}else{C=C.replace(A,B)
}return C
}function CreateBookmarkLink(){var D=document.title;
var C=document;
var A=window;
var B=C.location.href+"";
if(A.sidebar){A.sidebar.addPanel(D,B,"","","")
}else{if(A.external){A.external.AddFavorite(B,D)
}else{if(A.opera&&A.print){A.alert("druk CTRL + T om "+B+" toe te voegen aan jouw favorieten.");
return true
}}}return true
}function showhideShop(D){var B=document.getElementById(D);
if(B){if(B.className=="pricerow_hidden"){B.className="pricerow_shown";
if(document.getElementById("show_"+D)){var A=document.getElementById("hide_"+D);
A.style.visibility="visible";
A.style.display="";
var C=document.getElementById("show_"+D);
C.style.visibility="hidden";
C.style.display="none"
}}else{B.className="pricerow_hidden";
if(document.getElementById("show_"+D)){var A=document.getElementById("hide_"+D);
A.style.visibility="hidden";
A.style.display="none";
var C=document.getElementById("show_"+D);
C.style.visibility="visible";
C.style.display=""
}}}}function hideshop(){if(document.getElementById("shop1")){var C=document.getElementById("shop1").value;
var B=(navigator.appName);
var E;
var A;
if(B=="Microsoft Internet Explorer"){for(var G=1;
G<C;
G+=1){E="shop"+G+1;
A=new Array();
A=document.getElementsByTagName("tr");
if(A.length>0){for(var D=0;
D<A.length;
D+=1){if(A[D].name==E){A[D].style.visibility="hidden";
A[D].style.height="0px";
A[D].style.display="none"
}}}}}else{for(G=1;
G<C;
G+=1){E="shop"+G+1;
A=new Array();
A=document.getElementsByName(E);
if(A.length>0){for(var F=0;
F<A.length;
F+=1){A[F].style.visibility="hidden";
A[F].style.height="0px";
A[F].style.display="none"
}}}}}}function Hash(){this.length=0;
this.items=new Array();
for(var A=0;
A<arguments.length;
A+=2){if(typeof (arguments[A+1])!="undefined"){this.items[arguments[A]]=arguments[A+1];
this.length++
}}this.removeItem=function(C){var B;
if(typeof (this.items[C])!="undefined"){this.length--;
var B=this.items[C];
delete this.items[C]
}return B
};
this.getItem=function(B){return typeof (this.items[B])=="undefined"?"":this.items[B]
};
this.setItem=function(B,C){if(typeof (C)!="undefined"){if(typeof (this.items[B])=="undefined"){this.length++
}this.items[B]=C
}return C
};
this.hasItem=function(B){return typeof (this.items[B])!="undefined"
}
}function TinyGallery(E,P,M,I){var D=$(".product-images span");
var O=$(".small-images span");
var B=$(".column1 .small-images-navigation a");
var F=$(".small-images");
this.effects="easeOutQuint";
var C=0;
for(C=0;
C<E.length;
C++){O.append('<img src="'+E[C]+'" alt="" />')
}for(C=0;
C<M.length;
C++){D.append('<img src="'+M[C]+'" alt="" />')
}var A=D.find("img");
var L=O.find("img");
var H=function(Q){position="-"+I*(Q.index());
D.clearQueue().animate({left:position+"px"},{duration:300,easing:this.effects})
};
L.mouseover(function(){H($(this))
});
var N=O.css("left").replace(/px/,"");
var K=P;
var J=0;
var G=function(Q){N=O.css("left").replace(/px/,"");
if(Q.attr("class")=="next"){J=((-1*N)+K);
if(J<O.width()-F.width()){Q.removeClass("inactive");
Q.siblings("a").removeClass("inactive")
}else{J=O.width()-F.width();
Q.addClass("inactive");
Q.siblings("a").removeClass("inactive")
}O.animate({left:"-"+J+"px"},{duration:200,easing:this.effects})
}else{if(Q.attr("class")=="prev"){J=((1*N)+K);
if(J<1){Q.removeClass("inactive");
Q.siblings("a").removeClass("inactive")
}else{J=0;
Q.addClass("inactive");
Q.siblings("a").removeClass("inactive")
}O.animate({left:J+"px"},{duration:200,easing:this.effects})
}}};
B.mousedown(function(){return false
}).click(function(){G($(this));
return false
})
}function makeCompareUrl(){var C="productCompare_"+compareCategoryUrl;
var A=$.cookie(C);
var B=A.split(";");
if(A!=""&&B.length>1){A=A.replace(/;/g,"/");
document.location.href="/compare/"+A+"/"
}else{alert(compareNotEnough);
return false
}return true
}function toggleComparison(B,A){if(A=="show"){B.animate({height:"103px"},300).addClass("visible");
$(".compareArrow").fadeOut(100);
B.find("p").slideUp("50")
}else{if(A=="hide"){B.animate({height:"0px"},300).removeClass("visible")
}else{if(!B.hasClass("visible")){B.animate({height:"103px"},300).addClass("visible");
$(".compareArrow").fadeOut(100)
}else{if(B.hasClass("visible")){B.animate({height:"0px"},300).removeClass("visible")
}}}}}function addProductComparisonHtml(A){$("#productComparison .comparison .wrap").append('<a onclick="makeCompareUrl();" class="cg-button cg-button-right">'+A+"<span></span></a><ul></ul>")
}function removeProductsFromComparisonList(A){$("#productComparison ul li.p_"+A).animate({width:"0px"},600,function(){$(this).remove()
});
$("#p_"+A+' input[name="p_id"]').attr("checked",false);
$.cookie("p_id_"+A,null,{path:compareCategoryUrl,expires:-10})
}function addProductsToComparisonList(F,B,A,C){var D="";
if(A.match(/108x88/)){D=A.replace(/108x88/g,"70x52")
}else{if(A.match(/183x160/)){D=A.replace(/183x160/g,"70x52")
}}$("#productComparison ul").append('<li class="p_'+F+'"><img src="'+D+'" alt=""/><a href="'+B+'">'+C+'</a><a class="remove" rel="'+F+'" onclick="compareProduct('+F+',true);"></a></li>');
if($.cookie("p_id_"+F)){$.cookie("p_id_"+F,null,{path:compareCategoryUrl,expires:-10})
}var E=F+";"+B+";"+A+";"+C;
$.cookie("p_id_"+F,E,{path:compareCategoryUrl,expires:60*60*1000})
}function compareProduct(H,A,B){var G="productCompare_"+compareCategoryUrl;
o=$("#p_"+H+" input[name=p_id]");
if($("#productComparison ul").length=="0"){addProductComparisonHtml(compareButtonText)
}var F=[];
var C=$.cookie(G);
if(C){F=C.split(";");
for(i=0;
i<=F.length;
i++){if(F[i]==H){if(i>0){F.splice(i,i)
}else{F.shift()
}}}}var D=$("#p_"+H).find(".prodimg a");
if(o.is(":checked")&&!A&&F.length<maxCompare){addProductsToComparisonList(H,D.attr("href"),D.find("img").attr("src"),D.find("img").attr("alt"));
F.push(H);
if(B!="hidden"){toggleComparison($("#productComparison .comparison .wrap"),"show")
}}else{if(o.is(":checked")&&!A&&F.length>=maxCompare){o.attr("checked",false);
alert(compareIntroductionTooMany)
}else{if(F.length<1){toggleComparison($("#productComparison .comparison .wrap"),"hide")
}removeProductsFromComparisonList(H)
}}var E=F.join(";");
$.cookie(G,E,{path:compareCategoryUrl,expires:60*60*1000})
}function initialiseCompareProducts(E,A){$("#productComparison").fadeIn(100);
var H="productCompare_"+compareCategoryUrl;
if($("#productComparison ul").length=="0"){addProductComparisonHtml(compareButtonText)
}var G=[];
var B=$.cookie(H);
if(B){G=B.split(";");
if(G.length>0){if(A!="hidden"){toggleComparison($("#productComparison .comparison .wrap"),"show")
}}for(i=0;
i<G.length;
i++){var F=G[i];
if(i<maxCompare){var C=$.cookie("p_id_"+F);
var D=C.split(";");
if(E){if(E==F){continue
}}addProductsToComparisonList(F,D[1],D[2],D[3]);
$("#p_"+F).find('input[name="p_id"]').attr("checked",true)
}}}};