// Drop Shadow Text

(function($) {
	$.fn.textDropShadow = function(){
		$(this).html('<span class="mainChapterShadow">'+$(this).html()+'</span><span>'+$(this).html()+'</span>');
		return $(this);
	}
})(jQuery);

$(function(){
	$('#sidebar h4').each(function(){$(this).textDropShadow();});
});


// Thumb News

(function($) {
	$.fn.thumbNewsCreate = function(){
		$(this).html('<div class="pic">'+$(this).html()+'</div><div class="mask"><img src="../../images/news-mask.gif" alt="" /></div>');
		return $(this);
	}
})(jQuery);

$(function(){
	$('#content div.thumbNews').each(function(){$(this).thumbNewsCreate();});
});


// Thumb News 380

(function($) {
	$.fn.thumbNews380Create = function(){
		$(this).html('<div class="pic">'+$(this).html()+'</div><div class="mask"><img src="../../images/news380-mask.gif" alt="" width="380" /></div>');
		return $(this);
	}
})(jQuery);

$(function(){
	$('#content div.thumbNews380').each(function(){$(this).thumbNews380Create();});
});


// Thumb Agenda

(function($) {
	$.fn.thumbAgendaCreate = function(){
		$(this).html('<div class="pic">'+$(this).html()+'</div><div class="mask"><img src="../../images/agenda-mask.gif" alt="" /></div>');
		return $(this);
	}
})(jQuery);

$(function(){
	$('#content div.thumbAgenda').each(function(){$(this).thumbAgendaCreate();});
});

// Thumb Testimoniaux

(function($) {
	$.fn.thumbTestimoniauxCreate = function(){
		$(this).html('<div class="pic">'+$(this).html()+'</div><div class="mask"><img src="../../images/testimoniaux-mask.gif" alt="" /></div>');
		return $(this);
	}
})(jQuery);

$(function(){
	$('#content div.thumbTestimoniaux').each(function(){$(this).thumbTestimoniauxCreate();});
});

// Thumb Sejour

(function($) {
	$.fn.thumbSejourCreate = function(){
		$(this).html('<div class="pic">'+$(this).html()+'</div><div class="mask"><img src="../../images/thumbSejour-mask.gif" alt="" /></div>');
		return $(this);
	}
})(jQuery);

$(function(){
	$('#content div.thumbSejour').each(function(){$(this).thumbSejourCreate();});
});


// Thumb Sejour 380

(function($) {
	$.fn.thumbSejour380Create = function(){
		$(this).html('<div class="pic">'+$(this).html()+'</div><div class="mask"><img src="../../images/news380-mask.gif" alt="" width="380" /></div>');
		return $(this);
	}
})(jQuery);

$(function(){
	$('#content div.thumbSejour380').each(function(){$(this).thumbSejour380Create();});
});



// Suckerfish Drop Downs

$(function(){
    $("ul.dropdown li").hover(function(){
        $(this).addClass("hover");
        $('ul:first',this).css('visibility', 'visible');
    }, function(){
        $(this).removeClass("hover");
        $('ul:first',this).css('visibility', 'hidden');
    });
    $("ul.dropdown li ul li:has(ul)").find("a:first").append(" &raquo; ");
});


// Appels COLORBOX

$(document).ready(function(){
	$(".viewcontent").colorbox({width:"640px", height:"480px"});
	$(".outsource").colorbox({width:"980px", height:"80%", iframe:true});
});

