var iVisitID=0;var timer=null;var bEventBubbleFirst=true;var tHourGlassShow=500;function OnEndRequest(){HourGlassHide();return true}function onSubmit(a){HourGlassShow();return true}var __BackReqId="";function Page_load(){HourGlassHide();var d=Sys.WebForms.PageRequestManager.getInstance();if(!d.get_isInAsyncPostBack()){d.add_endRequest(OnEndRequest);d.add_beginRequest(onSubmit);if(theForm.action.Contains("?")){theForm.action="";theForm._initialAction=theForm.action}}$get("__NEWBID").value="";var c=$get("Request");if(c){var b=Number(getCookie("Request",0));var e=Number($get("Request").value);b+=1;if(b>2000000){b=0}setCookie("Request",b,1);if(e<b-1){c=$get("__pbFromBack");if(c){c.value="1"}__doPostBack(__BackReqId,"");__BackReqId=""}}var g=document.getElementsByTagName("IMG");for(var a=0;a<g.length;a++){var f=g[a];if(f.className.Contains("AutoScale")){var h=f.src;oBoxImageColl.push(removeSys(h)+"~"+f.alt);f._largeURL=removeSys(h);$addHandler(f,"click",box_click_pre)}}if(typeof(pngFixInit)!=="undefined"){pngFixInit()}}function __doVwaPB(c,a,f,b,g){var d=false;HourGlassShow();if(typeof(f)=="undefined"){f=null}if(f!=null){d=(toNumber($get("__VIRBID").value)!=toNumber(f));$get("__NEWBID").value=f}if(b&&b.length>0){theForm.action=b}else{theForm.action=sHostName;theForm._initialAction=sHostName+(d?" ":"")}return __doPostBack(c,a)}function mClk(d,b,a,c){MenuClick(d,b,a,c,true)}function MenuClick(f,c,a,d,b){if(!b){b=false}if(!c||c==="0"){c=0}killEvent(d);__doVwaPB((b?"__VwaMenu":""),"",c,a);onSubmit();return false}function OpenObject(c,b,f,a){if(!f){return false}var d=getOrCreateHidden("__OpenObject");d.value=f;MenuClick(null,b,c,a,false);return false}var Menu={ActiveRootMenuId:null,ActiveButton:null,ActiveMenuId:null,PreviousButton:null,PreviousMenu:null,FixedDisplayLevel:0,FixedDisplay:0,HoverTime:2000};function mnuRootOver(a){Menu.ActiveRootMenuId=a.id;Menu.FixedDisplay=toNumber($get(a.id+"FD").value);Menu.HoverTime=toNumber($get(a.id+"HT").value);Menu.FixedDisplayLevel=toNumber($get(a.id+"FDL").value)}function buttonover(a){if(bEventBubbleFirst){Menu.ActiveButton=a}bEventBubbleFirst=false}function MenuExpand(f,b,a,e){var g="";var d=true;var c;if(!e){e=false}c=$get(b);f.ForceVisible=e;if(e){if(Menu.LastFixedButton!=f){if(Menu.LastFixedMenu){Menu.LastFixedMenu.style.display="none"}Menu.LastFixedButton=f;Menu.LastFixedMenu=c}}f.ChildMenuId=b;f.Expanded=true;if(c){ShowMenu(c)}Menu.PreviousButton=f;Menu.PreviousMenu=c;return true}function ShowMenu(a){a.isMenu=true;a.style.display="block"}function mc(a){bEventBubbleFirst=true;Menu.ActiveButton=null;Menu.ActiveMenuId="";if(!Menu.ActiveRootMenuId||Menu.ActiveRootMenuId.length==0){fobj=a;while(fobj.tagName!="DIV"){fobj=VWABrowserInfo.IsGecko?fobj.parentNode:fobj.parentElement}if(fobj.tagName=="DIV"){mnuRootOver(fobj.firstChild)}}if(timer){clearTimeout(timer)}timer=setTimeout("HideMenu('"+Menu.ActiveRootMenuId+"')",Menu.HoverTime)}function HideMenu(c){var a=document.getElementById(c);if(a){var b;if(timer){clearTimeout(timer)}for(var d=0;d<a.childNodes.length;d++){b=a.childNodes[d];b.isRoot=true;if(b.childNodes){HideChildMenuNodes(b,0)}}}}function HideChildMenuNodes(a,e){var c=null;var d=false;if(a==Menu.ActiveButton){d=true}if((Menu.FixedDisplayLevel==0||(Menu.FixedDisplayLevel>0&&e<Menu.FixedDisplayLevel))&&a.tagName=="LI"&&a.className.substring(0,1)=="S"&&Menu.FixedDisplay==2){d=true}if(a.ForceVisible){d=true}if(a.ChildMenuId){c=$get(a.ChildMenuId);if(c){if(c.ForceVisible){d=true}if(c.className.substring(0,1)=="S"&&Menu.FixedDisplay==1){d=true}if(c==Menu.ActiveButton){d=true}if(c.childNodes){d=(HideChildMenuNodes(c,e+((c.tagName=="UL")?1:0))||d)}}}for(var b=0;b<a.childNodes.length;b++){c=a.childNodes[b];if(c.tagName=="LI"||c.tagName=="UL"){if(c.ForceVisible){d=true}if((Menu.FixedDisplayLevel==0||(Menu.FixedDisplayLevel>0&&e<Menu.FixedDisplayLevel))&&c.className.substring(0,1)=="S"&&Menu.FixedDisplay==1){d=true}if((Menu.FixedDisplayLevel==0||(Menu.FixedDisplayLevel>0&&e<Menu.FixedDisplayLevel))&&c==Menu.ActiveButton){d=true}if(c.childNodes){d=(HideChildMenuNodes(c,e+((c.tagName=="UL")?1:0))||d)}}}if(a.ChildMenuId&&!d&&$get(a.ChildMenuId)){$get(a.ChildMenuId).style.display="none"}return d}function OpenButton(a,b){var d=a.indexOf("ButtonID=");if(d>=0){var c=a.substring(d+9,a.length);d=c.indexOf("&");if(d<0){d=c.indexOf("?")}if(d<0){d=c.indexOf("#")}if(d>=0){c=c.substring(0,d)}MenuClick(this,c,b,null,true)}}function OpenMenu(b){var a=0;var c=b.indexOf("MenuID=");if(c>=0){a=b.substring(c+7,b.length);c=a.indexOf("&");if(c<0){c=a.indexOf("?")}if(c<0){c=a.indexOf("#")}if(c>=0){a=a.substring(0,c)}MenuClick(this,a*-1)}}function GotoA(a){location.href="#"+a}function FindA(){var a=this;var b="",c="";b=a.location.href;if(b.indexOf("#")>=0){return}GotoA(b);c=a.name}function OpenURL(b,a){if(!a){window.open(b)}else{self.location.href=b}}function OpenDoc(e,d,a,b){if((typeof(sContentDir)=="undefined")||(sContentDir==null)||(typeof(sHostName)=="undefined")||(sHostName==null)){return false}var c=sHostName+sContentDir;OpenExtern(c+e,d,a,b)}function OpenExtern(f,d,a,b){if(!d){d=screen.availWidth*(2/3)}if(!a){a=screen.availHeight*(2/3)}if(!b){b=0}switch(b){case -1:document.location.href=f;break;case 1:oWin=window.open(f,"Popup","width="+d+",height="+a+",left="+(screen.availWidth-d)/2+",top="+(screen.availHeight-a)/2+",status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=yes");if(oWin){oWin.focus()}break;case 2:if(window.showModalDialog){oWin=window.showModalDialog(f,"Popup","dialogWidth:"+d+"px;dialogHeight:"+a+"px;font-family:Verdana;font-size:12;status:no;scroll:no;center:yes;edge:raised;resizable:no;help:no;unadorned:yes;")}else{window.open(f,"Popup","width="+d+",height="+a+",left="+(screen.availWidth-d)/2+",top="+(screen.availHeight-a)/2+",status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=no,modal=yes")}break;default:oWin=window.open(f,"Popup","width="+d+",height="+a+",left="+(screen.availWidth-d)/2+",top="+(screen.availHeight-a-140)/2+",status=yes,toolbar=yes,menubar=yes,location=yes,resizable=yes,scrollbars=yes");try{if(oWin&&oWin.focus){oWin.focus()}}catch(c){}break}}function ProductPopUp(d,c,b){var a=sHostName+"ProductPopUp.aspx?GroupID="+d;a+="&PrdGroupID="+c;a+="&ItemID="+b;ModalPopupOpen("Producten","75","52",a,null,null,true,false)}var sLargeImgUrl="";var oBoxImageColl=null;var boxTimer;function box_click_pre(b){var a=b.target;box_click(a._largeURL,a,a.src,b)}function box_click(f,g,c,h,b){var d;var a=(g.tagName&&g.tagName.toLowerCase()=="img");f=f.replace(/:\/\//,"t_p");f=f.replace(/\/\//g,"/");f=f.replace(/t_p/,"://");if(!h){h=""}d=new Sys.UI.Bounds(0,0,200,200);sLargeImgUrl=f;sHTML='<div id="boxImageWrp" >';sHTML+='<center><img id="imgSmall" align="absmiddle" id="boxImage" src="buttons/loadingpic.gif" />';sHTML+='<img id="imgLarge" onclick="ModalPopupClose()" style="display:none" align="absmiddle" src="'+sLargeImgUrl+'" /></center>';sHTML+='<span id="boxNav" class="boxNav"></span>';sHTML+='<div class="imgCaption" style="width:100%;heigth:40px;overflow:hidden;">';sHTML+='<span id="boxCaption" class="boxCaption">'+h+"</span></div>";sHTML+="</div>";sHTML+='<img class="boxImgClose" onmouseover="this.src=\'buttons/imgClose_over.png\'" onmouseout="this.src=\'buttons/imgClose.png\'"';sHTML+=' onclick="ModalPopupClose()" id="btnCancel" src="buttons/imgClose.png" />';ModalPopupOpen("Box",d.width+20,d.height+20,sHTML,"btnCancel");$("#boxImageWrp").css("opacity",0);oPopup.pendingAnimation=true;Box_Out();box_imgLoaded();if($get("btnCancel")){$get("btnCancel").style.visibility="hidden"}$addHandler($get(oPopup.sOpenerId),"mousemove",Box_MouseMove);$addHandler(window,"resize",SetPosition);oPopup.onCloseHandler=function(){$removeHandler(window,"resize",SetPosition)};killEvent(b);return false}function Box_MouseMove(c){if(oPopup.pendingAnimation){return false}var a=c.target;var b=0;while(a&&a.id!="imgSmall"&&a.id!="boxImageWrp"&&b<15){a=VWABrowserInfo.IsGecko?a.parentNode:a.parentElement;b+=1}if(!a||a.id!="imgSmall"){return false}if(c.offsetX<(oPopup.iWidth/2)){$("#boxNavPrev").css("visibility","visible");$("#boxNavNext").css("visibility","hidden")}else{$("#boxNavPrev").css("visibility","hidden");$("#boxNavNext").css("visibility","visible")}if(boxTimer){clearTimeout(boxTimer)}boxTimer=window.setTimeout(Box_Out,2000)}function Box_Loaded(a){oPopup.pendingAnimation=false;$get("btnCancel").style.visibility="visible";$get("boxCaption").style.display=""}function Box_Out(a){if($get("boxNavNext")){$get("boxNavPrev").style.visibility="hidden";$get("boxNavNext").style.visibility="hidden"}}function box_imgLoaded(){var p=$get(oPopup.sOpenerId);var c=$get("imgLarge",p);var l=$get("imgSmall",p);if(!c){return}if(!(c.complete==null||c.complete)){setTimeout(box_imgLoaded,500);return false}$get("boxCaption").style.display="none";l.src=c.src;c.style.display="block";l.style.display="none";var r=Sys.UI.DomElement.getBounds(c);var s=r.width;var b=r.height;var h="";var o="";if(typeof(oBoxImageColl)!="undefined"){var j=oBoxImageColl.length;if(j>0){var q=true;var m=c.src;var a=m.toLowerCase().lastIndexOf("content/");var g=1;m=m.substr(a);for(i=0;i<j;i++){if(oBoxImageColl[i].Contains(m.replace(/%20/g," "))){g=i+1;break}}o=g.toString()+"&nbsp;"+translate.getValue("COM_OF")+"&nbsp;"+j.toString();q=(g>1);h+='<span style="visibility:hidden" id="boxNavPrev" class="nav';if(q){h+='" onclick="box_goto('+(g-2).toString()+')"'}else{h+=' dis"'}h+='><span class="NavText">'+translate.getValue("COM_PREVIOUS")+"</span></span>";q=(g<j);h+='<span style="visibility:hidden"  id="boxNavNext" class="nav';if(q){var f=oBoxImageColl[g].split("~");c.src=f[0];h+='" onclick="box_goto('+g+')"'}else{h+=' dis"'}h+='><span class="navText">'+translate.getValue("COM_NEXT")+"</span></span>";var e=oBoxImageColl[g-1].split("~");if(e.length>1){$get("boxCaption",p).innerHTML=e[1]+"<br/>"+o}oPopup.sOkId="boxNavNext"}}$get("boxNav").innerHTML=h;c.style.display="none";l.style.display="none";p.style.overflow="hidden";GetScreenSize();var n=100;var d=iWindowWidth/20;if(r.height>iWindowHeight-n){factor=(iWindowHeight-n)/r.height;r.height=iWindowHeight-n;r.width=(r.width*factor)}if(r.width>iWindowWidth-d){factor=(iWindowWidth-d)/r.width;r.width=iWindowWidth-d;r.height=(r.height*factor)}s=r.width;b=r.height;l.style.height=b+"px";l.style.width=s+"px";var r=CheckPosition({MarginWidth:20,MarginHeight:60,InnerHeight:b,InnerWidth:s,PopupWidth:0,PopupHeight:0});var k=(Math.abs(r.PopupHeight-p._bounds.PopupHeight)<20);var t=function(){if(k){$(p).animate({width:r.PopupWidth,left:(iWindowWidth-r.PopupWidth)/2},{queue:true,speed:0.2,complete:function(){l.style.display="block";$("#boxImageWrp").animate({opacity:1},400);Box_Loaded()}})}else{$(p).animate({height:r.PopupHeight-(k?0:40),top:(iWindowHeight/2)-((r.PopupHeight)/2)-r.offsetY},{queue:true,speed:0.2});$(p).animate({width:r.PopupWidth,left:(iWindowWidth-r.PopupWidth)/2},{queue:true,speed:0.2,complete:function(){l.style.display="block";$("#boxImageWrp").animate({opacity:1},400)}});$(p).animate({height:r.PopupHeight},{queue:true,speed:0.2,complete:Box_Loaded})}};SetPosition(p,r.PopupWidth,r.PopupHeight,null,null,t);oPopup.iWidth=s+20;oPopup.iHeight=b+20}function box_goto(c,a){if(!a){a=""}Box_Out();if($get("btnCancel")){$get("btnCancel").style.visibility="hidden"}oPopup.pendingAnimation=true;var b=$get("imgLarge",$get(oPopup.sOpenerId));aURL=oBoxImageColl[c].split("~");b.src=aURL[0];b.style.width="";b.style.height="";$("#boxImageWrp").animate({opacity:0},200,box_imgLoaded);$get("boxCaption").style.display="none"}function prdGroup_Click(c,b,d){var a=getOrCreateHidden(c);onSubmit();a.value=b;killEvent(d)}function ConversionReached(a){VWA.FrontService.OnConversionReachedString(a,iOptimizerID);return true};