function oRoll(img)
{
	var x=(img.prevSrc?0:1);
	img.src=img.src.replace(/_\d/,"_"+x);
	img.prevSrc=x;
}

function openWindow(url, width, height, type, winName) {
	var paramStr="";
	if (type=="console") {
		paramStr="resizable,height="+height+",width="+width;
	} else if (type=="fixed") {
		paramStr="status,height="+height+",width="+width;
	} else if (type=="content") { // fixed size with scrolling
		paramStr="scrollbars,status,height="+height+",width="+width;
	} else if (type=="normal") { // a normal window but with width & height set
		paramStr="status,toolbar,menubar,scrollbars,resizable,location,height="+height+",width="+width;
	} else if(!type || type=="flexible") { // default
		paramStr="scrollbars,resizable,height="+height+",width="+width;
	}
	if(!winName) { // make a unique but consistent window name for this page
		var idx = (url.indexOf("?")!=-1?url.indexOf("?"):url.length);
		winName = 'myWin_'+url.substr(0,idx).replace(/\W/g,"");
	}
	winObj = window.open(url, winName, paramStr);
	winObj.focus();
	return winObj;
}

function openInterestForm() {
	openWindow('form.php',742,500,'content');
}

function openLegal() {
	openWindow('legal.php',742,500,'content','legalPg');
}

function openPrivacy() {
	openWindow('legal.php#privacy',742,500,'content','legalPg');
}

function openCredits() {
	openWindow('credits.php',430,500,'content');
}