// JavaScript Document

var contact = function() {
	$(".contact_container").slideToggle(1000);	
}

$(document).ready(function() {

//	$("#work").scrollTo( '#workcontent', 800, {easing:'elasout'} );

	$(".presentation2 li#mobile").addClass("selected");
	$("h2#mobile_desc").show();
	
	$(".presentation2 li").hover(function() {
		$(".presentation2 li").removeClass("selected");
		$(".presentation2 h2").hide();
		$(this).addClass("selected");
		$("h2#"+this.id+"_desc").show();
	});
	
	
	$(".footer li").click(function() {
		var id = this.id;
		if(id =="linkedin") {
			window.location.href = "http://ca.linkedin.com/in/florentlamoureux";
		}
		else if(id =="viadeo") {
			window.location.href = "http://www.viadeo.com/fr/profile/florent.lamoureux";
		}
		else if(id =="twitter") {
			window.location.href = "http://twitter.com/flrent";
		}
		else if(id =="vimeo") {
			window.location.href = "http://www.vimeo.com/florent";
		}
		else if(id =="flickr") {
			window.location.href = "http://www.flickr.com/photos/flrent/";
		}
	});
	/*
	$(".work div").hover(function() {
		$("#"+this.id).fadeOut("slow");
	});
	$(".work div").mouseout(function() {
		$("#"+this.id).fadeIn("slow");
	});*/
});
