var dURL = "http://edu.inausacademy.com";

function movie_open(vf,vt,fn,bn,vn,co) {
	if (vt == "sv")  {
	   if (vf == "f") { x = 664;  y = 557; } //SeeVideo »ùÇÃ°­ÀÇ
	   if (vf == "s") { x = 664;  y = 557; } //SeeVideo °íÈ­Áú
	   if (vf == "g") { x = 480;  y = 389; } //SeeVideo ÀÏ¹ÝÈ­Áú ÇöÀç´Â »ç¿ë¾ÈÇÔ
	}   
	if (vt == "wm")  { x = 354;  y = 402; } //WindowMedia ÀÏ¹Ý°­ÀÇ
	if (vt == "in")  { x = 971;  y = 630; } //WindowMedia °í¿ëº¸Çè(ÇÏ³ªÀºÇà 1Â÷¼ö°­ÀÚ¸¸ ÇØ´ç)
	
	var url = dURL+"/viewer/"+vt+"_view.asp?"
	var mv1 = window.open (url+"vf="+vf+"&fn="+fn+"&bn="+bn+"&vn="+vn+"&co="+co,"vod1","left="+(screen.width-x)/2+",top=100,status=yes,width="+x+",height="+y+""); 
	mv1.focus();
}

//½ºÆ®¸®¹Ö µ¿¿µ»ó º¸±â È£Ãâ, 2011.04.29, ±èÃ¢ÀÏ
//vt - sv:»ùÇÃ, wm:µ¿¿µ»ó
function stream_wmv_open(vt, bn, vn, co) {	
	var w = 692, h = 663;
	var targetURL= dURL+"/viewer/MediaPlayer/WMV_VIEWER.asp?vt="+ vt +"&bn="+ bn +"&vn="+ vn +"&co="+co;
	var ww = (screen.availWidth - 10) / 2 - (w / 2);
    var hh = (screen.availHeight - 15) / 2 - (h / 2);
    var objLecWin = window.open(targetURL, "LEC_WIN", "toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=" + scroll + ",resizable=no,copyhistory=no,width=" + w + ",height=" + h + ",top=" + hh + ",left=" + ww);

    objLecWin.focus();
}

function mopen(bn,vn,co) {
	var x = 1024;
	var y = 540;
	var url = dURL+"/viewer/WmvFlash/View_Main.asp?";
	var mv2 = window.open (url+"bn="+bn+"&vn="+vn+"&co="+co,"wf","left="+(screen.width-x)/2+",top="+(screen.height-y)/2+",status=yes,width="+x+",height="+y+""); 
	mv2.focus();
}

//µ¿¿µ»ó+ÇÃ·¡½Ã(°í¿ëº¸Çè ÇüÅÂ, ÀÌÀü/´ÙÀ½)
function wfopen(bn,vn,co) {
	var x = 1024;
	var y = 645;
	var url = dURL+"/viewer/WmvFlash2/lec_check.asp?";
	var wf = window.open (url+"bn="+bn+"&vn="+vn+"&co="+co,"wf","left="+(screen.width-x)/2+",top="+(screen.height-y)/2+",status=yes,width="+x+",height="+y+""); 
	wf.focus();
}

// ½Å±Ô°úÁ¤°³¹ß¿¡ µû¸¥ »ùÇÃº¸±â ¸µÅ© Ãß°¡
function mopen2(bn,vn,co) {
	var x = 1024;
	var y = 678;
	var url = dURL+"/viewer/include/step_check.asp?";
	var mv3 = window.open (url+"b_no="+bn+"&code="+co,"wf","left=10,top=10,status=yes,width="+x+",height="+y+""); 
	mv3.focus();
}

/*
function movie_open_insu(vf,vt,fn,bn,vn,co) {
//    if (vf == "i")	 { x = 930;  y = 524; url = "/viewer/"+co+"/insu_result.asp?" }
    if (vf == "i")	 { x = 930;  y = 524; url = "/viewer/include/insu_result.asp?" }
    var insu = window.open (url+"vf="+vf+"&fn="+fn+"&bn="+bn+"&vn="+vn+"&co="+co,"vod","left=30,top=30,width="+x+",height="+y+""); 
	insu.focus();

}
*/

function lec_start(vf,bn,co) {
//    x = 930;  y = 524; 
	//x = 950;  y = 580; 
	x = 950;  y = 710; 

	if (vf == "i"){		
		x = 950;  y = 710; 
		tar_fname = "lec_insu_intro";
	}
	else{
		tar_fname = "lec_intro";
	}

	
	//alert(dURL+"/viewer/include/"+ tar_fname +".asp?vf="+vf+"&bn="+bn+"&co="+co);


	url = dURL+"/viewer/include/"+ tar_fname +".asp?";
    var objLec = window.open (url+"vf="+vf+"&bn="+bn+"&co="+co,"lWin","left=30,top=30,status=yes,width="+x+",height="+y+""); 
	objLec.focus();
}

/*
function user_check_error(code, lec_type, b_no) {
  
     alert('º»ÀÎ ÀÎÁõÀ» ¸ÕÁ® ÇÏ¼Å¾ß ÇÕ´Ï´Ù!');
     location.href = "/login/user_auth_check.asp?code="+code+"&lec_type="+lec_type+"&b_no="+b_no; 
}
*/

