// ------------------------------------------------------------------------------------------
// ÇÃ·¡½¬ °ü·Ã ÇÔ¼ö
// ------------------------------------------------------------------------------------------
//ÇÏ´Ù¸¶ÀÌ ÇÃ·¡½Ã »ðÀÔ ÀÚ¹Ù½ºÅ©¸³Æ®-¾×Æ¼ºê¿¢½ºÆÐÄ¡´ëºñ
//2006-02-09
//°¢ ¼Ó¼º ¿ÜºÎ ÀÔ·Â.´ÙÁß»ç¿ë.

function FlashInsert(FlashIDName, FlashFileName, FlashWidth, FlashHeight, DNSSetting, WMODESetting, FlashBGColor, QSetting, FlashAlign)
{
	document.write('<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write('CODEBASE="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab#version=8,0,22,0" ');
	document.write(' ID="'+FlashIDName+'" WIDTH="' + FlashWidth + '" HEIGHT="' + FlashHeight + '" ALIGN="'+FlashAlign+'">');
	document.write('<PARAM NAME="movie" VALUE="'+ FlashFileName +'">');
	document.write('<PARAM NAME="quality" VALUE="'+QSetting+'">');
	document.write('<PARAM NAME="bgcolor" VALUE="'+FlashBGColor+'">');
	document.write('<PARAM NAME="wmode" VALUE="'+WMODESetting+'">');
	document.write('<PARAM NAME="allowScriptAccess" VALUE="'+DNSSetting+'">');
	document.write('<EMBED SRC="'+ FlashFileName +'"  NAME="'+FlashIDName+'"');
	document.write(' WIDTH="' + FlashWidth + '" HEIGHT="' + FlashHeight + '" QUALITY="'+QSetting+'" BGCOLOR="'+FlashBGColor+'"');
	document.write(' ALLOWSCRIPTACCESS="'+DNSSetting+'" ALIGN="'+FlashAlign+'" WMODE="'+WMODESetting+'" TYPE="application/x-shockwave-flash" ');
	document.write(' PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" >');
	document.write('</EMBED>');
	document.write('</OBJECT>');
}
// ------------------------------------------------------------------------------------------
// Äü¸Þ´º °ü·Ã ÇÔ¼ö
// ------------------------------------------------------------------------------------------
 			var isDOM = (document.getElementById ? true : false); 
			var isIE4 = ((document.all && !isDOM) ? true : false);
			var isNS4 = (document.layers ? true : false);

			function getRef(id) {
				if (isDOM) return document.getElementById(id);
				if (isIE4) return document.all[id];
				if (isNS4) return document.layers[id];
			}

			var isNS = navigator.appName == "Netscape";

			function moveRightEdge() {
				var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;
				if (isNS4) {
					yMenuFrom   = divMenu.top;
					yMenuTo     = windows.pageYOffset+10;
				} else if (isDOM) {
					yMenuFrom   = parseInt (divMenu.style.top, 10);
					yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop)+0;
				}
				if(yMenuTo<150) yMenuTo = 115;

				timeoutNextCheck = 500;

				if (yMenuFrom != yMenuTo) {
					yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 10);
					if (yMenuTo < yMenuFrom)
					yOffset = -yOffset;
					if (isNS4) divMenu.top += yOffset;
					else if (isDOM) divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;
					timeoutNextCheck = 10;
				}
				setTimeout ("moveRightEdge()", timeoutNextCheck);
			}
// ------------------------------------------------------------------------------------------
// ¾ÆÀÌÇÁ·¹ÀÓ °ü·Ã ÇÔ¼ö
// ------------------------------------------------------------------------------------------
	function calcHeight()
{
  //find the height of the internal page
  var the_height=document.getElementById('main').contentWindow.document.body.scrollHeight;

  //change the height of the iframe
  document.getElementById('main').height=the_height; 
  document.body.scrolltop = 0;
window.scrollTo( 0, 0 );
  //setTimeout( "calcHeight()", 100 );
}
// ------------------------------------------------------------------------------------------
// IE PNG °ü·Ã ÇÔ¼ö
// ------------------------------------------------------------------------------------------
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 '';
} 
// ------------------------------------------------------------------------------------------
// ÇÃ·¡½¬ ¾ÆÀÌÇÁ·¹ÀÓ ·Îµù
// ------------------------------------------------------------------------------------------
function showBoard(){
var zboard=document.getElementById("frame_board")
zboard.width=556;
zboard.height=622;
zboard.style.top=143;
zboard.style.left=177;
zboard.src="../bbs/zboard.php?id=board";
zboard.style.display="block"
}

function hideBoard(){
var zboard=document.getElementById("frame_board")
zboard.style.display="none"}