// JavaScript Document
function changeImage(id){
	if(document.getElementById(id))
	{
		document.getElementById(id).src="img/index_solution_o.gif";
	}	
}
function resetImage(id){
	if(document.getElementById(id))
	{
		document.getElementById(id).src="img/index_solution.gif";
	}	
}
/*
function changeMenu(id,mid){
	//alert(id);
	//alert(mid);
	if(document.getElementById("Menu"+mid)){
		document.getElementById("Menu"+mid).src="img/"+id+"_o.gif";
		if(document.getElementById("Sep"+(mid-1)))
			document.getElementById("Sep"+(mid-1)).src="img/trans.gif";
		if(document.getElementById("Sep"+mid))
			document.getElementById("Sep"+mid).src="img/trans.gif";
	}	
}
*/

// Menu Over and On
function Mover(val)
{
	document.getElementById(val).src="img/index_"+val+"_s.gif";
}
function Mout(val)
{
	document.getElementById(val).src="img/index_"+val+".gif";
}

//Div layer
var preVal="";
function expandContent(id)
{  
	if(preVal!="" && preVal!=id)
	{
		document.getElementById("w"+preVal).className="text_hidden";
		preVal="";
	}
	val=((document.getElementById("w"+id).className)=="text_hidden")? true:false;
	if(val)
	{
		document.getElementById("w"+id).className="text_visible";
	}
	else
	{
		document.getElementById("w"+id).className="text_hidden";
	}
	preVal=id;
}


function call(fn)
	{
		var w=508;
		var h=406;
		var viewimageWin = window.open(fn,'New_Window','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=Yes,resizable=no,copyhistory=no,width='+w+',height='+h);
		viewimageWin.moveTo(260,230);
	}
