
// flashWrite(ÆÄÀÏ°æ·Î, °¡·Î, ¼¼·Î, ¾ÆÀÌµð, ¹è°æ»ö, º¯¼ö)
function flashWrite(url,w,h,id,bg,vars){
 

    // ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ
    var flashStr=
    "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
    "<param name='allowScriptAccess' value='always' />"+
    "<param name='movie' value='"+url+"' />"+
    "<param name='FlashVars' value='"+vars+"' />"+
    "<param name='menu' value='false' />"+
    "<param name='quality' value='high' />"+
	 "<param name='wmode' value='transparent' />"+
    "<embed src='"+url+"' FlashVars='"+vars+"' wmode='transparent' menu='false' quality='high' width='"+w+"' height='"+h+"' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
    "</object>";

 

    // ÇÃ·¡½Ã ÄÚµå Ãâ·Â
    document.write(flashStr);

 

}



function LogoutConfirm() {
	if(confirm('·Î±×¾Æ¿ô ÇÏ½Ã°Ú½À´Ï±î?')==1) {
		location.href="../green_board/member/logout.php?return_url1=<?=urlencode($_SERVER['PHP_SELF'])?>&return_url2=<?=urlencode($_SERVER['QUERY_STRING'])?>";
	}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


	/**** ÇÁ¸°Æ® ÆäÀÌÁö ****/
	/**** frame ID·Î PrintTempArea°¡ ÀÖ¾î¾ß ÇÏ¸ç DIV ID·Î PrintArea¸¦ ÁöÁ¤ÇØ¾ß ÇÔ **/
	function PrintPage(){
		PA = document.getElementById("PrintArea");
		PTA = document.frames("PrintTempArea").document;

		PTA.open();
		PTA.writeln("<html><head><title>ÇÑºû¿ä¸®ÇÐ¿ø</title><meta http-equiv='Content-Type' content='text/html; charset=euc-kr'></head><body><link href=/font.css rel=stylesheet type=text/css>"); //½ºÅ¸ÀÏµîÀ» ÁöÁ¤
		PTA.writeln("<table width=670 align=center><tr><td>"); // º»¹® Ãâ·Â
		PTA.writeln(PA.innerHTML); // º»¹® Ãâ·Â
		PTA.writeln("</td></tr></table></body></html>");
		PTA.close();
		PTA.execCommand('Print');
	}





  
  
  // ¹Ìµð¾î ÇÃ·¹ÀÌ¾î º¼·ý Á¦¾î
var nVolLeftPosition = 0;							// º¼·ý ¹Ù ¹è°æ ½ÃÀÛÁ¡
		var nVolStartPosition = 0;							// º¼·ý ¹Ù ½ÃÀÛ Á¡
		var nVolEndPosition = 86;							// º¼·ý ¹Ù ³¡ Á¡
		var nVolume = 75;									// º¼·ý ÃÊ±â °ª
		var nPrevVol;										// º¼·ýÀÌ º¯°æµÇ±â ÀüÀÇ °ª
		var bIsVolumeSet		= false;						// º¼·ý¹Ù µå·¡±× ¿©ºÎ
		var nZoomed			= 0;							// ±âº»°ª 1 : ÁÜµÊ,   0 : Ãà¼ÒµÊ

		function killErr(){return true;}

		function setVolumeBar(){
			nPrevVol = event.clientX;
			nVolLeftPosition = sound.style.pixelLeft;

			bIsVolumeSet = true;
			document.onmousemove=drag_dropie;
			if (document.all){document.onmouseup=endVolume;}
		}

		function drag_dropie(){
			if (bIsVolumeSet==true){
				var mov = nVolLeftPosition+event.clientX-nPrevVol;
				if ((mov >= nVolStartPosition)  && (mov < nVolEndPosition)){
					cutpoint=nVolEndPosition-sound.style.pixelLeft;
					document.all.soundbg.style.pixelWidth=58-cutpoint;
					//document.all.sbg.width = 58-cutpoint;
					sound.style.pixelLeft=nVolLeftPosition+event.clientX-nPrevVol;
					mplayer.Volume = -2500*(cutpoint/56);
					nVolume=sound.style.pixelLeft
					nVolume1=document.all.sbg.width;
					mplayer.Mute=false;
				}
				return false;
			}
		}

		function endVolume(){
			bIsVolumeSet=false;
		}

		function ris(name, nsdoc)
		{
			var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
			if (name == '') return;
			if (img && img.altsrc) {
				img.src    = img.altsrc;
				img.altsrc = null;
			}
		}

		function cis(name, nsdoc, rpath, preload)
		{ 
			var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
			if (name == '')	return;
			if (img) {
				img.altsrc = img.src;
				img.src    = rpath;
			}
		}



