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 pop_open() {
//	window.open('./event/songpa_openevent_pop.html', 'event', 'width=330, height=530, scrollbars=0,resizable=0')
//		var count=2;
}
function MM_preloadImages() { //v3.0
//  pop_open();
  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.0
  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 && document.getElementById) x=document.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];}
}

function MM_controlSound(x, _sndObj, sndFile) { //v3.0
  var i, method = "", sndObj = eval(_sndObj);
  if (sndObj != null) {
    if (navigator.appName == 'Netscape') method = "play";
    else {
      if (window.MM_WMP == null) {
        window.MM_WMP = false;
        for(i in sndObj) if (i == "ActiveMovie") {
          window.MM_WMP = true; break;
      } }
      if (window.MM_WMP) method = "play";
      else if (sndObj.FileName) method = "run";
  } }
  if (method) eval(_sndObj+"."+method+"()");
  else window.location = sndFile;
}

function playSound(name,soundSrc) {
	var html="<EMBED SRC='"+soundSrc+"' LOOP=false AUTOSTART=true MASTERSOUND HIDDEN=true WIDTH=0 HEIGHT=0></EMBED>";
	document.all[name].innerHTML=html;
}

function stopSound(name) {
	var html="";
	document.all[name].innerHTML=html;
}

function openMemo(userid){
	window.open('memo/MemoWrite.html?mode=receive&userid='+userid,'memo','width=490,height=650,scrollbars=0,noresize,nostatus');
}

function BottomOpen(linkpage, W, H ) {
                     farwindow = window.open('','LinksRemote','width='+ W +',height=' + H + ',scrollbars=1,resizable=0');
                     if (farwindow != null) {
                        if (farwindow.opener == null) {
                           farwindow.opener = self;
                         }
                         farwindow.location.href = linkpage;
                     }
			    
				return false ;
}

var farwindow = null;
function remoteWindow(linkpage, W, H ) {
	farwindow = window.open('','LinksRemote','width='+ W +',height=' + H + ',scrollbars=0,resizable=0');
    if (farwindow != null) {
		if (farwindow.opener == null) {
			farwindow.opener = self;
        }
        farwindow.location.href = linkpage;
    }
}

function doBlink() {
var blink = document.all.tags("BLINK")
for (var i=0; i<blink.length; i++)
blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : "" 
}

function startBlink() {
if (document.all)
setInterval("doBlink()",500)
}


// flashWrite(ÆÄÀÏ°æ·Î, °¡·Î, ¼¼·Î, ¾ÆÀÌµð, ¹è°æ»ö, º¯¼ö, À©µµ¿ì¸ðµå) 
function flashWrite(url,w,h,id,bg,vars,win){ 
// ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ 
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='wmode' value='"+win+"' />"+ 
"<param name='menu' value='false' />"+ 
"<param name='quality' value='high' />"+ 
"<param name='bgcolor' value='"+bg+"' />"+ 
"<embed src='"+url+"' FlashVars='"+vars+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+ 
"</object>"; 
// ÇÃ·¡½Ã ÄÚµå Ãâ·Â 
document.write(flashStr); 
} 
