function preloadImages(A,D){if(!D){D=""}if(document.images){if(!document.preloadedImages){document.preloadedImages=new Array()}var C;var B=document.preloadedImages.length;for(C=0;C<A.length;C++){document.preloadedImages[B]=new Image;document.preloadedImages[B].src=D+A[C];B++}}}function getViewportWidth(){if(typeof window.innerWidth!="undefined"){return window.innerWidth}else{if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!=0){return document.documentElement.clientWidth}else{return document.getElementsByTagName("body")[0].clientWidth}}}function getViewportHeight(){if(typeof window.innerHeight!="undefined"){return window.innerHeight}else{if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientHeight!="undefined"&&document.documentElement.clientHeight!=0){return document.documentElement.clientHeight}else{return document.getElementsByTagName("body")[0].clientHeight}}}function getStyle(B,A){var C=B.style[A];if(!C){if(document.defaultView){C=document.defaultView.getComputedStyle(B,"").getPropertyValue(A)}else{if(B.currentStyle){C=B.currentStyle[A]}}}return C}function getTarget(B){var A;if(!B){B=window.event}if(B.target){A=B.target}else{if(B.srcElement){A=B.srcElement}}if(A.nodeType==3){A=A.parentNode}return A}var checkBoxStatus=new Array();function toggleCheckBox(C,D,E,B){var A=document.getElementById(C);if(!checkBoxStatus[C]){checkBoxStatus[C]=D}checkBoxStatus[C]=!checkBoxStatus[C];A.src=checkBoxStatus[C]?E:B}function isCheckBoxChecked(B,C){var A=document.getElementById(B);if(!checkBoxStatus[B]){checkBoxStatus[B]=C}return checkBoxStatus[B]}var hintPopup="hint-popup";var popupFadeInTime=400;var popupFadeOutTime=200;function openWindow(C,B,E,A){var D="width="+E+",height="+A+",dependent=yes,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no";var F=window.open(C,B,D);if(window.focus){F.focus()}}function hideHint(D){var A=$("overlay");var C=$(hintPopup);var B=dojo.anim(C,{opacity:0},popupFadeOutTime);dojo.connect(B,"onEnd",function(){A.style.display="none";C.style.display="none";dojo.anim(C,{opacity:1},0)});B.play()}function showRegisteredHint(){var F=document;var I=dojo.byId("popupContent");var B=dojo.query(".registeredPopup")[0];var G=dojo.query("#webstart-link")[0];var H;dojo.require("dojo.cookie");var A=dojo.cookie("showHint");if(A=="false"){H="/client/launch/launch.jnlp"}else{H="javascript:showWebStartHint();"}G.setAttribute("onclick","hideHint();");G.href=H;removeChildren(I);appendChildren(I,B);var D=dojo.byId("overlay");D.style.display="";var C=dojo.byId(hintPopup);C.style.opacity="0";C.style.display="";var E=dojo.anim(C,{opacity:1},popupFadeInTime);centerOnViewPort(C)}function showWebStartHint(){var A=$("popupContent");var C=$(hintPopup);var B=dojo.anim(C,{opacity:0},popupFadeOutTime);dojo.connect(B,"onEnd",function(){var F=dojo.query(".webstartPopup")[0];removeChildren(A);appendChildren(A,F);var G=$(hintPopup);G.style.display="";var D=$("overlay");D.style.display="";centerOnViewPort(G);var E=dojo.anim(G,{opacity:1},popupFadeInTime);E.play()});B.play();dojo.require("dojo.cookie");if(dojo.cookie.isSupported){dojo.cookie("showHint","false",{expires:10000,path:"/"})}}function centerOnViewPort(A){screenHeight=getViewportHeight();screenWidth=getViewportWidth();width=A.clientWidth;height=A.clientHeight;A.style.left=(screenWidth-width)/2;A.style.top=(screenHeight-height)/2;A.style.position="absolute"}function parseIntStrict(A){while(A.length>1&&A.charAt(0)=="0"){A=A.substring(1)}var B=parseInt(A,10);if(!isNaN(B)&&B.toString()!=A){B=Number.NaN}return B}function openAboutThisSite(){openWindow("/popup/aboutThisSite","aboutThisSite",1000,680)}function openTermsAndConditions(){openWindow("/popup/termsAndConditions","termsAndConditions",1000,680)}function openHelp(){openWindow("/popup/help","help",1000,680)}function $(A){return document.getElementById(A)}function createRef(A,B){return function(){B.apply(A,arguments)}}function removeChildren(C){var D=C.childNodes;var A=D.length;for(var B=0;B<A;B++){C.removeChild(D[0])}C.innerHTML=""}function appendChildren(B,A){B.innerHTML=A.innerHTML};