/* *********************************************

	東急コミュニティー　賃貸・売買パートナー
	common.js
	
********************************************** */

/* safari-font-style
---------------------------------------------------------- */

if((navigator.platform.indexOf('Mac') != -1) && (navigator.userAgent.indexOf('Safari') != -1)){
		document.write('<link type="text/css" rel="stylesheet" href="/css/font-style-safari.css" />');
	}else{ 
		document.write('')
	}


/* link target blank
---------------------------------------------------------- */

$(function(){

	$("a.newWin").attr({target: "_blank"});
	
});


/* popup
---------------------------------------------------------- */

function popup(sLocation,sWindowName,sWidth,sHeight,sScroll){
	var setMenubar = "no";
	var setToolbar = "no";
	var setLocation = "no";
	var setDirectories = "no";
	var setStatus = "no";
	var setResizable = "yes";
	
	var setScrollbars;
	
	if(sScroll == 0){
		setScrollbars = "no";
	}else if(sScroll == 1){
		setScrollbars = "yes";
	}
	

	//var setCondition = "width=" + sWidth + ",height=" + sHeight + ",left=" + sLeft + ",top=" + sTop + ",menubar=" + setMenubar + ",toolbar=" + setToolbar + ",location=" + setLocation + ",directories=" + setDirectories + ",status=" + setStatus + ",scrollbars=" + setScrollbars + ",resizable=" + setResizable;
	
	var setCondition = "width=" + sWidth + ",height=" + sHeight + ",menubar=" + setMenubar + ",toolbar=" + setToolbar + ",location=" + setLocation + ",directories=" + setDirectories + ",status=" + setStatus + ",scrollbars=" + setScrollbars + ",resizable=" + setResizable;
	
	var setWindow = window.open(sLocation, sWindowName, setCondition);
	setWindow.focus();
	return false;
}


