//  B E G I N   L A Y E R    M A N I P U L A T I O N   S C R I P T Svar ns = (document.layers) ? 1:0var ie = (document.all && !document.getElementById) ? 1:0var ie5 = (document.getElementById && !window.innerHeight) ? 1:0var ns6 = (window.innerHeight && !document.layers) ? 1:0var plat = (navigator.platform.indexOf('Mac') > -1) ? 'mac':'pc'if (ns) {   origWidth = innerWidth;   origHeight = innerHeight;}function reDo() {   if (innerWidth != origWidth || innerHeight != origHeight) location.reload();}if (ns) onresize = reDo;// Returns a browser-specific layer objectfunction getObject(obj,nestDiv) { if (ns) {        if (nestDiv) nest=nestDiv+".document.";         else nest="";        var theObj = eval("document." + nest + obj);}else if (ie) {          var theObj = eval("document.all." + obj + ".style");}else {        var theObj = document.getElementById(obj)}return theObj;} // Returns the current x,y coordinate of a layerfunction getPosition(obj,edge,nestDiv) {if (ns6) {        pos=parseInt(getObject(obj).style[edge]);}else if (ie5) {        pos=parseInt(document.all[obj].currentStyle[edge]);}else {        if (ie && edge=="left") edge="pixelLeft";        if (ie && edge=="top") edge="pixelTop";        pos=getObject(obj,nestDiv)[edge];}return pos}// Moves layer to new x,y coordinatefunction moveLayer(obj,x,y,nestDiv) {if (ns) {        getObject(obj,nestDiv).moveTo(x,y);} else if (ie) {                  getObject(obj).pixelLeft = x;        getObject(obj).pixelTop = y;}else {        getObject(obj).style.left = x + "px";        getObject(obj).style.top = y + "px";    }}// Functions to manipulate image statesfunction getImage(img,nestDiv) {if (ns && nestDiv) nest=nestDiv+".document.";else nest="";var theObj = eval ("document." + nest + img );return theObj}function imgOn(imgName,nestDiv) {if (document.images){        getImage(imgName,nestDiv).src = eval(imgName + "on.src");}}function imgOff(imgName,nestDiv) {if (document.images){        getImage(imgName,nestDiv).src = eval(imgName + "off.src");}}// Functions to hide and show layervar hide=(ns)?"hide":"hidden";var show=(ns)?"show":"visible";function hideLayer(obj,nestDiv) {if (ns || ie) {        getObject(obj,nestDiv).visibility = hide;} else {        getObject(obj).style.visibility = hide;}       }function showLayer(obj,nestDiv) {if (ns || ie) {        getObject(obj,nestDiv).visibility = show;}else {        getObject(obj).style.visibility = show}               }// Write new content to the layerfunction writeLayer(obj,content){if (ns) {        document[obj].document.open();        document[obj].document.write(content);        document[obj].document.close();}       else if (ie) {        document.all[obj].innerHTML=content}else {        getObject(obj).innerHTML=content}}// Change the z-index of a layerfunction stackLayer(obj,z,nestDiv) {//alert('in')if (ns || ie) {        getObject(obj,nestDiv).zIndex=z}else getObject(obj).style.zIndex=z}// Change clipping parameters for a layerfunction clipLayer(obj,t,r,b,l,nestDiv) {obj=getObject(obj,nestDiv)	if (ns) {		obj.clip.top=t		obj.clip.right=r		obj.clip.bottom=b		obj.clip.left=l				}	else if (ie) {		obj.clip="rect("+t+"px "+r+"px "+b+"px "+l+"px)";	}	else {		obj.style.clip="rect("+t+"px "+r+"px "+b+"px "+l+"px)";						}}//  E N D   L A Y E R   M A N I P U L A T I O N   S C R I P T S
