$(function(){
	$('#slides').slides({
		preload: true,
		preloadImage: 'img/loading.gif',
	});
});

/*
$(document).ready(function(){
   var isiPad = navigator.userAgent.match(/iPad/i) != null;
   
   //Si l'on est pas sur iPad
   if(!isiPad){
	   if( ! $('#myCanvas').tagcanvas({
	     textColour : '#696969',
	     maxSpeed : 0.01,
	     depth : 0.75,
	     initial : [0.8,-0.3]
	   })) {
	     // TagCanvas failed to load
	     $('#canvas').hide();
	     $('#noCanvas').show();
	   }
   }else{ 
     	$('#canvas').hide();
	    $('#noCanvas').show();
   }
 });
 
 function clickSpecs(){
 	$(".introducing").html($("#logiciel").html());
 	$("#logiciel").html($(".techSpecs").html());
 	$(".retour").css("color", "black");
 	$(".retour").click(function(){
 		$("#logiciel").html($(".introducing").html());
 		return false;
 	});
 	return false;
 }
 
 function clickFeatures(){
 	$(".introducing").html($("#logiciel").html());
 	$("#logiciel").html($(".features").html());
 	$(".retour").css("color", "black");
 	$(".retour").click(function(){
 		$("#logiciel").html($(".introducing").html());
 		return false;
 	});
 	return false;
 }
 
 

$(window).load(function(){	
	var COOKIE_NAME = 'cookieIphone';
    var ADDITIONAL_COOKIE_NAME = 'additional';
    var options = { path: '/', expires: 1 };
	
	if($.cookie(COOKIE_NAME) != "affiche"){
		if((navigator.userAgent.match(/iPhone/i))||(navigator.userAgent.match(/iPod/i))){
			var question = confirm('Would you like to switch to the iPhone & iPad optimized version of my site?');
			if (question){
				window.location = 'http://www.tauziet.fr/sencha';
			}else{
				window.location = 'http://www.tauziet.fr';
			}
			$.cookie(COOKIE_NAME, 'affiche', options);
		}
	}
});
*/
