/*

	.js genèric de configuració de funcions bàsiques pel player 'evp' del projecte i360

*/

			function playerEVP__onOpenPopUp (notification){
    	
    		try{
    			//console.log("playerEVP__onOpenPopUp");
    			//console.log(notification);
    		}catch(e){}
    		//if(!playerEVP.miniWin){
    			playerEVP.miniWin = window.open('http://www.tv3.cat/multimedia/RIA/players/3ac/evp/popup.html','3acpopup','width=640,height=398');
    		//}
    		
    		playerEVP.miniWin.focus();
    		
    		setTimeout("try{playerEVP.miniWin.playerEVP.loadItemAt('"+notification.item.nom+"',"+notification.time+")}catch(e){console.log(e);}",5000);
    		
    	}
    
    	var playerEVP__notificacion = null;
    
    	function playerEVP__onPlayStart(notification){
    		try{
    			
    			playerEVP__notificacion = notification;
    			
    			//console.log("playerEVP__onPlayStart" + notification.nom);
    			//console.log(notification);
    			//alert("Canal:"+notification.nom);
    		}catch(e){}
    	}
    
     	function playerEVP__onStreamConnected(notification){
    		try{
    			//console.log("playerEVP__onStreamConnected" + notification.id);
    			//console.log(notification);
    		}catch(e){}
    	}   
    
     	function playerEVP__onShowError(notification){
    		try{
    			//console.log("playerEVP__onShowError");
    			//console.log(notification);
  
    		}catch(e){}
    	} 

