/*


	        +=             ?                        I~      ,?,                  ?  
	       =, ?             :+                    ?            ~               =:   
	       =   +              +                  +                            ?     
	      ?     =              I                ?                           +       
	     =      :               ~~             ~                          =~        
	    :~       ?               ,,            +                          +,        
	   ,=         ?                ?           ?                            ?       
	   +          ~~                ?          =                             +      
	  =            =                 +          ?                             ?     
	 :~             +                 :+         ?                             ::   
	 +               =                  +         ?            ?                :,  
	?                :=                  ?          ??      =+                    ? 
            	                                       ,~~,                         


	Anck • Renaud Futterer – Design/Art Direction

	I'm a freelance designer with savoir faire in graphic design,
	typography, motion, 3d, digital imaging & interactive


*/





var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-25200875-1']);
_gaq.push(['_trackPageview']);

(function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();


function iPhoneDetect() {
 if((navigator.userAgent.match(/iPhone/i))||(navigator.userAgent.match(/iPod/i))){
  window.location.href = "index_mobile.html";
 }
}

function goToByScroll(id){
     			$('html,body').animate({scrollTop: $("#"+id).offset().top},'slow');
}



function ecrire(){
adresse="#renaud##";
adresse=adresse.replace(/#/,'mailto:',adresse);
adresse=adresse.replace(/#/,'@',adresse);
adresse=adresse.replace(/#/,'anck.tv',adresse);
document.getElementById('link').setAttribute('href',adresse);
}


function cacher(){
$("#ob").before($("#overview").hide())
$("#ob").before($("#overviewbg").hide())
}
$(function(){
		$("#blog").append("<strong><a href='http://anck.tumblr.com' target='_blank'>— Blog</a>&nbsp;&nbsp;</strong>")
      	$("#on").append("&nbsp;&nbsp;<strong><a href ='#' onClick='cacher();'>— About</a></strong>")
        $("#about").before($("#rid").css({"margin-top":"0px"}).hide())
		$("#about").before($("#rig").css({"margin-top":"0px"}).hide())
        //$("#on").click(function(){ $("#desc").slideToggle(500) })
		$("#on").click(function(){ goToByScroll('top'), $("#rid").slideToggle(500) })
		$("#on").click(function(){ $("#rig").slideToggle(500) })
})

$(function(){
      	$("#ob").append("<span class='fl'><a href='javascript:void(0)'><img src='thumbs/menu.png'/>&nbsp;&nbsp;</a></span>")
        $("#ob").before($("#overview").hide())
		$("#ob").click(function(){ $("#overview").slideToggle(500) })
		$("#ob").before($("#overviewbg").hide())
		$("#ob").click(function(){ $("#overviewbg").slideToggle(500) })
      })
	  


