/*
$(document).ready(function(e){
	
	if($('div#video').length>0){

	
	//var v_date="lucia_"+video_date();
		var v_date="astromantica_899678987";
	
	flowplayer('video', "swf/flowplayer-3.1.0.swf", {  
	    clip: { 
	        url: v_date, 
	        provider: 'influxis'
	    }, 
	    plugins: { 
	        influxis: { 
	            url: 'swf/flowplayer.rtmp.swf',  
	            netConnectionUrl: 'rtmp://rlawkbc4xy4.rtmphost.com/spot_astromantica/',
	            Autoplay: 0
	        } 
	    } 
	});
	flowplayer('video').play();
	}
})
*/


$(document).ready(function(e){
	
	if($('div#video').length>0){

	var lic=$('div#video').attr('lic'); 
		
        var v_date="astromantica_899678987";
	
	if(lic!='') {
	
		flowplayer('video', "swf/flowplayer.commercial-3.1.0.swf", {  
		    clip: { 
		        url: v_date, 
		        provider: 'influxis'
		    }, 
		    plugins: { 
		        influxis: { 
		    	 	url: 'swf/flowplayer.rtmp.swf',  
                   		netConnectionUrl: 'rtmp://rlawkbc4xy4.rtmphost.com/spot_astromantica/',
		            Autoplay: true
		        } 
		    },
		    key: lic
		});
	} else {
		flowplayer('video', "swf/flowplayer-3.1.0.swf", {  
		    clip: { 
		        url: v_date, 
		        provider: 'influxis'
		    }, 
		    plugins: { 
		        influxis: { 
		    		url: 'swf/flowplayer.rtmp.swf',  
              			netConnectionUrl: 'rtmp://rlawkbc4xy4.rtmphost.com/spot_astromantica/',
		            Autoplay: true
		        } 
		    }
		});
	}
	flowplayer('video').play();
	}
})




