$(document).ready(function(){
$('.pics').cycle('fade');
});

function ajax_page_advanced(ele,msg,url){
        $(ele).slideUp("slow", function(){
                $(ele).html(msg).show("slow", function(){
                        $(ele).load(url+" "+ele, null, function(){
                                var tampon = $(ele).html();
                                $(ele).html(msg).hide("slow",function(){
                                        $(ele).html(tampon);
                                        $(ele).slideDown("slow");
                                });
                        });
                });
        });
}
/* Fonction de chargement ajax simple */
function ajax_page(ele,msg,url){
        $(ele).html(msg).load(url+" "+ele);
}

/* Une fois la page chargée */
$(document).ready(function(){

	$("a.wajax").click(function(){
		/* ajax_page_advanced('#mainContent','<p style="text-align: center">Chargement ...</p>',this.href);*/
		testAjax();
		return false;
	});

});

	function flashPutHref(href) { location.href = href; }
	var eB = false;
	if (eB) {
		window.moveTo(0,0);
		window.resizeTo (screen.availWidth, screen.availHeight);
	}
	
function testAjax(){
	$("#mainContent").load("test.php","r=ROuge");
}