﻿
var appMusic=new Object();
appMusic._data=new Array();

appMusic.getData=function(strKey) { return this._data[strKey]; }
appMusic.setData=function(strKey,strValue) { this._data[strKey]=strValue; }


appMusic.doFixPlay=function(strID,strTopic)
{
	var tmpDIV=$("div-view-play");
	if (isObject(tmpDIV)) 
	{
		var tmpDisplay=tmpDIV.style.display;
		if (tmpDisplay=="none") tmpDIV.style.display=(tmpDisplay=="") ? "none" : "";
		var tmpType=this._data['type'];
		if (isEmpty(tmpType)) tmpType='mp3';
		var tmpPlay=new libVDCSPlay();
		tmpPlay.setID("music_play_fix");
		tmpPlay.setType("wmp");
		tmpPlay.setName(strTopic);
		tmpPlay.setURL("play.asp?id="+strID);
		tmpPlay.setSize(380,68);
		tmpPlay.setParam("uimode","control");
		tmpPlay.doParse();
		try { tmpDIV.innerHTML=tmpPlay.getHTML(); } catch(e) { dbg.e(e); }
	}
	return false;
}

appMusic.doFixDownload=function(strID)
{
	
}
