if (document.images) {
//Preload main nav bar

	var mhomeoff = new Image();
	if (myPage == "mhome")
      mhomeoff.src = "http://www.meanwellusa.com/images/nav_homeon_48x17.gif";
    else  
	  mhomeoff.src = "http://www.meanwellusa.com/images/nav_homeoff_48x17.gif";
    var mhomeon = new Image();
    mhomeon.src = "http://www.meanwellusa.com/images/nav_homeon_48x17.gif";

	var mprofoff = new Image();
	if (myPage == "mprof")
      mprofoff.src = "http://www.meanwellusa.com/images/nav_profileon_51x17.gif";
    else  
      mprofoff.src = "http://www.meanwellusa.com/images/nav_profileoff_51x17.gif";
    var mprofon = new Image();
    mprofon.src = "http://www.meanwellusa.com/images/nav_profileon_51x17.gif";
		
	var mprodoff = new Image();
	if (myPage == "mprod")
      mprodoff.src = "http://www.meanwellusa.com/images/nav_nproductson_94x17.gif";
    else  
	  mprodoff.src = "http://www.meanwellusa.com/images/nav_nproductsoff_94x17.gif";
    var mprodon = new Image();
    mprodon.src = "http://www.meanwellusa.com/images/nav_nproductson_94x17.gif";

	var msrchoff = new Image();
	if (myPage == "msrch")
      msrchoff.src = "http://www.meanwellusa.com/images/nav_productson_103x17.gif";
    else  
	  msrchoff.src = "http://www.meanwellusa.com/images/nav_productsoff_103x17.gif";
    var msrchon = new Image();
    msrchon.src = "http://www.meanwellusa.com/images/nav_productson_103x17.gif";
        
    var msoloff = new Image();
	if (myPage == "msol")
      msoloff.src = "http://www.meanwellusa.com/images/nav_faqon_35x17.gif";
    else  
	  msoloff.src = "http://www.meanwellusa.com/images/nav_faqoff_35x17.gif";
    var msolon = new Image();
    msolon.src = "http://www.meanwellusa.com/images/nav_faqon_35x17.gif";

	var mretoff = new Image();
	if (myPage == "mret")
      mretoff.src = "http://www.meanwellusa.com/images/nav_serviceson_59x17.gif";
    else  
	  mretoff.src = "http://www.meanwellusa.com/images/nav_servicesoff_59x17.gif";
    var mreton = new Image();
    mreton.src = "http://www.meanwellusa.com/images/nav_serviceson_59x17.gif";
		
	var mnewsoff = new Image();
	if (myPage == "mnews")
      mnewsoff.src = "http://www.meanwellusa.com/images/nav_jobson_38x17.gif";
    else  
	  mnewsoff.src = "http://www.meanwellusa.com/images/nav_jobsoff_38x17.gif";
    var mnewson = new Image();
    mnewson.src = "http://www.meanwellusa.com/images/nav_jobson_38x17.gif";

	var mconoff = new Image();
	if (myPage == "mcon")
      mconoff.src = "http://www.meanwellusa.com/images/nav_contacton_62x17.gif";
    else  
	  mconoff.src = "http://www.meanwellusa.com/images/nav_contactoff_62x17.gif";
    var mconon = new Image();
    mconon.src = "http://www.meanwellusa.com/images/nav_contacton_62x17.gif";






}

if ((typeof section != "undefined") && (document.images))
{
	eval( "m" + section + "off.src = m" + section + "on.src");
	rollon ("m" + section);
}

function rollon(img) {
	if (document.images){
        document[img].src=eval(img+"on.src");			
    }
}

function rolloff(img) {
    if (document.images){
        document[img].src=eval(img+"off.src");
    }
}
		


<!-- Top of Page HTML here -->
var headerHTML1 = new String("\
<!-- End Masthead -->\
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\
  <tr>\
    <td width=\"33%\" bgcolor=\"#7F0000\">\
      <a href=\"http://www.meanwellusa.com/index.html\"><img src=\"http://www.meanwellusa.com/images/masthd_l4_408x115.gif\" width=\"408\" height=\"97\" alt=\"Home\" border=\"0\"></a></td>\
    <td width=\"33%\" bgcolor=\"#7F0000\">\
      &nbsp;&nbsp;&nbsp;&nbsp;</td>\
    <td width=\"33%\" bgcolor=\"#7F0000\"align=\"right\">\
      <img src=\"http://www.meanwellusa.com/images/masthd_r_255x115.gif\" width=\"255\" height=\"97\" alt=\"Home\" border=\"0\"></a></td>\
  </tr>\
</table>\
<!-- End Masthead -->\
<!-- NAVigation Bar -->\
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\
  <tr>\
    <td width=\"50%\" background=\"http://www.meanwellusa.com/images/vert_rulefill_2x17.gif\">\
      <img src=\"http://www.meanwellusa.com/images/clear.gif\" width=\"1\" height=\"1\"></td>\
    <!-- NAV Rollovers -->\
    <td bgcolor=\"#28282B\">\
      <a href=\"http://www.meanwellusa.com/index.html\" onMouseOver=rollon(\"mhome\") onMouseOut=rolloff(\"mhome\")>\
      <img src=\"http://www.meanwellusa.com/images/nav_homeoff_48x17.gif\" width=\"59\" height=\"17\" name=\"mhome\" border=\"0\" alt=\"Home\"></a></td>\
    <td bgcolor=\"#28282B\">\
      <a href=\"http://www.meanwellusa.com/profile.html\" onMouseOver=rollon(\"mprof\") onMouseOut=rolloff(\"mprof\")>\
      <img src=\"http://www.meanwellusa.com/images/nav_profileoff_51x17.gif\" width=\"61\" height=\"17\" name=\"mprof\" border=\"0\" alt=\"Company Profile\"></a></td>\
    <td bgcolor=\"#28282B\">\
      <a href=\"http://distributor.meanwellusa.com/webnet_usa/search/seriessearch.html\" OnMouseover=rollon(\"msrch\") OnMouseout=rolloff(\"msrch\")>\
      <img src=\"http://www.meanwellusa.com/images/nav_productsoff_103x17.gif\" width=\"74\" height=\"17\" name=\"msrch\" border=\"0\" alt=\"Product Search\"></a></td>\
    <td bgcolor=\"#28282B\">\
      <a href=\"http://www.meanwellusa.com/newproducts.html\" onMouseOver=rollon(\"mprod\") onMouseOut=rolloff(\"mprod\")>\
      <img src=\"http://www.meanwellusa.com/images/nav_nproductsoff_94x17.gif\" width=\"111\" height=\"17\" name=\"mprod\" border=\"0\" alt=\"Search Products\"></a></td>\
    <td bgcolor=\"#28282B\">\
      <a href=\"http://distributor.meanwellusa.com/webnet_usa/service/service_r.aspx\" OnMouseover=rollon(\"mret\") OnMouseout=rolloff(\"mret\")>\
      <img src=\"http://www.meanwellusa.com/images/nav_servicesoff_59x17.gif\" width=\"70\" height=\"17\" name=\"mret\" border=\"0\" alt=\"Our Services\"></a></td>\
    <td bgcolor=\"#28282B\">\
      <a href=\"http://www.meanwellusa.com/faq.html\" OnMouseover=rollon(\"msol\") OnMouseout=rolloff(\"msol\")>\
      <img src=\"http://www.meanwellusa.com/images/nav_faqoff_35x17.gif\" width=\"46\" height=\"17\" name=\"msol\" border=\"0\" alt=\"FAQ\"></a></td>\
    <td bgcolor=\"#28282B\">\
      <a href=\"http://www.meanwellusa.com/contact_sales.html\" OnMouseover=rollon(\"mcon\") OnMouseout=rolloff(\"mcon\")>\
      <img src=\"http://www.meanwellusa.com/images/nav_contactoff_62x17.gif\" width=\"92\" height=\"17\" name=\"mcon\" border=\"0\" alt=\"Contact Mean Well\"></a></td>\
    <td bgcolor=\"#28282B\">\
      <a href=\"http://distributor.meanwellusa.com/webnet_usa/news/News.aspx\" OnMouseover=rollon(\"mnews\") OnMouseout=rolloff(\"mnews\")>\
      <img src=\"http://www.meanwellusa.com/images/nav_jobsoff_38x17.gif\" width=\"51\" height=\"17\" name=\"mnews\" border=\"0\" alt=\"News\"></a></td>\
      <td bgcolor=\"#28282B\">\
      <a href=\"http://www.meanwellusa.com/career.html\" OnMouseover=rollon(\"mjo\") OnMouseout=rolloff(\"mjo\")>\
      <img src=\"http://www.meanwellusa.com/images/nav_jooff.gif\" width=\"59\" height=\"17\" name=\"mjo\" border=\"0\" alt=\"Career\"></a></td>\
      <td width=\"50%\" background=\"http://www.meanwellusa.com/images/vert_rulefill_2x17.gif\">\
      <img src=\"http://www.meanwellusa.com/images/clear.gif\" width=\"1\" height=\"1\"></td>\
  </tr>\
</table>\
<!-- End NAV -->\
");

var headerHTML2 = new String("\
<table width=\"80%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\
  <tr nowrap>\
    <td colspan=3 width=\"33\" height=\"20\" >\
      <img src=\"http://www.meanwellusa.com/images/clear.gif\" width=\"1\" height=\"20\"></td>\
  </tr>\
  <tr nowrap align=\"center\">\
    <td valign=\"top\" align=\"right\" nowrap>\
      </td>\
     <td valign=\"top\" align=\"left\" nowrap>\
      </td>\
      <td valign=\"top\" align=\"left\" nowrap>\
      </td>\
  </tr>\
</table>\
");

var headerHTML3 = new String("\
<table width=\"100%\" border=\"0\" height=\"1\" cellspacing=\"0\" cellpadding=\"0\">\
  <tr>\
    <td width=\"100%\" height=\"1\" >\
      <img src=\"http://www.meanwellusa.com/images/clear.gif\" width=\"1\" height=\"1\"></td>\
  </tr>\
</table>\
<table width=\"100%\" border=\"0\" background=\"http://www.meanwellusa.com/images/hori_rulefill.gif\" height=\"1\" cellspacing=\"0\" cellpadding=\"0\">\
  <tr>\
    <td width=\"100%\" height=\"1\" >\
      <img src=\"http://www.meanwellusa.com/images/clear.gif\" width=\"1\" height=\"1\"></td>\
  </tr>\
</table>\
<table width=\"420\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">\
  <tr>\
    <td width=\"40\" valign=\"bottom\">\
      <img src=\"http://www.meanwellusa.com/images/clear.gif\" width=\"1\" height=\"10\">\
      <img src=\"http://www.meanwellusa.com/images/largeArrow_grey_34x11.gif\" width=\"34\" height=\"11\"></td>\
    <td width=\"412\"> <img src=\"http://www.meanwellusa.com/images/clear.gif\" width=\"1\" height=\"20\">\
      <span class=\"mw14b\" id=\"mwred\"> Search Results </span></td>\
  </tr>\
</table>\
<table width=\"760\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\
  <tr>\
  <td valign=\"top\"><img src=\"http://www.meanwellusa.com/images/clear.gif\" width=\"47\" height=\"1\"></td>\
  <td valign=\"top\">\
");

//Search Results page should call this function
function doHeader() {
    document.open();
    document.write(headerHTML1);
    document.write(headerHTML2);

    rollon(myPage);

}
   
function doHeader3() {
    document.write(headerHTML3);
}

