function newImage(arg) {	if (document.images) {		rslt = new Image();		rslt.src = arg;		return rslt;	}}var preloadFlag = false;function preloadImages() {	if (document.images) {		logo_button_static = newImage("../gif/30fpsBare.gif");		logo_button_over = newImage("../gif/30fpsAnim.gif");		video_over = newImage("../gif/videoON.gif");		video_out = newImage("../gif/videoOFF.gif");	    video_static = newImage("../gif/videoOFFStatic.gif");		VR_over = newImage("../gif/VRON.gif");		VR_out = newImage("../gif/VROFF.gif");	    VR_static = newImage("../gif/VROFFStatic.gif");		resources_over = newImage("../gif/resourcesON.gif");		resources_out = newImage("../gif/resourcesOFF.gif");	    resources_static = newImage("../gif/resourcesOFFStatic.gif");		gallery_over = newImage("../gif/galleryON.gif");		gallery_out = newImage("../gif/galleryOFF.gif");	    gallery_static = newImage("../gif/galleryOFFStatic.gif");		preloadFlag = true;	}}function changeImages() {	if ((document.images) && (preloadFlag == true)) {		for (var i=0; i<changeImages.arguments.length; i+=2) {			document.getElementById(changeImages.arguments[i]).src = changeImages.arguments[i+1];		}	}}function reloadPage(init) {  //reloads the window if Nav4 resized  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {    document.pgW=innerWidth; document.pgH=innerHeight; onresize=reloadPage; }}  else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();}reloadPage(true);ns4 = (document.layers)? true:falseie4 = (document.all)? true:falsefunction load(page,thisLayer) {	if (ns4) document[thisLayer].src = page	else if (ie4) parent[thisLayer].document.location = page}function doClick(ev) {	// Test if there is a link	if (ev.target.href) {		//Find Layer for the target		var layer = document.layers[ev.target.target]		// if exists, set source, else ignore		if (layer) {			layer.src = ev.target.href			return false			}		}	this.routeEvent(ev)	return true}function hookupEvents(el) {	el.captureEvents(Event.CLICK)	el.onclick = doClick}var ieDHTML = document.all !=nullvar nsDHTML = document.layersfunction checkFrames() {	var iframes = window.frames	var numFrames = iframes.length	for (var i=0; i < numFrames; i++) {		var f = iframes[i]		if ((f.document.readyState=="complete") && (f.document.cached==null)) {			f.document.body.style.border = "none"			// Make sure we find the IFrame element since the layer tag also has an ID			// the same name as the IFrames name.			var elFrame = document.all[f.name].tags("IFRAME")[0]			elFrame.style.height = f.document.body.scrollHeight			f.document.cached = true		}	}	setTimeout("checkFrames()",100)}if (nsDHTML) {	window.captureEvents(Event.CLICK)	window.onclick = doClick}if (ieDHTML)	checkFrames()	var expDays = 30;var exp = new Date(); exp.setTime(exp.getTime() + (expDays*24*60*60*1000));// this handles browsers with old DOMs which don't recognize document.getElementById()if(document.all && !document.getElementById) {	document.getElementById = function(id) {		return document.all[id];	}}function getCookieVal (offset) {  var endstr = document.cookie.indexOf (";", offset);  if (endstr == -1)    endstr = document.cookie.length;  return unescape(document.cookie.substring(offset, endstr));}function GetCookie (name) {  var arg = name + "=";  var alen = arg.length;  var clen = document.cookie.length;  var i = 0;  while (i < clen) {    var j = i + alen;    if (document.cookie.substring(i, j) == arg)      return getCookieVal (j);    i = document.cookie.indexOf(" ", i) + 1;    if (i == 0) break;   }  return null;}function SetCookie (name, value) {  var argv = SetCookie.arguments;  var argc = SetCookie.arguments.length;  var expires = (argc > 2) ? argv[2] : null;  var path = (argc > 3) ? argv[3] : null;  var domain = (argc > 4) ? argv[4] : null;  var secure = (argc > 5) ? argv[5] : false;  document.cookie = name + "=" + escape (value) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) +  ((domain == null) ? "" : ("; domain=" + domain)) +    ((secure == true) ? "; secure" : "");}function DeleteCookie (name) {  var exp = new Date();  exp.setTime (exp.getTime() - 1);  var cval = GetCookie (name);  document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();}function goToURL(newLocation) {   window.location = newLocation;}app = "I";if(navigator.appName=="Netscape") {	app = "N";	}	if (app == "N") {	doc_ref = "document.layers";style_ref="";	}else {	doc_ref = "document.all";style_ref=".style";	}function checkForVRPlayerCookie() {	var favorite = GetCookie('panoPlayer');	if (favorite == null) {		parent.top_frame.location='launchSetCookie.html';		}	}function openVRPlayerWindow() {	window.open('testCookie.html','playerChoiceWindow','toolbar=no,location=no,menubar=no,resizable=yes,status=no,scrollbar=yes,width=500,height=250,left=100,top=0');	}	function openVRPlayerWindow2() {	window.open('playerChoice.html','playerChoiceWindow','toolbar=no,location=no,menubar=no,resizable=yes,status=no,scrollbar=yes,width=500,height=250,left=100,top=0');	}
