
//ÆË¾÷Ã¢ ½ºÅ©¸³Æ®
function new_popup(url,w,h) {
	var position ="toolbar=0,location=0,width="+w+",height="+h+",left=" + ((screen.width-w)/2) + ",top=" + ((screen.height-h)/2) + ",directories=0,status=0,menubar=0,scrollbars=1,resizable=yes";
	var win = window.open( url, "", position);
	if ( win.focus ) win.focus();
}

// vod Æí´ç ÁÙ°Å¸® ÆË¾÷Ã¢   2004/01/31 Ãß°¡ jphong
function doPopup_series(vlu) 
	{
		window.open("/VOD/popup_series.asp?idx="+vlu,"series_popup","width=500,height=500,top=130,left=260,toolbar=auto,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no")

	}

//ÆË¾÷Ã¢ ½ºÅ©¸³Æ®
function op_pop(url,name,width,height,scrollbars) {
window.open(url,name,'width='+width+',height='+height+',left=250,top=250,scrollbars='+scrollbars);
}


//È¸¿ø Á¤º¸ º¯°æ ÆË¾÷Ã¢ ½ºÅ©¸³Æ®
function member_info_pop(url,name,width,height,scrollbars) {
	window.open(url,name,'width='+width+',height='+height+',left=150,top=150,scrollbars='+scrollbars);
}

function formHandler(form) {
var windowprops = "width=366,height=370,location=no,scrollbars=no,menubars=no,toolbars=no,resizable=no";

var URL = form.site.options[form.site.selectedIndex].value;
popup = window.open(URL,"MenuPopup",windowprops);
}

function sitemove(move) {

var URL = move.site.options[move.site.selectedIndex].value;
popup = window.open(URL);
}





// -------------- ÇÃ·¡½Ã Ãâ·Â --------------------
// fla : ÇÃ·¡½Ã °æ·Î
// width, height : Å©±â
// version : ÇÃ·¡½Ã Ãâ·Â ¹öÀü
function showFlash(fla, width, height, version)
{
	var ver
	
	switch (version){
		case 6 : ver = "6,0,29,0";	break;
		case 7 : ver = "7,0,19,0";	break;
		default : ver = "8,0,0,0";	break;
	}

	var object =
		"<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=" + ver + "' width='" + width + "' height='" + height + "'>"
		+ "<param name='movie' value='" + fla + "' />"
		+ "<param name='quality' value='high' />"
		+ "<param name='wmode' value='transparent'>"
		+ "<embed src='" + fla + "' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='" + width + "' height='" + height + "'></embed>"
		+ "</object>"
	
	document.write( object );
}


function showFlash_main(fla, width, height, version, vars)
{
	var ver
	
	switch (version){
		case 5 : ver = "5,0,0,0";	break;		
		case 6 : ver = "6,0,29,0";	break;
		case 7 : ver = "7,0,19,0";	break;
		default : ver = "8,0,0,0";	break;
	}

	var object =
		"<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=" + ver + "' width='" + width + "' height='" + height + "'>"
		+ "<param name='movie' value='" + fla + "' />"
		+ "<param name='quality' value='high' />"
		+ "<param name='flashvars' value='"+vars+"'>"
		+ "<embed src='" + fla + "' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='" + width + "' height='" + height + "'></embed>"
		+ "</object>"
	
	document.write( object );
}


function showMedia(file, width, height, show)
{

	var object ="<embed src='"+file+"' width='"+width+"' height='"+height+"' type='video/x-ms-wmv' showcontrols='"+show+"' loop='true' autostart='true'>"
	document.write( object );
}

