function showLockoutScreen(){var contentWindow=mainwindow.contentFrame;var showLockout=true;if(contentWindow.onLockout){showLockout=contentWindow.onLockout()}if(showLockout!=false){var oLockoutScreen=document.getElementById("lockoutScreen");if(oLockoutScreen){shrinkAllInks(window);oLockoutScreen.style.display="";var oContentFrame=document.getElementById("contentFrame");if(oContentFrame){oContentFrame.style.display="none"}}}}function hideLockoutScreen(){var oLockoutScreen=document.getElementById("lockoutScreen");if(oLockoutScreen){oLockoutScreen.style.display="none";growAllInks(window);var oContentFrame=document.getElementById("contentFrame");if(oContentFrame){oContentFrame.style.display=""}}}function showOverlay(oWin,clazz){if(typeof oWin=="undefined"){oWin=top}if(typeof clazz=="undefined"){clazz="overlay"}try{if(oWin){var objOverlay=getOverlay(oWin);if(objOverlay){setOverlayStamp(objOverlay);objOverlay.className=clazz;objOverlay.style.height=oWin.document.body.scrollHeight;objOverlay.style.display="block";overlayAllInks(oWin,true)}}}catch(e){}}function getOverlay(oWin){if(typeof oWin=="undefined"){oWin=top}return oWin.document.getElementById("overlay")}function visibleOverlay(oWin){if(typeof oWin=="undefined"){oWin=top}if(oWin){var objOverlay=getOverlay(oWin);if(objOverlay){var viz=objOverlay.style.display=="block";if(viz){setOverlayStamp(objOverlay)}return viz}}return false}function setOverlayStamp(obj){var ts=(new Date).getTime().toString();obj.setAttribute("ts",ts)}function getOverlayStamp(obj){return obj.getAttribute("ts")}function showBlackdrop(oWin){showOverlay(oWin,"blackout")}function hideBlackdrop(oWin){hideOverlay(oWin)}function tsBlackdrop(oWin,set){var objOverlay=getOverlay(oWin);if(objOverlay){if(set){setOverlayStamp(objOverlay)}return getOverlayStamp(objOverlay)}return 0}function hideOverlay(oWin){if(typeof oWin=="undefined"){oWin=top}try{if(oWin){var objOverlay=oWin.document.getElementById("overlay");if(objOverlay){objOverlay.style.display="none"}overlayAllInks(oWin,false)}}catch(e){}}function initOverlay(oWin){if(oWin){var objBody=oWin.document.getElementsByTagName("body").item(0);if(objBody){var objOverlay=oWin.document.createElement("div");if(objOverlay){objOverlay.setAttribute("id","overlay");objOverlay.onclick=function(e){if(e){e.preventDefault();e.stopPropagation()}else{event.returnValue=false;event.cancelBubble=true}return false};objOverlay.keypress=function(e){if(e){e.preventDefault();e.stopPropagation()}else{event.returnValue=false;event.cancelBubble=true}return false};objOverlay.style.display="none";objOverlay.style.position="absolute";objOverlay.style.top="0";objOverlay.style.left="0";objOverlay.style.zIndex="150";objOverlay.style.width="100%";objBody.insertBefore(objOverlay,objBody.firstChild)}if(oWin!=mainwindow){var objBusy=oWin.document.createElement("div");if(objBusy){objBusy.style.position="absolute";objBusy.style.visibility="hidden";objBusy.style.top="0";objBusy.style.left="0";objBusy.style.zIndex="202";objBusy.style.width="135px";objBusy.style.height="40px";objBusy.style.MozUserSelect="none";objBusy.innerHTML=mainwindow.document.getElementById("busydiv").innerHTML;objBusy.setAttribute("id","busydiv");objBody.insertBefore(objBusy,objBody.firstChild)}}}if(oWin.divModal){oWin.divModal.init()}}}function showLoadingCancel(ts){var oDiv=document.getElementById("loading");if(oDiv){var loading_ts=oDiv.getAttribute("ts");if(loading_ts&&loading_ts==ts){var oCancelDiv=document.getElementById("loadingcancel");if(oCancelDiv){oCancelDiv.style.top=oDiv.style.top;oCancelDiv.style.left=oDiv.style.left;oCancelDiv.style.visibility=oDiv.style.visibility;oDiv.style.visibility="hidden"}}}}function showLoading(){var oDiv=document.getElementById("loading");if(oDiv){if(visibleOverlay()==false){showOverlay()}divModal.centerOnScreen(oDiv);oDiv.style.visibility="visible";var ts=(new Date).getTime().toString();oDiv.setAttribute("ts",ts);mainwindow.setTimeout("showLoadingCancel("+ts+")",60000)}}function hideLoading(keepOverlay){var oDiv=document.getElementById("loading");if(oDiv){oDiv.style.visibility="hidden";showLoadingCancel(oDiv.getAttribute("ts"));if(!keepOverlay){hideOverlay()}}}function setVisible(obj){obj=document.getElementById(obj);obj.style.visibility=(obj.style.visibility=="visible")?"hidden":"visible"}function evalscreensize(){var docWidth=screen.width;var docHeight=screen.height;if(typeof document.body.scrollWidth!="undefined"){docWidth=document.body.scrollWidth}if(typeof document.body.scrollHeight!="undefined"){docHeight=document.body.scrollHeight}document.getElementById("overlay_modal").style.width=docWidth;document.getElementById("overlay_modal").style.height=docHeight}function addLoading(oWin,clazz){if(oWin){var links=oWin.document.getElementsByTagName("a");for(var i=0;i<links.length;i++){if(links[i].className==clazz){if(window.addEventListener){links[i].addEventListener("click",mainwindow.showLoading,false)}else if(window.attachEvent){links[i].attachEvent("onclick",mainwindow.showLoading)}else{links[i].onclick=function(e){mainwindow.showLoading()}}}}}}function showBusyDiv(oWin,tf){var oDiv=oWin.document.getElementById("busydiv");if(oDiv){divModal.centerOnScreen(oDiv,oWin);oDiv.style.visibility=tf?"visible":"hidden"}}function showBusy(oWin){if(typeof oWin=="undefined"){oWin=window}var objOverlay=oWin.document.getElementById("overlay");if(objOverlay){doOverlay=objOverlay.style.display=="none";if(doOverlay){objOverlay.className="";objOverlay.style.height="100%";objOverlay.style.display="block"}}showBusyDiv(oWin,true)}function hideBusy(oWin){if(typeof oWin=="undefined"){oWin=window}var objOverlay=oWin.document.getElementById("overlay");if(objOverlay){doOverlay=objOverlay.style.display=="none";if(objOverlay.className==""){objOverlay.style.display="none"}}showBusyDiv(oWin,false)}function overlayAllInks(win,tf){if(win.InputObjects){win.InputObjects.overlay(tf)}var objList=win.document.getElementsByTagName("OBJECT");for(var oIdx=0;oIdx<objList.length;oIdx++){var oElem=objList[oIdx];if(oElem.getAttribute("flashvars")){oElem.style.visibility=tf?"hidden":""}}for(var idx=0;idx<win.frames.length;idx++){overlayAllInks(win.frames[idx],tf)}}function shrinkAllInks(win){if(win.InputObjects){win.InputObjects.hide()}var objCollection=win.document.getElementsByTagName("OBJECT");for(var i=0;i<objCollection.length;i++){if(objCollection[i]){if(!objCollection[i].getAttribute("isInk")){if(!objCollection[i].getAttribute("origWidth")&&objCollection[i].width!="0"){objCollection[i].setAttribute("origWidth",objCollection[i].width)}if(!objCollection[i].getAttribute("origHeight")&&objCollection[i].height!="0"){objCollection[i].setAttribute("origHeight",objCollection[i].height)}objCollection[i].width="0";objCollection[i].height="0"}}}for(var idx=0;idx<win.frames.length;idx++){shrinkAllInks(win.frames[idx])}}function growAllInks(win){if(win.InputObjects){win.InputObjects.show()}var objCollection=win.document.getElementsByTagName("OBJECT");for(var i=0;i<objCollection.length;i++){if(objCollection[i]){if(!objCollection[i].getAttribute("isInk")){if(objCollection[i].getAttribute("origWidth")){objCollection[i].width=objCollection[i].getAttribute("origWidth")}if(objCollection[i].getAttribute("origHeight")){objCollection[i].height=objCollection[i].getAttribute("origHeight")}}}}for(var idx=0;idx<win.frames.length;idx++){growAllInks(win.frames[idx])}}
