function preLoad() {
  	for(var i=1;i<7;i++) {
		// English
		eval("image" + i + "off = new Image()");
  		eval("image" + i + "off.src = '/Nesquik/img/rnav/roll_img_" + i + "off.gif'");
		eval("image" + i + "on = new Image()");
  		eval("image" + i + "on.src = '/Nesquik/img/rnav/roll_img_" + i + "on.gif'");
		eval("image" + i + "here = new Image()");
  		eval("image" + i + "here.src = '/Nesquik/img/rnav/roll_img_" + i + "here.gif'");


	}
}

preLoad();					

function changeImages() {
  if (document.images) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
    }
  }
}


// load parent window
function loadParent(loc) {
		opener.name = "main";
		var nba = window.open('','main');
		//var nba = window.opener;
		nba.location = loc;
		nba.focus();
}

// Pop-up script added May 2003
	
	var ie5 = (document.all && document.getElementbyID) ? false : true;
	var isMac = (navigator.appVersion.indexOf("Mac") == -1) ? false : true;
	var win, win2;	

	function openWin(url, popWidth, popHeight, popLocation, popScroll, popStatus) {
		var winName =  "popup";
		// popStatus is a new parameter; it is optional so that old calls will not cause an error
		var statusBar = popScroll; 
		
		if (popStatus != null) { 
			statusBar  = popStatus;
			// 'fix' for Mac IE's problem when including a status bar in the pop up window
			// - the browser chops off the bottom 18 pixels of the window to accomodate for the
			//   the status bar, and so we add 18 pixels to the height			
			if (!ie5 && !ns && isMac) { popHeight += 18; }
		}

		if(win) {
			if(!win.closed) {
				//if(win.name == "popup") winName = "popup2";	
			  	win.close(); 
			}			
			win = null;	
		}
		
		var winLeft = screen.width - popWidth - 30;
		
		win=window.open(url, 'paed', 'width=' + popWidth + ',height=' + popHeight + ',screenX=25,screenY=' + winLeft + ',left=50,top=10,menubar,toolbar,location=' + popLocation + ',scrollbars=' + popScroll + ',resizable=no,status=' + statusBar + '');
		
		if (win.opener == null) win.opener = self;
		win.focus();
	}


// end of pop-up
