
Agent   = window.navigator.userAgent; 
Version = parseInt(Agent.charAt(Agent.indexOf("/")+1),10);

function IsIE()    { return Agent.indexOf("MSIE") > 0;}
function IEStyl(s) { return document.all.tags("div")[s].style; }
function NSStyl(s) { return FindElement(s,0); }

function FindElement(n,ly) { 
	if (Version < 4) return document[n];
	var curDoc = ly ? ly.document : document; 
	var elem = curDoc[n];
	if (!elem) { 
		for (var i=0;i<curDoc.layers.length;i++) {
			elem = FindElement(n,curDoc.layers[i]); 
			if (elem) return elem; 
			}
		}
	return elem;
}

function SetVis(s,v) { 
	if ( IsIE() ) 
		IEStyl(s).visibility = (v == 0) ? "hidden" : "visible";
	else 
		NSStyl(s).visibility = (v == 0) ? 'hide' : 'show'; 
}

function eShow(name) {
	 SetVis( name, 1);
}
function eHide(name){
	 SetVis( name, 0);
}

 
