function overImage(elem)
{
elem.src=elem.src.replace(/(_on)*(\.\w+)$/,'_on$2');
}
function outImage(elem)
{
elem.src=elem.src.replace(/(_on)+(\.\w+)$/,'$2');
}
function createChineseHeader()
{

var  chineseTopnav;

chineseTopnav ="<div id='header'>";
chineseTopnav+="<table width='100%' cellspacing='0' cellpadding='0'>";
chineseTopnav+="<tr>";
chineseTopnav+="<td width='236'><a href='/microsite/chinese'><img  id='logo_header' src='/microsite/chinese/images/global/Global_Header_Logo.gif' onmouseover ='overImage(this)' onmouseout ='outImage(this)'  alt='Nissan Logo' name='Badge'  width='236' height='75' border='0'  /></a></td>";
chineseTopnav+="<td width='80'><a href='/microsite/chinese/versa_hatchback.html'><img id='versa_header' src='/microsite/chinese/images/global/Global_Header_Versa.gif' onmouseover ='overImage(this)' onmouseout ='outImage(this)' alt='Versa' name='Badge' width='80' height='75' border='0' /></a></td>";
chineseTopnav+="<td width='88'><a href='/microsite/chinese/sentra.html'><img id='sentra_header' src='/microsite/chinese/images/global/Global_Header_Sentra.gif' onmouseover ='overImage(this)' onmouseout ='outImage(this)' alt='Sentra' name='Badge' width='88' height='75' border='0'  /></a></td>";
chineseTopnav+="<td width='82'><a href='/microsite/chinese/altima_sedan.html'><img id='altima_header' src='/microsite/chinese/images/global/Global_Header_Altima.gif'onmouseover ='overImage(this)' onmouseout ='outImage(this)' alt='Altima' name='Badge' width='82' height='75' border='0'  /></a></td>";
chineseTopnav+="<td width='82'><a href='/microsite/chinese/rogue.html'><img id='rogue_header' src='/microsite/chinese/images/global/Global_Header_Rogue.gif' onmouseover ='overImage(this)' onmouseout ='outImage(this)' alt='Rogue' name='Badge' width='82' height='75' border='0'  /></a></td>";
chineseTopnav+="<td width='104'><a href='/microsite/chinese/maxima.html'><img id='maxima_header' src='/microsite/chinese/images/global/Global_Header_Maxima.gif' onmouseover ='overImage(this)' onmouseout ='outImage(this)' alt='Maxima' name='Badge' width='104' height='75' border='0'  /></a></td>";
chineseTopnav+="<td width='199'><a href='/'><img src='/microsite/chinese/images/global/Global_Header_See_More.gif' alt='See More Vehicles' width='199' height='75' border='0' id='See More' /></a></td>";
chineseTopnav+="<td width='93'><a href='/microsite/chinese/dealer_access.html'><img src='/microsite/chinese/images/global/Global_Header_Find_a_Dealer.gif'  alt='Find a dealer' width='93' height='75' border='0' id='Find a Dealer' /></a></td>";
chineseTopnav+="</tr>";
chineseTopnav+="</table>";
chineseTopnav+="</div>";

var gChineseNavObj = document.getElementById('gChineseNav');
gChineseNavObj.innerHTML = chineseTopnav;


var  chineseFooternav;
chineseFooternav ="<div id='footer'>";
chineseFooternav+="<table width='97%' cellspacing='0' cellpadding='0'>";
chineseFooternav+="<tr>";
chineseFooternav+="<td width='99'><a href='/apps/chinese/handraiser/siteWideOptin?next=chinese.microsite.sitewideopt-in'><img src='/microsite/chinese/images/global/Global_footer_join_mailing_list.gif' alt='Join Mailing List' name='Badge'  width='99' height='18' border='0' id='Logo' /></a></td>";
chineseFooternav+="<td width='800'>&nbsp;</td>";
chineseFooternav+="<td width='60'><a href='/microsite/chinese/privacy.html'><img src='/microsite/chinese/images/global/Global_footer_legal.gif' alt='Legal' name='Badge'  width='60' height='18' border='0' id='Logo' /></a></td>";
chineseFooternav+="</tr>";
chineseFooternav+="</table>";
chineseFooternav+="</div>";


var gChineseFooterNavObj = document.getElementById('gFooter');
gChineseFooterNavObj.innerHTML = chineseFooternav;

if(document.getElementById("bodycontent"))
{
	
	document.getElementById("logo_header").src="/microsite/chinese/images/global/Global_Header_Logo_on.gif";
	document.getElementById("logo_header").onmouseover= "function(){};"
	document.getElementById("logo_header").onmouseout= "function(){};"
}

if(document.getElementById("bodycontent_versa_hatchback"))
{
	document.getElementById("versa_header").src="/microsite/chinese/images/global/Global_Header_Versa_on.gif";
	document.getElementById("versa_header").onmouseover= "function(){};"
	document.getElementById("versa_header").onmouseout= "function(){};"
}
if(document.getElementById("bodycontent_versa_sedan"))
{
	document.getElementById("versa_header").src="/microsite/chinese/images/global/Global_Header_Versa_on.gif";
	document.getElementById("versa_header").onmouseover= "function(){};"
	document.getElementById("versa_header").onmouseout= "function(){};"
}
if(document.getElementById("bodycontent_altima_sedan"))
{
	document.getElementById("altima_header").src="/microsite/chinese/images/global/Global_Header_Altima_on.gif";
	document.getElementById("altima_header").onmouseover= "function(){};"
	document.getElementById("altima_header").onmouseout= "function(){};"
}
if(document.getElementById("bodycontent_altima_coupe"))
{
	document.getElementById("altima_header").src="/microsite/chinese/images/global/Global_Header_Altima_on.gif";
	document.getElementById("altima_header").onmouseover= "function(){};"
	document.getElementById("altima_header").onmouseout= "function(){};"
}
if(document.getElementById("bodycontent_sentra"))
{
	document.getElementById("sentra_header").src="/microsite/chinese/images/global/Global_Header_Sentra_on.gif";
	document.getElementById("sentra_header").onmouseover= "function(){};"
	document.getElementById("sentra_header").onmouseout= "function(){};"
}
if(document.getElementById("bodycontent_rogue"))
{
	document.getElementById("rogue_header").src="/microsite/chinese/images/global/Global_Header_Rogue_on.gif";
	document.getElementById("rogue_header").onmouseover= "function(){};"
	document.getElementById("rogue_header").onmouseout= "function(){};"
}
if(document.getElementById("bodycontent_maxima"))
{
	document.getElementById("maxima_header").src="/microsite/chinese/images/global/Global_Header_Maxima_on.gif";
	document.getElementById("maxima_header").onmouseover= "function(){};"
	document.getElementById("maxima_header").onmouseout= "function(){};"
}

}
