/*
Rollover images for top nav
*/

image1 = new Image();
image1.src = "images/nav/nav_mgmtsystem.gif";
image1on = new Image();
image1on.src = "images/nav/nav_mgmtsystem_over.gif";

image2 = new Image();
image2.src = "images/nav/nav_web.gif";
image2on = new Image();
image2on.src = "images/nav/nav_web_over.gif";

image3 = new Image();
image3.src = "images/nav/nav_mobileweb.gif";
image3on = new Image();
image3on.src = "images/nav/nav_mobileweb_over.gif";

image4 = new Image();
image4.src = "images/nav/nav_textmsg.gif";
image4on = new Image();
image4on.src = "images/nav/nav_textmsg_over.gif";

image5 = new Image();
image5.src = "images/nav/nav_displays.gif";
image5on = new Image();
image5on.src = "images/nav/nav_displays_over.gif";

image6 = new Image();
image6.src = "images/nav/nav_journeyplanner.gif";
image6on = new Image();
image6on.src = "images/nav/nav_journeyplanner_over.gif";

image7 = new Image();
image7.src = "images/nav/nav_riderinfo.gif";
image7on = new Image();
image7on.src = "images/nav/nav_riderinfo_over.gif";

image8 = new Image();
image8.src = "images/nav/nav_widget.gif";
image8on = new Image();
image8on.src = "images/nav/nav_widget_over.gif";

/*
Rollover functionas
*/
function on(pNameOfImg) {
	document[pNameOfImg].src = eval(pNameOfImg + "on.src");
	}	
	
function out(pNameOfImg) {
	document[pNameOfImg].src = eval(pNameOfImg + ".src");
	}
	
/*---------------------------------------------------------------
WindowPopup() - Popup helper function
---------------------------------------------------------------*/
function WindowPopup(pPopupURL)
{
	window.open(pPopupURL, '', 'width=550,height=425,resizable=yes');
}

/*---------------------------------------------------------------
WindowGoAndPopup() - Popup helper, with redirect
---------------------------------------------------------------*/
function WindowGoAndPopup(pPopupURL, pRedirectURL)
{
	window.location = pRedirectURL
	window.open(pPopupURL, '', 'width=550,height=425,resizable=yes');
}