///////////////////// BIRDCAM ////////////////////////////////

var imgToUpdate;
var imgUpdateInterval;
var seqNum;
seqNum = 6;

function initUpdate(whichIMG,interval) {
	imgUpdateInterval = interval;
	imgToUpdate = whichIMG;
	upDateLoop();
}

function updateLiveImage() {
	myImg = document.images[imgToUpdate];
	myImg.src = "http://www.super-reload.com/super-cam/paul_bruty"+seqNum+".jpg?refresh="+Math.ceil(Math.random()*20000000000);
	if (seqNum>0) {
		seqNum -= 1;
	} else {
		seqNum = 6;
	}
}

function upDateLoop() {
	updateLiveImage();
	setTimeout("upDateLoop()", imgUpdateInterval);
	
}


//////////////////////// CONTACT ////////////////////////

function contactOver(overDIV) {
	shower = overDIV;
	if(document.getElementById) {
		document.getElementById(shower).style.visibility = 'visible';
	} else if(document.layers) {
		document.layers[shower].style.visibility = 'visible';
	} else {
		document.all[shower].style.visibility = 'visible';
	}
}

function contactOut(outDIV) {
	hider = outDIV;
	if(document.getElementById) {
		document.getElementById(hider).style.visibility = 'hidden';
	} else if(document.layers) {
		document.layers[hider].style.visibility = 'hidden';
	} else {	
		document.all[hider].style.visibility = 'hidden';
	}
}

////////////////////// POP ///////////////////////


function pop(popW,popH,popName,popURL,popScroll) {
	w = popW;
	h = popH;
	l = ((screen.width-w)/2);
	t = ((screen.height-h)/2.5);
	proj = popName;
	projURL = popURL;
	scrollWin = popScroll;
	arg = 'width='+w+',height='+h+',left='+l+',top='+t+',scrollbars='+scrollWin+',resize=no';
	popup = window.open(projURL, proj, arg);
	popup.focus();	
}