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 _SP=function stopPropagation(a){if(!a){var a=window.event}if(a){a.cancelBubble=true;if(a.stopPropagation){a.stopPropagation()}}};function _PD(a){return prefentdefault(a)}function prefentdefault(a){if(!a){var a=window.event}if(a.preventDefault){a.preventDefault()}a.returnValue=false;return false}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"),IsChrome:s.Contains("chrome"),IsWebKit:s.Contains("webkit")};function cloneObject(b){var a=false;for(i in b){if(b[i]&&typeof(b[i])=="object"){a=true;break}}if(a){return Sys.Serialization.JavaScriptSerializer.deserialize(Sys.Serialization.JavaScriptSerializer.serialize(b))}else{for(i in b){this[i]=b[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+'")')}function SetMenuWidth(a,c){var d=0;var b=0;$("#"+a+" li").each(function(g){var e=(c!="horizontal")&&($(this).data("width")=="auto");var f=e?$(this).find("A").outerWidth():$(this).outerWidth(true);if(c=="horizontal"){d+=f}else{d=(f>d)?f:d}});if(d>0){$("#"+a).width(d)}$("#"+a).data("SkippedWidthSet",!(d>0));$("#"+a).data("Orientation",c)}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,o,j,h,e,d,a,p){if(!oPopup){oPopup=new oPopupStruct(c,o,j,h,e,d,a,p)}else{if(!c){o=oPopup.iWidth;j=oPopup.iHeight;h=oPopup.sHTML;e=oPopup.sOkId;d=oPopup.sCancelId;a=oPopup.bIframe;p=oPopup.bRoundedCurves;c=oPopup.sPopupID}}if(document.readyState&&document.readyState!="complete"&&iTryOpenPopupCount<50){iTryOpenPopupCount+=1;window.setTimeout("ModalPopupOpen();",50);return}iTryOpenPopupCount=0;var b=$get(c);var k=$("#"+oPopup.sOpenerId);if(!k||k.length==0){k=$('<div id="'+oPopup.sOpenerId+'" class="modalForeGround" />').css({position:"absolute",overflow:"visible"});if(oPopup.bRoundedCurves){var f=$('<table class="pop" cellPadding="0" cellSpacing="0" />').css({width:"100%",height:"100%"});var l=$("<tr/>");f.append(l);var g=$("<tr/>");f.append(g);var n=$("<tr/>");f.append(n);var m=$("<tr/>");f.append(m);l.append($('<td class="popCL" />').css({height:"1px",visibility:"hidden"}));l.append($('<td class="popCL2" />').css({height:"1px",visibility:"hidden"}));l.append($('<td class="popC" />').css({height:"1px",visibility:"hidden"}));l.append($('<td class="popCR2" />').css({height:"1px",visibility:"hidden"}));l.append($('<td class="popCR" />').css({height:"1px",visibility:"hidden"}));g.append('<td class="popTL" colspan="2"/>');g.append('<td class="popT"  />');g.append('<td class="popTR" colspan="2" />');n.append('<td class="popCL" />');n.append('<td class="popCL2" />');$Content=$('<td class="popC" />');n.append($Content);n.append('<td class="popCR2" />');n.append('<td class="popCR" />');m.append('<td class="popBL" colspan="2"/>');m.append('<td class="popB"  />');m.append('<td class="popBR" colspan="2" />');k.append(f);oPopup.oContent=$Content}else{oPopup.oContent=k}}else{oPopup.ReFill=true}if(b){if(!o){oPopup.iWidth=parseInt(b.style.width)}if(!j){oPopup.iHeight=parseInt(b.style.height)+(oPopup.bRoundedCurves?26:0)}}if(oPopup.bIframe){if(!oPopup.ReFill){oPopup.oContent.html('<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(h&&h.length!=0){oPopup.oContent.html(h);oPopup.oHolder=null}else{if(b){oPopup.oHolder=$(b).parent();$(b).remove();oPopup.oContent.append($(b))}}}if(oPopup.bIframe){setTimeout(popupSetURL,5)}if(!oPopup.ReFill){CreateModalMask(oPopup.sPopupID,"modalBackground");$(document.body).append(k);SetPosition(k,oPopup.iWidth,oPopup.iHeight);$addHandler(document,"keydown",popupKeyPressed)}else{SetPosition(k,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(b,a){$(document).ready(function(){if($get(a)){a+"_"}var d=new Date();b+=(b.Contains("?")?"&":"?")+"t="+d.format("hms");var c=$("<div/>").css("display","none");c.html('<iframe id="'+a+'" name="'+a+'" src="javascript:void(document.write(\'\'))" style="width:1px; height:1px;" frameborder="0" border="0"></iframe>');$(document.body).append(c);window.setTimeout(function(){$get(a).src=b},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=$("#"+oPopup.sOpenerId);if(c&&c.length>0){if(oPopup.oHolder){var a=oPopup.oContent.find("#"+oPopup.sPopupID);a.remove();a.appendTo(oPopup.oHolder)}}c.remove();RemoveModalMask(oPopup.sPopupID);$removeHandler(document,"keydown",popupKeyPressed);if(oPopup.onCloseHandler){oPopup.onCloseHandler(oPopup.args)}oPopup=null}function CreateModalMask(a,c){var b=$("<div id='tblOpener"+a+"' />").css({"z-index":1000,position:"absolute",top:"0px",width:"100%",height:"100%"});if(c){b.addClass(c)}$(document.body).append(b);FullScreenElement(b);$(window).bind("resize."+a,function(){FullScreenElement(b)});return b}function RemoveModalMask(a){$("#tblOpener"+a).remove();$(window).unbind("resize."+a)}function FullScreenElement(a){var b=document.body.scrollHeight;if(typeof(iDivsetHeight)!="undefined"){b=(iDivsetHeight>b)?iDivsetHeight:b}$(a).height(b)}function CheckPosition(b){GetScreenSize();if(!b.MarginWidth){b.MarginWidth=0}if(!b.MarginHeight){b.MarginHeight=0}var c=b.InnerWidth.toString().lastIndexOf("%");if(c>0){b.InnerWidth=b.InnerWidth.substring(0,c);b.InnerWidth=(iWindowWidth*(b.InnerWidth/100))-b.MarginWidth}c=b.InnerHeight.toString().lastIndexOf("%");if(c>0){b.InnerHeight=b.InnerHeight.substring(0,c);b.InnerHeight=(iWindowHeight*(b.InnerHeight/100))-b.MarginHeight}if(b.InnerWidth<=0){b.InnerWidth=515}if(b.InnerHeight<=0){b.InnerHeight=360}b.InnerWidth=Math.round(b.InnerWidth);b.InnerHeight=Math.round(b.InnerHeight);if(b.setInnerWidth){b.setInnerWidth(b.InnerWidth)}if(b.setInnerWidth){b.setInnerHeight(b.InnerHeight)}b.PopupWidth=Math.round(b.PopupWidth);b.PopupHeight=Math.round(b.PopupHeight);b.offsetY=0;var a=$get("DivSet");if(a&&!bUpdate){b.offsetY=-$(window).scrollTop()}return b}var DialogArguments=function(c,d,a,b){this.InnerWidth=c||600;this.InnerHeight=d||400;this.extendedProperties=null;this.MarginWidth=a||28;this.MarginHeight=b||47;this.setPopupWidth=function(e){this.PopupWidth=e;this.InnerWidth=this.PopupWidth-this.MarginWidth};this.setPopupHeight=function(e){this.PopupHeight=e;this.InnerHeight=this.PopupHeight-this.MarginHeight};this.setInnerWidth=function(e){this.InnerWidth=e;this.PopupWidth=this.InnerWidth+this.MarginWidth};this.setInnerHeight=function(e){this.InnerHeight=e;this.PopupHeight=this.InnerHeight+this.MarginHeight};CheckPosition(this)};function SetPosition(f,h,a,e,b,d){var c=null;if(h){if(h.PopupWidth){c=h}else{iInnerWidth=h}}if(!f||Object.getTypeName(f)==="Sys.UI.DomEvent"){f=$("#"+oPopup.sOpenerId);if(f.length>0&&f.data("Bounds")){c=f.data("Bounds");if(iInnerWidth&&iInnerWidth>0&&a&&a>0){c.InnerWidth=iInnerWidth;c.InnerHeight=a}}}if(!c){c=new DialogArguments(iInnerWidth,a,b,e)}CheckPosition(c);if(!f.jquery){f=$(f)}if(f.length==0){return false}if(!f.data("PositionSet")){f.css("position","absolute");if(!f.css("z-index")||toNumber(f.css("z-index"))<1000){f.css("z-index",1001)}f.css("display","block")}if(d){window.setTimeout(d,50)}else{f.css("width",c.PopupWidth);f.css("height",c.PopupHeight);var g=Math.round((iWindowWidth/2)-(c.PopupWidth/2));f.css("left",g);var j=Math.round((iWindowHeight/2)-(c.PopupHeight/2)-c.offsetY);f.css("top",j)}f.data("PositionSet",true);f.data("Bounds",c);if(f._top<0){window.setTimeout(function(){SetPosition(f,iInnerWidth,(iWindowHeight-b),e,b,d)},200)}else{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][a-z0-9&._-]*)@([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.toLowerCase()){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.toLowerCase()){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){FCKUpdateLinkedField();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 FCKUpdateLinkedField(c){try{if(typeof(FCKeditorAPI)=="object"){if(c){FCKeditorAPI.GetInstance(c).UpdateLinkedField()}else{for(var a in FCKeditorAPI.__Instances){FCKeditorAPI.__Instances[a].UpdateLinkedField()}}}}catch(b){}}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(jQuery)!=="undefined"){(function(a){a.fn.fullscreenr=function(c){var b={width:1280,height:1024,bgID:"bgimg"};var c=a.extend({},b,c);a(document).ready(function(){a(c.bgID).fullscreenrResizer(c)});a(window).bind("resize",function(){a(c.bgID).fullscreenrResizer(c)});a(c.bgID).css("position","absolute").css("z-index",-1);a("#body").css({overflow:"hidden",height:"100%",width:"100%"});a("#realBody").css("overflow","auto");a("#body").css({overflow:"hidden",height:"100%",width:"100%"});a("#realBody").css("overflow","auto");return this};a.fn.fullscreenrResizer=function(d){var b=d.height/d.width;var c=a(window).width();var e=a(window).height();if((e/c)>b){a(this).height(e);a(this).width(e/b)}else{a(this).width(c);a(this).height(c*b)}a(this).css("left",(c-a(this).width())/2);a(this).css("top",(e-a(this).height())/2);a("#realBody").height(e);return this}})(jQuery)}if(typeof(Sys)!=="undefined"){Sys.Application.notifyScriptLoaded()};
