(function($) { $(document).ready(function() {
//console.log($('div#menu-trigger-level1'));
/* accordéon pour des views pane */
$('div.accordion-h2.accordion-h2-views div.view-header').click(function() {
$(this).siblings('div.view-content').toggle('fast', function() {
$(this).parent().parent().parent().toggleClass('accordion-h2-opened');
});
});
/* accordéon pour des panels pane */
$('div.accordion-h2.accordion-h2-panel > h2.pane-title').click(function() {
$(this).siblings('div.pane-content').toggle('fast', function() {
$(this).parent().toggleClass('accordion-h2-opened');
});
});
/* accordéon auto-exclusifs pour des panels pane */
$('div.accordion-h2-ex.accordion-h2-panel > h2.pane-title').click(function() {
$(this).parent().siblings('div.accordion-h2-ex').children('div.pane-content').hide();
$(this).parent().siblings('div.accordion-h2-ex').removeClass('accordion-h2-opened');
$(this).siblings('div.pane-content').toggle('fast', function() {
$(this).parent().toggleClass('accordion-h2-opened');
});
});
/* accordéon pour des panels pane */
$('div.accordion-trigger').click(function() {
$(this).toggleClass('accordion-h2-opened');
$(this).parent().parent().siblings('div.accordion-content').toggle('fast', function() {
});
$(this).siblings('div.accordion-content').toggle('fast', function() {
});
});
$('div#menu-trigger-level1').click(function() {
$('#block-menu_block-3').slideDown('slow', function() {
// Animation complete.
});
$('div#menu-trigger-level1').hide();
$('div#menu-trigger-level1-off').show();
});
$('div#menu-trigger-level1-off').click(function() {
$('#block-menu_block-3').slideUp('slow', function() {
// Animation complete.
});
$('div#menu-trigger-level1-off').hide();
$('div#menu-trigger-level1').show();
});
$('.flexslider').flexslider({
/*selector: 'ul > li',*/
animation: "fade",
animationLoop: true,
itemWidth: "100%",
/*itemMargin: 0,
minItems: 1,*/
controlNav: false, //Boolean: Create navigation for paging control of each clide? Note: Leave true for manualControls usage
directionNav: false, //Boolean: Create navigation for previous/next navigation? (true/false)
prevText: "Précédent", //String: Set the text for the "previous" directionNav item
nextText: "Suivant",
/*maxItems: 10,*/
/*start: function(slider){
$('body').removeClass('loading');
}*/
});
/* AMSTERDAM */
$("#point-nid-870").popover({
title: false,
trigger: "hover",
content: "
"
});
/* BARCELONE */
$("#point-nid-871").popover({
title: false,
trigger: "hover",
content: ""
});
/* BERLIN */
$("#point-nid-872").popover({
title: false,
trigger: "hover",
content: ""
});
/* BIRMINGHAM */
$("#point-nid-873").popover({
title: false,
trigger: "hover",
content: ""
});
/* BORDEAUX */
$("#point-nid-869").popover({
title: false,
trigger: "hover",
content: ""
});
/* BRUXELLES */
$("#point-nid-874").popover({
title: false,
trigger: "hover",
content: ""
});
/* Copenhague */
$("#point-nid-875").popover({
title: false,
trigger: "hover",
content: ""
});
/* dordrecht */
$("#point-nid-961").popover({
title: false,
trigger: "hover",
content: ""
});
/* dunkerque */
$("#point-nid-962").popover({
title: false,
trigger: "hover",
content: ""
});
/* GRENOBLE */
$("#point-nid-876").popover({
title: false,
trigger: "hover",
content: ""
});
/* Hambourg */
$("#point-nid-963").popover({
title: false,
trigger: "hover",
content: ""
});
/* LAUSANNE */
$("#point-nid-877").popover({
title: false,
trigger: "hover",
content: ""
});
/* LILLE */
$("#point-nid-878").popover({
title: false,
trigger: "hover",
content: ""
});
/* LONDRES */
$("#point-nid-879").popover({
title: false,
trigger: "hover",
content: ""
});
/* LYON */
$("#point-nid-880").popover({
title: false,
trigger: "hover",
content: ""
});
/* MALAGA */
$("#point-nid-881").popover({
title: false,
trigger: "hover",
content: ""
});
/* MARSEILLE */
$("#point-nid-882").popover({
title: false,
trigger: "hover",
content: ""
});
/* mayence */
$("#point-nid-964").popover({
title: false,
trigger: "hover",
content: ""
});
/* Montpellier */
$("#point-nid-883").popover({
title: false,
trigger: "hover",
content: ""
});
/* Montréal */
$("#point-nid-884").popover({
title: false,
trigger: "hover",
content: ""
});
/* Nantes */
$("#point-nid-868").popover({
title: false,
trigger: "hover",
content: ""
});
/* Nimes */
$("#point-nid-965").popover({
title: false,
trigger: "hover",
content: ""
});
/* Paris */
$("#point-nid-885").popover({
title: false,
trigger: "hover",
content: ""
});
/* Rennes */
$("#point-nid-886").popover({
title: false,
trigger: "hover",
content: ""
});
/* Rotterdam */
$("#point-nid-887").popover({
title: false,
trigger: "hover",
content: ""
});
/* Strasbourg */
$("#point-nid-888").popover({
title: false,
trigger: "hover",
content: ""
});
/* Stuttgart */
$("#point-nid-1031").popover({
title: false,
trigger: "hover",
content: ""
});
/* Rome */
$("#point-nid-1030").popover({
title: false,
trigger: "hover",
content: ""
});
/* Toulon */
$("#point-nid-889").popover({
title: false,
trigger: "hover",
content: ""
});
/* Toulouse */
$("#point-nid-890").popover({
title: false,
trigger: "hover",
content: ""
});
/* Turin */
$("#point-nid-891").popover({
title: false,
trigger: "hover",
content: ""
});
/* Vienne */
$("#point-nid-892").popover({
title: false,
trigger: "hover",
content: ""
});
$.each($(".captioned img"), function(legend, item) {
title = $(item).attr('title')
if (title && title != "") {
$(item).after('' + title + '
');
}
});
}); })(jQuery);