    /* BBCODE */
	
	$(document).ready(function() {
      // Smiley editor
      $("#text1").bbedit({
        enableToolbar: true,
        lang: 'en',
        tags: 'b,i,u,s,url,img,quote',
        smilies: 'biggrin,cry,dizzy,funk,huffy,lol,loveliness,mad,sad,shocked,shy,sleepy,smile,sweat,titter,tongue'
      });

    });
	
	
 jQuery(document).ready(function(){
 jQuery('.lightbox').lightbox();
});


			Cufon.replace('a.drop'); // Works without a selector engine
			Cufon.replace('a.premier2'); // Works without a selector enginedernier
			Cufon.replace('a.dernier'); // Works without a selector enginedernier
			Cufon.replace('h3'); // Works without a selector enginedernier
			Cufon.replace('h5'); // Works without a selector enginedernier
			Cufon.replace('h1.titre_h1'); // Works without a selector enginedernier	
	
	
	/* Marquee */
    $(function () {
        $('div.titreencours marquee').marquee('pointer').mouseover(function () {
            $(this).trigger('stop');
        }).mouseout(function () {
            $(this).trigger('start');
        }).mousemove(function (event) {
            if ($(this).data('drag') == true) {
                this.scrollLeft = $(this).data('scrollX') + ($(this).data('x') - event.clientX);
            }
        }).mousedown(function (event) {
            $(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scrollLeft);
        }).mouseup(function () {
            $(this).data('drag', false);
        });
    });
	
	
/* Menu */
$(function() {
	$("#menu").megaMenu('show');
	/*$("#menu").megaMenu('click_open_close');*/
});



/* Tabs */

$(document).ready(function() {

$.fn.simpleTabs = function(){ 
	//Default Action
	$(this).find(".contenu_tabs").hide(); //Hide all content
	$(this).find("ul.tabs_actu_home li:first").addClass("actif").show(); //Activate first tab
	$(this).find(".contenu_tabs:first").show(); //Show first tab content
	
	//On Click Event
	$("ul.tabs_actu_home li").click(function() {
		$(this).parent().parent().find("ul.tabs_actu_home li").removeClass("actif"); //Remove any "actif" class
		$(this).addClass("actif"); //Add "actif" class to selected tab
		$(this).parent().parent().find(".contenu_tabs").hide(); //Hide all tab content
		var actifTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the actif tab + content
		$(actifTab).show(); //Fade in the actif content
		return false;
	});
};//end function

$("div[class^='simpleTabs']").simpleTabs(); //Run function on any div with class name of "Simple Tabs"


});


			

