
jQuery(window).bind("load", function() {
  $('#wrapper').center();
  $('#wrapper').fadeIn("1000",function(){
  jQuery("div#slider1").codaSlider({
    dynamicArrows: false
  });});
});

// Create the tooltips only on document load
$(document).ready(function(){
  // Notice the use of the each method to gain access to each element individually 
    $('#buzz').each(function(){
      // Create image content using websnapr thumbnail service
      var content = "<p>Le buzz (anglicisme de bourdonnement) est une technique marketing consistant, comme son nom l'indique,  faire du bruit autour d'un nouveau produit (source: wikipedia)</p>";
      $(this).qtip({
        content: content, 
        show:{ effect:'fade', length:300},
        style: { width: 300,background: '#EEE',color: 'black',border: { width: 3,radius: 5,color: '#CCC'},tip: 'topLeft',name: 'dark' },
        corner: { tooltip: 'topMiddle',target: 'bottomMiddle'  }
      });
    $('#developpement').each(function(){
	// Create image content using websnapr thumbnail service
	var content = "<div>- gestion de contenu<br/>- boutique en ligne<br/>- sites statiques<br/>- SEO<br/></div>";
	$(this).qtip({
	  content: content, 
	  show:{ effect:'fade', length:800},
	  style: { width: 300,background: '#EEE',color: 'black',border: {width: 1,radius: 3,color: '#EEE'},tip: 'topLeft',name: 'dark','opacity':0.8 },
	  corner: { tooltip: 'topMiddle', target: 'bottomMiddle' }
	});
      });
    $('#hebergement').each(function(){
	// Create image content using websnapr thumbnail service
	var content = "<div>- virtualisation<br/>- mailing<br/>- intranet<br/></div>";
	$(this).qtip({
	  content: content, 
	  show:{ effect:'fade', length:800},
	  style: { width: 300,background: '#EEE',color: 'black',border: {width: 1,radius: 3,color: '#EEE'},tip: 'topLeft',name: 'dark','opacity':0.8 },
	  corner: { tooltip: 'topMiddle', target: 'bottomMiddle' }
	});
      });
  });
});
