function MM_swapImgRestore() { 
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { 
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { 
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { 
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function BookmThis() {
  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
    var url= document.URL;
    var title= document.title;
    window.external.AddFavorite(url,title);
  }
  else {
    var msg = "Add this page to your favorites! Press";
    if(navigator.appName == "Netscape") msg += " (CTRL-D)";
    alert(msg);
  }
}

function OpenWin(theURL,winName,features) {
  window.open(theURL,winName,features);
}



function reloadPage(init) { 
  if (init==true) with (navigator) {
    if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
	    document.pagew=innerWidth; document.pageh=innerHeight; onresize=reloadPage; 
	}
  } else if (innerWidth!=document.pagew || innerHeight!=document.pageh) location.reload();
}

function fwLoadMenus() {
  if (window.fw_menu_0) return;
  window.fw_menu_0 = new Menu("root",194,19,"Arial, Helvetica, sans-serif",12,"#ffffff","#000000","#000080","#cccccc");
  fw_menu_0.addMenuItem("Products Overview","location='/products/suction-valves.html'");
  fw_menu_0.addMenuItem("Suction Valves","location='/products/valves-covers.html'");
  fw_menu_0.addMenuItem("Additional Information","location='/products/addinfo.html'");
  fw_menu_0.addMenuItem("Consulting and Modernization","location='/products/consulting-repair.html'");
   fw_menu_0.fontWeight="bold";
   fw_menu_0.hideOnMouseOut=true;
  window.fw_menu_2 = new Menu("root",173,19,"Arial, Helvetica, sans-serif",12,"#ffffff","#000000","#000080","#cccccc");
  fw_menu_2.addMenuItem("List modernized vessels","location='/clients/ships.html'");
  fw_menu_2.addMenuItem("Testimonials","location='/clients/testimonials.php'");
  fw_menu_2.addMenuItem("Customer Support","location='/contacts/customer-support.html'");
   fw_menu_2.fontWeight="bold";
   fw_menu_2.hideOnMouseOut=true;
  window.fw_menu_3 = new Menu("root",150,19,"Arial, Helvetica, sans-serif",12,"#ffffff","#000000","#000080","#cccccc");
  fw_menu_3.addMenuItem("Strategy - Partnership","location='/partners/partners.html'");
  fw_menu_3.addMenuItem("Ukrainian Enterprises","location='/partners/black-sea.html'");
   fw_menu_3.fontWeight="bold";
   fw_menu_3.hideOnMouseOut=true;
  window.fw_menu_4 = new Menu("root",139,19,"Arial, Helvetica, sans-serif",12,"#ffffff","#000000","#000080","#cccccc");
  fw_menu_4.addMenuItem("President says","location='/company/speech.html'");
  fw_menu_4.addMenuItem("Our Strategy","location='/company/strategy.html'");
  fw_menu_4.addMenuItem("Quality","location='/company/quality.html'");
  fw_menu_4.addMenuItem("History","location='/company/history.html'");
  fw_menu_4.addMenuItem("Contact information","location='/contacts/contact-information.html'");
   fw_menu_4.fontWeight="bold";
   fw_menu_4.hideOnMouseOut=true;

  fw_menu_4.writeMenus();
} 

