// JavaScript Document

function Match(id){
	var str = document.URL;
	var imgobj = document.getElementById('space');
	
	if(str.match(id) != null){
		var obj = document.getElementById(id);
		obj.style.border = "1px solid #ff9000";
		
		var y = obj.offsetTop;
//		scrollTo(0,y-50); 		document.body.clientHeight /2 - 
		scrollTo(0,y-50); 		

	}
}

function MaS(id){
document.write( " <img src='../templates/images/space.png' onload='" + Match(id) + "'>");
}

function movie_flv(file,player){
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="320" height="274" align="middle">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="' + player + '" />');
document.write('<param name="FlashVars" value="flvURL=' + file + '&ControlPanelColor=0x333333&buttonColor=0x000000&ControlPanelPosition=0&showControlPanel=1&ShowtimeColor=0xffffff&bAutoPlay=0&bAutoRepeat=0&BufferTime=5&tmeColor=0xffffff&loaColor=0x666666&GroundColor=0x000000&conNum=5&bShowtime=1&startvolume=80" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="#ffffff" />');
document.write('<param name="scale" value="noscale" />');
document.write('<param name="salign" value="lt" />');
document.write('<embed src="' + player + '" width="320" height="274" align="middle" quality="high"  scale="noscale" salign="lt" FlashVars="flvURL=' + file + '&ControlPanelColor=0x333333&buttonColor=0x000000&ControlPanelPosition=0&showControlPanel=1&ShowtimeColor=0xffffff&bAutoPlay=0&bAutoRepeat=0&BufferTime=5&tmeColor=0xffffff&loaColor=0x666666&GroundColor=0x000000&conNum=5&bShowtime=1&startvolume=100" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
}

function top_flv(file,player){
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="190" height="160" align="middle">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="' + player + '" />');
document.write('<param name="FlashVars" value="flvURL=' + file + '&ControlPanelColor=0x333333&buttonColor=0x000000&ControlPanelPosition=0&showControlPanel=1&ShowtimeColor=0xffffff&bAutoPlay=0&bAutoRepeat=0&BufferTime=5&tmeColor=0xffffff&loaColor=0x666666&GroundColor=0x000000&conNum=5&bShowtime=1&startvolume=80" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="#ffffff" />');
document.write('<param name="scale" value="noscale" />');
document.write('<param name="salign" value="lt" />');
document.write('<embed src="' + player + '" width="190" height="160" align="middle" quality="high"  scale="noscale" salign="lt" FlashVars="flvURL=' + file + '&ControlPanelColor=0x333333&buttonColor=0xffffff&ControlPanelPosition=0&showControlPanel=1&ShowtimeColor=0xffffff&bAutoPlay=0&bAutoRepeat=0&BufferTime=5&tmeColor=0xffffff&loaColor=0x666666&GroundColor=0x000000&conNum=5&bShowtime=1&startvolume=80" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
}
function top_flv02(file,player){
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="720" height="405" align="middle">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="' + player + '" />');
document.write('<param name="FlashVars" value="flvURL=' + file + '&ControlPanelColor=0x333333&buttonColor=0x000000&ControlPanelPosition=0&showControlPanel=1&ShowtimeColor=0xffffff&bAutoPlay=0&bAutoRepeat=0&BufferTime=5&tmeColor=0xffffff&loaColor=0x666666&GroundColor=0x000000&conNum=5&bShowtime=1&startvolume=80" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="#ffffff" />');
document.write('<param name="scale" value="noscale" />');
document.write('<param name="salign" value="lt" />');
document.write('<embed src="' + player + '" width="720" height="405" align="middle" quality="high"  scale="noscale" salign="lt" FlashVars="flvURL=' + file + '&ControlPanelColor=0x333333&buttonColor=0xffffff&ControlPanelPosition=0&showControlPanel=1&ShowtimeColor=0xffffff&bAutoPlay=0&bAutoRepeat=0&BufferTime=5&tmeColor=0xffffff&loaColor=0x666666&GroundColor=0x000000&conNum=5&bShowtime=1&startvolume=80" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
}

function Map(){
window.open('http://maps.google.co.jp/maps?q=%E5%A4%A7%E9%98%AA%E5%B8%82%E4%B8%AD%E5%A4%AE%E5%8C%BA%E6%9D%BE%E5%B1%8B%E7%94%BA3-23&ie=UTF8&om=1&z=17&iwloc=addr');
}

//======================================================
function openContainer(id,elem){
	var obj = document.getElementById(id);
	obj.style.display = "block";
}
function closeContainer(id,elem){
	var obj = document.getElementById(id);
	obj.style.display = "none";
}
//======================================================
function getPage(pageURL) {
xmlhttp = createXMLHttp();
if (xmlhttp)
{
xmlhttp.onreadystatechange = setPageData;
xmlhttp.open('GET', pageURL);
xmlhttp.send(null);
}else{
//alert("XMLHttpRequest失敗");
}
}
function setPageData()
{
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
{
document.getElementById("Room_List").innerHTML = xmlhttp.responseText;
}
}
// XMLHttpsオブジェクト作成
function createXMLHttp()
{
try {
return new ActiveXObject ("Microsoft.XMLHTTP");
}catch(e){
try {
return new XMLHttpRequest();
}catch(e) {
return null;
}
}
return null;
}

