// ADD ALL JS HERE //

/*
# KPMG Career Paths Application Version: 1.0 - March 2007 
# This code was developed by TMP Worldwide for KPMG. Please refer to the 

# Licensing Agreement for licensing, modification and distribution terms. 

# Credits:
# Igor Kitaychik - ASP, SQL Developer 
# Eric Birnbaum - Flash Developer
# Bobby KC - Front end developer
*/



function IconMOver(iconhandle)
{
	var cell = document.getElementById(iconhandle);
	cell.className=iconhandle+"_select";
	var contentcell = document.getElementById(iconhandle+"_icon_content");
	contentcell.style.display='block'
	var icontitlecell= document.getElementById(iconhandle+"_icon_title");
	icontitlecell.className="icon_title_selected"
}

function IconMOut(iconhandle)
{
	var cell = document.getElementById(iconhandle);
	cell.className=iconhandle;
	var contentcell = document.getElementById(iconhandle+"_icon_content");
	contentcell.style.display='none'
	var icontitlecell= document.getElementById(iconhandle+"_icon_title");
	icontitlecell.className="icon_title"
}

	
function SubmitMenu(menu,tourl)
{
	document.menu.action = tourl;
	document.menu.submit();
}

function NewWindow(tourl)
{
	InternalLink(tourl); 
}

function InternalLink(tourl)
{
	window.open (tourl,"mywindow","width=850,height=720,left=380,top=20,screenX=0,screenY=0,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes"); 
}

function OpenCareerPathTool(tourl)
{
	window.open (tourl,"mywindow","width=822,height=550,left=220,top=20"); 
}

function ToggleNode(handle)
{
	if(handle.indexOf("plus")!=-1)
	{
		var ctrTablePlus = document.getElementById(handle);
		var ctrTableMinus = document.getElementById(handle.replace("plus","minus"));
		if(ctrTablePlus!=null)
		{
			ctrTablePlus.style.display="block";
		}
		if(ctrTableMinus!=null)
		{
			ctrTableMinus.style.display="none"
		}
	}
	if(handle.indexOf("minus")!=-1)
	{
		var ctrTableMinus = document.getElementById(handle);
		var ctrTablePlus = document.getElementById(handle.replace("minus","plus"));
		if(ctrTablePlus!=null)
		{
			ctrTablePlus.style.display="none";
		}
		if(ctrTableMinus!=null)
		{
			ctrTableMinus.style.display="block"
		}
	}
}

