
// downloadque
function RunDownQue(mkey,url) 
{	

	gomtvxInstall();
	if(gomtvx.IsInstall) {
		var dparam = mkey+" "+url;
		gomtvx.SetVersionURL('http://app.gomtv.com/dq/GomTVDQVersion.ini');			
		gomtvx.SetClassName('GOMTV_QUEUE');
		gomtvx.SetProgramID('GOMTVDOWNLOADQ');
		gomtvx.bAutoInstall=0;
		gomtvx.bSilentInstall=0;
		gomtvx.Run(dparam, '', '');
		//gomtvx.SendCommand('/showtv');
		if(gomtvx.bLaunched==0)                              // ½ÇÇà ½ÇÆÐ
        {
           alert("½ÇÇà½ÇÆÐ : ¿¡·¯ÄÚµå" + gomtvx.nLaunchErrorCode);	// error code
                return;
        }
	} else {
		var param = "RunDownQue(" + "\"" + mkey + "\",\"" + url + "\")";
		setTimeout(param, 100);
	}

}

function initRunDownQue(){
	gomtvxInstall();
	if(gomtvx.IsInstall){
	}else{
        var param = "initRunDownQue()";
        setTimeout(param, 100);
	}
}

function checkGomtvX(){
	gomtvxInstall();
	if(gomtvx.IsInstall){
		return true;
	}else{
		return false;
	}
}

var openSynopsis = function(dispid,vodid){
	var url = "http://dstore.gomtv.com/synopsis.gom?dispid="+dispid+"&vodid="+vodid;
	window.open(url,"","width=700,height=370,menubars=no,scrollbars=no");
}

var openInstaller = function(){
	var url = "http://dstore.gomtv.com/installer.gom";
	window.open(url,"gomtv_download_install","width=564,height=620,menubars=no,scrollbars=no");
}

