hs.graphicsDir = 'scripts/highslide/graphics/'; hs.align = 'center'; hs.marginTop =150; hs.transitions = ['expand', 'crossfade']; hs.outlineType = 'rounded-white'; hs.fadeInOut = true; hs.numberPosition = 'caption'; hs.dimmingOpacity = 0.75; hs.creditsHref = '/'; hs.lang = { loadingText : 'Chargement...', loadingTitle : 'Cliquer pour annuler', focusTitle : 'Cliquer pour amener au premier plan', fullExpandTitle : 'Afficher à la taille réelle', fullExpandText : 'Taille réelle', creditsText : 'L\'Adresse ADJ GESTION', creditsTitle : 'Retour à la page d\'accueil', previousText : 'Précédent', previousTitle : 'Précédent (flèche gauche)', nextText : 'Suivant', nextTitle : 'Suivant (flèche droite)', moveTitle : 'Déplacer', moveText : 'Déplacer', closeText : 'Fermer', closeTitle : 'Fermer (esc ou Echap)', resizeTitle : 'Redimensionner', playText : 'Lancer', playTitle : 'Lancer le diaporama (barre d\'espace)', pauseText : 'Pause', pauseTitle : 'Suspendre le diaporama (barre d\'espace)', number : '', restoreTitle : 'Cliquer pour fermer l\'image, cliquer et faire glisser pour déplacer, utiliser les touches flèches droite et gauche pour suivant et précédent.' }; // Add the controlbar if (hs.addSlideshow) hs.addSlideshow({ slideshowGroup: 'group1', interval: 5000, repeat: false, useControls: true, fixedControls: 'fit', overlayOptions: { opacity: .75, position: 'bottom center', hideOnMouseOut: true } }); if (hs.addSlideshow) hs.addSlideshow({ slideshowGroup: 'group2', interval: 5000, width : '700px', repeat: false, useControls: false, fixedControls: 'fit', overlayOptions: { opacity: .75, position: 'bottom center', hideOnMouseOut: true } }); var config1 = { slideshowGroup: 'group1', transitions: ['expand', 'crossfade'], }; var config2 = { slideshowGroup: 'group2', transitions: ['expand', 'crossfade'] }; function mycarousel_initCallback(carousel) { // Disable autoscrolling if the user clicks the prev or next button. carousel.buttonNext.bind('click', function() { carousel.startAuto(0); }); carousel.buttonPrev.bind('click', function() { carousel.startAuto(0); }); // Pause autoscrolling if the user moves with the cursor over the clip. carousel.clip.hover(function() { carousel.stopAuto(); }, function() { carousel.startAuto(); }); }; jQuery( document ).ready(function() { jQuery("select").select2({}); jQuery("input:text").placeholder(); jQuery('#myTab a').click(function (e) { e.preventDefault(); $(this).tab('show'); }) if(document.getElementById("slider_selection_carrousel")) { jQuery("#slider_selection_carrousel").jcarousel({ auto: 4, scroll:1, wrap: 'last', initCallback: mycarousel_initCallback }); } if(document.getElementById("slideshow_agence")) { jQuery('#slideshow_agence').jcarousel({ auto: 4, scroll:1, wrap: 'last', initCallback: mycarousel_initCallback }); } if(document.getElementById("slideshow_appli")) { jQuery('#slideshow_appli').jcarousel({ auto: 3, scroll:1, wrap: 'last', initCallback: mycarousel_initCallback }); } jQuery("#slider_selection_vendre_carrousel").jcarousel({ auto: 4, scroll:1, wrap: 'last', initCallback: mycarousel_initCallback }); jQuery("#slider_selection_louer_carrousel").jcarousel({ auto: 4000, scroll:1, wrap: 'last', initCallback: mycarousel_initCallback }); jQuery("#slider_actus_carrousel").jcarousel({ auto: 2, scroll:1, vertical : true, wrap: 'last', initCallback: mycarousel_initCallback }); $(window).mousewheel(function(event, delta) { $('.waypoint').waypoint('enable') ; }); $('#wp_acheter').waypoint(function(direction) { if (direction === 'down') { $('#nav_acheter').animate({height: '48px'}, 500); $('.conteneur_mail').animate({opacity: '0'}, 1000).hide(); $('.conteneur_menu').animate({opacity: '1'}, 1000).show(); } else { $('#nav_acheter').animate({height: '0px'}, 50); $('#nav_louer').animate({height: '0px'}, 50); $('#nav_estimer').animate({height: '0px'}, 50); $('#nav_vendre').animate({height: '0px'}, 50); $('#nav_gerer').animate({height: '0px'}, 50); $('.conteneur_mail').animate({opacity: '1'}, 1000).show(); $('.conteneur_menu').animate({opacity: '0'}, 1000).hide(); } },{continuous : false }); $('#wp_louer').waypoint(function(direction) { if (direction === 'down') { $('#nav_acheter').animate({height: '0px'}, 50); $('#nav_louer').animate({height: '48px'}, 500); } else { $('#nav_acheter').animate({height: '48px'}, 500); $('#nav_louer').animate({height: '0px'}, 50); $('#nav_estimer').animate({height: '0px'}, 50); $('#nav_vendre').animate({height: '0px'}, 50); $('#nav_gerer').animate({height: '0px'}, 50); } },{continuous : false }); $('#wp_estimer').waypoint(function(direction) { if (direction === 'down') { $('#nav_acheter').animate({height: '0px'}, 50); $('#nav_louer').animate({height: '0px'}, 50); $('#nav_estimer').animate({height: '48px'}, 500); } else { $('#nav_louer').animate({height: '48px'}, 500); $('#nav_estimer').animate({height: '0px'}, 50); $('#nav_vendre').animate({height: '0px'}, 50); $('#nav_gerer').animate({height: '0px'}, 50); } },{continuous : false }); $('#wp_vendre').waypoint(function(direction) { if (direction === 'down') { $('#nav_estimer').animate({height: '0px'}, 50); $('#nav_vendre').animate({height: '48px'}, 500); } else { $('#nav_estimer').animate({height: '48px'}, 500); $('#nav_vendre').animate({height: '0px'}, 50); $('#nav_gerer').animate({height: '0px'}, 50); } },{continuous : false }); $('#wp_gerer').waypoint(function(direction) { if (direction === 'down') { $('#nav_vendre').animate({height: '0px'}, 50); $('#nav_gerer').animate({height: '48px'}, 500); } else { $('#nav_vendre').animate({height: '48px'}, 500); $('#nav_gerer').animate({height: '0px'}, 50); } }); $('#slider_un').delay(500).animate({ top: "0", opacity : "0.5" }, 800).animate({ opacity : "1" }, 1200); $('#slider_deux').delay(1000).animate({ left: "50%" , opacity : "0.7" }, 800).animate({ opacity : "1" }, 300); /*$('#slider_trois').delay(1000).animate({ left: "50%" , 'margin-left' : '-300px', opacity : "1", width:'201px', height:'209px' },400);*/ $('#slider_quatre').delay(500).animate({ top: "327px", opacity : "1" },800); $('#slider_cinq').delay(500).animate({ top: "327px", 'margin-left' : '325px', opacity : "1" },800); $('#slider_six').delay(500).animate({ left: "50%" , 'margin-left' : '-250px', opacity : "1", },800); /*$('#btn_acheter_mur').delay(1000).animate({ left : '50%' },800); $('#btn_estimer_mur').delay(1500).animate({ left : '50%' },800); $('#btn_louer_mur').delay(2000).animate({ left : '50%' },800);*/ $('.conteneur_menu_int').delay(200).animate({ right: "0px" },1500); var timer_reseau = 2000; $('#reseau li').each(function() { $(this).delay(timer_reseau).animate({ left : "0px", opacity :"1" },1000); timer_reseau = timer_reseau + 600; }); var scrollDuring=500; /* Duree du Scroll 1000 = 1seconde */ var scrollBegin=0; /* Hauteur entre l'ancre le scroll */ $('a.scroll').click(function(){ if(location.pathname.replace(/^\//,'')==this.pathname.replace(/^\//,'')&&location.hostname==this.hostname){ var $targetid=$(this.hash); $targetid=$targetid.length&&$targetid||$('[id='+this.hash.slice(1)+']'); if($targetid.length){ var targetOffset=$targetid.offset().top-scrollBegin; $('html,body').animate({scrollTop:targetOffset},scrollDuring); $("a").removeClass("active"); $(this).addClass("active"); return false; } } }); $("input[type=text], input[type=radio], input[type=checkbox], a.button").uniform(); }); function desactive_waypoints(tab) { //alert(tab) ; if(tab != '') { if(tab == 'accueil') { $('#wp_estimer').waypoint('disable') ; $('#wp_louer').waypoint('disable') ; $('#wp_vendre').waypoint('disable') ; $('#wp_gerer').waypoint('disable') ; } if(tab == 'acheter') { $('#wp_louer').waypoint('disable') ; $('#wp_vendre').waypoint('disable') ; $('#wp_gerer').waypoint('disable') ; $('#wp_estimer').waypoint('disable') ; } if(tab == 'louer') { $('#wp_acheter').waypoint('disable') ; $('#wp_vendre').waypoint('disable') ; $('#wp_gerer').waypoint('disable') ; $('#wp_estimer').waypoint('disable') ; } if(tab == 'estimer') { $('#wp_acheter').waypoint('disable') ; $('#wp_louer').waypoint('disable') ; $('#wp_vendre').waypoint('disable') ; $('#wp_gerer').waypoint('disable') ; } if(tab == 'vendre') { $('#wp_acheter').waypoint('disable') ; $('#wp_louer').waypoint('disable') ; $('#wp_estimer').waypoint('disable') ; $('#wp_gerer').waypoint('disable') ; } if(tab == 'gerer') { $('#wp_acheter').waypoint('disable') ; $('#wp_louer').waypoint('disable') ; $('#wp_estimer').waypoint('disable') ; $('#wp_vendre').waypoint('disable') ; } } } function change_header() { if($('.conteneur_mail').css('opacity') == '1') { $('.conteneur_mail').animate({opacity: '0'}, 1000).hide(); $('.conteneur_menu').animate({opacity: '1'}, 1000).show(); } else { $('.conteneur_menu').animate({opacity: '0'}, 1000).hide(); $('.conteneur_mail').animate({opacity: '1'}, 1000).show(); } } function active_waypoints(tab) { $('.waypoint').waypoint('enable') ; }