');
}
el.css('opacity',0).show().stop().animate({opacity:1},500,function(){$(this).stop().css('opacity',1).show();});
$("#menu1").css('opacity',1).show().stop().animate({opacity:0},500,function(){$("#menu1").hide();});
return false;
}
}
}
return true;
});
$(".squaremenu_content a").click(function(){
if(mode=="small"){
var t = $(this), el = t.parent(), el2 = el.find('.squaremenu_articles');
if( el2.length>0 ){
if( el2.find('.retour2').length==0 ){
el2.prepend('');
}
el2.stop().css('opacity',0).show().animate({opacity:1},500);
return false;
}
}
return true;
});
$(document).on('click',".squaremenu_content .retour a",function(){
var t = $(this), el = t.parent().parent();
el.stop().css('opacity',1).show().animate({opacity:0},500,function(){el.hide();});
$("#menu1").stop().css('opacity',0).show().animate({opacity:1},500);
return false;
});
$(document).on('click',".squaremenu_content .retour2 a",function(){
var t = $(this), el = t.parent().parent();
el.stop().css('opacity',1).show().animate({opacity:0},500,function(){el.hide();});
return false;
});
checkSize();
$("#menu0 > img").click(openMenu);
$("#menuOutil > img").click(openMenuOutil);
$("#menuLangue > img").click(openMenuLangue);
});
$(window).resize(checkSize);
jQuery.fn.SameHeight = function(addHeight){
if(!addHeight) addHeight=0;
var maxHeight = 0; $(this).height('');
this.each(function() { var h = $(this).height(); if(h>maxHeight) maxHeight = h; })
maxHeight=Number(maxHeight)+Number(addHeight);
this.attr("style","height:"+maxHeight+"px !important");
this.css({height: maxHeight+'px'}); // ie6 bug
};
var mySameHeight = function(){
//$("#col1, #col2").SameHeight("150");
};
-->