
if (document.images) {
  
  route = "/img/";
}

function On(imageName) {
  if (document.images) {
    document[imageName].src = route + imageName + "on.gif";
  }
}

function Off(imageName) {
  if (document.images) {
    
    document[imageName].src = route + imageName + ".gif";
  }
}



//-->
ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false

var hideTimeout

function showObject(obj) {
	if (ns4) obj.visibility = "show"
	else if (ie4) {
		if(obj) obj.style.visibility = "visible"
	}
	return obj
}

function hideObject(obj) {
	if(hideTimeout != null) window.clearTimeout(hideTimeout);
	if (ns4) obj.visibility = "hide"
	else if (ie4) {
		if(obj) obj.style.visibility = "hidden"
	}
}

var swapObj = new Array();
function showLayers() {
 var tobj
 for(i=0;i<swapObj.length;i++){hideObject(swapObj[i])}
 args = showLayers.arguments
 for(i=0;i<args.length;i++){
   if (ns4) tobj = eval("document.layers['"+args[i]+"']")
    else if (ie4) tobj = eval("document.all['"+args[i]+"']")
   swapObj[i] = showObject(tobj)
 }
}
//-->

//-->


/*
var Open = "" 
var Closed = "" 

function showhide(index,what,what2,count)
{ 
	if (what.style.display=='none'){ 
		what.style.display=''; 
		what2.src=Open.src 	
	} 
	else{	
		what.style.display='none' 
		what2.src=Closed.src 	
	} 
} 

*/

// krsf rule start

	function vieww(num) {
		for(i=0;i<document.all["layer"].length;i++)	{
			if(i==parseInt(num-1)) 
				document.all["layer"][i].style.display="";
			else
				document.all["layer"][i].style.display="none";
				}
	}

	function initialize() {
	if(document.all["layer"]!=null)	{
		for(i=1;i<document.all["layer"].length;i++)
			document.all["layer"][i].style.display="none";
			}
	}
//-->


function _location(object_val)
{
	window.location.href=object_val.value;
}