function init() {
	rotateImg();
	tick();
	loadWC('radar');
	loadChaseStatus();
	OneMinuteTimer();
}

var winW;
var winH;
function getBrowserSize() {
	if (parseInt(navigator.appVersion)>3) {
		 if (navigator.appName=="Netscape") {
		  winW = window.innerWidth-16;
		  winH = window.innerHeight-16;
		 }
		 if (navigator.appName.indexOf("Microsoft")!=-1) {
		  winW = document.body.offsetWidth-20;
		  winH = document.body.offsetHeight-20;
		 }
	}
}


<!-- rotator -->

var numpics = 36;
var pics = new Array(numpics);

for(i=1;i<=numpics;i++){
	tempPic = new Image();
	tempPic.src = "images/rotate/" + i + ".jpg";
	pics[i] = tempPic.src;
}

var delay=4000;

function rotateImg()
{
  var idx = Math.ceil(9*Math.random());
  var idx2 = Math.ceil(9*Math.random());
  var idx3 = Math.ceil(9*Math.random());
  var idx4 = Math.ceil(9*Math.random());
  document.getElementById("rotateImg1").src = pics[idx];
  document.getElementById("rotateImg2").src = pics[idx2 + 9];
  document.getElementById("rotateImg3").src = pics[idx3 + 18];
  document.getElementById("rotateImg4").src = pics[idx4 + 27];
  setTimeout('rotateImg()',delay);
}

function OneMinuteTimer() {	
	loadChaseStatus();
	window.setTimeout("OneMinuteTimer()", 60000);
}

atSign="@";
function sendNote(tag) {
	var tag1 = "";
	if(tag == 1)
		tag1 = "txt";
	if(tag == 2)
		tag1 = "steve";
	tag2 = "texastailchaser";
	window.location="mailto:"+tag1+atSign+tag2+".com";
}

function linker(path, newWin) {
	document.location.href = path;
	/*
	if(newWin) {
		popUp(path);
	}else{
		document.location.href = path;
	}
	*/
}

//look at the home page (index.htm) towards bottom
/*
function popUp(path) {
	if (navigator.appName == "Netscape" && path == "stormpage.html")
	{
		alert("This site is not up to speed with FireFox. I'm in the process of fixing that. Proceed at your own risk. :-)");
	}
	getBrowserSize(); //loads winH and winW
	document.getElementById("popUp").style.width = winW - (winW * .05);
	document.getElementById("popUp").style.height = winH - (winH * .05);
	document.getElementById("popUpFrame").style.width = winW - (winW * .06);
	document.getElementById("popUpFrame").style.height = winH - (winH * .06);	
	document.getElementById("popUpFrame").src = path
	document.getElementById("popUp").style.visibility = "visible";
}
*/

function closePopUp() {
	document.getElementById("popUp").style.visibility = "hidden";
}


function linkerRollover(obj) {
	obj.style.border = "thin dotted red";
}

function linkerRollout(obj) {
	obj.style.border = "thin solid black";
}

function linkOver(obj) {
	obj.style.color="red";
}

function linkOut(obj) {
	obj.style.color="#0667fc";
}


var tick_activeChase = false;
function tick() 
{
var intHours, intMinutes, intSeconds;
var now;
now = new Date();
intHours = now.getHours();
intUTCHours = now.getUTCHours();
intMinutes = now.getMinutes();
intSeconds = now.getSeconds();
am_pm = "AM";
	   
	if (intHours > 11) {
		if(intHours != 12)
			intHours -= 12;
		am_pm = "PM";
	}else{
		am_pm = "AM";
	}			   
	
	hours = intHours + ":";

	if (intHours < 10)
	   hours =  "0"+intHours+":";
	else
	   hours = intHours + ":";
	
	
	if (intUTCHours < 10)
	   UTCHours = "0"+intUTCHours+":";
	else
	   UTCHours = intUTCHours + ":";	   
	
	if (intMinutes < 10) 
	   minutes = "0"+intMinutes+":";
	else 
	   minutes = intMinutes;
	
	if (intSeconds < 10) 
	   seconds = "0"+intSeconds+" ";
	else 
	   seconds = intSeconds+" ";

timeString = hours+minutes+ "<font size='-1'>" + am_pm + "</font>";
UTCtimestring = UTCHours+minutes+ "<font size='-1'>Z</font>";
document.getElementById("Clock").innerHTML = timeString;
document.getElementById("UTCClock").innerHTML = UTCtimestring;

if(seconds%2 == 0) {
	document.getElementById("tickdot1").style.color = "red";
	document.getElementById("tickdot2").style.color = "black";
	if(tick_activeChase == true) { 
		document.getElementById("liveChasePageLink").className = "menuCellRollover";}
	else{
		document.getElementById("liveChasePageLink").className = "menuCell";}
}else{
	document.getElementById("tickdot2").style.color = "red";
	document.getElementById("tickdot1").style.color = "black";
	if(tick_activeChase == true) { 
		document.getElementById("liveChasePageLink").className = "menuCell";}
}

window.setTimeout("tick();", 1000);
}

UTCflag = true;

function changeTime() {
	if(UTCflag) {
		local.style.visibility = "visible";
		utc.style.visibility = "hidden";
		UTCflag = false;
	}else{
		local.style.visibility = "hidden";
		utc.style.visibility = "visible";
		UTCflag = true;
	}
}

