browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);

if (((browserName == "Netscape") && (browserVer >= 3)) || ((browserName == "Microsoft Internet Explorer") && (browserVer >= 4))) 
{
	useImages = "1";
}
else useImages = "0";

function new_win(title)
{
	w1=window.open('',title,'resizable=no,menubar=yes,fullscreen=0,status=yes,scrollbars=yes,width=510,height=453');

if (useImages == "1")
{
	w1.focus();
}
}

function newWindow(url, width, height) {
	var myPos = (screen) ? ',left=' + parseInt((screen.width-width)/2) + ',top=' + parseInt((screen.height-height)/2) : '';
	var myWin = window.open(url, 'myWin', 'width=' + width + ',height=' + height + ',menubar=0,location=0,resizable=0,scrollbars=0,toolbar=0' + myPos);
	myWin.focus();
	return myWin;
}

function sitemap() {
	var reg = /\/[^\/]+$/;
	var path = location.pathname.replace(reg,'/');
	var map = newWindow('/sitemap/map.phtml?link=' + escape(path), 690, 620);
}

function popup(url, width, height) {
	var myPos = (screen) ? ',left=' + parseInt((screen.width-width)/2) + ',top=' + parseInt((screen.height-height)/2) : '';
	w1=window.open(url, 'myWin', 'width=' + width + ',height=' + height + ',menubar=0,location=0,resizable=0,scrollbars=yes,toolbar=0' + myPos);
	w1.focus();
}
