function checkBrowser() {
	this.ie=navigator.appName.indexOf("Microsoft Internet Explorer")>-1? true:false;
    this.ns=navigator.appName.indexOf("Netscape")>-1? true:false;
	this.ver=navigator.appVersion;
	this.dom=document.getElementById? true:false;
	this.ie4=(document.all && !this.dom)? true:false;
	this.ns4=(document.layers && !this.dom)? true:false;

	this.ie5=(this.dom && this.ie)? true:false;
	this.ns5=(this.dom && this.ns)? true:false;
	this.compatible=(this.ie4 || this.ns4 || this.dom);
	return this;
}
bw=new checkBrowser();  //Variable bw contains all browser information.

onload=init;
var pagewidth=0;
var posXmax=0;

function init(browser) {
	browser=new checkBrowser();
	if (browser.ie)	pagewidth  = document.body.clientWidth;
	else if (browser.ns) pagewidth  = window.innerWidth;
	delete browser;
	posXmax = pagewidth;
	pagewidth = parseInt(pagewidth / 2);
	if (posXmax < 740) posXmax = 740;
	else {
		posXmax = pagewidth +370;
	}
	
	if (typeof(LoadInit) != 'undefined') LoadInit(pagewidth, posXmax);
}

