
function movieView(url,width,height){
    document.write("<embed src='"+url+"' width='"+width+"' height='"+height+"' boder='0'></embed>");
}



function setFlash(url,width,height){
 document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'");
 document.write(" codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' id='movie' ");
 document.write(" width='"+width+"' height='"+height+"'>");
 document.write(" <param name='movie' value='"+url+"' /> ");
 document.write(" <param name='quality' value='high' /> ");
// document.write(" <param name='wmode' value='transparent'> ");
 document.write(" <embed src='"+url+"' quality='high' width='"+width+"' height='"+height+"' ");
 document.write(" type='application/x-shockwave-flash' ");
 document.write(" pluginspage='http://www.macromedia.com/go/getflashplayer' />");
 document.write("</object>");
}

function setFlash2(url,width,height){
 document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'");
 document.write(" codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' id='movie' ");
 document.write(" width='"+width+"' height='"+height+"'>");
 document.write(" <param name='movie' value='"+url+"' /> ");
 document.write(" <param name='quality' value='high' /> ");
 document.write(" <param name='wmode' value='transparent'> ");
 document.write(" <embed src='"+url+"' quality='high' width='"+width+"' height='"+height+"' ");
 document.write(" type='application/x-shockwave-flash' ");
 document.write(" pluginspage='http://www.macromedia.com/go/getflashplayer' />");
 document.write("</object>");
}



var old='';
function menu(name){
		
	submenu=eval("list"+name+".style");

	if(old!=submenu)
	{
		if(old!='')
		{
			old.display='none';
		}
		submenu.display='block';
		old=submenu;
	}
	else
	{
		submenu.display='none';
		old='';
	}
}




var iframeids=["myframe","myframe2","myframe3"] // iframe ¿¡ »ç¿ëÇÒ ID ¸¦ ÁöÁ¤ ÇØ ÁÖ¼¼¿ä

var iframehide="yes"

function resizeCaller() {
var dyniframe=new Array()
for (i=0; i<iframeids.length; i++){
if (document.getElementById)
resizeIframe(iframeids[i])
if ((document.all || document.getElementById) && iframehide=="no"){
var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i])
tempobj.style.display="block"
}
}
}

function resizeIframe(frameid){
var currentfr=document.getElementById(frameid)
if (currentfr && !window.opera){
currentfr.style.display="block"
if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax
currentfr.height = currentfr.contentDocument.body.offsetHeight; 
else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax
currentfr.height = currentfr.Document.body.scrollHeight;
if (currentfr.addEventListener)
currentfr.addEventListener("load", readjustIframe, false)
else if (currentfr.attachEvent)
currentfr.attachEvent("onload", readjustIframe)
}
}

function readjustIframe(loadevt) {
var crossevt=(window.event)? event : loadevt
var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement
if (iframeroot)
resizeIframe(iframeroot.id);
}

function loadintoIframe(iframeid, url){
if (document.getElementById)
document.getElementById(iframeid).src=url
}

if (window.addEventListener)
window.addEventListener("load", resizeCaller, false)
else if (window.attachEvent)
window.attachEvent("onload", resizeCaller)
else
window.onload=resizeCaller
