$(document).ready(function(){
		
		/* LINKS OUTLINE NONE IE */
		$("a").focus(function() {
  			$(this).blur();
		});
		
		$('a[rel=external]').click(function(){
			window.open(this.href); 
			return false;
  		});

		
		$("a[href=#]").attr("href", "javascript:void(0);");
		
		/*
		$('.bigbody #subnav').hide(); 
			
		$('#bodymedias #subnav').show(); 
		
  		$(".bigbody a#medias").click( function() {
    		$(".bigbody ul#subnav").slideToggle("slow"); return false;
  		});
		$(".bigbody ul#subnav").click( function() {},
  			function() { $(".bigbody ul#subnav").show(); return false;
  		});
  		*/


						
						   
	// Our very special jQuery JSON fucntion call to Flickr, gets details of the most recent 20 images			   
	$.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?id=30604325@N06&lang=en-us&format=json&jsoncallback=?", function(data){
																								
		
		// Start putting together the HTML string
		var htmlString = "<ul>";					
		
		// Now start cycling through our array of Flickr photo details
		$.each(data.items, function(i,item){
									
				
				// I only want the ickle square thumbnails
				var sourceSquare = (item.media.m).replace("_m.jpg", "_s.jpg");	
				var sourceSquarelink = (item.media.m).replace( "_m.jpg",".jpg");		
				
				// Here's where we piece together the HTML
				htmlString += '<li><a href="' + sourceSquarelink + '">';
				htmlString += '<img src="' + sourceSquare + '" alt="' + item.title + '" title="' + item.title + '"/>';
				htmlString += '</a></li>';
		});		
		
	// Pop our HTML in the #images DIV	
	$('#images').html(htmlString + "</ul>");
	$('#images a').zoomimage();
	
	// Close down the JSON function call
	});  

	
	
	
			//contact
	$("form#con").submit(function(){

		var str = $("form#con").serialize();

   		$.ajax({
   		type: "POST",
   		url: "contact.php",
   		data: str,
   		success: function(msg){
    
			$("#note").ajaxComplete(function(event, request, settings){

				if(msg == 'OK') // Message Sent? Show the 'Thank You' message and hide the form
				{
					result = '<div class="notification_ok">Votre message a &eacute;t&eacute; envoy&eacute;. Merci.</div>';
					$("#fields").hide();
				}
			else
				{
					result = msg;
				}

				$(this).html(result);

			});

		}

 		});

		return false;  

	});
// The end of our jQuery function	
});
$(function(){
		$.fn.supersized.options = {  
			startwidth: 1024,  
			startheight: 768,
			minsize: .50,
			slideshow: 0 
		};
        $('#supersize').supersized(); 
    });
