function FlipHomeOn()		{ var imgLoc = document.images['HomeBttn'].src; document.images['HomeBttn'].src=imgLoc.replace("_off.", "_on."); }
function FlipHomeOff()		{ var imgLoc = document.images['HomeBttn'].src; document.images['HomeBttn'].src=imgLoc.replace("_on.", "_off."); }
function FlipSolutionsOn()	{ var imgLoc = document.images['SolutionsBttn'].src; document.images['SolutionsBttn'].src=imgLoc.replace("_off.", "_on."); }
function FlipSolutionsOff()	{ var imgLoc = document.images['SolutionsBttn'].src; document.images['SolutionsBttn'].src=imgLoc.replace("_on.", "_off."); }
function FlipIndustriesOn()	{ var imgLoc = document.images['IndustriesBttn'].src; document.images['IndustriesBttn'].src=imgLoc.replace("_off.", "_on."); }
function FlipIndustriesOff(){ var imgLoc = document.images['IndustriesBttn'].src; document.images['IndustriesBttn'].src=imgLoc.replace("_on.", "_off."); }
function FlipAboutOn()		{ var imgLoc = document.images['AboutBttn'].src; document.images['AboutBttn'].src=imgLoc.replace("_off.", "_on."); }
function FlipAboutOff() 	{ var imgLoc = document.images['AboutBttn'].src; document.images['AboutBttn'].src=imgLoc.replace("_on.", "_off.");	}
function FlipContactOn()	{ var imgLoc = document.images['ContactBttn'].src; document.images['ContactBttn'].src=imgLoc.replace("_off.", "_on."); }
function FlipContactOff() 	{ var imgLoc = document.images['ContactBttn'].src; document.images['ContactBttn'].src=imgLoc.replace("_on.", "_off.");	}

function MouseOverTR( object )
{
 	if( object.className == 'tbl-tr-odd' ) 
	    object.className = 'tbl-tr-odd-over';
 	else if( object.className == 'tbl-tr-even' ) 
	    object.className = 'tbl-tr-even-over';
}

//--Change the color back to normal after cursor is out 
function MouseOutTR( object ) 
{
 	if( object.className == 'tbl-tr-odd-over' ) 
	    object.className = 'tbl-tr-odd';
 	else if( object.className == 'tbl-tr-even-over' ) 
	    object.className = 'tbl-tr-even';
}

function ToggleLayer( strDivID )
{
	var elem, vis;
	if( document.getElementById ) // this is the way the standards work
		elem = document.getElementById( strDivID );
	else if( document.all ) // this is the way old msie versions work
		elem = document.all[strDivID];
	else if( document.layers ) // this is the way nn4 works
		elem = document.layers[strDivID];
	
	vis	= elem.style;
	
	if( vis.display == '' && elem.offsetWidth != undefined && elem.offsetHeight != undefined )
		vis.display = (elem.offsetWidth != 0 && elem.offsetHeight != 0) ? 'block' : 'none';
	
	vis.display = (vis.display == '' || vis.display == 'block') ? 'none' : 'block';
}
