//this resolution file sets the screen resolution into a cookie...
var expdate = new Date();
expdate.setTime(expdate.getTime()+(12*30*24*60*60*1000)); // ~1 year
if(!getCookie("vWidth") && !getCookie("vHeight")){
	var newWidth, newHeight;
	newWidth = screen.width;
	newHeight = screen.height;
	if(newWidth == 0 || newWidth == "")
		newWidth = 5;
	if(newHeight == 0 || newHeight == "")
		newHeight = 5;
	setCookie("vWidth", newWidth, expdate, "", "", 0)
	setCookie("vHeight", newHeight, expdate, "", "", 0)
//	alert("cookie set")
	if(getCookie("vWidth")) //check if browser supports cookies
		window.location.reload();
	else
		url('/lib/security/noCookies.php')
}
//alert("check");
