ctv.ca.ContentStackUISwf = function (contentStack, swfObj) 
{
	this.contentStack = contentStack;
    this.swfObj = swfObj;
}

ctv.ca.ContentStackUISwf.prototype = {  
    renderPlayList : function(playList, tabIndex) {    	
    	
        if (this.swfObj != null)
        {
            try 
            {          	         	
                this.swfObj.renderPlayList(playList, tabIndex);
            }
            catch (e)
            {
                //debug(e);
            }
        }
    },
    
    setSelectedClipItem : function(tabIndex, playListIndex, parentVideoIndex, clipIndex) {
        if (this.swfObj != null)
        {
            try 
            {
            	//debug("renderPlayList");
                this.swfObj.setSelectedClipItem(tabIndex, playListIndex, parentVideoIndex, clipIndex);
            }
            catch (e)
            {
                //debug(e);
            }
        }
    },
	
	unSelectCurrentClipItem : function(tabIndex) {
        if (this.swfObj != null)
        {
            try 
            {
            	//debug("renderPlayList");
                this.swfObj.unSelectCurrentClipItem(tabIndex);
            }
            catch (e)
            {
                //debug(e);
            }
        }
    },
        
    setTabs : function (tabList) {
			
        this.swfObj.setTabs(tabList);
	},
	
	errorMsg : function(eMsg, tabIndex) {    	
    	
        if (this.swfObj != null)
        {
            try 
            {          	         	
                this.swfObj.errorMsg(eMsg, tabIndex);
            }
            catch (e)
            {
                //debug(e);
            }
        }
    }
		
}

ctv.ca.ContentStackUISwf.registerClass('ctv.ca.ContentStackUISwf', Sys.Component);









