$(document).ready( function(){
$("#spaces_tabs li a.dip").click( function(){
$(".tab_current_content").removeClass("tab_current_content");
$("#dip").addClass("tab_current_content");
return false;
});
$("#spaces_tabs li a.rec").click( function(){
$(".tab_current_content").removeClass("tab_current_content");
$("#rec").addClass("tab_current_content");
return false;
});
/*gestion menus*/
$(".menu").hover( function(){
$(".sous_menu.ss_current").fadeOut("fast");
$(".sous_menu.ss_current").removeClass("ss_current");
$(this).find(".sous_menu").fadeIn("fast");
$(this).find(".sous_menu").addClass("ss_current");
}, function(){
/* effet au hover out */
});
$(".sous_menu a").click( function(){
$(this).parent().find(".sous_menu").css('display', 'block');
$(".current").removeClass("current");
$(this).addClass("current");
});
$("#account_form div:eq(0)").addClass("letchif");
$("#account_form select").after("
");
$("#changepass select[name=compte[pays]]").css({width: "56%"});
$("#changepass input[name=compte[username]]").css({width: "55%"});
/* grosses fleches */
$(".fleche").hover(function(){
$(this).find(".icon").addClass("icon_hover");
}, function(){
$(this).find(".icon").removeClass("icon_hover");
});
// $("form input:eq(0)").focus();
/* onglets diplomés recruteus de la page d'accueil */
$(".active").removeClass("active");
$("#espace_dip").hover(function(){
$(".active").removeClass("active");
$(this).add(".dip").addClass("active")
});
$("#espace_rec").hover(function(){
$(".active").removeClass("active");
$(this).add(".rec").addClass("active")
});
$(".dip").hover(function(){
$(".active").removeClass("active");
$(this).add("#espace_dip").addClass("active")
});
$(".rec").hover(function(){
$(".active").removeClass("active");
$(this).add("#espace_rec").addClass("active")
});
//$("input[name=o]").css('width','50px');
$("input[type=button],input[type=submit],input[type=reset]").addClass("submit");
/* repere le premier
et lui rajoute une class titre de la page */
$("#main .services_bg h1").eq(0).addClass("tt_pages");
$(".p1").next().css();
$(".fancy").fancybox({
padding: '10',
zoomSpeedIn: 1000,
zoomSpeedOut: 1000,
hideOnContentClick: true,
centerOnScroll: true
});
$(".fancy_photo").fancybox({
padding: '10',
zoomSpeedIn: 600,
zoomSpeedOut: 400,
hideOnContentClick: true,
centerOnScroll: true,
overlayOpacity: 0.3
});
$(".fancy_liste_ecoles").fancybox({
padding: 0,
zoomOpacity: true,
zoomSpeedIn: 660,
zoomSpeedOut: 620,
frameWidth: 251,
frameHeight: 570,
overlayOpacity: 0.1,
hideOnContentClick: false,
centerOnScroll: false
});
$(".test").click( function(){ return false});
//-----fancybox du formulaire ajout photo dans espace anciens---
$(".fancy2").fancybox({
padding: 10,
zoomOpacity: true,
zoomSpeedIn: 500,
zoomSpeedOut: 300,
//easingIn, easingOut, easingChange
overlayOpacity: 0.3,
hideOnContentClick: false,
frameWidth: 900,
frameHeight: 180
});
/*
$("").toggle( function(){
$(this).parent().parent().parent().next(".interservices").slideUp();
}, function(){
$(this).parent().parent().parent().next(".interservices").slideDown();
});
*/
/*********************Cacher panneau********************/
/* cache finalemrnt */
//$(".corner_button").css('display','none');
/*$(".corner_button").css('text-transform','capitalize');
$.get("jquery_calling.php", { translate: "hide this panel" },
function(data){
$(".hide_button1").text(data);
});
$(".hide_button1").toggle( function(){
$(this).next().slideUp("fast");
$(this).removeClass("corner_button");
$(this).addClass("corner_button_hover");
$("#middle_content").css('width','100%');
$(this).parent().siblings("form").css('width','97%');
$(".bg_bleu_gradient").css({
marginLeft: "-190px",
width: "135%"
});
$.get("jquery_calling.php", { translate: "show this panel" },
function(data){
$(".hide_button1").text(data);
});
return false ;
}, function(){
$(this).next().fadeIn("slow");
$(this).removeClass("corner_button_hover");
$(this).addClass("corner_button");
$("#middle_content").css('width','75%');
$(this).parent().siblings("form").css('width','525px');
$(".bg_bleu_gradient").css({
marginLeft: "0px",
width: "100%"
});
$.get("jquery_calling.php", { translate: "hide this panel" },
function(data){
$(".hide_button1").text(data);
});
return false ;
});
var hc =$("#barre_gauche .hide_content1").text().length;
if( hc < 40 ){
$("#barre_gauche .hide_content1").parent().hide();
}
*/
$(".show_more a:eq(0)").click( function(){
$(this).parent().find(".show_more_content").toggle("fast");
return false;
});
$("#services .service:eq(0)").css({
marginTop : "10px"
});
$(".meesage_perso h2:eq(0)").css({
marginBottom : "10px"
});
$(".fancyvy").fancybox({
overlayOpacity: 0.3,
centerOnScroll: false,
hideOnContentClick: false,
frameWidth: 500,
frameHeight: 700
});
//$("a").hover( function(){ $(this).focus() });
$(".erreur, .succes, .ok").css('position','relative');
$(".erreur, .succes, .ok").append('');
$(".close").css({position: "absolute",display: "block",width:"16px",height:"16px", top: "-5px",right:"-5px", backgroundImage:"url('v2/images/layout/close.gif')",backgroundRepeat: "no-repeat" });
$(".close").click( function(){
$(this).parent().hide();
});
});