if (document.images) {
//Preload main nav bar

	var mhomeoff = new Image();
	if (myPage == "mhome")
      mhomeoff.src = "";
    else  
	  mhomeoff.src = "";
    var mhomeon = new Image();
    mhomeon.src = "";

	var mprofoff = new Image();
	if (myPage == "mprof")
      mprofoff.src = "";
    else  
      mprofoff.src = "";
    var mprofon = new Image();
    mprofon.src = "";
		
	var mprodoff = new Image();
	if (myPage == "mprod")
      mprodoff.src = "";
    else  
	  mprodoff.src = "";
    var mprodon = new Image();
    mprodon.src = "";

	var msrchoff = new Image();
	if (myPage == "msrch")
      msrchoff.src = "";
    else  
	  msrchoff.src = "";
    var msrchon = new Image();
    msrchon.src = "";
        
    var msoloff = new Image();
	if (myPage == "msol")
      msoloff.src = "";
    else  
	  msoloff.src = "";
    var msolon = new Image();
    msolon.src = "";

	var mretoff = new Image();
	if (myPage == "mret")
      mretoff.src = "";
    else  
	  mretoff.src = "";
    var mreton = new Image();
    mreton.src = "";
		
	var mjobsoff = new Image();
	if (myPage == "mjobs")
      mjobsoff.src = "";
    else  
	  mjobsoff.src = "";
    var mjobson = new Image();
    mjobson.src = "";

	var mconoff = new Image();
	if (myPage == "mcon")
      mconoff.src = "";
    else  
	  mconoff.src = "";
    var mconon = new Image();
    mconon.src = "";
}

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("");

var headerHTML2 = new String("\
<table width=\"80%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\
  <tr nowrap>\
    <td colspan=3 width=\"33\" height=\"20\" >\
      <img src=\"images/clear.gif\" width=\"1\" height=\"20\"></td>\
  </tr>\
  <tr nowrap align=\"center\">\
    <td valign=\"top\" align=\"right\" nowrap>\
      <form name=\"FastFindForm1\" action=\"search.html\">\
        <img src=\"images/clear.gif\" width=\"30\" height=\"1\">\
        <img src=\"images/mw_fastfind_72x18.gif\" width=\"72\" height=\"18\">\
        <select name=\"FastFind1\" onchange=\"javascript:document.FastFindForm1.submit();\">\
          <option selected value=\"-1\">Select Enclosed Power Type</option>\
          <option value=\"0\">ALL PRODUCTS</option>\
          <option value=\"1\">G3 Series - Reduced Size</option>\
          <option value=\"2\">G2 Series - Safety Certified</option>\
          <option value=\"3\">G1 Series - Non Safety Certified</option>\
          <option value=\"4\">Modular Series</option>\
          <option value=\"5\">PFC Series</option>\
	  <option value=\"6\">Din-Rail Series</option>\
	  <option value=\"7\">Parallel Series - High Power</option>\
          <option value=\"8\">AD Series - Power w/Charger</option>\
        </select>\
       </form></td>\
     <td valign=\"top\" align=\"left\" nowrap>\
      <form name=\"FastFindForm2\" action=\"search.html\">\
        <img src=\"images/clear.gif\" width=\"30\" height=\"1\">\
        <select name=\"FastFind2\" onchange=\"javascript:document.FastFindForm2.submit();\">\
          <option selected value=\"-1\">Select other Power Type</option>\
          <option value=\"0\">ALL PRODUCTS</option>\
          <option value=\"9\">Open Frame - General PCB</option>\
          <option value=\"10\">Open Frame - Medical Type</option>\
          <option value=\"11\">DC/DC Converter - Enclosed Type</option>\
          <option value=\"12\">DC/DC Converter - Module Type</option>\
          <option value=\"13\">DC/DC Converter - On Board Type</option>\
          <option value=\"14\">Wall-Mounted</option>\
          <option value=\"15\">Desktop ( O/Medical)</option>\
          <option value=\"16\">Battery Charger</option>\
          <option value=\"17\">DC/AC Inverter</option>\
          <option value=\"18\">ATX</option>\
          <option value=\"19\">Video Game</option>\
          <option value=\"20\">Accessories</option>\
       </select>\
      </form></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=\"images/clear.gif\" width=\"1\" height=\"1\"></td>\
  </tr>\
</table>\
<table width=\"100%\" border=\"0\" background=\"images/hori_rulefill.gif\" height=\"1\" cellspacing=\"0\" cellpadding=\"0\">\
  <tr>\
    <td width=\"100%\" height=\"1\" >\
      <img src=\"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=\"images/clear.gif\" width=\"1\" height=\"10\">\
      <img src=\"images/largeArrow_grey_34x11.gif\" width=\"34\" height=\"11\"></td>\
    <td width=\"412\"> <img src=\"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=\"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);
}

