<!--
/*
update history
2005.02.16		add submenu				weather, worldclock 
2005.03.17		change mainmenu			Global Ad, Investor Relations
2005.04.25		add submenu				Fun 
2005.07.11		add submenu				Screen Saver
2005.09.10		change					for Jet/ Menu
2005.11.04		add						Flash Plugin Check
2005.11.15		add						Google Analytics
2005.12.06		modify					Flash Gnv
2005.12.20		modify					Flash Plugin Detect
2005.12.26		modify					fotter copy right 2005 -> 2006
2005.12.28		modify					fotter copy right 2006 -> 2007
2008.01.05		modify					fotter copy right 2007 -> 2008

this is used only old style template

2008.10.0		modify					change gnv file name
*/


//Flash Plugin Detect
// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 7;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Minor version of Flash required
var requiredRevision = 0;
// the version of javascript supported
var jsVersion = 1.0;
// -----------------------------------------------------------------------------

// Detect Client Browser type
var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
jsVersion = 1.1;

// JavaScript helper required to detect Flash Player PlugIn version information
function JSGetSwfVer(i){
	// NS/Opera version >= 3 check for Flash plugin in plugin array
	if (navigator.plugins != null && navigator.plugins.length > 0) {
		if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
			var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
      		var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
			descArray = flashDescription.split(" ");
			tempArrayMajor = descArray[2].split(".");
			versionMajor = tempArrayMajor[0];
			versionMinor = tempArrayMajor[1];
			if ( descArray[3] != "" ) {
				tempArrayMinor = descArray[3].split("r");
			} else {
				tempArrayMinor = descArray[4].split("r");
			}
      		versionRevision = tempArrayMinor[1] > 0 ? tempArrayMinor[1] : 0;
            flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
      	} else {
			flashVer = -1;
		}
	}
	// MSN/WebTV 2.6 supports Flash 4
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
	// WebTV 2.5 supports Flash 3
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
	// older WebTV supports Flash 2
	else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
	// Can't detect in all other cases
	else {
		
		flashVer = -1;
	}
	return flashVer;
} 

// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision) 
{
 	reqVer = parseFloat(reqMajorVer + "." + reqRevision);
   	// loop backwards through the versions until we find the newest version	
	for (i=25;i>0;i--) {	
		if (isIE && isWin && !isOpera) {
			versionStr = VBGetSwfVer(i);
		} else {
			versionStr = JSGetSwfVer(i);		
		}
		if (versionStr == -1 ) { 
			return false;
		} else if (versionStr != 0) {
			if(isIE && isWin && !isOpera) {
				tempArray         = versionStr.split(" ");
				tempString        = tempArray[1];
				versionArray      = tempString .split(",");				
			} else {
				versionArray      = versionStr.split(".");
			}
			versionMajor      = versionArray[0];
			versionMinor      = versionArray[1];
			versionRevision   = versionArray[2];
			
			versionString     = versionMajor + "." + versionRevision;   // 7.0r24 == 7.24
			versionNum        = parseFloat(versionString);
        	// is the major.revision >= requested major.revision AND the minor version >= requested minor
			  if (versionMajor == reqMajorVer) {
				if (versionMinor == reqMinorVer) {
				  return (versionRevision   >= reqRevision);
				} else {
				  return (versionMinor   > reqMinorVer);
				}
			  } else {
				return (versionMajor   > reqMajorVer);
			  }
		}
	}	
}

// Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)
var hasProductInstall = DetectFlashVer(6, 0, 65);

// Version check based upon the values entered above in "Globals"
var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

// Location visited after installation is complete if installation is required
var MMredirectURL = window.location;

// Stored value of document title used by the installation process to close the window that started the installation process
// This is necessary to remove browser windows that will still be utilizing the older version of the player after installation is complete
// DO NOT MODIFY THE FOLLOWING TWO LINES
//document.title = document.title.slice(0, 47) + " - Flash Player Installation";
var MMdoctitle = document.title;

//set headersrc
// Check to see if a player with Flash Product Install is available and the version does not meet the requirements for playback
var swfname = 'gnv20100615.swf';

if (hasReqestedVersion) {  // if we've detected an acceptable version
	var gnvsrc='<table width="700" border="0" cellpadding="0" cellspacing="0" bgcolor="#CC0000"><tr><td background="' + ipath +'shared/img/gnv/gnvBase.gif"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="700" height="101" id="gnv" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="' + ipath +'shared/img/gnv/' + swfname + '?myDir=' + myDirName + '" /><param name="menu" value="false" /><param name="quality" value="high" /><param name="bgcolor" value="#cc0000" /><embed src="' + ipath +'shared/img/gnv/' + swfname + '?myDir=' + myDirName + '" menu="false" quality="high" bgcolor="#cc0000" width="700" height="101" name="gnv" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object></td></tr></table><div id="upperCorner"></div><div id="lowerCorner"></div>';
  } else {  // flash is too old or we can't detect the plugin
	var gnvsrc='<div id="gnvBase" class="gnvBaseRed"><table width="689" border="0" cellpadding="0" cellspacing="0"><tr><td width="111" rowspan="2" align="right"><a href="/"><img src="/shared/img/spacer.gif" alt="Honda" width="100" height="49" border="0"></a></td><td width="578" align="right"><table  border="0" cellpadding="0" cellspacing="0"><!-- SiteSearch Google --><form method=GET action="http://www.google.com/search"><tr><td align="right" valign="middle"><a href="/link/"><img src="/shared/img/gnv/gnvBase_links.jpg" alt="Honda World Links" width="118" height="13" border="0"></a><img src="/shared/img/gnv/gnvBase_search.jpg" alt="Seach" width="66" height="13"></td><td align="right" valign="middle"><INPUT TYPE=text name=q size=25 maxlength=200 value="" id="googleform"><input type=hidden name=sitesearch value="world.honda.com" checked></td><td width="30" align="left" valign="middle"><INPUT type=image name="seach" VALUE="Google Search" src="/shared/img/gnv/search.gif" width="19" height="19"><input type=hidden name=domains value="world.honda.com"><img src="/shared/img/spacer.gif" alt="" width="10" height="1"></td></tr></form><!-- end iteSearch Google --></table></td></tr><tr><td align="right"><a href="#" onclick="setGreen()"><img src="/shared/img/spacer.gif" alt="Green" width="120" height="20" hspace="5" border="0"></a><a href="/message/"><img src="/shared/img/spacer.gif" alt="Global Ad" width="120" height="20" hspace="5" border="0"></a><a href="/ASIMO/"><img src="/shared/img/spacer.gif" alt="ASIMO" width="120" height="20" hspace="5" border="0"></a><img src="/shared/img/spacer.gif" alt="" width="5" height="20"></td></tr></table><table width="689" border="0" cellpadding="0" cellspacing="0"><tr><td><img src="/shared/img/spacer.gif" alt="" width="11" height="25"><a href="/worldnews/"><img src="/shared/img/spacer.gif" alt="World News" width="95" height="25" border="0"></a><a href="/products/"><img src="/shared/img/spacer.gif" alt="Products &amp; Technology" width="157" height="25" border="0"></a><a href="/motorsports/"><img src="/shared/img/spacer.gif" alt="Motor Sports" width="102" height="25" border="0"></a><a href="/environment/"><img src="/shared/img/spacer.gif" alt="Environment" width="97" height="25" border="0"></a><a href="/investors/"><img src="/shared/img/spacer.gif" alt="Investor Relations" width="130" height="25" border="0"></a><a href="/about/"><img src="/shared/img/spacer.gif" alt="About Honda" width="97" height="25" border="0"></a></td></tr></table></div><div id="upperCorner"></div><div id="lowerCorner"></div>';
}

headersrc = '<script type="text/javascript" src="/shared/js/writegnv.js"></script>';
//headersrc = '<SCRIPT language="JavaScript">'
//+ '<!-- '
//+ 'document.write(headersrc1)'
//+ '//-->'
//+ '</SCRIPT>';

//footer
var footerendImg = ipath +"shared/img/format/lr_footer.gif";
var footersrc="";

function setFooterendImg(src) {
	return footersrc="<table width=\"700\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr valign=\"bottom\"><td width=\"700\" height=\"22\" align=\"center\"><font class=\"s\">Honda Worldwide site<br><a href=\"/\">Home</a> | <a href=\"/sitemap/\">Site Map</a> | <a href=\"/siteindex/\">Site Index</a><br><a href=\"/legal/\">About this Site</a><br>Copyright, 2012 Honda Motor Co., Ltd. and its subsidiaries and affiliates. All Rights Reserved.</font></td></tr><tr><td width=\"700\" height=\"14\" align=\"left\" valign=\"top\"><img src=\"" + src +"\" width=\"700\" height=\"14\" alt=\"\"></td></tr></table>";
}

setFooterendImg(footerendImg);

var currentYear = "2010";

//Google Analytics
document.write('<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>');

//-->
