function popWindow(popURL, height, width) {
	theWindow=window.open( popURL, "theWindow", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=" + width + ",height=" + height + "");
	theWindow.opener=self;
	setTimeout("theWindow.focus();",200);
};

function preloadImages(preFix, sTart, fInish, pAth) {
	if (document.images) {
		for (var i=sTart; i<=fInish; i++) {
			//preload on images
			newImage = preFix + i + "on = new Image()";
			loCation = pAth + preFix + i + "on.gif";
			newImageSRC = preFix + i + "on.src = \"" + loCation + "\"";
			eval(newImage);
			eval(newImageSRC);

			//preload off images
			newImage = preFix + i + "off = new Image()";
			loCation = pAth + preFix + i + "off.gif";
			newImageSRC = preFix + i + "off.src = \"" + loCation + "\"";
			eval(newImage);
			eval(newImageSRC);
		};
	};
};

function change(Name,OnOff) {
	if (document.images) {
		document [Name].src = eval(Name + OnOff + ".src");
	};
};

preloadImages('m',1,5,'images/');

function goTo(where) {
	var appHeight
	if (screen.availHeight>550 && screen.availHeight<=600) {
		appHeight=screen.availHeight
	}else{
		appHeight=550;
	}
	
	appWindow = window.open('../flash_home.asp?dest='+where,'appWindow','toolbar=0,location=0,directories=0,false=0,menubar=0,scrollbars=0,resizable=0,width=50,height=50')
	appWindow.moveTo(0,0)
	appWindow.resizeTo(800,appHeight)
	appWindow.focus();
}
