// get the user's screen resolution dynamically
function SetCookie(res,returnURL)
{
	var the_cookie = "users_resolution="+ screen.width +"x"+ screen.height;

	var previousResolution	=	"users_resolution=" + res;
	alert('p= '+previousResolution+'\n n= '+the_cookie);
	if(previousResolution != the_cookie )	// if settings changes then make sure it has been reflected and move accoridingly
	{
		document.cookie	=	the_cookie;
	}
	else
	{
		// display the images
	}
	
}
function writeCookie(res,returnURL)
{
	
	var the_cookie = "users_resolution="+ screen.width +"x"+ screen.height;
	
	document.cookie	=	the_cookie;
	
	var previousResolution	=	"users_resolution=" + res;
	
	
	if(previousResolution != the_cookie )	// if settings changes then make sure it has been reflected and move accoridingly
	{
		window.location.href	=	returnURL;
	}
	else
	{
		// display the images
	}
	
}


