/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


var  Insights = {
	playBiobite : function(id, path) {


		var playerId = 'insight-player' + id;
		var params = {'allowfullscreen' : 'false', 'wmode' : 'transparent'};
		var movie_size = new Array(175,20);
		var flashvars = {'width' : movie_size[0],
				'height' : movie_size[1],
				'autostart' : 'false',
				'screencolor' : '0xf4f3f3',
				'backcolor' : '0x5382ac',
				'frontcolor' : '0xf4f3f3',
				'lightcolor' : '0xf4f3f3',
				'bufferlength' : '1',
				'file' : path,
				'enablejs' : 'true',
				'overstretch': 'none'
		};
		
		SWFObject.embedSWF(
			"/js/mediaplayer.swf",
			playerId,
			movie_size[0],
			movie_size[1],
			"8.0.0",
			"/js/expressInstall.swf",
			flashvars,
			params
		);
	},
	stopBiobite : function() {
		$('biobite-parent').innerHTML = '';
		var playerDiv = new Element('div', {id : 'biobite-player'});
		playerDiv.inject('biobite-parent');
		var playerDiv = new Element('div', {id : 'biobite-hide'});
		playerDiv.inject('biobite-parent');
	}
}