function browseIt()
{
	this.ver = navigator.appVersion.toLowerCase();
	this.verNum = parseInt(this.ver);
	this.agent = navigator.userAgent.toLowerCase();
	this.dom = (document.getElementById ? 1 : 0);
	this.opera = (this.agent.indexOf("opera") > -1 && this.dom ? 1 : 0);
	this.opera7 = (this.opera && this.verNum >= 7);
	this.opera9 = (this.opera && this.verNum >= 9);
	this.ie = (this.ver.indexOf("msie") > -1 && this.dom && !this.opera ? 1 : 0);
	this.ieVer = 0;
	if (this.ie) {
		var pos = this.ver.indexOf("msie");
		if (pos != -1)
			this.ieVer = parseInt(this.ver.substr(pos + 5));
	}
	this.ie6 = (this.ie && (this.ieVer >= 6));
	this.ie6only = (this.ie && (this.ieVer >= 6) && (this.ieVer < 7));
	this.ie7 = (this.ie && (this.ieVer >= 7));
	this.macOS = (this.agent.indexOf("mac") > -1);
	this.mac = (this.macOS && this.verNum >= 7 ? 1 : 0);
	this.moz = (this.agent.indexOf("gecko") > -1);
	this.ns6 = (this.dom && this.agent.indexOf("netscape") > -1 && this.verNum >= 5 ? 1 : 0);
	this.ff = (this.agent.indexOf("firefox") > -1);
	this.b = (this.ie || this.ns6 || this.opera7 || this.mac || this.moz || this.dom);

	return this;
}

var b = new browseIt();

function ShowLogin(act)
{
	var ab = document.getElementById('YLogin');
	var dis;

	if(act) {
		var bHeight = self.document.body.offsetHeight;
		var bWidth = self.document.body.offsetWidth;
		var scrollTop = document.body.scrollTop || document.documentElement.scrollTop;
		ab.style.overflow = 'auto';
		ab.style.display = 'block';
		ab.style.left = (bWidth - ab.offsetWidth)/2 + 'px';
		if(!b.moz){
			ab.focus();
			ab.style.outline = 'none';
		}
		setTimeout('document.YLoginForm.login.focus();', 100);
	} else {
		ab.style.display = 'none';
	}

	return false;
}
