//alert("execute template");

document.write('		<script src="http://www.worldpac.com/js-css/milonic_src.js" type="text\/javascript"><\/script>');
document.write('			<script src="http://www.worldpac.com/js-css/mmenudom.js" type="text/javascript"><\/script>');
//			if(ns4) _d.write("<scr"+"ipt language=\"javascript\" src=\"js-css/mmenuns4.js\" type=\"text/javascript\"><\/scr"+"ipt>");
//			else _d.write("<scr"+"ipt language=\"javascript\" src=\"js-css/mmenudom.js\" type=\"text/javascript\"><\/scr"+"ipt>");

function header()
{//alert("execute header");
	document.write('<style>.pc-rtg-mastertable {margin: 0px auto;}</style><p>&nbsp;</p>')
	document.write('<map name="Map" id="Map"><area shape="rect" coords="177,1,318,23" href="http://www.worldpac.ca/" alt="WORLDPAC Canada" title="WORLDPAC Canada" />')
	document.write('<area shape="rect" coords="20,0,165,23" href="http://www.redlineweber.com/" alt="WORLDPAC - REDLINE Division" title="WORLDPAC - REDLINE Division" />')
	document.write('</map>')
	
	document.write('<table border="0" cellspacing="0" cellpadding="0" width="734">');
	document.write('	  <tr>');
	document.write('		<td valign="bottom" align="left"><a href="http://www.worldpac.com/index.html"><img border="0" src="http://www.worldpac.com/images/logo_hp.gif" alt="WORLDPAC, Inc." title="WORLDPAC, Inc." width="388" height="43" hspace="0" vspace="0" border="0" /></a></td>');
//	document.write('		<td align="right" valign="bottom" class="upper_right_links" style="margin-bottom:10px"><a href="http://www.worldpac.ca"><img src="/images/canada.gif" alt="WORLDPAC Canada (Fran&ccedil;ais)" title="WORLDPAC Canada (Fran&ccedil;ais)" width="249" height="24" vspace="4" border="0" /><a/><br />');
	document.write('		<td align="right" valign="bottom" style="font-family:Arial, Helvetica, sans-serif; font-size: 11px; color: #666; font-size: 10px; line-height: 10px; text-transform: uppercase; margin-bottom:10px"><img src="http://www.worldpac.com/images/canada.gif" usemap="#Map" alt="WORLDPAC Canada" title="WORLDPAC Canada" width="319" height="24" vspace="4" border="0" /><br />');
	document.write('		  <span style="font-family:Arial, Helvetica, sans-serif; font-size: 11px; color: #666; font-size: 10px; line-height: 10px; text-transform: uppercase; text-decoration:none;"><a  style="color:#666; text-decoration:none;" href="http://www.worldpac.com/news.html">News&nbsp;&amp;&nbsp;Events</a> | <a  style="color:#666; text-decoration:none;" href="http://www.worldpac.com/promotions.html">Promotions</a> | <a  style="color:#666; text-decoration:none;" href="http://www.worldpac.com/careers/">Careers</a> | <a  style="color:#666; text-decoration:none;" href="http://www.worldpac.com/contactus.html">Contact Us</a></span>');
	document.write('		  </td>');
	document.write('	  </tr>');
	document.write('	  <tr>');
	document.write('	  <td colspan="2" height="10">');
	document.write('	  </td>');
	document.write('	  </tr>');
	document.write('     <td  colspan="2"><div id="head"> ');
	document.write('           <!--BANNER START-->');
	document.write('           <table style="table-layout: auto; border: 1px solid #ccc; background-color: #F7F7F7; list-style-type: none; margin: 0; font-size: 10px; line-height: 10px; width: 734px;"><!-- id="nav1"> -->');
	document.write(' 			<tr valign="middle">');
	document.write(' 				<td width="195" style="padding: 0; font-size: 10px; display: inline; margin: 0; display: inline;background-color: #F7F7F7; color: #666; padding: 5px 0px 7px 8px; text-transform: none; padding: 0; width: 196px">');
	document.write(' 				<!--search start -->');
	document.write(' 					<form method="get" action="http://worldpac.com/search/search.pl" name="sform" style="margin: 0;">	');	
//	document.write(' 					id="searchCell" <form action="alert(\'Search unavailable at this time.\');" method="post" id="searchForm" name="searchForm" onsubmit="JavaScript:submitSearch();">	');	
	document.write(' 							<table>');
	document.write(' 								<tr>');
	document.write(' 									<td>');
	document.write('										<input name="Terms" id="fdse_TermsEx" />');
//	document.write('										<input title="search" type="text" value="" class="globalInput" id="homeSearch" name="homeSearch" size="15" />');
	document.write('										<input title="search" type="hidden" id="searchinput" name="searchinput" />');
	document.write(' 										<noscript>');
	document.write(' 											<input title="search" type="text" id="searchinput" name="searchinput"/>');
	document.write(' 										</noscript>				</td>');
	document.write(' 									<td>&nbsp;&nbsp;&nbsp;');
	document.write('										<a href="javascript:document.sform.submit();" style="font-family:Arial, Helvetica, sans-serif; font-size: 11px; color: #666; font-size: 10px; ">SEARCH</a>');
	document.write(' 										<noscript>');
	document.write(' 											<input type="submit" value="SEARCH"/>');
	document.write(' 										</noscript>				</td>');
	document.write(' 								</tr>');
	document.write(' 							</table>');
	document.write(' 					</form>');
	document.write(' 			  <!--search end -->			  </td>');
	document.write('				<td width="527" align="left">');

}

function dropdown_menu(){
	document.write('				   <script src="http://www.worldpac.com/js-css/hp_menu_data.js" type="text/javascript"></script>');
}

function dropdown_menu_pplclk(){
	document.write('				   <script src="http://www.worldpac.com/js-css/hp_menu_data.js" type="text/javascript"></script>');
}


function banner(bnr_image, title, picwidth, picheight){
	if (picwidth == null && picheight == null) {picwidth="400"; picheight="40"} 
	document.write('	</td>');
/*	document.write(' 				<td width="164"><img src="images/nav_arrow.gif" alt="" /><a href="parts.html">pArts & Accessories</a></td>');
	document.write(' 				<td width="94"><img src="images/nav_arrow.gif" alt="" /><a href="services.html">services</a></td>');
	document.write(' 				<td width="82"><img src="images/nav_arrow.gif" alt="" /><a href="support.html">support</a></td>');
	document.write(' 				<td width="127"><img src="images/nav_arrow.gif" alt="" /><a href="corpinfo.html">our company</a></td>');
*/	document.write(' 			</tr>');
	document.write(' </table> ');
	document.write(' 	</div></td>');
	document.write('   </tr>');
	document.write('</table>');
	document.write('<table cellpadding="0" cellspacing="0" id="layout" >');
	document.write('	<tr valign="top">');
	document.write('	  <td>');
	document.write('<table cellpadding="0" cellspacing="0" id="layout" border="0">');
	document.write('	<tr valign="top">');
	document.write('	  <td>');
}

function footer() {
	document.write('</td>');
	document.write('	</tr>');
	document.write('	<tr valign="top">');
	document.write('	<td>');
	document.write('	<div id="foot">');
	document.write('		<p align="right" id="copy">&copy; <span id="copyright-year">2012</span> WORLDPAC, Inc.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.worldpac.com/privacy.html">Privacy Policy</a> | <a href="http://www.worldpac.com/t_c.html">Terms &amp; Conditions</a> | <a href="http://www.worldpac.com/contactus.html">Contact Us</a> </p>');
	document.write('	</div>	</td>');
	document.write('	</tr>');
	document.write('</table>');
	// update the copyright year to the current year.
	var today = new Date();
	var year = today.getFullYear();
	var copyrightYearElem = document.getElementById('copyright-year');
	if ( copyrightYearElem ) copyrightYearElem.innerHTML = year;
}

