//本番用
function openwinContactJp(){
	var WO;
	WO=window.open('https://ssl.tokyo-jazz.com/jp/contact/index.html','contact','status=yes,scrollbars=yes,width=600,height=620,top=20,left=20');
	WO.focus();
}


function openwinContactEn(){
	var uAgent  = navigator.userAgent.toUpperCase();
	var aName  = navigator.appName.toUpperCase();
	var uName = navigator.userAgent.toUpperCase();
	var WO;
	
	if (uAgent.indexOf("MAC") >= 0){
		if (uName.indexOf("SAFARI") >= 0){
			WO=window.open('https://ssl.tokyo-jazz.com/en/contact/index.html','contact','status=yes,scrollbars=yes,width=595,height=600,top=20,left=20');
		} else if (aName.indexOf("NETSCAPE") >= 0){
			WO=window.open('https://ssl.tokyo-jazz.com/en/contact/index.html','contact','status=yes,scrollbars=yes,width=595,height=600,top=20,left=20');
		} else {
			WO=window.open('https://ssl.tokyo-jazz.com/en/contact/index.html','contact','status=yes,scrollbars=yes,width=580,height=600,top=20,left=20');
		}
	} else {
		if (aName.indexOf("NETSCAPE") >= 0){
			WO=window.open('https://ssl.tokyo-jazz.com/en/contact/index.html','contact','status=yes,scrollbars=yes,width=600,height=600,top=20,left=20');
		} else {
			WO=window.open('https://ssl.tokyo-jazz.com/en/contact/index.html','contact','status=yes,scrollbars=yes,width=597,height=600,top=20,left=20');
		}
	}
	WO.focus();
}

function openwinMagazine(){
	var WO;
	WO=window.open('https://g.blayn.jp/isle/p/f/tf.php?id=tokyo_jazz','magazine','status=yes,scrollbars=yes,width=500,height=500,top=40,left=40');
	WO.focus();
}

//地上広場マップ
function openwinLayout(url){
	var uAgent  = navigator.userAgent.toUpperCase();
	var aName  = navigator.appName.toUpperCase();
	var uName = navigator.userAgent.toUpperCase();
	var WO;
	
	if (uAgent.indexOf("MAC") >= 0){
		if (uName.indexOf("SAFARI") >= 0){
			WO=window.open(url,'layout','width=680,height=641');
		} else if (aName.indexOf("NETSCAPE") >= 0){
			WO=window.open(url,'layout','width=680,height=641');
		} else {
			WO=window.open(url,'layout','width=670,height=616');
		}
	} else {
		WO=window.open(url,'layout','width=680,height=634');
	}
	WO.focus();
}

function openwinFm(){
	var uAgent  = navigator.userAgent.toUpperCase();
	var aName  = navigator.appName.toUpperCase();
	var uName = navigator.userAgent.toUpperCase();
	var WO;
	
	if (uAgent.indexOf("MAC") >= 0){
		if (uName.indexOf("SAFARI") >= 0){
			WO=window.open('popup/index.html','info','status=yes,scrollbars=yes,width=595,height=360,top=20,left=20');
		} else if (aName.indexOf("NETSCAPE") >= 0){
			WO=window.open('popup/index.html','info','status=yes,scrollbars=yes,width=595,height=360,top=20,left=20');
		} else {
			WO=window.open('popup/index.html','info','status=yes,scrollbars=yes,width=580,height=360,top=20,left=20');
		}
	} else {
		if (aName.indexOf("NETSCAPE") >= 0){
			WO=window.open('popup/index.html','info','status=yes,scrollbars=yes,width=600,height=360,top=20,left=20');
		} else {
			WO=window.open('popup/index.html','info','status=yes,scrollbars=yes,width=597,height=360,top=20,left=20');
		}
	}
	WO.focus();
}

function openwinBrd(){
	var uAgent  = navigator.userAgent.toUpperCase();
	var aName  = navigator.appName.toUpperCase();
	var uName = navigator.userAgent.toUpperCase();
	var WO;
	
	if (uAgent.indexOf("MAC") >= 0){
		if (uName.indexOf("SAFARI") >= 0){
			WO=window.open('popup02/index.html','info','status=yes,scrollbars=yes,width=595,height=660,top=20,left=20');
		} else if (aName.indexOf("NETSCAPE") >= 0){
			WO=window.open('popup02/index.html','info','status=yes,scrollbars=yes,width=595,height=660,top=20,left=20');
		} else {
			WO=window.open('popup02/index.html','info','status=yes,scrollbars=yes,width=580,height=660,top=20,left=20');
		}
	} else {
		if (aName.indexOf("NETSCAPE") >= 0){
			WO=window.open('popup02/index.html','info','status=yes,scrollbars=yes,width=600,height=660,top=20,left=20');
		} else {
			WO=window.open('popup02/index.html','info','status=yes,scrollbars=yes,width=597,height=660,top=20,left=20');
		}
	}
	WO.focus();
}

//------------------------------------
//open new window(GOODS)
//------------------------------------
function openwinOrder(){
	var WO1;
	WO1=window.open('https://ssl.tokyo-jazz.com/order/index.html','orderform','status=yes,scrollbars=yes,width=625,height=600,top=20,left=20');
	//WO1=window.open('../../order/index.html','orderform','status=yes,scrollbars=yes,width=625,height=600,top=20,left=20');
	WO1.focus();
}


//------------------------------------
//open new window(Event)
//------------------------------------
function openWinEvent(url){
	var w = 598;
	var h = 600;
	var x = (screen.width - w) / 2;
	var y = (screen.height - h) / 2;
	var WO;
	WO=window.open(url,'eventWin','width='+w+',height='+h+',top='+y+',left='+x+',scrollbars=1,status=1');
	WO.focus();
}

//------------------------------------
//綾戸智恵　ミュージックスクール応募フォーム
//------------------------------------
function openWinSchool(){
	var w = 600;
	var h = 620;
	var x = (screen.width - w) / 2;
	var y = (screen.height - h) / 2;
	var WO;
	WO=window.open('https://ssl.tokyo-jazz.com/jp/contact/workshop01.html','schoolWin','width='+w+',height='+h+',top='+y+',left='+x+',scrollbars=1,status=1');
	WO.focus();
}


//------------------------------------
//Australian Jazz Wave 2010 招待告知
//------------------------------------
function openWinInv(url){
	var w = 600;
	var h = 620;
	var x = (screen.width - w) / 2;
	var y = (screen.height - h) / 2;
	var WO;
	WO=window.open(url,'invitation','width='+w+',height='+h+',top='+y+',left='+x+',scrollbars=1,status=1');
	WO.focus();
}

//------------------------------------
//キャンペーン告知
//------------------------------------
function openWinCam(path){
	var w = 760;
	var h = 620;
	var x = (screen.width - w) / 2;
	var y = (screen.height - h) / 2;
	var WO;
	WO=window.open(path+'popup/campaign.html','campaign','width='+w+',height='+h+',top='+y+',left='+x+',scrollbars=1,status=1');
	WO.focus();
}

//------------------------------------
//ウィルトン・フェルダー急病告知
//------------------------------------
function openWinWf(path){
	var w = 640;
	var h = 620;
	var x = (screen.width - w) / 2;
	var y = (screen.height - h) / 2;
	var WO;
	WO=window.open(path+'popup/wiltonfelder.html','wiltonfelder','width='+w+',height='+h+',top='+y+',left='+x+',scrollbars=1,status=1');
	WO.focus();
}

//------------------------------------
//放送予定
//------------------------------------
function openWinOnair(){
	var w = 640;
	var h = 620;
	var x = (screen.width - w) / 2;
	var y = (screen.height - h) / 2;
	var WO;
	WO=window.open('jp/popup/onair.html','wiltonfelder','width='+w+',height='+h+',top='+y+',left='+x+',scrollbars=1,status=1');
	WO.focus();
}

