var imgToUpdate;
var imgUpdateInterval;

function initUpdate(whichIMG,interval) {
	imgUpdateInterval = interval;
	imgToUpdate = whichIMG;
	upDateLoop();
}

function updateLiveImage() {		
	myImg = document.images[imgToUpdate];
	myImg.src = "model.jpg?refresh="+Math.ceil(Math.random()*20000000033);		
}

function upDateLoop() {
	updateLiveImage();
	setTimeout("upDateLoop()", imgUpdateInterval);
}

/////////////// OPEN CONSOLE ///////////////

function popLiveConsole() {
	w = 820;
	h = 600;	
	proj = 'liveConsole';
	consoleURL = '/projects/umbro/liveevent/';
	arg = 'width='+w+',height='+h+',left=26,top=26, scrollbars=yes';
	popup = (document.layers) ? window.open(consoleURL, proj, arg) : window.open(consoleURL, proj, arg);
	popup.focus();	
}

///////////// GALLERY LINK ///////////////

function galleryOVER() {
	div333Show = 'gallery_link_over';
	if(document.getElementById) {
		document.getElementById(div333Show).style.visibility = 'visible';
	} else if(document.layers) {
		document.layers[div333Show].style.visibility = 'visible';
	} else {
		document.all[div333Show].style.visibility = 'visible';
	}
}	
function galleryOUT() {
	div333Hide = 'gallery_link_over';
	if(document.getElementById) {
		document.getElementById(div333Hide).style.visibility = 'hidden';
	} else if(document.layers) {
		document.layers[div333Hide].style.visibility = 'hidden';
	} else {
		document.all[div333Hide].style.visibility = 'hidden';
	}
}