/* Transformed JS from: /shared/jslib/tools/layers.js */
function getRefToDiv(b,c){if(!c){c=document}if(document.layers){if(c.layers[b]){return c.layers[b]}else{for(var a=0,d;!d&&a<c.layers.length;a++){d=getRefToDiv(b,c.layers[a].document)}return d}}if(document.getElementById){return document.getElementById(b)}if(document.all){return document.all[b]}return false}function hideDiv(a){myReference=getRefToDiv(a);if(!myReference){window.alert("An error has occurred (hideDiv)");return false}if(myReference.style){myReference.style.visibility="hidden"}else{if(myReference.visibility){myReference.visibility="hide"}else{window.alert("An error has occurred (hideDiv)");return false}}return true}function showDiv(a){myReference=getRefToDiv(a);if(!myReference){window.alert("An error has occurred (showDiv)");return false}if(myReference.style){myReference.style.visibility="visible"}else{if(myReference.visibility){myReference.visibility="show"}else{window.alert("An error has occurred (showDiv)");return false}}return true}function rwDiv(b,c){var a=getRefToDiv(b);if(!a){window.alert("An error has occurred (rwDiv)");return}if(a.innerHTML){a.innerHTML=c}else{if(a.document&&a.document!=window.document){a.document.open();a.document.write(c);a.document.close()}else{window.alert("An error has occurred (rwDiv)")}}}function moveDiv(b,e,d){var a=getRefToDiv(b);var c=document.childNodes?"px":0;if(!a){window.alert("An error has occurred (moveDiv)");return}if(a.style){a=a.style}a.left=(e)+c;a.top=(d)+c}function resizeDiv(b,e,c){var a=getRefToDiv(b),d=document.childNodes?"px":0;if(a.style){a=a.style}if(a.resizeTo){a.resizeTo(e,c)}a.width=e+d;a.pixelWidth=e;a.height=c+d;a.pixelHeight=c}function chColorDiv(b,c){var a=getRefToDiv(b);if(!a){window.alert("An error has occurred (chColorDiv)");return}if(a.style){a=a.style}if(typeof(a.background)!="undefined"){a.background=c}else{if(a.backgroundColor){a.backgroundColor=c}else{if(typeof(a.bgColor)!="undefined"){a.bgColor=c}else{window.alert("An error has occurred (chColorDiv)");return}}}};
