function getIEVersionNumber() {
    var ua = navigator.userAgent;
    var MSIEOffset = ua.indexOf("MSIE ");
    
    if (MSIEOffset == -1) {
        return 0;
    } else {
        return parseFloat(ua.substring(MSIEOffset + 5, ua.indexOf(";", MSIEOffset)));
    }
}

 $(document).ready(function() {

	var introview=0;
	$("#introlink").click(function() {
		if (introview) {
			$("#introtext").slideUp("slow");
			introview=0;
			$(this).find("img").attr({src:"/images/arrow-down.jpg"});
		} else {
			$("#introtext").slideDown("slow");
			introview=1;
			$(this).find("img").attr({src:"/images/arrow-up.jpg"});
		}
	});
	
		$(".contentlistitem").hover(function(){
			$(this).css({
			  'background' : "#ccc"
			});
		},function(){
			$(this).css({
			  'background' : "none"
			});
		});
		$(".contentlist").hover(function(){
			$(this).css({
			  'background' : "#e6e6e6"
			});
		},function(){
			$(this).css({
			  'background' : "none"
			});
		});

		$(".contentlist").find(".contentlistitem:last").css({
			  'margin-bottom' : 0
			});


		$("#searchfield").focus(function(){
			$(this).css({
			  'color' : '#000',
				'font-size': '15px',
				'letter-spacing':'0em'
			});
			if ($(this).attr('value') == "Chercher") {
				$(this).attr({'value':""});
			} else {
			}
		});

		$("#searchfield").blur(function(){
			if ($("#searchfield").attr('value') == "") {
				$("#searchfield").attr({'value':"Chercher"});
				$("#searchfield").css({
				  'color' : '#3A648A',
					'font-size': '17px',
					'letter-spacing':'0.02em'
				});
			}
		});
		
});
	 
