/*
 * additionnal script for Bigger than pixels
*/
$.fn.qtip.styles.mystyle = {
   	padding: 3,
    background: '#003E7A',
    color: 'white',
	fontWeight: 'normal',
	fontSize: '12px',
    textAlign: 'center',
    border: {
         width: 2,
         radius: 5,
         color: '#003E7A'
    },
    tip: 'bottomMiddle',
    name: 'dark'
}
 // Create the tooltips only on document load
$(document).ready(function() 
{
   //tooltips du menu
   $('#menu a[href][title]').qtip({
    content: {
         text: false // Use each elements title attribute
     },
	 position: {
     	corner: {
         target: 'topMiddle',
         tooltip: 'bottomMiddle'
    	}
   	},
	style: 'mystyle'

   });
   //tooltips du search
    $('p.boutons input[title]').qtip({
   		content: {
         text: false // Use each elements title attribute
     	},
     	position: {
     		corner: {
         	target: 'topMiddle',
         	tooltip: 'bottomMiddle'
    		}
   		},
   		style: 'mystyle'
	});
	//pied de homepage
	$('#pied a[href][title]').qtip({
	content: {
         text: false // Use each elements title attribute
     	},
     	position: {
     		corner: {
         	target: 'topMiddle',
         	tooltip: 'bottomMiddle'
    		}
   		},
   		style: 'mystyle'
	});
	//tips
	$('.tip[href][title]').qtip({
	content: {
         text: false // Use each elements title attribute
     	},
     	position: {
     		corner: {
         	target: 'topMiddle',
         	tooltip: 'bottomMiddle'
    		}
   		},
   		style: 'mystyle'
	});
});

// Hide Language Toolbar & animate on click //
$(document).ready(function(){ 
		$("#change_state ul").hide(); 
        $(".country_change").click(function(){

        	$("#change_state ul").stop().toggle("medium");
        });
});

$(document).ready(function(){ 
        $("#liste_langues").hide(); 
        $("#langues").click(function(){
        	$("#liste_langues").stop().toggle("medium");
        });
});

// Load Slideshow //

$(document).ready(function(){
        
        var options = {
            crossFadeTime: 500,
            displayTime: 5000
        };
                
         $('#slideshow').slideshow(options);
    
    });


 
