// JavaScript Document


function SETUPsubnav(A)
{
	activeID = A;

	
	contruct = '<div id="subHome" style="display:none"><table border="0" align="left" cellpadding="0" cellspacing="0"><tr><td width="45" height="17" align="right" valign="bottom"><img src="images/nav_up.png" width="17" height="10" /></td></tr></table></div>';
        
	//SUB
	contruct += '<div id="subCreate" style="display:none" onmouseout="SubOut(this.id);">';
	contruct += '<table border="0" align="left" cellpadding="0" cellspacing="0"><tr><td width="226" height="27" align="center" valign="bottom"><img src="images/nav_down.png" width="17" height="10" /></td></tr><tr><td height="17" align="center" valign="bottom"><table border="0" cellspacing="0" cellpadding="0"><tr>';
	contruct += '<td width="44" align="center" valign="top"><a href="create_about.html">About</a></td>';
	contruct += '<td width="50" align="center" valign="top"><a href="create_clients.html">Clients</a></td>';
	contruct += '<td width="57" align="center" valign="top"><a href="create_portfolio.html">Portfolio</a></td></tr></table></td></tr></table></div>';
			
	//SUB
	contruct += '<div id="subSport" style="display:none;" onmouseout="SubOut(this.id);">';
	contruct += '<table border="0" align="left" cellpadding="0" cellspacing="0"><tr><td width="375" height="27" align="center" valign="bottom"><img src="images/nav_down.png" width="17" height="10" /></td></tr><tr><td height="17" align="center" valign="bottom"><table border="0" cellspacing="0" cellpadding="0"><tr>';
	contruct += '<td width="44" align="center" valign="top"><a href="sport_about.html">About</a></td>';
	contruct += '<td width="50" align="center" valign="top"><a href="sport_clients.html">Clients</a></td>';
	contruct += '<td width="57" align="center" valign="top"><a href="sport_portfolio.html">Portfolio</a></td></tr></table></td></tr></table></div>';
			
	//SUB
	contruct += '<div id="subComm" style="display:none" onmouseout="SubOut(this.id);"><table border="0" align="left" cellpadding="0" cellspacing="0"><tr><td width="524" height="27" align="center" valign="bottom"><img src="images/nav_down.png" width="17" height="10" /></td></tr><tr><td height="17" align="center" valign="bottom"><table border="0" cellspacing="0" cellpadding="0"><tr>';
	contruct += '<td width="44" align="center" valign="top"><a href="communication_about.html">About</a></td>';
	contruct += '<td width="50" align="center" valign="top"><a href="communication_clients.html">Clients</a></td>';
	contruct += '<td width="57" align="center" valign="top"><a href="communication_portfolio.html">Portfolio</a></td></tr></table></td></tr></table></div>';
			
	contruct += '<div id="subCSI" style="display:none"><table border="0" align="right" cellpadding="0" cellspacing="0"><tr><td width="216" height="17" align="left" valign="bottom"><img src="images/nav_up.png" width="17" height="10" /></td></tr></table></div>';
	
	
	contruct += '<div id="subNews" style="display:none"><table border="0" align="right" cellpadding="0" cellspacing="0"><tr><td width="150" height="17" align="left" valign="bottom"><img src="images/nav_up.png" width="17" height="10" /></td></tr></table></div>';
	
	contruct += '<div id="subContact" style="display:none"><table border="0" align="right" cellpadding="0" cellspacing="0"><tr><td width="58" height="17" align="left" valign="bottom"><img src="images/nav_up.png" width="17" height="10" /></td></tr></table></div>';
	
	
	document.getElementById('SUBNAVspace').innerHTML = contruct;
	document.getElementById(A).style.display = 'block';
}

function mouseOver(x)
{
	HideOthers();		// This helps for the SUBNAVS wich don't have mouse out states on them but only on their sub div tags
	document.getElementById(x).style.display = 'block';
}

function mouseOut(x)
{
	document.getElementById(x).style.display = 'none';
	ResetPageIndicator();
}

function SubOut(x)
{
	//document.getElementById(x).style.display = 'none';
	//ResetPageIndicator();
}

function HideOthers()
{
	document.getElementById('subHome').style.display = 'none';
	document.getElementById('subCreate').style.display = 'none';
	document.getElementById('subSport').style.display = 'none';
	document.getElementById('subComm').style.display = 'none';
	document.getElementById('subCSI').style.display = 'none';
	document.getElementById('subNews').style.display = 'none';
	document.getElementById('subContact').style.display = 'none';
}

function ResetPageIndicator()
{
	document.getElementById(activeID).style.display = 'block';
}
