﻿// 테두리
function autoBlur(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") 
document.body.focus(); 
} 
document.onfocusin=autoBlur; 

// flash(파일주소, 가로, 세로, 배경색, 윈도우모드, 변수, 경로)
function flash(url,w,h,bg,win,vars,base){
	var s=
	"<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+"' align='middle'>"+
	"<param name='allowScriptAccess' value='always' />"+
	"<param name='movie' value='"+url+"' />"+
	"<param name='wmode' value='"+win+"' />"+
	"<param name='menu' value='false' />"+
	"<param name='quality' value='high' />"+
	"<param name='FlashVars' value='"+vars+"' />"+
	"<param name='bgcolor' value='"+bg+"' />"+
	"<param name='base' value='"+base+"' />"+
	"<embed src='"+url+"' base='"+base+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' align='middle' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
	"</object>";
	document.write(s);
}

// 탭메뉴
function DisplayMenu(index) {
  for (i=1; i<=2; i++)
     if (index == i) {
        thisMenu = eval("menu" + index + ".style");
        thisMenu.display = "";
     } 
     else {
  	    otherMenu = eval("menu" + i + ".style"); 
        otherMenu.display = "none"; 
     }
}


function newWindow(idx) {
   window.open("/pop/movie_pop.htm?idx="+idx+"","동영상플레이","toolbar=no,location=no,scrollbars=no,status=yes,width=333,height=415");
 }

