<!-- Hide script from old browsers functions for new window mouseovers, onclicks, and mouseouts
function bgColour() {
	var box = document.forms[0].colour;
	var number = '#' + box.options[box.selectedIndex].value;
	box.options[box.selectedIndex].style.backgroundColor = number;
	document.getElementById('coloursel').style.backgroundColor = number;
}
function MM_preloadImages() { //v3.0
	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
MM_preloadImages('images/createbtn_hover.gif','images/referbtn_hover.gif','images/win_hover.gif');
function iPhoneWindow(what) {
	var URL = what;
	//sets up position of screen if not already set
	leftPos = 0
	topPos = 0;
	//body.style.scrollbarBaseColor="red";
	if (screen) {
		//takes the current screen and calculates position
		leftPos = (screen.availWidth - 800) / 2;
		topPos = (screen.availHeight - 525) / 2;

		//leftPos = screen.width;
		//topPos = screen.height;

	}

	//sets the parametres for the window
	winStats='resizable=yes,toolbar=no,location=no,directories=no,menubar=no,';
	winStats+='scrollbars=yes,dependent,width=800,height=525';
	if (navigator.appName.indexOf("Microsoft")>=0) {
		//different position set for IE
		winStats+=',left='+leftPos+',top='+topPos;
	} else {
		// screen position
		winStats+=',screenX='+leftPos+',screenY='+topPos;
	}
	//creates new window
	bannerWindow=window.open(URL,'bookWin',winStats);
	bannerWindow.focus();
	/*var x = (screen.availWidth / 2) - (document.body.clientWidth / 2);
	var y = ((screen.availHeight - 60) / 2) - (document.body.clientHeight / 2);
	x = (x > 0) ? x : 0;
	y = (y > 0) ? y : 0;
	bannerWindow.window.moveTo(x, y);*/
}
function reflectWindow(what) {
	var URL = what;
	//sets up position of screen if not already set
	leftPos = 0
	topPos = 0;
	//body.style.scrollbarBaseColor="red";
	if (screen) {
		//takes the current screen and calculates position
		leftPos = (screen.availWidth - 350) / 2;
		topPos = (screen.availHeight - 200) / 2;

		//leftPos = screen.width;
		//topPos = screen.height;

	}

	//sets the parametres for the window
	winStats='resizable=yes,toolbar=no,location=no,directories=no,menubar=no,';
	winStats+='scrollbars=yes,dependent,width=350,height=200';
	if (navigator.appName.indexOf("Microsoft")>=0) {
		//different position set for IE
		winStats+=',left='+leftPos+',top='+topPos;
	} else {
		// screen position
		winStats+=',screenX='+leftPos+',screenY='+topPos;
	}
	//creates new window
	bannerWindow=window.open(URL,'bookWin',winStats);
	bannerWindow.focus();
	/*var x = (screen.availWidth / 2) - (document.body.clientWidth / 2);
	var y = ((screen.availHeight - 60) / 2) - (document.body.clientHeight / 2);
	x = (x > 0) ? x : 0;
	y = (y > 0) ? y : 0;
	bannerWindow.window.moveTo(x, y);*/
}
function termsWindow(what) {
	var URL = what;
	//sets up position of screen if not already set
	leftPos = 0
	topPos = 0;
	//body.style.scrollbarBaseColor="red";
	if (screen) {
		//takes the current screen and calculates position
		leftPos = (screen.availWidth - 800) / 2;
		topPos = (screen.availHeight - 600) / 2;

		//leftPos = screen.width;
		//topPos = screen.height;

	}

	//sets the parametres for the window
	winStats='resizable=yes,toolbar=no,location=no,directories=no,menubar=no,';
	winStats+='scrollbars=yes,dependent,width=800,height=600';
	if (navigator.appName.indexOf("Microsoft")>=0) {
		//different position set for IE
		winStats+=',left='+leftPos+',top='+topPos;
	} else {
		// screen position
		winStats+=',screenX='+leftPos+',screenY='+topPos;
	}
	//creates new window
	bannerWindow=window.open(URL,'bookWin',winStats);
	bannerWindow.focus();
	/*var x = (screen.availWidth / 2) - (document.body.clientWidth / 2);
	var y = ((screen.availHeight - 60) / 2) - (document.body.clientHeight / 2);
	x = (x > 0) ? x : 0;
	y = (y > 0) ? y : 0;
	bannerWindow.window.moveTo(x, y);*/
}
function whyWindow(what) {
	var URL = what;
	//sets up position of screen if not already set
	leftPos = 0
	topPos = 0;
	//body.style.scrollbarBaseColor="red";
	if (screen) {
		//takes the current screen and calculates position
		leftPos = (screen.availWidth - 800) / 2;
		topPos = (screen.availHeight - 350) / 2;

		//leftPos = screen.width;
		//topPos = screen.height;

	}

	//sets the parametres for the window
	winStats='resizable=yes,toolbar=no,location=no,directories=no,menubar=no,';
	winStats+='scrollbars=yes,dependent,width=800,height=350';
	if (navigator.appName.indexOf("Microsoft")>=0) {
		//different position set for IE
		winStats+=',left='+leftPos+',top='+topPos;
	} else {
		// screen position
		winStats+=',screenX='+leftPos+',screenY='+topPos;
	}
	//creates new window
	bannerWindow=window.open(URL,'bookWin',winStats);
	bannerWindow.focus();
	/*var x = (screen.availWidth / 2) - (document.body.clientWidth / 2);
	var y = ((screen.availHeight - 60) / 2) - (document.body.clientHeight / 2);
	x = (x > 0) ? x : 0;
	y = (y > 0) ? y : 0;
	bannerWindow.window.moveTo(x, y);*/
}
// End hiding script from old browsers -->