function WinOpen(url,winName)
{
	features = "toolbar=0,location=0,menubar=0,directories=0,resizable=1,status=1,scrollbars=1,width=610,height=480";
	window.open(url,winName,features);
}
function LoginOpen(url,winName)
{
	features = "toolbar=0,location=0,menubar=0,directories=0,resizable=1,status=0,scrollbars=1,width=250,height=223";
	window.open(url,winName,features);
}
function StaffOpen(url,winName)
{
	features = "toolbar=0,location=0,menubar=0,directories=0,resizable=0,status=0,scrollbars=0,width=550,height=350";
	window.open(url,winName,features);
}

var isNav, isIE, nVer = parseInt(navigator.appVersion.charAt(0));
if (nVer >= 4) {
	isNav = (navigator.appName == "Netscape") ? 1 : 0;
	isIE = (navigator.appName.indexOf("Microsoft") != -1) ? 1 : 0;
}

function fit() {

	// netscape 4.x
	if ((isNav) && (nVer < 5)) {
		var w = document.images.PortfolioShot.width + 38;
		var h = document.images.PortfolioShot.height + 90;
		window.innerWidth = w;
		window.innerHeight = h;
		window.moveTo((screen.availWidth - window.outerWidth) / 2, (screen.availHeight - window.outerHeight) / 2);
		return;
	}


	// netscape 6.x
	if (isNav) {
		var w = document.images.PortfolioShot.width + 38;
		var h = document.images.PortfolioShot.height + 90;
		w = w - window.innerWidth;
		h = h - window.innerHeight;
		window.resizeBy(w, h);
		window.moveTo((screen.availWidth - window.outerWidth) / 2, (screen.availHeight - window.outerHeight) / 2);
   		return;
   }

	// i.e.
	if (isIE) {
		var w = document.images.PortfolioShot.width + 47;
		var h = document.images.PortfolioShot.height + 120;
		if (w > screen.availWidth) w = screen.availWidth;
		if (h > screen.availHeight) h = screen.availHeight;
		window.resizeTo(w, h);
		window.moveTo((screen.availWidth - w) / 2, (screen.availHeight - h) / 2);
   }
}

function rotateImage()
{
	if(currentImage != rotateTotal)
	{
		currentImage++
	} else {
		currentImage = 1;
	}
	var thisImage = "rotate_" + currentImage;
	imgSwap('rotate',thisImage,'');
	rotateTimer = setTimeout("rotateImage()",5000)
	return true;
}