

function VideoPage(page, H, W) {

	var window_top = 10;
	var window_left = 10;

	if (window.screen.availHeight){
      		window_top = (window.screen.availHeight / 2) - (H / 2) - 10;
     		 window_left = (window.screen.availWidth / 2) - (W / 2) - 10;
	}

	var settings = "toolbar=NO,menubar=NO,location=NO,scrollbars=YES,resizable=YES,HEIGHT="+H+",WIDTH="+W;
	OpenWin = this.open(page, H, settings);
	OpenWin.focus();  
}

var preloadFlag = false; // Set to True After the HTML page is loaded. 

// This Function sets the Image shown is the Roll over state.
// It is called in the <body> tag
function stickImage(what) {
	if (what != "none"){
		document[what].src = "/images/nav_" + what + "_over.jpg";
		stickImage = what;
	}
}

// This Funtion Helps Preload the rollover images
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

// This Function Handles the "Roll Overs".
function changeImage(what, image) {
	if (what != stickImage && preloadFlag) {
			document[what].src = image;
	}
}

// This Function Pre loads The Rollover images
function preloadImages() {
	if (document.images) {

		loader = newImage("/images/leftNavigation_button_over.gif");
		preloadFlag = true;	
	}
}

preloadImages();
