//-------------------------------------------------------------------------------------

function popwinm1() { w=window.open("./movie.html","name1","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,Width=600,Height=495");w.focus();}

function popwinm2() { w=window.open("../movie.html","name2","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,Width=600,Height=495");w.focus();}

function popwinn1() { w=window.open("./news/index.html","name3","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,Width=620,Height=650");w.focus();}

function popwink() { w=window.open("./koryaku/index.html","koryaku","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,Width=600,Height=600");w.focus();}

//-------------------------------------------------------------------------------------

// 新しいウィンドウを開く

function newsWin(file, width) {
	var winWidth = ($.browser.msie) ? document.body.clientWidth : document.documentElement.clientWidth;
  	var winHeight = 600; //($.browser.msie) ? document.body.clientHeight  : '';
	var winXPos = ($.browser.msie) ? window.screenLeft : window.screenX;
	
	var left = (winWidth / 2 - width / 2) + winXPos;
	var top  = ($.browser.msie) ? window.screenTop : window.screenY;
	
	var newWindow = window.open(file, 'newWindow', 'width=' + width + ', height=' + winHeight + ' ,menubar=no, location=no, toolbar=no, scrollbars=yes, left=' + left + ', top=' + top);
	newWindow.focus();
}
