// Flash Funcs
var $DLMpop;
var $myMCID = ""
//=======================================
function thisMovie(movieName)
{
    if (navigator.appName.indexOf("Microsoft") != -1)
	{
        return window[movieName]
    }else{
        return document[movieName]
    }
}
//=======================================

function callExternalInterface(str)
{
	var mov = (thisMovie($swfID));
	mov.SW_Interface(str);
}


function callExternalInterface2(str,swfID)
{
	alert(thisMovie(swfID));
	var mov = (thisMovie(swfID));
	mov.FlashCallback(str);
}

//=======================================

function getRootURL()
{
	return $rootURL
}
//=======================================

function setStageHeight(val,swfID)
{
	//document.getElementById(swfID).height = val;
	
	document.getElementById("EpacItem").height = val;
}
//=======================================

function jogFlash(swfID)
{
	/*var val = Number(document.getElementById(swfID).height)+20;
	var nH = val + 20;
	alert("jogFlash - "+val);
	document.getElementById(swfID).height = val;*/
}
//=======================================

function getDLM(mcid){$myMCID = mcid;return true}
//=======================================

function launchDLM()
{
	var swURL = "http://viivtest.coolroom.com/epacstore/apps/download_ax.php?MediaCenterID="+$myMCID;var W = 300;var H = 200;
	var dlWinUrl = $pageURL+"FrontEnd/installDLM.php?link="+swURL
	$DLMpop = window.open(dlWinUrl,'downloadWindow','width=590,height=270,scrollbars=no');
}
//=======================================

function setDLMLink(dlmid){
	document.getElementById('download_install_button').style.display='';
}
//=======================================