function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

MM_reloadPage(true);

var barDat = new Object;
//total number of drop downs
barDat.menuPaneNum =5;
//width of drop down button
barDat.menuPane_width = 91;
//height of drop down button
barDat.menuPane_height = 27;
//height of drop down menu item
barDat.menuItem_height =17;
//width of drop down menu item
barDat.menuItem_width = 138;
//initial z-index of whole menu
barDat.ini_z = 10;
//x position of menu
barDat.menu_x =20;
//y postion of menu
barDat.menu_y =30;

var PgHighLight =-1;
var TopBarOnOff=0;
var DropDownOnOff=-1;
var DpDown=-1;
var pageLocation;
var string='';
var Onpage=1;


if (lmgLocation =="pages/")
{
pageLocation="";

}

else
{
pageLocation="../";

}


//var BarPos=[0,110,280,420,110,70,105,130];
var BarPos=[0,220,330,500,640,770,105,130];


var menuPane=[pageLocation+'index.htm',lmgLocation+'products.htm',lmgLocation+'welcome.htm',lmgLocation+'retailers.htm',lmgLocation+'contact_us.htm',lmgLocation+'links.htm','javascript:onClick=MM_openBrWindow3(\'http://www.synapsetech.biz/clients/bonusprint \',\'\',\'toolbar=no,scrollbars=yes,resizable=yes,width=800,height=550\')\"'];
var ark=[[],['Products','Spares & Accessories'],['Welcome','Moulinex Guarantee','Contact Us','User Instructions','Spares & Accessories'],['Buy on Line','Retailers','Spares & Accessories'],[]];

var bark = [[],[lmgLocation+'products.htm',lmgLocation+'spares_accessories.htm'],[lmgLocation+'welcome.htm',lmgLocation+'moulinex_guarantee.htm',lmgLocation+'contact_us.htm',lmgLocation+'download.htm',lmgLocation+'spares_accessories.htm'],[lmgLocation+'buy_on_line.htm',lmgLocation+'retailers.htm',lmgLocation+'spares_accessories.htm',1],[]];

var LinksPopUp =['film_processing.htm', 'film_processing.htm'];

function preload(){ this.length = preload.arguments.length;for(var i=0; i<this.length; i++){this[i] = new Image();this[i].src = preload.arguments[i];}}


var pics = new preload(lmgLocation+"images/bar0_off.gif",lmgLocation+"images/bar1_off.gif", lmgLocation+"images/bar2_off.gif",lmgLocation+"images/bar3_off.gif",lmgLocation+"images/bar4_off.gif",lmgLocation+"images/bar5_off.gif",lmgLocation+"images/bar6_off.gif",lmgLocation+"images/bar7_off.gif",lmgLocation+"images/bar0_on.gif",lmgLocation+"images/bar1_on.gif",lmgLocation+"images/bar2_on.gif",lmgLocation+"images/bar3_on.gif",lmgLocation+"images/bar4_on.gif",lmgLocation+"images/bar5_on.gif",lmgLocation+"images/bar6_on.gif",lmgLocation+"images/bar7_on.gif",lmgLocation+"images/bar8_on.gif",lmgLocation+"images/sw0_on.gif",lmgLocation+"images/sw0_off.gif");


var pics2 = new preload(lmgLocation+"images/nav_6_On.gif",lmgLocation+"images/nav_7_On.gif",lmgLocation+"images/nav_8_On.gif",lmgLocation+"images/nav_6_Off.gif",lmgLocation+"images/nav_7_Off.gif",lmgLocation+"images/nav_8_Off.gif",lmgLocation+"images/rest.gif",lmgLocation+"images/bit.gif");


function renderM(highlight){
		var xx = '';
	
		for(var i = 0; i < barDat.menuPaneNum; i++){
			

			xx += '<DIV id=\"LB' + i + '\" style=\"position:absolute;left:' + (barDat.menu_x + ( BarPos[i])) + ';top:' +
					   barDat.menu_y + ';width:1 ;height:' +  barDat.menuPane_height + ';z-index:' + 
					   (barDat.ini_z + 100 +  (i* 100)) + '\">';
			barDat.ini_z++;

/*if (( menuPane[i] >=0) &&  (menuPane[i] <=10))
{

xx +='<a href=\"javascript:onClick=MM_openBrWindow3(\'mainpricing.html\',\'\',\'toolbar=yes,scrollbars=yes,resizable=yes,width=665,height=450\')\">';

//xx += '<a href=\"'+menuPane[i]+ '?OnpageA='+i+'\" onMouseOver=\"nOver(' + i + ')\" onMouseOut=\"nOut(' + i + ')\">';


}
else
		*/	{

			xx += '<a href=\"'+menuPane[i]+ '?OnpageA='+i+'\" onMouseOver=\"nOver(' + i + ')\" onMouseOut=\"nOut(' + i + ')\">';

			}



			xx += '<img name=\"ma' + i + '\" src=\"' + lmgLocation+ 'images/bar' + i + '_off.gif\" ' +  '\" border=\"0\">';
			xx += '</a></DIV>';
			
			for (var j = 0; j < ark[i].length; j++){

				xx += '<DIV id=\"LA' + i + j + '\" style=\"position:absolute;left:' + (barDat.menu_x + (BarPos[i])) + ';top:' + 
					       (barDat.menu_y + barDat.menuPane_height + (j * barDat.menuItem_height)) + ';width:' + barDat.menuItem_width +
						   ';height:' + barDat.menuItem_height + ';z-index:' + (barDat.ini_z + 100 +  (i* 100)) + ';border:0px;visibility: hidden;\">';
				barDat.ini_z++;
				xx += '<IMG name=\"im' + i + j + '\" src=\"' + lmgLocation+ 'images/sw1_off.gif\" width=\"' + barDat.menuItem_width +'\" height=\"' +
						  barDat.menuItem_height  + '\" border=\"0\"></div>';

				xx += '<DIV id=\"LC' + i + j + '\" style=\"position:absolute;left:' + (barDat.menu_x + ( BarPos[i])) + ';top:' + 
					       (barDat.menu_y + barDat.menuPane_height + (j * barDat.menuItem_height)) + ';width:' + barDat.menuItem_width +
						   ';height:' + barDat.menuItem_height + ';z-index:' + (barDat.ini_z + 100 +  (i* 100)) +
						   ';border:0px;visibility: hidden;font-family:Comic Sans MS;font-size:8pt;font-weight:400;color:#616267\">&nbsp;' + ark[i][j];
				barDat.ini_z++;
				xx += '</div>';

				xx += '<div id=\"LE' + i + j + '\" style=\"position:absolute;left:' + (barDat.menu_x + (BarPos[i])) +  ';top:' + 
					       (barDat.menu_y + barDat.menuPane_height + (j * barDat.menuItem_height)) + ';width:'+ barDat.menuItem_width +
						   ';height:' + barDat.menuItem_height + ';z-index:' + (barDat.ini_z + 100 +  (i* 100)) + ';border:0px;visibility: hidden;;\">';
				barDat.ini_z++;

  if (( bark[i][j] >=0) &&  (bark[i][j] <=10))
{

bark[i][j]=lmgLocation+LinksPopUp[ bark[i][j] ]+'?OnpageA='+i +' \" onClick=\"MM_openBrWindow2()';

}
else
{
bark[i][j]+='?OnpageA='+i;
				
}
				xx+= '<a href=\"' + bark[i][j] + '\"   onMouseOver=\"bOver(' + i + ',' + j + ')\" onMouseOut=\"bOut(' + i + ',' + j + ')\"><img name=\"jm'
						  + i + j + '\" src=\"' + lmgLocation+ 'images/mt.gif\" width=\"' + barDat.menuItem_width + '\" height=\"' + barDat.menuItem_height + '\" border=\"0\">';
				barDat.ini_z++;
				xx += '</a></div>';
			}
		}
	document.write(xx);
//Alba mouseover//
Display='<div id="mask" style="position:absolute;   width:580px; height:180px; z-index:100; left: 20px; top:30px; visibility: hidden;"><img src="' + lmgLocation +'images/mouseover.gif" width="100%" height="100%" border="0" usemap="#mouseovermap"><map name="mouseovermap">';
//Ade's mouseover//
//Display='<div id="mask" style="position:absolute;   width:580px; height:280px; z-index:100; left: 400px; top:130px; visibility: hidden;"><img src="' + lmgLocation +'images/mouseover.gif" width="100%" height="100%" border="0" usemap="#mouseovermap"><map name="mouseovermap">';

Display +=' <area shape="rect" coords="2,24,752,348" onMouseOver="mOver(1)"></map></div>';


 document.write(Display);
	
 initFormString = location.search.substring(1);
	string =initFormString;
	for(var g=0; g<initFormString.length; g++)
	{
	string = replace(string,"+"," ");
	}
 Onpage =getParm("OnpageA");3




if(!Onpage)
{
Onpage=0;
}

//topnav();

pageOn(Onpage);

}



/*var Alba='<div id="tellfriend" style="position:absolute; left:11px; top:700px; width:129px; height:28px; z-index:900">  <table> <tr> <td><a href="javascript:onClick=MM_openBrWindow4()\"><img src=\"'+lmgLocation+'images/tell_friend.jpg\" alt="Tell a friend about us" width=\"140\" height=\"30\"  border=\"0\"></a>';

document.write(Alba);*/