/*
Toggle Layer Visibility
© Eddie Traversa (nirvana.media3.net)
*/

//added by Hor-kan 12/10/05
function parentToggleVisibility(id, NNtype, IEtype, WC3type) {
	if (parent.document.getElementById) {
		eval("parent.document.getElementById(id).style.visibility = \"" + WC3type + "\"");
	} else {
		if (parent.document.layers) {
			parent.document.layers[id].visibility = NNtype;
		} else {
			if (parent.document.all) {
				eval("document.all." + id + ".style.visibility = \"" + IEtype + "\"");
			}
		}
	}
}


function toggleVisibility(id, NNtype, IEtype, WC3type) {
	if (document.getElementById) {
		eval("document.getElementById(id).style.visibility = \"" + WC3type + "\"");
	} else {
		if (document.layers) {
			document.layers[id].visibility = NNtype;
		} else {
			if (document.all) {
				eval("document.all." + id + ".style.visibility = \"" + IEtype + "\"");
			}
		}
	}
}

/* Mac Firefox - scroll bars remain after hiding div... this function should fix it */
function macFFHack(){
	toggleVisibility('delocatortextwhy','show', 'visible', 'visible');
	toggleVisibility('delocatortextwhy','hidden', 'hidden', 'hidden');
}

/* Mac Firefox - fixes buggy scroll bar */
function howtoHack(sh){
	document.getElementById('delocatortexthowto').style.display = sh;
}
/*  
Script made by Martial Boissonneault © 2001-2002 http://getElementById.com/
This script may be used and changed freely as long as this msg is intact
Visit http://getElementById.com/ for more free scripts and tutorials.
*/
var ie5 = (document.getElementById && document.all);
var ns6 = (document.getElementById && !document.all);

oHi=0.90   // Opacity to start and onmouseout
oLo=0.60   // Opacity onmouseover

divs = document.getElementsByTagName("div");
function opacHi(id) {
	if(ie5) divs[id].filters.alpha.opacity = oHi * 100;
	if(ns6) divs[id].style.MozOpacity = oHi;
}

function opacLo(id) {
	if(ie5) divs[id].filters.alpha.opacity = oLo * 100;
	if(ns6) divs[id].style.MozOpacity = oLo;
}

function opacTo(id,value)
{
	//decimal opacity conversion ie; 0.75 changed to 75
	var new_value = value;
	
	//if(ie5) divs[id].filters.alpha.opacity = new_value;
	if(ns6) { new_value = new_value / 100; divs[id].style.MozOpacity = new_value; }
}

/*
function ChangeOpacInit() {
	if(document.getElementById){
		divs = document.getElementsByTagName("div");
		for(var i=0; i<divs.length; i++) {
			divs[i].style.visibility = "visible";
				if(ie5) divs[i].style.filter="alpha(opacity="+ nStart * 100 +")";
			if(ns6) divs[i].style.MozOpacity = nStart;
		}
	}
}
*/


