function DragTof(ID,nb)
{
	var content='<div style="width:228px; height:117px;"><img src="photos/'+ID+'_exclu.jpg" alt="" /></div>';
	var max_bottom=400+(nb*155);
	var cumul_y=0;
	var cumul_x=0;
	document.getElementById('tof_'+ID).style.filter='alpha(opacity=50)';
	document.getElementById('tof_'+ID).style.opacity='0.5';
	MoveTof(ID,max_bottom,cumul_y,cumul_x);	 
}
function MoveTof(id,max_bottom,cumul_y,cumul_x) 
{ 
	var begin_petit=max_bottom-175;
	var img_ratio=Math.round(228/117);
	var R=325;
	document.getElementById('tof_'+id).style.bottom=(parseInt(cumul_y)+2)+'px';
	if (cumul_x<R)
	{
		if (cumul_y<R)
		{
			//alert(Math.sqrt(((R*R)-((R-cumul_y)*(R-cumul_y)))));
			document.getElementById('tof_'+id).style.left=(Math.round(Math.sqrt(((R*R)-((R-cumul_y)*(R-cumul_y))))))+'px';
		}
		else 
		{
			document.getElementById('tof_'+id).style.left=(parseInt(cumul_x)+2)+'px';
		}
	}
	cumul_y=parseInt(cumul_y)+3+(cumul_x/25);
	cumul_x=parseInt(cumul_x)+3+(cumul_x/25);
	if (cumul_y>begin_petit)
	{
		document.getElementById('tof_'+id).width=parseInt(document.getElementById('tof_'+id).width)-10;
		document.getElementById('tof_'+id).style.left=parseInt(document.getElementById('tof_'+id).style.left)+10;
		document.getElementById('tof_'+id).height=parseInt(document.getElementById('tof_'+id).width)/parseInt(img_ratio);
	}
	if (cumul_y<max_bottom)
	{
		setTimeout('MoveTof('+id+','+max_bottom+','+cumul_y+','+cumul_x+')',1);
	}
	else 
	{
		//document.getElementById('tof_'+id).style.filter='alpha(opacity=100)';
		//document.getElementById('tof_'+id).style.opacity='1';
		sndReq(id);
		document.getElementById('tof_'+id).style.left='0px';
		document.getElementById('tof_'+id).style.bottom='0px';
		document.getElementById('tof_'+id).width='227';
		document.getElementById('tof_'+id).height='118';
		document.getElementById('rub_selec').style.backgroundColor='#ff8829';
		setTimeout("document.getElementById('rub_selec').style.backgroundColor='';",100);
		setTimeout("document.getElementById('rub_selec').style.backgroundColor='#ff8829';",200);
		setTimeout("document.getElementById('rub_selec').style.backgroundColor='';",300);
		setTimeout("document.getElementById('rub_selec').style.backgroundColor='#ff8829';",400);
		setTimeout("document.getElementById('rub_selec').style.backgroundColor='';",500);
		
	}
}
function createRequestObject() {
var ro;
var browser = navigator.appName;
if(browser == "Microsoft Internet Explorer"){
ro = new ActiveXObject("Microsoft.XMLHTTP");
}else{
ro = new XMLHttpRequest();
}
return ro;
}

var http = createRequestObject();

function sndReq(id) { 
//document.getElementById('chargement').innerHTML='<b><font style=\"font-size:15px;\">Chargement en cours, veuillez patienter...</font></b>';
http.open('get', 'div_selection.php?id='+id);
http.onreadystatechange = handleResponse;
http.send(null);
//alert(i);
}

function sndReq_lang(lang,url,ID) { 
//document.getElementById('chargement').innerHTML='<b><font style=\"font-size:15px;\">Chargement en cours, veuillez patienter...</font></b>';
http.open('get', 'div_lang.php?lang='+lang+'&link='+url);
if (ID!='' && url=='details_annonce')
{
	window.location='property,'+ID+'.html';
	http.send(null);
}
else 
{
	http.onreadystatechange = handleResponse;
	http.send(null);
}
//alert(i);
}

function handleResponse() {
if(http.readyState == 4){
var response = http.responseText;
var update = new Array();

if(response.indexOf('|' != -1)) {
update = response.split('|');
if (update[0]=='lang')
{
		if (update[1]!='')
		{
			window.location=update[1]+'.html';	
		}
		else 
		{
			window.location='/';
		}
}
}
}
}
<!-- EMPECHER CLIC DROIT -->
<!--
// ***********************************************
// AUTHOR: WWW.CGISCRIPT.NET, LLC
// URL: http://www.cgiscript.net
// Use the script, just leave this message intact.
// Download your FREE CGI/Perl Scripts today!
// ( http://www.cgiscript.net/scripts.htm )
// ***********************************************
<!-- Disable
function disableselect(e){
return false
}

function reEnable(){
return true
}

//if IE4+
document.onselectstart=new Function ("return false")
document.oncontextmenu=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
//-->

//-->
<!-- FIN DU SCRIPT -->