﻿/*-- Popup Window Setting --*/
function openPageSc(pageLink,pageWidth,pageHeight){
	window.open( pageLink + ".html","new","width=" + pageWidth + ",height=" + pageHeight + ",toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=yes");
}
function openPagePop( pageLink, pageWidth, pageHeight ){
	window.open( pageLink ,"new","width=" + pageWidth + ",height=" + pageHeight + ",toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=yes");
}
function openPagePopFix( pageLink, pageWidth, pageHeight ){
	window.open( pageLink ,"new","width=" + pageWidth + ",height=" + pageHeight + ",toolbar=no,status=no,menubar=no,scrollbars=no,resizable=yes");
}

//--Page Link Setting(Host Root)--//
function loadFlashFile(str,width,height){
	document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" width=\"" + width + "\" height=\"" + height + "\" id=\"flashImage\" align=\"middle\">");
	document.write("<param name=\"allowScriptAccess\" value=\"sameDomain\" />");
	document.write("<param name=\"movie\" value=\"" + str + ".swf\" />");
	document.write("<param name=\"quality\" value=\"high\" />");
	document.write("<param name=\"bgcolor\" value=\"#FFFFFF\" />");
	document.write("<param name=\"wmode\" value=\"transparent\" />");
	document.write("<embed src=\"" + str + ".swf\" quality=\"high\" wmode=\"transparent\" bgcolor=\"#FFFFFF\" width=\"" + width + "\" height=\"" + height + "\" name=\"flashImage\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" />");
	document.write("</object>");
}
function loadTopFlashFile(str,width,height,url){
	document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" width=\"" + width + "\" height=\"" + height + "\" id=\"flashImage\" align=\"middle\">");
	document.write("<param name=\"allowScriptAccess\" value=\"sameDomain\" />");
	document.write("<param name=\"FlashVars\" value=\"linkUrl="+ url +"\" />");
	document.write("<param name=\"movie\" value=\"" + str + ".swf\" />");
	document.write("<param name=\"quality\" value=\"high\" />");
	document.write("<param name=\"bgcolor\" value=\"#FFFFFF\" />");
	document.write("<param name=\"wmode\" value=\"transparent\" />");
	document.write("<embed src=\"" + str + ".swf\" quality=\"high\" wmode=\"transparent\" bgcolor=\"#FFFFFF\" width=\"" + width + "\" height=\"" + height + "\" name=\"flashImage\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" FlashVars=\"linkUrl="+ url +"\" />");
	document.write("</object>");
}
function loadFlashMovie(str,width,height,type){
	document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" width=\"" + width + "\" height=\"" + height + "\" id=\"flashImage\" align=\"middle\">");
	document.write("<param name=\"allowScriptAccess\" value=\"sameDomain\" />");
	document.write("<param name=\"FlashVars\" value=\"movieSelect="+ type +"\" />");
	document.write("<param name=\"movie\" value=\"" + str + ".swf\" />");
	document.write("<param name=\"quality\" value=\"high\" />");
	document.write("<param name=\"bgcolor\" value=\"#FFFFFF\" />");
	document.write("<param name=\"wmode\" value=\"transparent\" />");
	document.write("<embed src=\"" + str + ".swf\" quality=\"high\" wmode=\"transparent\" bgcolor=\"#FFFFFF\" width=\"" + width + "\" height=\"" + height + "\" name=\"flashImage\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" FlashVars=\"movieSelect="+ type +"\" />");
	document.write("</object>");
}
function loadMovie(str){
	document.write("<embed type=\"application/x-mplayer2\" name=\"MediaPlayer\" src=\"http://www2.cmjapan.com/ecoglass/" + str + ".asx\" width=\"320\" height=\"300\"></embed>");
}

/*-- Open/Close div'Notes'  --*/
function openNote01(){
	document.getElementById("note01").style.visibility = "visible";
	document.getElementById("note02").style.visibility = "hidden";
	document.getElementById("note03").style.visibility = "hidden";
	document.getElementById("note01").style.height = "auto";
	document.getElementById("note02").style.height = "0";
	document.getElementById("note03").style.height = "0";
}	function openNote02(){
	document.getElementById("note01").style.visibility = "hidden";
	document.getElementById("note02").style.visibility = "visible";
	document.getElementById("note03").style.visibility = "hidden";
	document.getElementById("note01").style.height = "0";
	document.getElementById("note02").style.height = "auto";
	document.getElementById("note03").style.height = "0";
}	function openNote03(){
	document.getElementById("note01").style.visibility = "hidden";
	document.getElementById("note02").style.visibility = "hidden";
	document.getElementById("note03").style.visibility = "visible";
	document.getElementById("note01").style.height = "0";
	document.getElementById("note02").style.height = "0";
	document.getElementById("note03").style.height = "auto";
}	function closeNote(){
	document.getElementById("note01").style.visibility = "hidden";
	document.getElementById("note02").style.visibility = "hidden";
	document.getElementById("note03").style.visibility = "hidden";
	document.getElementById("note01").style.height = "0";
	document.getElementById("note02").style.height = "0";
	document.getElementById("note03").style.height = "0";
}

