function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
    return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}


function StopFlashMovie(n)
{
	var flashMovie=getFlashMovieObject(n);
	flashMovie.StopPlay();
}




function setVisibility(id, visibility) {
//document.all[id].style.display = visibility;
document.getElementById(id).style.display = visibility;
}


function setNav(id, visibility) {
//document.all[id].style.display = visibility;

	
	if (document.getElementById('expphotography'))
	{
		if (visibility!='expphotography') {document.getElementById('expphotography').style.display = "none";}
	}
	
	if (document.getElementById('expartwork'))
	{
		if (visibility!='expartwork') {document.getElementById('expartwork').style.display = "none";}
	}
	
	if (document.getElementById('expmultimedia'))
	{
		if (visibility!='expmultimedia') {document.getElementById('expmultimedia').style.display = "none";}
	}
	
	if (document.getElementById('explogos'))
	{
		if (visibility!='explogos') {document.getElementById('explogos').style.display = "none";}
	}
	
	if (document.getElementById('expgenpo'))
	{
		if (visibility!='expgenpo') {document.getElementById('expgenpo').style.display = "none";}
	}
	
	if (document.getElementById('expcompetcoms'))
	{
		if (visibility!='expcompetcoms') {document.getElementById('expcompetcoms').style.display = "none";}
	}
	
	if (document.getElementById('expbrand'))
	{
		if (visibility!='expbrand') {document.getElementById('expbrand').style.display = "none";}
	}
	

	if (document.getElementById('expnewHondaCircle'))
	{
		if (visibility!='expnewHondaCircle') {document.getElementById('expnewHondaCircle').style.display = "none";}
	}
	
	
	if (document.getElementById('expphilosophy'))
	{
		if (visibility!='expphilosophy') {document.getElementById('expphilosophy').style.display = "none";}
	}
	
	if (document.getElementById('expcommunicationMaterial'))
	{
		if (visibility!='expcommunicationMaterial') {document.getElementById('expcommunicationMaterial').style.display = "none";}
	}
	





document.getElementById(id).style.display = "inline";

}

function setNavB(id, visibility) {
//document.all[id].style.display = visibility;

if (visibility!='expphotography')	{document.getElementById('expphotography').style.display = "none";}
if (visibility!='expartwork') 		{document.getElementById('expartwork').style.display = "none";}
if (visibility!='expmultimedia') 	{document.getElementById('expmultimedia').style.display = "none";}
if (visibility!='explogos') 		{document.getElementById('explogos').style.display = "none";}
if (visibility!='expgenpo') 		{document.getElementById('expgenpo').style.display = "none";}
if (visibility!='expcompetcoms') 	{document.getElementById('expcompetcoms').style.display = "none";}

document.getElementById(id).style.display = "inline";
}






function showSupport() {
	document.getElementById("supportSubNav").style.display = 'inline';
	var t=setTimeout("hideSupport()",3000)
}

function hideSupport() {
	document.getElementById("supportSubNav").style.display = 'none';
}



var cX = 0; var cY = 0; var rX = 0; var rY = 0;

function UpdateCursorPosition(e){ cX = e.pageX; cY = e.pageY;}
function UpdateCursorPositionDocAll(e){ cX = event.clientX; cY = event.clientY;}

if(document.all) { document.onmousemove = UpdateCursorPositionDocAll; }
else { document.onmousemove = UpdateCursorPosition; }


function AssignPosition(d,yps) {

	/*
	
	if (document.layers) {
		xMousePosMax = window.innerWidth+window.pageXOffset;
		yMousePosMax = window.innerHeight+window.pageYOffset;
	} else if (document.all) {
		xMousePosMax = document.body.clientWidth+document.body.scrollLeft;
		yMousePosMax = document.body.clientHeight+document.body.scrollTop;
	} else if (document.getElementById) {
		xMousePosMax = window.innerWidth+window.pageXOffset;
		yMousePosMax = window.innerHeight+window.pageYOffset;
	}
	
	//xMousePosMax = document.documentElement.clientWidth;
	//yMousePosMax = document.documentElement.clientHeight;
	
	//xMousePosMax = document.body.scrollLeft;
	//yMousePosMax = document.body.scrollTop;


	if(self.pageYOffset) {
		rX = self.pageXOffset;
		rY = self.pageYOffset;
		}
	else if(document.documentElement && document.documentElement.scrollTop) {
		rX = document.documentElement.scrollLeft;
		rY = document.documentElement.scrollTop;
		}
	else if(document.body) {
		rX = document.body.scrollLeft;
		rY = document.body.scrollTop;
		}
	
	if(document.all) {
		cX += rX; 
		cY += rY;
		}
	
	cX = cX-2
	cY = cY-2
	
	//if(cX>(xMousePosMax-475)) {cX=xMousePosMax-485;}
	if(cY>(yMousePosMax-480)) {cY=yMousePosMax-480;}
	
	window.status = "xMousePos=" + cX + ", yMousePos=" + cY + ", xMousePosMax=" + xMousePosMax + ", yMousePosMax=" + yMousePosMax;

	*/

	//d.style.left = (cX) + "px";
	d.style.left	= "372px";
	d.style.top 	= yps + "px";

}





function HideContent(d) {
	if(d.length < 1) { return; }
	document.getElementById(d).style.display = "none";
}

function ShowContent(d,yp) {
	if(d.length < 1) { return; }
	var dd = document.getElementById(d);
	var yps = yp;
	AssignPosition(dd,yps);
	dd.style.display = "block";
}

function ReverseContentDisplay(d) {
	if(d.length < 1) { return; }
	var dd = document.getElementById(d);
	AssignPosition(dd);
	if(dd.style.display == "none") { dd.style.display = "block"; }
	else { dd.style.display = "none"; }
}


//-->







