var _slVersion="3.0.40624.0";String.prototype.Contains=function(a){return(this.toLowerCase().indexOf(a.toLowerCase())>-1)};function removeSys(b){var a=/_sys_[0-9]+_[0-9]+_/i;b=b.replace(a,"");return b}function killEvent(a){if(!a){var a=window.event}if(a){a.cancelBubble=true;if(a.stopPropagation){a.stopPropagation()}if(a.preventDefault){a.preventDefault()}}}var s=navigator.userAgent.toLowerCase();var VWABrowserInfo={IsIE:s.Contains("msie"),IsIE7:s.Contains("msie 7"),IsGecko:s.Contains("gecko"),IsSafari:s.Contains("safari"),IsOpera:s.Contains("opera"),IsMac:s.Contains("macintosh"),IsWin:navigator.appVersion.toLowerCase().Contains("win")};function cloneObject(a){for(i in a){this[i]=a[i]}}function VWA_ScrollIntoView(b){if(b){if(VWABrowserInfo.IsSafari||VWABrowserInfo.IsOpera){b.scrollIntoView(true)}else{try{b.focus();b.blur()}catch(a){b.scrollIntoView(true)}}}}function getElementStyle(b,c){if(b.currentStyle){return b.currentStyle[c]}else{if(window.getComputedStyle){var a=window.getComputedStyle(b,"");return a.getPropertyValue(c)}}return""}var _sID;var _FuncOnChange="";function selectFile(a,c,b,e){if(!b){b=""}if(!e){e=""}_FuncOnChange=b;_sID=a;var d="pop_fileManager.aspx";d+="?BaseSubDir="+c;if($get(a)){d+="&file="+$get(a).value}d+="&Type="+e;top.OpenPopup(window,"fileResult",d,"File",750,520,"Afbeelding kiezen",true)}function fileResult(ReturnValue){if(ReturnValue){$get(_sID).value=ReturnValue}eval(_FuncOnChange+'("'+ReturnValue+'")')}var oHolder=null;var oPopup=null;var oPopupStruct=function(g,d,f,e,a,c,h,b){this.sPopupID=g;this.iWidth=d||300;this.iHeight=f||400;this.sHTML=e;this.sOkId=a||"btnOk";this.sCancelId=c||"btnCancel";this.sOpenerId="divOpener"+g;this.oHolder=null;this.onCloseHandler=null;this.args=null;this.bIframe=(h?true:false);this.oContent=null;this.bRoundedCurves=(b?true:false)};var iTryOpenPopupCount=0;function ModalPopupOpen(c,x,d,q,w,b,n,g){if(!oPopup){oPopup=new oPopupStruct(c,x,d,q,w,b,n,g)}else{if(!c){x=oPopup.iWidth;d=oPopup.iHeight;q=oPopup.sHTML;w=oPopup.sOkId;b=oPopup.sCancelId;n=oPopup.bIframe;g=oPopup.bRoundedCurves;c=oPopup.sPopupID}}if(document.readyState&&document.readyState!="complete"&&iTryOpenPopupCount<50){iTryOpenPopupCount+=1;window.setTimeout("ModalPopupOpen();",50);return}iTryOpenPopupCount=0;var r=$get(c);var e=null;e=$get(oPopup.sOpenerId);if(!e){e=document.createElement("div");e.id=oPopup.sOpenerId;e.className="modalForeGround";e.style.position="absolute";e.style.overflow="visible";if(oPopup.bRoundedCurves){var f=document.createElement("table");f.cellPadding=0;f.cellSpacing=0;f.style.width="100%";f.style.height="100%";f.className="pop";e.appendChild(f);var j=f.insertRow(0);var l=f.insertRow(1);var k=f.insertRow(2);var t=j.insertCell(0);t.className="popTL";var u=j.insertCell(1);u.className="popT";var m=j.insertCell(2);m.className="popTR";var o=l.insertCell(0);o.className="popCL";var v=l.insertCell(1);v.className="popC";var h=l.insertCell(2);h.className="popCR";var a=k.insertCell(0);a.className="popBL";var y=k.insertCell(1);y.className="popB";var p=k.insertCell(2);p.className="popBR";oPopup.oContent=v}else{oPopup.oContent=e}}else{oPopup.ReFill=true}if(r){if(!x){oPopup.iWidth=parseInt(r.style.width)}if(!d){oPopup.iHeight=parseInt(r.style.height)+(oPopup.bRoundedCurves?26:0)}}if(oPopup.bIframe){if(!oPopup.ReFill){oPopup.oContent.innerHTML='<iframe name="'+oPopup.sPopupID+'Ifrm" id="'+oPopup.sPopupID+'Ifrm" src="javascript:void(document.write(\'\'))" style="width:100%; height:100%;" ALLOWTRANSPARENCY vspace="0" scrolling="no" frameborder="0" border="0"></iframe>'}}else{if(q&&q.length!=0){oPopup.oContent.innerHTML=q;oPopup.oHolder=null}else{if(r){oPopup.oHolder=VWABrowserInfo.IsGecko?r.parentNode:r.parentElement;oPopup.oHolder.removeChild(r);oPopup.oContent.appendChild(r)}}}if(oPopup.bIframe){setTimeout(popupSetURL,5)}if(!oPopup.ReFill){CreateModalMask(oPopup.sPopupID,"modalBackground");document.body.appendChild(e);SetPosition(e,oPopup.iWidth,oPopup.iHeight);$addHandler(document,"keydown",popupKeyPressed)}else{SetPosition(e,oPopup.iWidth,oPopup.iHeight)}}function popupSetURL(){iframe=document.getElementById(oPopup.sPopupID+"Ifrm").contentWindow;var b=oPopup.sHTML;var a=new Date();b+=(b.Contains("?")?"&":"?")+"t="+a.format("hms");iframe.location=b}function CreateIFrame(e,c){if($get(c)){c+"_"}var d=new Date();e+=(e.Contains("?")?"&":"?")+"t="+d.format("hms");var b=document.createElement("div");b.style.display="none";var a='<iframe id="'+c+'" name="'+c+'" src="javascript:void(document.write(\'\'))" style="width:1px; height:1px;" frameborder="0" border="0"></iframe>';document.body.appendChild(b);b.innerHTML=a;window.setTimeout(function(){$get(c).src=e},50)}function popupKeyPressed(c){if(c.keyCode==13){var a=$get(oPopup.sOkId);if(a&&a.onclick){a.onclick()}}if(c.keyCode==27){var b=$get(oPopup.sCancelId);if(b&&b.onclick){b.onclick()}}}function ModalPopupClose(b){if(!b){window.setTimeout("ModalPopupClose(true)",100);return false}if(!oPopup){return false}var c=$get(oPopup.sOpenerId);if(c){var a=null;if(oPopup.oHolder){a=oPopup.oContent.childNodes[0];if(a){oPopup.oHolder.appendChild(a)}}}c.innerHTML="";document.body.removeChild(c);c.id="";c=null;document.body.removeChild($get("tblOpener"+oPopup.sPopupID));$removeHandler(document,"keydown",popupKeyPressed);if(oPopup.onCloseHandler){oPopup.onCloseHandler(oPopup.args)}oPopup=null}function CreateModalMask(a,c){var b=document.createElement("div");if(c){b.className=c}b.id="tblOpener"+a;b.style.cssText="z-index:1000;position: absolute; top: 0px; width: 100%; height:100%;";document.body.appendChild(b);var d=document.body.scrollHeight;if(typeof(iDivsetHeight)!="undefined"){d=(iDivsetHeight>d)?iDivsetHeight:d}b.style.height=d+"px"}function CheckPosition(a){GetScreenSize();if(!a.MarginWidth){a.MarginWidth=0}if(!a.MarginHeight){a.MarginHeight=0}var c=a.InnerWidth.toString().lastIndexOf("%");if(c>0){a.InnerWidth=a.InnerWidth.substring(0,c);a.InnerWidth=(iWindowWidth*(a.InnerWidth/100))-a.MarginWidth}c=a.InnerHeight.toString().lastIndexOf("%");if(c>0){a.InnerHeight=a.InnerHeight.substring(0,c);a.InnerHeight=(iWindowHeight*(a.InnerHeight/100))-a.MarginHeight}if(a.InnerWidth<=0){a.InnerWidth=515}if(a.InnerHeight<=0){a.InnerHeight=360}a.PopupWidth=a.InnerWidth+a.MarginWidth;a.PopupHeight=a.InnerHeight+a.MarginHeight;a.offsetY=0;var b=$get("DivSet");if(b&&!bUpdate){a.offsetY=Sys.UI.DomElement.getBounds($get("DivSet")).y}return a}function SetPosition(f,b,g,c,d,a){var e=null;if(!f||Object.getTypeName(f)==="Sys.UI.DomEvent"){f=$get(oPopup.sOpenerId);if(f&&f._bounds){if(b&&b>0&&g&&g>0){f._bounds.InnerWidth=b;f._bounds.InnerHeight=g}e=CheckPosition(f._bounds)}}else{e=CheckPosition({PopupWidth:0,PopupHeight:0,MarginWidth:c,MarginHeight:d,InnerHeight:g,InnerWidth:b})}if(!f){return false}if(!f._PositionSet){f.style.position="absolute";f.style.zIndex=1001;f.style.display="block"}if(a){window.setTimeout(a,50)}else{f.style.width=e.PopupWidth+"px";f.style.height=e.PopupHeight+"px";f.style.left=(iWindowWidth/2)-(e.PopupWidth/2)+"px";f.style.top=((iWindowHeight/2)-(e.PopupHeight/2)-e.offsetY)+"px"}f._left=(iWindowWidth/2)-(e.PopupWidth/2);f._top=((iWindowHeight/2)-(e.PopupHeight/2)-e.offsetY);f._PositionSet=true;f._bounds=e;window.setTimeout(SetPositionMask,200)}function SetPositionMask(){if(!oPopup){return false}var b=$get("tblOpener"+oPopup.sPopupID);if(b){var a=document.body.scrollHeight;if(typeof(iDivsetHeight)!="undefined"){a=(iDivsetHeight>a)?iDivsetHeight:a}b.style.height=a+"px";b.style.width=document.body.scrollWidth+"px"}}function isEmail(a){if((typeof(a)=="undefined")||(a==null)){a=""}else{if(typeof(a)=="object"){a=GetValue(a)}}if(a.length==0){return true}var b=/^([a-z0-9&._-]{2,})@([a-z0-9.-]{2,})\.([a-z]{2,4}|museum|travel)$/;return b.test(a.toLowerCase())}function isDomain(a){if((typeof(a)=="undefined")||(a==null)){a=""}else{if(typeof(a)=="object"){a=GetValue(a)}}if(a.length==0){return true}var b=/^([a-z0-9.-]{2,})\.([a-z]{2,4}|museum|travel)$/;return b.test(a.toLowerCase())}function isWebsite(a){if((typeof(a)=="undefined")||(a==null)){a=""}else{if(typeof(a)=="object"){a=GetValue(a)}}if(a.length==0){return true}var b=a;var c=b.replace(/\\/g,"/").indexOf("://");if(c>0){b=b.substr(c+3)}c=b.replace(/\\/g,"/").indexOf("/");if(c>0){b=b.substring(0,c)}return isDomain(b)}function isNumber(a){if((typeof(a)=="undefined")||(a==null)){a=""}else{if(typeof(a)=="object"){a=GetValue(a)}}if(a.length==0){return false}else{a=replaceString(a,",",".");return !isNaN(a)}}function toNumber(a){var b=0;if(typeof(a)==="number"&&!isNaN(a)){return a}if(typeof(a)==="string"){b=Number.parseInvariant(replaceString(a,",","."))}if(!isNumber(b)){b=0}return b}function Val(a){if((a.length==0)||(isNaN(a))){return 0}return parseFloat(a)}function isImage(a){if(!a){return false}return a.toLowerCase().match("^.+.((jpg)|(gif)|(png)|(jpeg))$")}function VWA_FormatNumber(b){var a=b.toString();if(Sys.CultureInfo.CurrentCulture.numberFormat.NumberDecimalSeparator!="."){a=replaceString(a,".",Sys.CultureInfo.CurrentCulture.numberFormat.NumberDecimalSeparator)}return a}function VWA_FormatNumberRound(e,a,b){if(a>=0){e=round(e,a)}var c=e.toString();if(a>=0){var d=c.lastIndexOf(".");if(d>=0){d=c.length-d-1}else{d=0;c+="."}for(iCnt=d;iCnt<a;iCnt++){c+="0"}}if(Sys.CultureInfo.CurrentCulture.numberFormat.NumberDecimalSeparator!="."){c=replaceString(c,".",Sys.CultureInfo.CurrentCulture.numberFormat.NumberDecimalSeparator)}return c}function SetFocus(b){if(!b){return false}if(b.type=="hidden"){return false}try{b.focus();if(b.type=="text"||b.type=="password"){b.select()}}catch(a){return false}return true}function error(c,a){if((c)&&(c.type!="hidden")){try{c.focus();if(c.type=="text"||c.type=="password"){c.select()}}catch(b){}}alert(a);if((!document.all)&&(c)&&(c.type!="hidden")){try{if(c.type=="text"||c.type=="password"){c.value=""}}catch(b){}}return true}function GetValue(b){if(!b){return false}var a="";switch(b.type){case"select-one":if(b.selectedIndex>=0){a=b.options[b.selectedIndex].value;if(a=="_XXX_"){a=""}}break;case"checkbox":if(b.checked){a=1}else{a=0}break;default:switch(b.tagName){case"DIV":case"LABEL":a=b.innerHTML;break;default:a=b.value;break}break}return a}function SetValue(f,l){if(!f||(!l&&l!=0)){return false}var g="";var k=false;if(f.type){g=f.type}else{if(f.length){g=f[0].type}}switch(g){case"select-one":var d=false;for(var b=0;b<f.options.length;b++){if(l.toString().toLowerCase()==f.options[b].value.toString().toLowerCase()){f.options[b].selected=true;d=true;k=true;break}}if((!d)&&(f.options.length>0)){f.options[0].selected=true}break;case"checkbox":if(isNumber(l)){f.checked=(toNumber(l)!=0)}else{if(l){f.checked=true;k=true}else{f.checked=false}}break;case"radio":for(var b=0;b<f.length;b++){if(f[b].value==l){f[b].checked=true;return true}}break;default:switch(f.tagName){case"DIV":case"LABEL":f.innerHTML=l;break;case"SELECT":var a=f.getElementsByTagName("OPTION");for(var j=0;j<a.length;j++){var h=a[j];if(h.value==l){h.selected=true}}break;default:try{f.value=l}catch(c){}break}}return k}function GetTable(b){var a=$get(b);if(a.getElementsByTagName("TBODY")&&a.getElementsByTagName("TBODY")[0]){a=a.getElementsByTagName("TBODY")[0]}return a}function GetInnerText(d){var a=/<\/?[^>]+>/gi;var c="";if(d.innerText){c=d.innerText}else{var b=d.innerHTML;b=replaceString(b,"<br>","\n");c=b.replace(a,"")}return c}function CheckLen(c,a){var b=GetValue(c);if(b.length>a){c.value=b.substring(0,a)}return true}function InitCap(a){if(a.length>0){a=a.substr(0,1).toUpperCase()+a.substr(1).toLowerCase()}else{a=""}return a}function trim(a,b){if(!b){b=" "}while(a.length>0&&a.substr(0,1)==b){a=a.substr(1)}while(a.length>0&&a.substr(a.length-1,1)==b){a=a.substr(0,a.length-1)}return a}function round(c,b,a){if(a){if(b>0){return Math.ceil(c*Math.pow(10,b))/Math.pow(10,b)}else{return Math.ceil(c)}}else{if(b>0){return Math.round(c*Math.pow(10,b))/Math.pow(10,b)}else{return Math.round(c)}}}function replaceString(b,c,d){var f,e,a;f=0;b=b.toString();c=c.toLowerCase();while(f>=0){f=b.toLowerCase().indexOf(c,f);if(f<0){if(c=="\n"){b=replaceString(b,"\r","")}return b}e=b.substring(0,f);a=b.substring(f+c.length,b.length);b=e+d+a;f+=c.length+1}return b}function ListOptionRemove(b,a){if(VWABrowserInfo.IsIE){b.options.remove(a)}else{b.options[a]=null}}function ListOptionAdd(b,a){if(VWABrowserInfo.IsIE){b.options.add(a,b.options.length)}else{b.options[b.options.length]=a}delete (a)}function ButtonHigh(a){if(a.className.indexOf("pictoButton")>=0){a.className="butHigh pictoButton"}else{a.className="butHigh"}}function ButtonNorm(a){if(a.className.indexOf("pictoButton")>=0){a.className="butNorm pictoButton"}else{a.className="butNorm"}}function ButtonEnable(b){var a=document.getElementById(b);a.disabled=false;if(a.className.indexOf("pictoButton")>=0){a.className="butNorm pictoButton"}else{a.className="butNorm"}}function ButtonDisable(b){var a=document.getElementById(b);a.disabled=true;if(a.className.indexOf("pictoButton")>=0){a.className="butDisable pictoButton"}else{a.className="butDisable"}}var iWindowWidth=0,iWindowHeight=0;function GetScreenSize(){if(window.innerWidth){iWindowWidth=window.innerWidth}else{if(document.body.offsetWidth){iWindowWidth=document.body.offsetWidth}else{if(window.screen){try{iWindowWidth=window.screen.width}catch(a){}}}}if(window.innerHeight){iWindowHeight=window.innerHeight}else{if(document.body.offsetHeight){iWindowHeight=document.body.offsetHeight}else{if(window.screen){try{iWindowHeight=window.screen.height}catch(a){}}}}}function GetScrollPosition(){var a=0;var b=0;if(typeof(window.pageYOffset)=="number"){a=window.pageXOffset;b=window.pageYOffset}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){a=document.documentElement.scrollLeft;b=document.documentElement.scrollTop}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){a=document.body.scrollLeft;b=document.body.scrollTop}}}var c={x:a,y:b};return c}var Countries=null;var CountrySettings={CountryControlId:"",StateControlId:"",Street2Id:"",iCountryId:"",bRequesting:false};var CacheCountries=[];var MsgSelectState="";function SetCountryID(a,b,c,d){if((typeof(b)=="undefined")||(b==null)){b=""}if((typeof(c)=="undefined")||(c==null)){c=""}if(CountrySettings.bRequesting){setTimeout('SetCountryID("'+a+'","'+b+'","'+c+'",'+d+")",200);return false}if((typeof(d)=="undefined")||(d==null)){d=toNumber(GetValue($get(a)))}CountrySettings.CountryControlId=a;CountrySettings.StateControlId=b;CountrySettings.Street2Id=c;CountrySettings.iCountryId=d;if(CacheCountries[d]==null){if(!CountrySettings.bRequesting){VWA.FrontService.GetCountryState(d,MsgSelectState,setCountrySucces,setCountryFailure);CountrySettings.bRequesting=true}}else{setCountrySucces(CacheCountries[d],true)}}function setCountrySucces(d,e){CountrySettings.bRequesting=false;if((typeof(d)!="undefined")&&(d!=null)){if((CountrySettings.Street2Id.length>0)&&($get(CountrySettings.Street2Id))&&($get(CountrySettings.Street2Id).style)){$get(CountrySettings.Street2Id).style.display=(d.ShowStreetNr2)?"":"none"}if((CountrySettings.StateControlId.length>0)&&($get(CountrySettings.StateControlId))){var f=$get(CountrySettings.StateControlId);var a=GetValue(f);while(f.options.length>0){ListOptionRemove(f,0)}for(var c=0;c<d.States.length;c++){var g=d.States[c];var b=new Option();b.value=g.StateID;b.text=g.Name;b.selected=(g.StateID==a);ListOptionAdd(f,b)}}if(!e){CacheCountries[d.CountryID]=d}}else{if((CountrySettings.Street2Id.length>0)&&($get(CountrySettings.Street2Id))&&($get(CountrySettings.Street2Id).style)){$get(CountrySettings.Street2Id).style.display="none"}if((CountrySettings.StateControlId.length>0)&&($get(CountrySettings.StateControlId))){var f=$get(CountrySettings.StateControlId);while(f.options.length>0){ListOptionRemove(f,0)}}}}function setCountryFailure(a){CountrySettings.bRequesting=false;alert(a._ResultText)}var timerHourglass=null;function HourGlassShow(b){if((typeof(b)=="undefined")||(b==null)){b=""}var a=$get("tableHourglass");if(a.style.display=="none"){setHourGlassText(b)}a.style.display="";a.style.height=(bUpdate?iWindowHeight:(iWindowHeight-5>iDivsetHeight?iWindowHeight-5:iDivsetHeight))+"px";timerHourglass=setTimeout(HourGlassShowT,tHourGlassShow);a=null}var _sHourglassText="";function setHourGlassText(a){if(a&&a.length>0){$get("tdHourglass").innerHTML=a;$get("tdHourglass").style.display="block";_sHourglassText=a}}function HourGlassHide(){if($get("tblHglassTxt")){$get("tblHglassTxt").style.display="none"}$get("tableHourglass").style.display="none";$get("tdHourglass").style.display="none";$get("tdHourglass").innerHTML="";_sHourglassText="";if(timerHourglass){clearTimeout(timerHourglass)}timerHourglass=null;_sHourglassText=""}function HourGlassShowT(){var b=$get("tblHglassTxt");if(b){b.style.position="absolute";var a=GetScrollPosition();b.style.display="block";height=parseInt(b.style.height+0,10);width=parseInt(b.style.width+0,10);b.style.top=((iWindowHeight/2-(height/2))+a.y)+"px";b.style.left=((iWindowWidth/2-(width/2))+a.x)+"px"}setHourGlassText(_sHourglassText)}function getOrCreateHidden(c,b){var a=theForm[c];if(!a){a=FormElement(theForm,c,"",b)}return a}function FormElement(e,d,a,b){var c=document.createElement("INPUT");c.setAttribute("name",d);if(b){c.setAttribute("id",d)}c.setAttribute("type","hidden");if(!((typeof(a)=="undefined")||(a==null))){c.setAttribute("value",a)}e.appendChild(c);return c}function ImgCenter(c,d){var g="GalleryThumb"+c;var f="GalleryImg"+c;var a=document.getElementById(g);var e=document.getElementById(f);var b=Math.round((a.offsetHeight-d)/2);e.style.marginTop=(b)+"px"}var iFCKSetHTMLTry=0;function FCKSetHTML(f,b,a){if(!f){return false}var h=null;var d=false;if(typeof(FCKeditorAPI)!="undefined"){h=FCKeditorAPI.GetInstance(f);if(h){try{var g=h.EditorDocument.body;d=true}catch(c){d=false}}}if(!d||h.Status==FCK_STATUS_NOTLOADED){iFCKSetHTMLTry++;if(iFCKSetHTMLTry>=10){return false}if(!a){b=escape(b)}setTimeout("FCKSetHTML('"+f+"','"+b+"',true);",200)}else{iFCKSetHTMLTry=0;if(a){b=unescape(b)}h.SetHTML(b);window.setTimeout("FCKFocus('"+f+"');",500)}}function FCKFocus(d){if(!d){return false}var a=FCKeditorAPI.GetInstance(d);if(!a){return false}var c=true;try{var f=a.EditorDocument.body}catch(b){c=false}if(a.Status==FCK_STATUS_NOTLOADED||!c){window.setTimeout("FCKFocus('"+d+"');",200)}else{a.Focus()}}function FCKGetHTML(c){if(!c){return""}var a=FCKeditorAPI.GetInstance(c);if(!a){return""}try{var d=a.EditorDocument.body}catch(b){a.EditorWindow=a.EditingArea.Window;a.EditorDocument=a.EditingArea.Document}try{return a.GetHTML()}catch(b){a.EditorWindow=a.EditingArea.Window;a.EditorDocument=a.EditingArea.Document}return a.GetHTML()}function createSilverlight(d,c,a){if(!a){a=onSLLoad}var e=d.indexOf("?");var b="";if(e>=0){b=d.substr(e+1);b.replace("&",",");b.replace("?",",")}b+=((b.length==0)?"":",")+"HostId="+c;Silverlight.createObject(d,document.getElementById(c),"SilverlightControl"+c,{width:"100%",height:"100%",background:"transparent",isWindowless:"true",version:_slVersion},{onError:onSilverlightError,onLoad:onSLLoad},b,"context");$get(c).style.display="block"}function killSilverlight(c,b){if(!b){window.setTimeout("killSilverlight('"+c+"',true)",500);return false}var a=$get(c);if(a){a.innerHTML=""}a.style.display="none"}function onSLLoad(){}if(typeof(Sys)!=="undefined"){Sys.Application.notifyScriptLoaded()};