$(document).ready(
	function ()
	{
		$('html').addClass('js');
		
		$('#content .actu.reflected').each(function () 
			{
				var $reflexion = $('<div />').addClass('reflexion');
				$(this).after($reflexion);
			}
		);
		
        $('.fisheye').Fisheye(
        	{
			items : 'li',
			itemsText : 'span',
			container : '.fisheye-container',
			itemWidth : 80,
			maxWidth : 17,
			proximity : 90,
			halign : 'center'
        	}
        );
        
        // #!ŝ?~]~]@ !
        
        $('#mpm-tv-cat-selector > input[type=button], #actu-cat-selector > input[type=button], #event-cat-selector > input[type=button], #rdv-cat-selector > input[type=button]').click(
        	function(){
        		$(location).attr('href', $(location).attr('protocol') + '//' + $(location).attr('hostname') + $(this).prev().val());
        	}
        );
               
        $('#meteos h2 span').click(
        	function()
        	{
        		$(this).parent().nextAll('div').removeClass('active');
        		$(this).parent().nextAll('div.' + $(this).attr('class')).addClass('active');
        	}
        );
        
        $('#meteos h2 span.meteo').trigger('click');
	}
);
