if (document.layers) 
	document.write("<SCRIPT LANGUAGE=\"JavaScript1.2\" SRC=\"/jsp/layered.js\"><\/SCRIPT>");
else 
 	document.write("<SCRIPT LANGUAGE=\"JavaScript1.2\" SRC=\"/jsp/unlayered.js\"><\/SCRIPT>");

if (navigator.appVersion.indexOf("Mac") != -1){

if (navigator.appVersion.indexOf("MSIE 5") != -1){
document.write("<style>");
document.write("DIV.newsspin { top: 30px;left:267;}");
document.write("DIV.pagetext { top: 250px;}");
document.write("DIV.d100text { top: 180px;}");
document.write("</style>");
}
else if (navigator.appVersion.indexOf("MSIE 4") != -1) {
document.write("<style>");
document.write("DIV.newsspin { top: 90px;left:144;}");
document.write("DIV.pagetext { top: 480px;}");
document.write("DIV.d100text { top: 520px;}");
document.write("</style>");
}
else  {
// late netscape 4 on Mac
if (navigator.appVersion.substring(0,3)-4.5>0){
document.write("<style>");
document.write("DIV.newsspin { top: 105px;}");
document.write("DIV.pagetext { top: 380px;}");
document.write("DIV.d100text { top: 340px;}");
document.write("</style>");
}
else {
// early netscape 4 on Mac
document.write("<style>");
document.write("DIV.newsspin { top: 125px;left:267;}");
document.write("DIV.pagetext { top: 370px;}");
document.write("DIV.d100text { top: 360px;}");
document.write("</style>");
}

}

}
else{
	//netscape <4.8 on PC
	if ((navigator.appVersion.indexOf("MSIE") == -1)&&(navigator.appVersion.substring(0,3)-4.8<0)){
	document.write("<style>");
	document.write("DIV.newsspin { left:266;top:104;}");
	document.write("</style>");

	}
}
bVer = parseInt(navigator.appVersion);
if (document.images) {            // Active Images - load button images
var go_F1=new Image(30,20); go_F1.src="/graphics/goup.gif";
var go_F2=new Image(30,20); go_F2.src="/graphics/godn.gif";
}
if (document.layers) {
visible = 'show';
hidden = 'hide';
} else {
visible = 'visible';
hidden = 'hidden';
}
function getObject(sID) {
if (document.layers) {
return document.layers[sID];
} else if (document.all) {
return document.all(sID).style;
} else if (document.getElementById) {
return document.getElementById(sID).style;
}
}
function show(sID) {
if (bVer>3) getObject(sID).visibility = visible;
}
function hide(hID) {
if (bVer>3) getObject(hID).visibility = hidden;
}
var nCurrentt=1;  
function tshow(n) {
if (nCurrentt!=n) {
hide('txtPage'+nCurrentt);
show('txtPage'+n);
nCurrentt=n;
}
}
function goVideo(vidfile){
var w = window.open("","_new","height=350,width=400");
w.location.href="video.jsp?vidfile="+vidfile;
}
function goPrivacy(){
    pop('privacy','privacy.htm',700,500);
}
function goTerms(){
    window.open('terms.htm','terms',"width=700,height=500,scrollbars=1");
}
function pop(name,src,w,h) {
window.open(src,name,"width="+w+",height="+h);
}
function goVideoz(vidfile){
var w = window.open("","_new","height=350,width=400");
w.location.href="video.jsp?vidfile="+vidfile+"&vz=1";
}
function goToPage(formSelect){
	var formIdx = eval("document."+formSelect+".selectedIndex");
	var formOpts = eval("document."+formSelect+".options");
	if (formIdx!=0 && formOpts[formIdx].value!=""){
		window.location = formOpts[formIdx].value;
		return true;
	}
	return false;
}