	var imgPrefix = "nav_";
	var imgPath = "/images/";
	
	for(var x=1;x<=6;x++){
		eval(imgPrefix  + x + ' = new Image();');
		eval(imgPrefix  + x + '.src = "' + imgPath + imgPrefix + x + '.gif"');

		eval(imgPrefix  + x + '_on = new Image();');
		eval(imgPrefix  + x + '_on.src = "' + imgPath + imgPrefix + x + '_on.gif"');
	}
	
	function init(){
		//alert(activepage);
		if(typeof(activepage) != 'undefined'){
			document.getElementById("i" + activepage).src = eval(imgPrefix + activepage + '_on.src');
		
			var theImg = document.getElementById("i" + activepage );
			theImg.onmouseover = null;
			theImg.onmouseout = null;
		}
		
		/*
		theImg.onmouseover = function(){
			this.src = eval(imgPrefix + activepage + '_on.src');
		};
		theImg.onmouseout = function(){
			this.src = eval(imgPrefix + activepage + '.src');
		};
		*/

	}
	
	function doRoll(theImg, imgNum, setTo, subNav){
		if(setTo == "on"){
			theImg.src = eval(imgPrefix + imgNum + '_on.src');
		}
		else{
			theImg.src = eval(imgPrefix + imgNum + '.src');
		}
	}
	
	var popwindow;
	function popRecipe(recNo){
		var popheight = 700;
		var popwidth = 600;
		
		if (parseInt(navigator.appVersion)>3) {
 			screenwidth = screen.width;
 			screenheight = screen.height;
		}
		else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)==3  && navigator.javaEnabled()) {
 			var jToolkit = java.awt.Toolkit.getDefaultToolkit();
 			var jScreenSize = jToolkit.getScreenSize();
 			screenwidth = jScreenSize.width;
 			screenheight = jScreenSize.height;
		}
			
		var top = parseInt((screenheight - popheight)/2);
		var left = parseInt((screenwidth - popwidth)/2);
		
		popwindow = window.open("recipes_popup.shtml?r=" + recNo, 'recipe', 'height='+popheight+',width='+(popwidth+15)+',scrollbars=yes,location=no,top='+top+',left='+left);
	}	

	function sendPop(URL){
		window.open(URL, 'send', 'height=327,width=478,scrollbars=yes')
	}
	function vidpop(URL){
		window.open(URL, 'send', 'height=255,width=320,scrollbars=yes')
	}	