imgMenu = new Array();
imgMenuh = new Array();
//Menu Images
imgMenu[0] = new Image();
imgMenu[0].src = "/images/en/nav/pn_products_en.gif";
imgMenu[0].width = 129;
imgMenu[0].height = 29;

imgMenu[1] = new Image();
imgMenu[1].src = "/images/en/nav/pn_recipes_en.gif";
imgMenu[1].width = 106;
imgMenu[1].height = 29;

imgMenu[2] = new Image();
imgMenu[2].src = "/images/en/nav/pn_culinary_en.gif";
imgMenu[2].width = 173;
imgMenu[2].height = 29;

imgMenu[3] = new Image();
imgMenu[3].src = "/images/en/nav/pn_business_en.gif";
imgMenu[3].width = 170;
imgMenu[3].height = 29;

imgMenuh[0] = new Image();
imgMenuh[0].src = "/images/en/nav/pn_products_h_en.gif";
imgMenuh[0].width = 129;
imgMenuh[0].height = 29;

imgMenuh[1] = new Image();
imgMenuh[1].src = "/images/en/nav/pn_recipes_h_en.gif";
imgMenuh[1].width = 106;
imgMenuh[1].height = 29;

imgMenuh[2] = new Image();
imgMenuh[2].src = "/images/en/nav/pn_culinary_h_en.gif";
imgMenuh[2].width = 173;
imgMenuh[2].height = 29;

imgMenuh[3] = new Image();
imgMenuh[3].src = "/images/en/nav/pn_business_h_en.gif";
imgMenuh[3].width = 170;
imgMenuh[3].height = 29;


	var new_window;
	var orig_img;

	//Function to get offset top and left attributes	
	function getOffset(intSide) 
	{   
		var top = 0, left = 0;   
		
		var myTarget = image1; 
				
		while(myTarget!= document.body) 
		{      
			top += myTarget.offsetTop;      
			left += myTarget.offsetLeft;      
			myTarget = myTarget.offsetParent;   
		}   
		
		
		top += image1.height;
		
		self.status = 'Top: ' + top + 'left: ' + left;
		//self.status = navigator.appName;
			
		if (intSide == 0)
		{
			return top;
		}
		
		else if (intSide == 1)
		{
			return left;
		}
			
	} 
	
	
	function swapMenuImage(objImg,intIdx,intMode)
	{
		
		if (intMode == 0)
		{
			objImg.src = imgMenu[intIdx].src;			
		}
		//Swap to highlighted
		if (intMode == 1)
		{
			objImg.src = imgMenuh[intIdx].src;			
		}
	}
	
	//Mouseover functions
	function divDisplay(objIn, intIdx, intMode)
	{
		//Hide

		if (intMode == 1)
		{
			 if (document.getElementById) 
			 {			 	
			 	document.getElementById(objIn).style.visibility = 'visible';
			 	
			 }
			 else if (document.layers && document.layers[objIn]) 
			 {
			 	document.layers[objIn].visibility = 'visible';
			 	
			 }
			 else if (document.all) 
			 {
			 	document.all[objIn].style.visibility = 'visible';
				 	
			 }
			 
			 

		}
		//Show
		if (intMode == 0)
		{
			//objImage.style.visibility = "hidden";
			//document.objImage.visibility = "hidden";
			if (document.getElementById) 
			{
				document.getElementById(objIn).style.visibility = 'hidden';
				
			}
			else if (document.layers && document.layers[objIn]) 
			{
				document.layers[objIn].visibility = 'hidden';
				
			}
			else if (document.all) 
			{
				document.all[objIn].style.visibility = 'hidden';
			}
					
				
		}
		
	}
	
	function swapImage(imgName,intIndex,intMode)
	{
		
		var objImage = document.getElementById("divProdText")
		
		//Swap to full opacity image
		if (intMode == 0)
		{
			
			
			imgName.src = imgProdh[intIndex].src;
			
			
			//Problems with Netscape offsetTop / offSetleft properties
			//objImage.style.top = getOffset(0);
			//objImage.style.left = getOffset(1);
				

			 if (document.getElementById) 
			 {			 	
			 	document.getElementById("imgDivText").src = imgProdTxt[intIndex].src;
			 	document.getElementById("divProdText").style.visibility = 'visible';
			 	
			 }
			 else if (document.layers && document.layers["divProdText"]) 
			 {
			 	document.layers["imgDivText"].src = imgProdTxt[intIndex].src;
			 	document.layers["divProdText"].visibility = 'visible';
			 	
			 	
			 }
			 else if (document.all) 
			 {
			 	document.all["imgDivText"].src = imgProdTxt[intIndex].src;
			 	document.all["divProdText"].style.visibility = 'visible';
			 	
			 }

				

			
			
		}
		
		//Swap back to half opacity image
		if (intMode == 1)
		{
			imgName.src = imgProd[intIndex].src;
			//objImage.style.visibility = "hidden";
			//document.objImage.visibility = "hidden";
			if (document.getElementById) 
			{
				document.getElementById("imgDivText").src = imgBlankTxt.src;
				//document.getElementById("divProdText").style.visibility = 'hidden';
				
			}
			else if (document.layers && document.layers["divProdText"]) {
				document.layers["imgDivText"].src = imgBlankTxt.src;
				//document.layers["divProdText"].visibility = 'hidden';
				
			}
			else if (document.all) {
				document.all["imgDivText"].src = imgBlankTxt.src;
				//document.all["divProdText"].style.visibility = 'hidden';
			}
			


		}
		
	}
	
	function PFWindow(obImg)
	{
		var obImage = obImg;
		var intWidth = obImage.width;
		var intHeight = obImage.height;
		
		
		new_window = window.open("", "newWin", "toolbar=0, directories=0, status=0, menubar=0, scrollbars=no, resizable=0, width=" + intWidth + ", height=" + intHeight);
		new_window.document.close();
		
		if (parseInt(navigator.appVersion)>3) 
		{
			if (navigator.appName=="Netscape") 
			{
		    		new_window.outerWidth=obImage.width;
		    		new_window.outerHeight=obImage.height;
		   	}
		   	else new_window.resizeTo(obImage.width,obImage.height);
		}

		//new_window.resizeTo(obImage.width,obImage.height);
		new_window.document.write("<html><title></title>");
		new_window.document.write('<body style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;" >');
		new_window.document.write("<img src='" + obImage.src +  "' name='img1' id='img1' style='margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px; border:0px;' /></body></html>");	
		new_window.focus();
	}
	
	function openwindow(imgUrl)
	{
		var imgTemp = new Image();
		imgTemp.src = imgUrl;
		var intWidth = imgTemp.width;
		var intHeight = imgTemp.height;
		new_window = window.open("", "newWin", "toolbar=1, directories=0, status=0, menubar=1, scrollbars=0, resizable=0, width=" + intWidth + ", height=" + intHeight);
		new_window.document.write("<html><title></title>");
		new_window.document.write('<body style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;">');
		new_window.document.write("<img src='" + imgUrl + "' style='margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px; border:0px;' /></body></html>");
		//alert('Width: ' + intWidth + " Height: " + intHeight);
	}

	function newWindow(strUrl)
	{
		new_window = window.open(strUrl, "newWin", "toolbar=1, directories=0, status=0, menubar=1, scrollbars=1, resizable=1, width=620");
	}