if($.browser.msie && $.browser.version=="6.0"){
		DD_belatedPNG.fix('.png, .UICLVPortlet, #UIContainer-idRmg-MainContent, #idRmg-Contenus, #3361829, .push, .blocfin, .contact h3, #main_content, .slidde ul li a, .end_blockm, .contact, .mail, .tel, .adresse, #subnav, #subnav_container, .subnav_perso, .subnav_recherche, .subnav, .list_contact, .howto_container, .howto, .horaires_container, .horaires, .regions_container, .regions, .last_news_container, .last_news, .form_container, .form, .accueil_assure, .form_demi, .form_full, .title h3, .tooltips, .tooltips li, .pro h3, .ce h3');
}

// Recherche
function ramgamexSearchSuggestion(sugg) {
	   $("#rechercher").val(sugg);
	   quickSearch("accueil/recherche");
}
// Init QuickSearch
function initQuickSearch() {
	   $("#rechercher").val($("#keywordInput").val());
}	

$(document).ready(function(){


// Print visibility
	$(".print").css("visibility", "visible");
	$(".printjs").css("visibility", "hidden");

// Calendar
	$.dpText = {
		TEXT_PREV_YEAR : 'Ann prente',
		TEXT_PREV_MONTH : 'Mois prent',
		TEXT_NEXT_YEAR : 'Ann suivante',
		TEXT_NEXT_MONTH : 'Mois suivant',
		TEXT_CLOSE : 'Fermer',
		TEXT_CHOOSE_DATE : 'Ouvrir le calendrier'
	}

// Search input
	$("#rechercher").focus(
		function(){
			if ($(this).attr("value") =="Rechercher") {
				$(this).attr("value", "");
			}
	});
	$("#rechercher").blur(
		function(){
			if ($(this).attr("value") == "") {
				$(this).attr("value", "Rechercher");
			}
	});

//Mots cles input
	$("#motcle").attr("value",'Mots clé');
	$("#motcle").focus(
		function(){
			if ($(this).attr("value") =='Mots clé') {
				$(this).attr("value", "");
			}
	});
	$("#motcle").blur(
		function(){
			if ($(this).attr("value") == "") {
				$(this).attr("value", 'Mots clé');
			}
	});


// Main navigation
	$(".sousmenu").hide();
	$(".sousmenu").css("position","absolute");
	$("#ramgamex-menu ul > li").hover(function(){
		$(this).children('a').addClass('active');
		$(this).children('ul').show();

	},function(){
		$(this).children('a').removeClass('active');
		$(this).children('ul').hide();
	});



	
// h3 with hr
	$("span.hr").each(function(){
		$(this).width($(this).parent().width() - $(this).prev().width() - 4);
	})
	
// Tooltips services en ligne
	$(".tooltips").hide();
	$(".tooltips").css("position", "absolute");

	$(".title li").hover(function(){
		$(this).css("z-index", "20");
		$(this).css("cursor", "pointer");
		$(this).find(".tooltips").show();
		$(this).find("h3").addClass('active');
	},function(){
		$(this).css("z-index", "10");
		$(this).find("h3").removeClass('active');
		$(this).find(".tooltips").hide();
	});
 
     $(".UISingleContentViewerPortlet").each(function(){
                           $(this).css("min-width",0);
     });
     
     $("#idRmg-MainContent .UICLVPortlet").each(function(){
                               $(this).css("min-width",0);
     });    

});