/*--------------------------------------------/
	
	[ KONITIF ]
	
	Project:		MERINOS
	Version:		1.0 [vf]
	
	Last change:	23/06/11
	Assigned to:	Mouflard Maxime (vf)
	Contact:		mmouflard@konitif.com
	Primary use:	All
	
/---------------------------------------------*/

var $j = jQuery.noConflict(); 
$j
(
	function()
	{
		// RECHERCHE HEADER
		$j('.search_val').addClass('bg_off');
		$j('.search_val').focus(function(){$j(this).removeClass('bg_off');return false;}).blur(function(){if($j(this).val() == "" ){$j(this).addClass('bg_off');}return false;});
		
		// MENU
		$j.obj = null;
		$j.checkHover = function(){if($j.obj){ $j.obj.children('.sub_menu').stop(true,true).slideDown(400);}}
		$j('.menu_top .sub').addClass('sub_off');
		$j('.menu_top .sub').parent().parent().hover(function(){$j.obj = $j(this);$j(this).addClass('menu_on');setTimeout("$j.checkHover()",400);},function(){$j.obj = null;$j(this).removeClass('menu_on').children('.sub_menu').stop(true,true).fadeOut(200);});
		
		// DIAPORAMA
		if(typeof $j.fn.cycle == 'function'){$j('.diaporama-slide').cycle({timeout:6000,prev:'#prev', next:'#next'});}
		$j('.diaporama .diap-nav').show();
	}
)
