// ÇÃ·¹½Ã ÀÎº£µå //
function FlashEmbed(fid,fn,wd,ht,para)
//('main','swf/main.swf',970,550,'')
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" width="' + wd + '" height="' + ht + '" id="' + fid + '" align="middle">');
	document.write('<param name="allowScriptAccess" value="always">');
	document.write('<param name="movie" value="' + fn + para + '">');
	document.write('<param name="menu" value="false">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="name" value="' + fid + '">');
	document.write('<param name="id" value="' + fid + '">');
	document.write('<param name="src" value="' + fn + para + '">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<embed src="' + fn + para + '" menu="false" quality="high" wmode="transparent" width="' + wd + '" height="' + ht + '" name="' + fid + '" id="' + fid + '" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

function setPng24(obj) { 
    obj.width=obj.height=1; 
    obj.className=obj.className.replace(/\bpng24\b/i,''); 
    obj.style.filter = 
    "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" 
    obj.src='';  
    return ''; 
}

//----------------------------------------------
//Floating v1.1 Source
//----------------------------------------------

//new Floating(Àû¿ëÇÒ°³Ã¼ , XÃà¿©¹é , YÃà¿©¹é , ¹Ì²ô·¯Áö´Â¼Óµµ:ÀÛÀ»¼ö·Ïºü¸§..±âº»20 , ºü¸£±â:ÀÛÀ»¼ö·ÏºÎµå·¯¿ò..±âº»10);

function Floating(FloatingObj,MarginX,MarginY,Percentage,setTime) {
	this.FloatingObj = FloatingObj;
	this.MarginX = (MarginX) ? MarginX : 0;
	this.MarginY = (MarginY) ? MarginY : 0;
	//this.MarginX = document.getElementById('body_cus').offsetLeft + 985;
	this.Percentage = (Percentage) ? Percentage : 15;
	this.setTime = (setTime) ? setTime : 10;
	this.FloatingObj.style.position = "absolute";
	this.Body = null;
	this.setTimeOut = null;
	this.Run();
}

Floating.prototype.Run = function () {
	if ((document.documentElement.scrollLeft + document.documentElement.scrollTop) > (document.body.scrollLeft + document.body.scrollTop)) {
		this.Body = document.documentElement;
	} else {
		this.Body = document.body;
	}

	var This = this;
	var FloatingObjLeft = (this.FloatingObj.style.left) ? parseInt(this.FloatingObj.style.left,10) : this.FloatingObj.offsetLeft;
	var FloatingObjTop = (this.FloatingObj.style.top) ? parseInt(this.FloatingObj.style.top,10) : this.FloatingObj.offsetTop;
	var DocLeft = this.MarginX;
	var DocTop = this.Body.scrollTop + this.MarginY;

	var MoveX = Math.abs(FloatingObjLeft - DocLeft);
	MoveX = Math.ceil(MoveX / this.Percentage);
	var MoveY = Math.abs(FloatingObjTop - DocTop);
	MoveY = Math.ceil(MoveY / this.Percentage);

	if (FloatingObjLeft < DocLeft) {
		this.FloatingObj.style.left = FloatingObjLeft + MoveX + "px";
	} else {
		this.FloatingObj.style.left = FloatingObjLeft - MoveX + "px";
	}

	if (FloatingObjTop < DocTop) {
		this.FloatingObj.style.top = FloatingObjTop + MoveY + "px";
	} else {
		this.FloatingObj.style.top = FloatingObjTop - MoveY + "px";
	}

	window.clearTimeout(this.setTimeOut);
	this.setTimeOut = window.setTimeout(function () { This.Run(); },this.setTime);
}


//Äü¸Þ´º
function buildMenu() {
speed=45; // ¼Óµµ Á¶Àý
topdistance=30; // À§ÂÊ¿©¹é. ¿ÞÂÊ ¿©¹éÀº °¢ ¸Þ´º ·¹ÀÌ¾îÀÇ left:10px ºÎºÐ¿¡¼­ ¼öÁ¤ ÇÏ¼¼¿ä
items=1; // ÀüÃ¼ ¸Þ´ºÀÇ °¹¼ö
y=20;
ob=1;
if (navigator.appName == "Netscape") {
v=".top=",dS="document.",sD="";
}
else {
v=".pixelTop=",dS="",sD=".style";
   }
}
function scrollItems() {
if (ob<items+1) {
objectX="tb_mn"+ob; y+=10; eval(dS + objectX + sD + v + y);
if (y<topdistance) setTimeout("scrollItems()",speed);
else y=0, topdistance+=30, ob+=1, setTimeout("scrollItems()",speed);
   }
}


function PlayEmbed(fid,fn,wd,ht,para,autostart) {
	document.write('<object id='+ fid +' codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,05,0809" type="application/x-oleobject"  standby="Loading Microsoft Windows Media Player components..." height="'+ ht +'" width="'+ wd +'" classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" name='+ fid +' viewastext>');
	document.write('<param name="AudioStream" value="-1">');
	document.write('<param name="AutoSize" value="0">');
	document.write('<param name="AutoStart" value="'+ autostart +'">');
	document.write('<param name="AnimationAtStart" value="-1">');
	document.write('<param name="AllowScan" value="-1">');
	document.write('<param name="AllowChangeDisplaySize" value="-1">');
	document.write('<param name="AutoRewind" value="1">');
	document.write('<param name="Balance" value="0">');
	document.write('<param name="BaseURL" value="">');
	document.write('<param name="BufferingTime" value="5">');
	document.write('<param name="CaptioningID" value="">');
	document.write('<param name="ClickToPlay" value="-1">');
	document.write('<param name="CursorType" value="0">');
	document.write('<param name="CurrentPosition" value="-1">');
	document.write('<param name="CurrentMarker" value="0">');
	document.write('<param name="DefaultFrame" value="10">');
	document.write('<param name="DisplayBackColor" value="0">');
	document.write('<param name="DisplayForeColor" value="16777215">');
	document.write('<param name="DisplayMode" value="0">');
	document.write('<param name="DisplaySize" value="4">');
	document.write('<param name="Enabled" value="-1">');
	document.write('<param name="EnableContextMenu" value="-1">');
	document.write('<param name="EnablePositionControls" value="-1">');
	document.write('<param name="EnableFullScreenControls" value="0">');
	document.write('<param name="EnableTracker" value="-1">');
	document.write('<param name="Filename" value="' + fn + '">');
	document.write('<param name="InvokeURLs" value="-1">');
	document.write('<param name="Language" value="-1">');
	document.write('<param name="Mute" value="0">');
	document.write('<param name="PlayCount" value="1">');
	document.write('<param name="PreviewMode" value="true">');
	document.write('<param name="Rate" value="1">');
	document.write('<param name="SAMILang" value="">');
	document.write('<param name="SAMIStyle" value="">');
	document.write('<param name="SAMIFileName" value="">');
	document.write('<param name="SelectionStart" value="-1">');
	document.write('<param name="SelectionEnd" value="-1">');
	document.write('<param name="SendOpenStateChangeEvents" value="-1">');
	document.write('<param name="SendWarningEvents" value="-1">');
	document.write('<param name="SendErrorEvents" value="-1">');
	document.write('<param name="SendKeyboardEvents" value="0">');
	document.write('<param name="SendMouseClickEvents" value="-1">');
	document.write('<param name="SendMouseMoveEvents" value="0">');
	document.write('<param name="SendPlayStateChangeEvents" value="-1">');
	document.write('<param name="ShowCaptioning" value="0">');
	document.write('<param name="ShowControls" value="0">');
	document.write('<param name="ShowAudioControls" value="0">');
	document.write('<param name="ShowDisplay" value="0">');
	document.write('<param name="ShowGotoBar" value="0">');
	document.write('<param name="ShowPositionControls" value="0">');
	document.write('<param name="ShowStatusBar" value="0">');
	document.write('<param name="ShowTracker" value="-1">');
	document.write('<param name="transparentAtStart" value="True">');
	document.write('<param name="transparentAtStop" value="False">');
	document.write('<param name="VideoBorderWidth" value="0">');
	document.write('<param name="VideoBorderColor" value="0">');
	document.write('<param name="VideoBorder3D" value="0">');
	document.write('<param name="Volume" value="-600">');
	document.write('<param name="WindowlessVideo" value="1">');
	document.write('<param name="loop" value="false">');
	document.write('</object>');

}
