var clrzVideo = new Class({
	Implements: [Options,Events],
	options:{ 
		
		container:'video_container',
		btnnext:'#next',
		btnprev:'#next',
		file:'',
		play:'#play'
	
		},
	
	
	initialize: function(options)
	{
		
		this.setOptions(options);
		if(!$(this.options.container))
		return;
		
		this.container = $(this.options.container);
		this.player = this.createFlash();
		
		
	},
	
	
	createFlash: function()
	{
	
	
	
				var obj = new Swiff('/wp-content/themes/diams/js/cplayer.swf', {
				    id: 'videoz',
				    container:this.container,
				    width: this.container.getWidth(),
				    height: this.container.getHeight(),
				    params: {
				        wmode: 'transparent',
				        bgcolor: '#ffffff',
				        allowscriptaccess:'always',
				        allowfullscreen:'true'
				    },
				    vars: {
				        file:this.options.file,
				        streamer: 'rtmpe://stream.hosting-media.com/stream',
				        title: 'Diams',
				        autostart : false,
				        controlbar : 'bottom',
				        skin:'/wp-content/themes/diams/js/stylish.swf'
				      }/*,
				      
				      events: {
					        onLoad: function() {
					            this.playerListener();
					        }
 
					}*/
			
				    
				});
	
	

		return obj;
	
	
	},
	
	
	
	playerListener:function()
	{
		
		/*alert('init listener');	*/
		
		
	}
	
	
});