/**
 * CIPHI Javascript
 * @author Guillaume VanderEst <gvanderest@netshiftmedia.com>
 */

$(document).ready(function(){
	
	// opera menu fix
	if ($.browser.opera)
	{
		$("#site_menu ul ul").css('margin-top', '-16px');
	}
	
	// ie hover
	if ($.browser.msie)
	{
		if ($.browser.version <= 7)
		{
			$("#site_menu ul, #site_menu li").hover(function(){ $(this).addClass('hover') }, function(){ $(this).removeClass('hover'); });
			$("#site_menu ul ul").css("margin-top", "-7px");
		}
	}
	
	$('#header_collage #collage0').innerfade({
	    speed: 1000,
	    timeout: 6000,
	    type: 'random_start',
	    containerheight: '123px'
	});
	$('#header_collage #collage1').innerfade({
	    speed: 1000,
	    timeout: 3000,
	    type: 'random_start',
	    containerheight: '123px'
	});
	$('#header_collage #collage2').innerfade({
	    speed: 1000,
	    timeout: 5000,
	    type: 'random_start',
	    containerheight: '123px'
	});
	$('#header_collage #collage3').innerfade({
	    speed: 1000,
	    timeout: 9000,
	    type: 'random_start',
	    containerheight: '123px'
	    });

});
