<!--// written by Klokie Grossfeld  

function checkBrowser() { 
	this.ver=navigator.appVersion;
	this.bVer=parseInt(this.ver);
	this.mac=(this.ver.indexOf("Mac")!=-1)?1:0;
	this.ie=(navigator.appName=="Microsoft Internet Explorer")?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns=(navigator.appName=="Netscape")?1:0;
	this.maxwidth=(this.bVer>=4)?screen.width:800;
	this.maxheight=(this.bVer>=4)?screen.height:600;
	return this;
}
bw=new checkBrowser(),doPreload();



newWin = null;
function popup(htmlURL,lofiURL,scrollbar) {
	var _x=550, _y=400, page, _params;
	// for mac OS: MSIE or NS6 ('mozilla 5.0') should go to an alternate page
	if ( lofiURL!=null && bw.mac && (bw.ie || (bw.ns && bw.bVer==5)) ) {
		page = htmlURL;//lofiURL;
		if (bw.mac && bw.ie) _y += 87; // height offset for mac ie
	} else {
		page = htmlURL;
	}

	if (scrollbar == 'yes')
		_x += 19;
	_params = 'width='+_x+',height='+_y+',resizable=no,scrollbars='+scrollbar;

	// center the window horizontally & vertically
	_left = (bw.maxwidth - _x) >>1; // 
	_top = (bw.maxheight - _y) >>1;

	if (bw.ie) _params += ",top=" + _top + ",left=" + _left;
	else if (bw.ns) _params += ",screenX=" + _left + ",screenY=" + _top;

	newWin = window.open(page,"popup", _params);
	if (newWin!=null) {
		if (newWin.opener==null) newWin.opener=window;
		if (!bw.ie4) newWin.focus();
	}
}
//-->

