var $jx = jQuery.noConflict();

jQuery(document).ready(function() {

	carrousel.init($jx('div.featured'));
	
	$jx('div.screen').pngFix();

	$jx('div.slide').slideNews({
		newsWidth:140,
		newsSpeed:"normal",
		nbItem:3
	});
	
	$jx('.player-flip').bind("click",function(){
		
		var elem = $jx(this);

		if(elem.data('flipped'))
		{
			elem.revertFlip();
			elem.data('flipped',false);
		}
		else
		{	
			elem.flip({
				direction:'lr',
				speed: 350,
				onBefore: (function($){
					elem.html(elem.siblings('.player-data').html());
				})
			});
			
			elem.data('flipped',true);
		}
	});
	
	var baseUrl = window.location.href.split('/');
	baseUrl = baseUrl[0]+'//'+baseUrl[2];
	$jx("a[href^='http:']").not("[href*='"+baseUrl+"']").attr('target','_blank');
});

