	function initPlayer() {
		//$$('#playerFlash')[0].setStyle('display','block');
		var fx = new Fx.Morph($$('#playerContainer')[0], {duration:1500, transition:Fx.Transitions.Expo.easeOut});
		fx.start({
			'left': [-400, -250]
		});
	}
/*	function showPlayer() {
		//$$('#playerFlash')[0].setStyle('display','block');
		var local = ($$('#playerContainer')).getStyle('left');
		var fx = new Fx.Morph($$('#playerContainer')[0], {duration:1000, transition:Fx.Transitions.Expo.easeOut});
		fx.start({
			'left': [local, 0]
		});
		//fx.cancel();
	}
	function hidePlayer() {
		//$$('#playerFlash')[0].setStyle('display','block');
		var fx = new Fx.Morph($$('#playerContainer')[0], {duration:1000, transition:Fx.Transitions.Expo.easeOut});
		fx.start({
			'left': [0, -250]
		});
	}
	
	function desativa(){

	}*/
function overPlayer(){
	var fundo = $$('#playerContainer')[0];
	fundo.addEvents({
		'mouseenter': function(){
			// Always sets the duration of the tween to 1000 ms and a bouncing transition
			// And then tweens the height of the element
			this.set('tween', {
				duration: 1000,
				transition: Fx.Transitions.Expo.easeOut // This could have been also 'bounce:out'
			}).tween('left', '0px');
		},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.set('tween', {}).tween('left', '-250px');
		}
	});

}
/*			var fundo = $$('#playerContainer')[0];
			var fechar = $$('#fechar')[0];
			fundo.addEvent('mouseenter', function() {				
				showPlayer();
				//fundo.removeEvent('mouseenter', arguments.callee);	
			});
			fundo.addEvent('mouseout', function() {
//				setTimeout(hidePlayer,1000);
				hidePlayer();
				fundo.removeEvent('mouseenter', arguments.callee);					
			});		
	}
	*/

window.addEvent('domready', function() {
	
//	showLogo();
//	showMenu();
	initPlayer();	
	overPlayer();

	
 });
