///////////////////////////////////////////////////////////////
//
//		GENERAL
//		-------
//
//		Publi-Immeuble
//
//		Auteur : Sebastien Rothlisberger
//
///////////////////////////////////////////////////////////////

isIE = (document.all) ? true : false;

function init() {
	if(!isIE){ Reflection.add($('reflection02'), { height: 1/5, opacity: 2/3 });}	
}

/////////////////////////////////////
// Checher le contenu
/////////////////////////////////////
function getContent(act) {
	var url = 'http://www.publi-immeuble.com/fonctions/ajaxPubli-Immeuble.php';
	activeSlide = 1;
	
	$('status').innerHTML = 'Merci de patienter...';
	
	var onSuccess = function(req) {
		$('content').innerHTML = req.responseText; 
		$('status').innerHTML = '';		
	}
	
	var onError = function(req) {
		$('content').innerHTML = '<div style="text-align:center; margin-top:43px;"><img src="/quoifaire/images/warning.gif" alt="" /> <strong>Une erreur est survenue...</strong></div>';
	}
	
	new Ajax.Request(url, {asynchronous:true, method: 'get', parameters: 'act='+act, onSuccess:onSuccess, onFailure:onError});

}