// JavaScript Document

// google feedAPIの読込み用
document.write('<script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAArY08jmOB07ygtcysh79MPRSB6g9cPZjlZv1iyswRL8XT3Ebs8hRy1Puv3TBawK556pbcs3wG0A9Rgg"><\/script>');
//本番 document.write('<script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAArY08jmOB07ygtcysh79MPRTMhE6SiXtMoXsRNdCGW-MU3CLBEBRpiZ1Q-uc01WJ0Y9DAtKrRZF-8Vg"><\/script>');

//<a href="company/maps.html" onclick="pop_win(this.href,'MAP',520,675); return false;">
// ポップアップウィンドウ用
function pop_win(url,windowname,width,height) {
	var features="location=no, menubar=no, status=no, scrollbars=no, resizable=no, toolbar=no";
	if (width) {
		if (window.screen.width > width)
			features+=", left="+(window.screen.width-width)/2;
			else width=window.screen.width;
			features+=", width="+width;
	}
	if (height) {
		if (window.screen.height > height)
		features+=", top="+(window.screen.height-height)/2;
		else height=window.screen.height;
		features+=", height="+height;
	}
	window.open(url,windowname,features);
}

function pop_win2(url,windowname,width,height) {
	var features="location=no, menubar=no, status=no, scrollbars=yes, resizable=, toolbar=no";
	if (width) {
		if (window.screen.width > width)
			features+=", left="+(window.screen.width-width)/2;
			else width=window.screen.width;
			features+=", width="+width;
	}
	if (height) {
		if (window.screen.height > height)
		features+=", top="+(window.screen.height-height)/2;
		else height=window.screen.height;
		features+=", height="+height;
	}
	window.open(url,windowname,features);
}

function pop_win3(url,windowname,width,height) {
	var features="location=no, menubar=no, status=no, scrollbars=no, resizable=, toolbar=no";
	if (width) {
		if (window.screen.width > width)
			features+=", left="+(window.screen.width-width)/2;
			else width=window.screen.width;
			features+=", width="+width;
	}
	if (height) {
		if (window.screen.height > height)
		features+=", top="+(window.screen.height-height)/2;
		else height=window.screen.height;
		features+=", height="+height;
	}
	window.open(url,windowname,features);
}
