
function OuvrirPage(page) {

	// On charge la page dans le DIV	
	$.ajax({
		cache: false,
		type: "GET",
		url: 'frame.php?ajax=yes&pg=' + page,
		dataType: "html",
		beforeSend : function(){
			document.body.style.cursor = 'wait'; 
		},
		success: function(data){
			$("div#conteneur-frame").hide("slide", function() {
				$('div#conteneur-frame').html(data);
				
				$("div#conteneur-frame a.linktocontenu").each(function(i){
					this.href = "#";
					$(this).click(function() { OuvrirPage(this.name); });
				});
				
				$("div#conteneur-frame").show("slide", function() {
					
					$('div#conteneur-frame').pngFix({ blankgif:'../img/blank.gif' });
				
				}, 1100);
				
			}, 600);
			
		},
		complete : function(){
			document.body.style.cursor = 'auto'; 
		}
	});

}

$(document).ready(function() {

	$("a.linktocontenu").each(function(i){
		this.href = "#";
		$(this).click(function() { OuvrirPage(this.name); });
	});
	
	$(document).pngFix({ blankgif:'../img/blank.gif' });

	var FO = {
		movie:"header.swf", width:"960px", height:"110px", majorversion:"9", build:"28", minorversion:"8", bgcolor:"#d4d0c8", allowscriptaccess:"always", wmode: "transparent"
	};
	UFO.create(FO, "playerflash", "chargement");

});

function writeMail() {

	location.href = 'mailto:' + 'contact' + '@' + 'fromagesduplateau.com';

}