var Fox = navigator.userAgent.indexOf("Firefox") != -1;
var Safari = navigator.userAgent.indexOf("Safari") != -1;
var IE = navigator.userAgent.indexOf("MSIE") != -1;
var NN = navigator.userAgent.indexOf("Netscape") != -1;

function openMailWin(wUrl){
	var wObj;
	wWidth = 380;
	wHeight = 285;
	if(navigator.appVersion.indexOf("Mac") > -1){
		if(Fox){
			wHeight = 288;
		}else if(Safari){
			wHeight = 286;
		}
	}
	scWidthCenter = screen.availWidth / 2;
	scHeightCenter = screen.availHeight / 2;
	wOption = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=" + wWidth + ",height=" + wHeight + ",left=" + (scWidthCenter - (wWidth / 2)) + ",top=" + (scHeightCenter - (wHeight / 2));
	sWinName = "Mail";
	wObj = window.open(wUrl,sWinName,wOption);
	wObj.focus();
}


function openNewsWin(wUrl){
	var wObj;
	wWidth = 419;
	wHeight = 450;
	if(navigator.appVersion.indexOf("Mac") > -1){
		if(NN){
			wWidth = 435;
			wHeight = 451;
		}else if(Fox){
			wWidth = 435;
			wHeight = 451;
		}else if(Safari){
			wWidth = 435;
			wHeight = 453;
		}
	} else{
		if(NN){
			wWidth = 435;
		}else if(Fox){
			wWidth = 438;
		}else if(IE){
			wWidth = 438;
		}
	}
	scWidthCenter = screen.availWidth / 2;
	scHeightCenter = screen.availHeight / 2;
	wOption = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=" + wWidth + ",height=" + wHeight + ",left=" + (scWidthCenter - (wWidth / 2)) + ",top=" + (scHeightCenter - (wHeight / 2));
	sWinName = "News";
	wObj = window.open(wUrl,sWinName,wOption);
	wObj.focus();
}

function openMapWin(wUrl){
	var wObj;
	wWidth = 380;
	wHeight = 470;
	if(navigator.appVersion.indexOf("Mac") > -1){
		if(Fox){
			wHeight = 471;
		}else if(Safari){
			wHeight = 473;
		}
	}
	scWidthCenter = screen.availWidth / 2;
	scHeightCenter = screen.availHeight / 2;
	wOption = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=" + wWidth + ",height=" + wHeight + ",left=" + (scWidthCenter - (wWidth / 2)) + ",top=" + (scHeightCenter - (wHeight / 2));
	sWinName = "Map";
	wObj = window.open(wUrl,sWinName,wOption);
	wObj.focus();
}


