//ÇÃ·¡½Ã
function FlashMainbody(Ftrans,wid,hei) {
	mainbody = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+ wid +"' height='"+ hei +"'>";
	mainbody += "<param name='movie' value='"+ Ftrans +"'>";
	mainbody += "<param name='quality' value='high'>";
	mainbody += "<param name='wmode' value='transparent'>";
	mainbody += "<param name='menu' value='false'>";
	mainbody += "<embed src='"+ Ftrans +"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+ wid +"' height='"+ hei +"'></embed>"
	mainbody += "</object>";

	//document.body.innerHTML = mainbody;
	document.write(mainbody);
	return;
}


//ÇÃ·¡½Ã
function FlashPrint(Ftrans,wid,hei) {
	mainprint = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+ wid +"' height='"+ hei +"'>";
	mainprint += "<param name='movie' value='"+ Ftrans +"'>";
	mainprint += "<param name='quality' value='high'>";	
	mainprint += "<param name='menu' value='false'>";
	mainprint += "<embed src='"+ Ftrans +"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+ wid +"' height='"+ hei +"'></embed>"
	mainprint += "</object>";

	//document.body.innerHTML = mainprint;
	document.write(mainprint);
	return;
}


// ÇÃ·¡½Ã
function FlashTop(strMenuType, strSubMenuType)
{
	document.write('<OBJECT id="menu" codeBase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" height="130" width="940" align="middle" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" VIEWASTEXT>');
	document.write('	<PARAM NAME="_cx" VALUE="16669">');
	document.write('	<PARAM NAME="_cy" VALUE="3175">');
	document.write('	<PARAM NAME="FlashVars" VALUE="">');
	//document.write('	<PARAM NAME="Movie" VALUE="http://island.haewoon.co.kr/Island/images2/flash/sub_top.swf?main='+strMenuType+'&sub='+strSubMenuType+'">');
	document.write('	<PARAM NAME="Movie" VALUE="../images2/flash/sub_top.swf?main='+strMenuType+'&sub='+strSubMenuType+'">');
	//document.write('	<PARAM NAME="Src" VALUE="http://island.haewoon.co.kr/Island/images2/flash/sub_top.swf?main='+strMenuType+'&sub='+strSubMenuType+'">');
	document.write('	<PARAM NAME="Src" VALUE="../images2/flash/sub_top.swf?main='+strMenuType+'&sub='+strSubMenuType+'">');
	document.write('	<PARAM NAME="WMode" VALUE="Window">');
	document.write('	<PARAM NAME="Play" VALUE="-1">');
	document.write('	<PARAM NAME="Loop" VALUE="-1">');
	document.write('	<PARAM NAME="Quality" VALUE="High">');
	document.write('	<PARAM NAME="SAlign" VALUE="">');
	document.write('	<PARAM NAME="Menu" VALUE="-1">');
	document.write('	<PARAM NAME="Base" VALUE="">');
	document.write('	<PARAM NAME="AllowScriptAccess" VALUE="sameDomain">');
	document.write('	<PARAM NAME="Scale" VALUE="ShowAll">');
	document.write('	<PARAM NAME="DeviceFont" VALUE="0">');
	document.write('	<PARAM NAME="EmbedMovie" VALUE="0">');
	document.write('	<PARAM NAME="BGColor" VALUE="FFFFFF">');
	document.write('	<PARAM NAME="SWRemote" VALUE="">');
	document.write('	<PARAM NAME="MovieData" VALUE="">');
	document.write('	<PARAM NAME="SeamlessTabbing" VALUE="1">');
	//document.write('	<embed src="http://island.haewoon.co.kr/Island/images2/flash/sub_top.swf?main='+strMenuType+'&sub='+strSubMenuType+'" quality="high" bgcolor="#ffffff" width="940" height="130"');
	document.write('	<embed src="../images2/flash/sub_top.swf?main='+strMenuType+'&sub='+strSubMenuType+'" quality="high" bgcolor="#ffffff" width="940" height="130"');
	document.write('		name="menu" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"');
	document.write('		pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</OBJECT>');
}



//·Ñ¿À¹ö
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}



//ÇªÅÍ Family site
function createFileTag(num)
{
	var num;

	if(num == "0"){
		alert("»çÀÌÆ®¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä.");
	} else if (num == "1"){
		window.open('http://www.haewoon.co.kr/','heawoon','');
	} else if (num == "2"){
		window.open('http://island.haewoon.co.kr/','heawoon','');
	} else if (num == "3"){
		window.open('http://www.anjunjaedan.co.kr/','heawoon','');
	} else if (num == "4"){
		window.open('http://ship.haewoon.co.kr/','heawoon','');
	}

}


