function setTrailer() {
timerID = setInterval("showTrailerTop()", 2500);
}

function setTrailerCancel() {
clearInterval(timerID);
}

function showTrailerTop(){
	Shadowbox.open({
	content:'http://www.youtube.com/v/EGfl9yygvII&amp;hl=ja_JP&amp;fs=1&amp;rel=0&amp;autoplay=1',
	player:"swf",
	title:"TRAILER - 予告編",
	width:640,
	height:297
	});
	pageTracker._trackPageview('/trailer/');
	setTrailerCancel();
}

function showTrailer(){
	Shadowbox.open({
	content:'http://www.youtube.com/v/EGfl9yygvII&amp;hl=ja_JP&amp;fs=1&amp;rel=0&amp;autoplay=1',
	player:"swf",
	title:"TRAILER - 予告編",
	width:640,
	height:297
	});
	pageTracker._trackPageview('/trailer/');
}

function linkOfficial() {
//親ウィンドウが存在しない場合
	if(!window.opener || window.opener.closed) {
	window.self.location.href = "../";
	} else {
	window.close();
	}
}

function enterSite(url) {
var fullWinW=screen.availWidth;
var fullWinH=screen.availHeight;

// モニタサイズ1024*768より大きい場合、同一ウィンドウにて展開
if ( screen.width > 1024 || screen.height > 768) {
window.self.location.href = url;
}
// モニタサイズ1024*768以下は、新規POPUPウィンドウを開いて展開
else if ( screen.width <= 1024 || screen.height <= 768) {
var popWin = window.open(url,"MainWin","toolbar=0,scrollbars=1,resizable=1,menubar=0,location=0,status=0,directories=0,left=0,top=0,width="+fullWinW+",height="+fullWinH);
popWin.focus();
popWin.moveTo(0, 0);
}
setTrailerCancel();
}

//SOUND CONTROL
function callExt_volCntrl(volNum) {
	getMovieName("externalSurvival").callFunc_volCntrl(volNum); 
}
function getMovieName(movieName) {
	if(navigator.appName.indexOf("Microsoft") != -1) {
		return window[movieName]
	}else{
		return document[movieName]
	}
}

//新規ウィンドウ
function newWin(url,name){
var subWin=window.open(url,name,"toolbar=1,scrollbars=1,resizable=1,menubar=1,location=1,status=1,directories=0");
subWin.focus();
//subWin.moveTo(0,0);
return subWin;
}

function news(){ newWin("../news.html","popwin");}
function theaters(){ newWin("../theaters.html","popwin");}
function special(){ newWin("../special.html","popwin");}