var lastWidth, lastHeight;
browser = new checkBrowser();

function checkBrowser() {
	this.browser = navigator.userAgent.toLowerCase();
	this.version = navigator.appVersion.toLowerCase();
	this.mac = this.version.indexOf("mac")!= -1 ? 1 : 0;
	this.ns = (this.browser.indexOf("mozilla")!=-1&&this.browser.indexOf("compatible")==-1&&document.layers) ? 1 : 0;
	this.ie = (document.all) ? 1 : 0;
	this.dom = (document.getElementById) ? 1 : 0;
	this.domie = (this.dom&&this.ie) ? 1 : 0;
	this.domns = (this.dom&&!this.ie) ? 1 : 0;
	this.rollover = true;
	this.min = (this.ns||(this.ie&&(this.mac&&this.version.indexOf("msie 4")!=-1))||this.dom);
	if (this.ns) {
		document.tags.BODY.margins(-20);
		window.onresize=nsFix();
		lastWidth = window.innerWidth;
		lastHeight = window.innerHeight;
		}
	return this;
	}

function nsFix() {
	if (lastWidth||lastHeight) {
		if (lastWidth!=window.innerWidth||lastHeight!=window.innerHeight) { window.location.href = window.location.href } ;
		}
	}
	
