
function updateFlash() {
	theObjects = document.getElementsByTagName("object");
	for (var i = 0; i < theObjects.length; i++) {
		theObjects[i].outerHTML = theObjects[i].outerHTML;
	}
}
function actualSite() {
	if (location.href.indexOf("staging") == -1) {
		varPath = location.href.split("127.0.0.1:81/");
	} else {
		varPath = location.href.split("planet/");
	}
	varPath = varPath[1].substring(0, 3);
	varPath = (varPath == "") ? "ind" : varPath;
	for (i = 0; i < (document.getElementsByTagName("a").length); i++) {
		if (document.getElementsByTagName("a")[i].id == varPath) {
			document.getElementsByTagName("a")[i].className = "nav1_on";
			break;
		}
	}
	for (i = 0; i < (document.getElementsByTagName("p").length); i++) {
		if (document.getElementsByTagName("p")[i].id == varPath) {
			document.getElementsByTagName("p")[i].className = "nav1_on";
			break;
		}
	}
}
function change_over(i) {
	alert(document.path);
	if (i != document.getElementsByTagName("title")[0].text) {
		this.className = "navLinks";
	}
}
function change_out(i) {
	if (i != document.getElementsByTagName("title")[0].text) {
		document.getElementById(i).className = document.getElementById(i).className.substring(0, document.getElementById(i).className.length - 2);
	}
}
function popup(url, w, h) {
	if (typeof w == "undefined") {
		w = 640;
	}
	if (typeof h == "undefined") {
		h = 480;
	}
	win = window.open(url, "viewer", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=" + w + ",height=" + h);
	win.focus();
}
function popupNoScroll(url, w, h) {
	if (typeof w == "undefined") {
		w = 640;
	}
	if (typeof h == "undefined") {
		h = 480;
	}
	win = window.open(url, "viewer", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=" + w + ",height=" + h);
	win.focus();
}
function winopen(url, w, h) {
	if (typeof w == "undefined") {
		w = 640;
	}
	if (typeof h == "undefined") {
		h = 480;
	}
	if (navigator.userAgent.indexOf("Mac") != -1) {
		newwindow = window.open(url, "viewer_win", "directories=0,location=1,menubar=1,scrollbars=1,status=0,toolbar=1,resizable=1,width=" + w + ",height=" + h + ",screenx=0,screeny=0");
		if (navigator.appName == "Netscape" && parseInt(navigator.appVersion.substring(0, 1)) >= 3) {
			newwindow.focus();
		}
	} else {
		newurl = url;
		newwindow = window.open(newurl, "viewer_win", "directories=0,location=1,menubar=1,scrollbars=1,status=0,toolbar=1,resizable=1,width=" + w + ",height=" + h + ",screenx=0,screeny=0");
		newwindow.focus();
	}
}
function openPopup(url, w, h) {
	if (typeof w == "undefined") {
		w = 640;
	}
	if (typeof h == "undefined") {
		h = 480;
	}
	if (navigator.userAgent.indexOf("Mac") != -1) {
		newwindow = window.open(url, "viewer_win", "directories=0,scrollbars=0,status=0,toolbar=0,width=" + w + ",height=" + h + ",screenx=0,screeny=0");
		if (navigator.appName == "Netscape" && parseInt(navigator.appVersion.substring(0, 1)) >= 3) {
			newwindow.focus();
		}
	} else {
		newurl = url;
		newwindow = window.open(newurl, "viewer_win", "directories=0,scrollbars=0,status=0,toolbar=0,width=" + w + ",height=" + h + ",screenx=0,screeny=0");
		newwindow.focus();
	}
}
function popupScroll(url, w, h) {
	if (typeof w == "undefined") {
		w = 640;
	}
	if (typeof h == "undefined") {
		h = 480;
	}
	if (navigator.userAgent.indexOf("Mac") != -1) {
		newwindow = window.open(url, "viewer_win", "directories=0,scrollbars=1,resizable=1,status=0,toolbar=0,width=" + w + ",height=" + h + ",screenx=0,screeny=0");
		if (navigator.appName == "Netscape" && parseInt(navigator.appVersion.substring(0, 1)) >= 3) {
			newwindow.focus();
		}
	} else {
		newurl = url;
		newwindow = window.open(newurl, "viewer_win", "directories=0,scrollbars=1,resizable=1,status=0,toolbar=0,width=" + w + ",height=" + h + ",screenx=0,screeny=0");
		newwindow.focus();
	}
}
function winopen_kl(url) {
	openPopup(url, "520", "560");
}

