twopixels.movie = twopixels.overlay.extend({
	startCustomClass: function(href) {
		var movieDiv=new Element('div', {styles: {
			width: this.options.width+'px',
			height: this.options.height.toInt()+20+'px',
			position: 'absolute',
			left: '5px',
			top: '5px'
		}}).inject(this.preview);
		this.movie = new twopixels.qtmovie();
		this.movie.putPlayer(this.options.width, this.options.height, href, movieDiv);
	},
	
	extendClose: function() {
		this.movie.dotPlacer=$clear(this.movie.dotPlacer);
		if ($chk(this.movie.player.Stop))
			this.movie.player.Stop();
	},
	
	options: {
		width: 896,
		height: 560,
		marginTop: 5,
		marginBottom: 22,
		marginLeft: 5,
		marginRight: 5,
		rel: 'movie',
		opacity: 0.9,
		buttons: {
			'play': 'img/play.png',
			'stop': 'img/stop.png',
			'pause': 'img/pause.png'
		}
	}
});

window.addEvent('load', function(){new twopixels.movie();});