/* HIGHSLIDE */
	hs.graphicsDir = 'scripts/highslide/graphics/';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.outlineType = 'rounded-white';
	hs.fadeInOut = true;
	hs.numberPosition = 'caption';
	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 : '',
		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 :          'N° %1/%2',
		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.'
	};
	
function favoris(url, title) {
if ( navigator.appName != 'Microsoft Internet Explorer' )
{ window.sidebar.addPanel(title,url,""); }
else { window.external.AddFavorite(url,title); } 
}

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();
    });
};

$(document).ready(function() {
				
		/* MENU SLIDER */
		
		$("#sbi_panel_1").attr("data-bg","../office2/com-easy_53965/catalog/images/header/slider/diapo1.jpg");
		$("#sbi_panel_2").attr("data-bg","../office2/com-easy_53965/catalog/images/header/slider/diapo2.jpg");
		$("#sbi_panel_3").attr("data-bg","../office2/com-easy_53965/catalog/images/header/slider/diapo3.jpg");
		/* FIN MENU SLIDER */
		
		/* HEADER SLIDER+MENU */
		$('#sbi_container').bgImageMenu({
			defaultBg	: '../office2/com-easy_53965/catalog/images/header/menu/pix_transp.png',
			border		: 1,
			type		: {
			mode		: 'seqHorizontalSlide',
			speed		: 250,
			easing		: 'jswing',
			seqfactor	: 100
			}
		});			
		$('#slideshow').cycle({
			fx: 'fade'
		});		
		/* FIN HEADER SLIDER+MENU */
		
		/* ONGLETS */		
		$(".tab_content").hide(); //Hide all content
		$("ul.tab li.first").addClass("active").show(); //Activate first tab
		$("#coup_coeur").show(); //Show first tab content
		
		$("ul.tab li").click(function() {
			$("ul.tab li").removeClass("active"); //Remove any "active" class
			$(this).addClass("active"); //Add "active" class to selected tab
			$(".tab_content").hide(); //Hide all tab content
			var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
			$(activeTab).fadeIn(); //Fade in the active content
			return false;	
			
		});		
		/* FIN ONGLETS */
		
		if(document.getElementById('coup_coeur_carrousel'))
		{
			jQuery('#coup_coeur_carrousel').jcarousel({
					auto: 2,
					wrap: 'circular',
					initCallback: mycarousel_initCallback
			});
		}
		
		if(document.getElementById('nouveaux_biens_carrousel'))
		{
			jQuery('#nouveaux_biens_carrousel').jcarousel({
					auto: 2,
					wrap: 'circular',
					initCallback: mycarousel_initCallback
			});
		}
		
		if(document.getElementById('selection_prestige_carrousel'))
		{
			jQuery('#selection_prestige_carrousel').jcarousel({
					auto: 2,
					wrap: 'circular',
					initCallback: mycarousel_initCallback
			});
		}
		if(document.getElementById('locaux_pro_carrousel'))
		{
			jQuery('#locaux_pro_carrousel').jcarousel({
					auto: 2,
					wrap: 'circular',
					initCallback: mycarousel_initCallback
			});
		}
		/* PARTENAIRES */
		
		if(document.getElementById('box_partenaires_photo_1'))
		{
			$(function() {
				$(".box_partenaires_photo_1").css("opacity","0");
				$(".box_partenaires_photo_1").hover(function () {$(this).stop().animate({opacity: 1}, 1000);},
				function () {	$(this).stop().animate({opacity: 0}, 1000);});});
		}
		
		if(document.getElementById('box_partenaires_photo_2'))
		{
			$(function() {
				$(".box_partenaires_photo_2").css("opacity","0");
				$(".box_partenaires_photo_2").hover(function () {$(this).stop().animate({opacity: 1}, 1000);},
				function () {	$(this).stop().animate({opacity: 0}, 1000);});});
		}
		
		if(document.getElementById('box_partenaires_photo_2'))
		{
			$(function() {
				$(".box_partenaires_photo_3").css("opacity","0");
				$(".box_partenaires_photo_3").hover(function () {$(this).stop().animate({opacity: 1}, 1000);},
				function () {	$(this).stop().animate({opacity: 0}, 1000);});});
		}
		/* FIN PARTENAIRES */
		
		
	});
