/*top ½ºÅ©¸³Æ®*/
function imageRollout (targetImage)
{
	var targetSrc	= targetImage.src;
	var fileName	= targetSrc.substring(0, targetSrc.lastIndexOf("."));
	var fileExt	= targetSrc.substring(targetSrc.lastIndexOf(".") + 1, targetSrc.length);

	var newFilePath	= fileName.substring(0, fileName.length - 2) + "." + fileExt;

	targetImage.filters.blendTrans.stop();
	targetImage.filters.blendTrans.Apply();
	targetImage.src	= newFilePath;
	targetImage.filters.blendTrans.Play();
}

			var bNetscape4plus = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "4");
			var bExplorer4plus = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4");

			var bNetscape4plus = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "4");
			var bExplorer4plus = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4");

		function CheckUIElements()
		{
				var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck;

				if ( bNetscape4plus ) { // ³×Ã÷ÄÉÀÌÇÁ ¿ë ¼³Á¤
						yMenuFrom   = document["divMenu"].top;
						yMenuTo     = top.pageYOffset + 200;   // À§ÂÊ À§Ä¡
				}
				else if ( bExplorer4plus ) {  // IE ¿ë ¼³Á¤
						yMenuFrom   = parseInt (divMenu.style.top, 10);
						yMenuTo     = document.body.scrollTop + 320; // 
				}

//¿ä±â¼öÄ¡º¯°æ
				timeoutNextCheck = 500;

				//yMenuTo + 352
/*
				if ( Math.abs (yButtonFrom - (yMenuTo + 252)) < 6 && yButtonTo < yButtonFrom ) {
						setTimeout ("CheckUIElements()", timeoutNextCheck);
						return;
				}
*/
				if ( yMenuFrom != yMenuTo && yMenuTo<1300) {
						yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 20 );
						if ( yMenuTo < yMenuFrom )
								yOffset = -yOffset;

						if ( bNetscape4plus )
								document["divMenu"].top += yOffset;
						else if ( bExplorer4plus )
  							divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;
		
						timeoutNextCheck = 10

				} 

				setTimeout ("CheckUIElements()", timeoutNextCheck);
		}
/*
		function CheckUIElements2()
		{
				var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck;

				if ( bNetscape4plus ) { // ³×Ã÷ÄÉÀÌÇÁ ¿ë ¼³Á¤
						yMenuFrom   = document["divMenu"].top;
						yMenuTo     = top.pageYOffset + 200;   // À§ÂÊ À§Ä¡
				}
				else if ( bExplorer4plus ) {  // IE ¿ë ¼³Á¤
						yMenuFrom   = parseInt (divMenu.style.top, 10);
						yMenuTo     = document.body.scrollTop + 185;
				}
						

				timeoutNextCheck = 600;

			
				if ( Math.abs (yButtonFrom - (yMenuTo + 152)) < 6 && yButtonTo < yButtonFrom ) {
						setTimeout ("CheckUIElements()", timeoutNextCheck);
						return;
				}
				
			
				if ( yMenuFrom != yMenuTo ) {
						yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 20 );
						if ( yMenuTo < yMenuFrom )
								yOffset = -yOffset;

						if ( bNetscape4plus )
								document["divMenu"].top += yOffset;
						else if ( bExplorer4plus )
								divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;

						timeoutNextCheck = 10;
				}

				setTimeout ("CheckUIElements()", timeoutNextCheck);
		}
*/
		function OnLoad()
		{
			document.write("<div id='divMenu' style='top:50px;left:872px;position:absolute;width:48px;height:15px'>sss</div>");
		    divMenu.innerHTML = "<table border=0><tr><td><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' width='88' height='247' id='sc_flash' align='middle'><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='swf/quick.swf' /><param name='quality' value='high' /><param name='bgcolor' value='#ffffff' /><param name='wmode' value='transparent' /><embed src='swf/quick.swf' quality='high' bgcolor='#ffffff' width='88' height='247' name='sc_flash' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash'></object></td></tr><tr><td align=center style='padding-top:5px'><a href='#'><img src='img/top.gif'></a></td></tr></table>"

//           divMenu.style.top = document.body.scrollTop + 585;
           CheckUIElements();
           
		}
		//_LeftSubMenu
		OnLoad();

			//ÇÃ·¡½¬ 

function flash(szLink, iWidth, iHeight, szID)
{
  script = '';
  script += '<div><OBJECT codeBase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0 height='+iHeight+' width='+iWidth+' align=middle classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000>';
//  script += '<PARAM NAME="_cx" VALUE="21325">';
//  script += '<PARAM NAME="_cy" VALUE="2646">';
  script += '<PARAM NAME="FlashVars" VALUE="">';
  
  script += '<PARAM NAME="Movie" VALUE="'+szLink+'">';
  script += '<PARAM NAME="Src" VALUE="'+szLink+'">';
  
  script += '<PARAM NAME="WMode" VALUE="Transparent">';
  script += '<PARAM NAME="Play" VALUE="-1">';
  script += '<PARAM NAME="Loop" VALUE="-1">';
  script += '<PARAM NAME="Quality" VALUE="High">';
  script += '<PARAM NAME="SAlign" VALUE="">';
  script += '<PARAM NAME="Menu" VALUE="-1">';
  script += '<PARAM NAME="Base" VALUE="">';
  script += '<PARAM NAME="AllowScriptAccess" VALUE="sameDomain">';
  script += '<PARAM NAME="Scale" VALUE="ShowAll">';
  script += '<PARAM NAME="DeviceFont" VALUE="0">';
  script += '<PARAM NAME="EmbedMovie" VALUE="0">';
  script += '<PARAM NAME="BGColor" VALUE="FFFFFF">';
  script += '<PARAM NAME="SWRemote" VALUE="">'
  script += '<PARAM NAME="MovieData" VALUE="">'
  script += '<PARAM NAME="SeamlessTabbing" VALUE="1">';
	script += '<param NAME="swliveconnect" value="true">';
  script += '<PARAM NAME="Profile" VALUE="0">';
  script += '<PARAM NAME="ProfileAddress" VALUE="">';
  script += '<PARAM NAME="ProfilePort" VALUE="0">';
  
  script +=' <embed src="'+szLink+'" Quality="High" BGColor="FFFFFF" swliveconnect="true" width="'+iWidth+'" height="'+iHeight+'" align="middle" AllowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" / FlashVars WMode="Transparent" Play="-1" Loop="-1" SAlign Menu="-1" Base Scale="ShowAll" DeviceFont="0" EmbedMovie="0" SWRemote MovieData SeamlessTabbing="1" Profile="0" ProfileAddress ProfilePort="0">';
    	   
	script +='</OBJECT></div>';
	szID.innerHTML = script;
//	return script;
}

function fResize(iht, Wid, szID)
{
    var iloop = 0;
    var ileft = 0;
    
    for ( iloop = 0; iloop < document.all.length ; iloop++ )
    {
        if  ( document.all.item(iloop).tagName == "IFRAME" )
        {
            if ( document.all.item(iloop).id == szID )
            {
                document.all.item(iloop).style.height  = iht;
                document.all.item(iloop).style.width  = Wid;
            }
        
        }
    
    }
    divMenu.style.top = 200;
}
