// JavaScript Document

function MaxWin(){
	maxWin = window.open("index2.html","","toolbar=no,menubar=no,location=no,status=no,scrollbars=no,resizable=no");
	maxWin.moveTo(0,0);
	maxWin.resizeTo(screen.availWidth,screen.availHeight);
}

function openNews(){
	newsWin = window.open("news.html","","toolbar=no,menubar=no,location=no,status=no,scrollbars=yes,resizable=yes,width=600,height=600")
	newsWin.moveTo(0,0);
	newsWin.focus();
}

function openDisco(id){
	var lnk;
	var win_w;
	var win_h;
	
	switch (id){
		case "itsalllove":
			lnk = "http://rhythmzone.net/koda/info/ec_its_all_love/index.html"
			win_w = 610;
			win_h = 560;
		break;
		case "outworks":
			lnk = "http://rhythmzone.net/koda/info/ec_driving/index.html";
			win_w = 610;
			win_h = 560;
		break;
		case "drivinghits":
			lnk = "http://rhythmzone.net/koda/info/ec_outworks/index.html";
			win_w = 610;
			win_h = 560;
		break;
		case "misono":
			lnk = "http://www.avexnet.or.jp/misono/ec.html";
			win_w = 550;
			win_h = 450;
		break;
	}
	
	discoWin = window.open(lnk,"","toolbar=no,menubar=no,location=no,status=no,scrollbars=yes,resizable=yes,width="+win_w+",height="+win_h);
	discoWin.focus();
}

function scrollToTop(){
    new Effect.ScrollTo("header");
}

function closeNews(){
	window.close();
}

function closeMain(){
	window.close();
}
