///////////////////////////////////////////////////////////////////////////////////
/////////////////auteur : valery Frisch - contact@valactive.com ///////////////////
///////////////////////////date creation : 12/2008 ////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////

function afficheContentDiv()
{
	jQuery("#anim").fadeOut("slow").hide( function(){
		jQuery("#content_box").fadeIn("normal");
		document.getElementById("anim").style.visibility = 'hidden';
	});
	
//	jQuery("#content_box").fadeIn("slow");
	
/*	$("#show-projects").click(function() {
	    $(".page:visible").fadeOut("normal", function() {
	        $("#projects").fadeIn("normal");
	    });
	});
*/	
//	document.getElementById("anim").style.display = "none";
//	document.getElementById("content_box").style.display = "block";
}

// recuperation de la racine de l'url du site pour les chemin des requetes ajax	///
	var first=new Array();
	param = window.location.href;
	first = param.split("?");
	url = first[0];
// fin recuperation ///////////////////////////////////////////////////////////////
function exemple(str) {
	alert(str);
}


function showBookDetail(str) {
	document.getElementById("bookDetails").style.display = "block";
	
	var newImage = file(url+'actions/bookDetails.php?id='+str);
	obj = document.getElementById("bookDetails");
	obj.innerHTML = newImage;
}

//gestion des requetes asynchrones
function file(fichier)
{
if(window.XMLHttpRequest) // FIREFOX
xhr_object = new XMLHttpRequest();
else if(window.ActiveXObject) // IE
xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
else
return false;
xhr_object.open("GET", fichier, false);
xhr_object.send(null);
if(xhr_object.readyState == 4) return xhr_object.responseText;
else return false;
}