// JavaScript Document
var WINW = 1024, WINH = 768;
if( typeof( window.innerWidth ) == 'number' ) {
	//Non-IE
	WINW = window.innerWidth;
	WINH = window.innerHeight;
} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	//IE 6+ in 'standards compliant mode'
	WINW = document.documentElement.clientWidth;
	WINH = document.documentElement.clientHeight;
} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
	//IE 4 compatible
	WINW = document.body.clientWidth;
	WINH = document.body.clientHeight;
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

var oldsize=readCookie('WINW');
document.cookie="WINW="+WINW;
document.cookie="WINH="+WINH;

if (oldsize != null && oldsize > 0 && oldsize != WINW) {window.location.reload();};
