var x=0;
var sens=0;
var bg=1;
var px_max=2400;
var cnt_bg=0;
var hdlTimeOut=0;
var tmp_cntx=0;
var DrpActDivSel=0;
function ActDivSel(n,c){
	if(c){
		if(Xpos>480){pp=300;}else{pp=-10;}
		document.getElementById('DecouvDesc'+n).style.left=Xpos-pp;
		document.getElementById('DecouvDesc'+n).style.top=Ypos+5;
		document.getElementById('DecouvDesc'+n).style.visibility='visible';
		DrpActDivSel=n;
	}else{
		DrpActDivSel=0;
		document.getElementById('DecouvDesc'+n).style.visibility='hidden';
	}
}
function identvaca(){
	ctrl.document.fm.pass.value=document.fm.pass.value;
	ctrl.document.fm.log.value=document.fm.email_mess.value;
	ctrl.document.fm.act.value="val";
	ctrl.document.fm.submit();
}
function connVac(n){
	if(n){
		if(document.fm.login.value!="" && document.fm.pass.value!=""){
			document.fm.act.value=document.fm.cmpt.value;
		}else{
			document.fm.act.value="";
		}
	}else{document.fm.act.value="";}
	document.fm.target="blank";
	if(document.fm.cmpt.value=="log"){document.fm.action="/web/index.php";}else{document.fm.action="/administration/index.php";}
	document.fm.submit();
	document.fm.target="";document.fm.action="moteur.php";
}
function check_loc(n){
	if(n){var t="moteur.php";}else{var t="index.php";}
	document.fm.act.value='sel'+n;
	document.fm.action=t;
	document.fm.submit();
}
function check_cla(){
	var n=document.fm.reclass.value;
 	if(n.substr(0,1)=="*"){
		var t="http://www.7utile.com/gites/index.php?reg="+n.substr(1,n.length-1);		
	}else{
		var t="http://www.7utile.com/gites/index.php?dep="+n;
	}
	document.fm.target="blank";
	document.fm.action=t;
	document.fm.submit();
}
function check_ds(){
	if(document.fm.rereg.value!=""){var n=document.fm.sel.value+"_"+document.fm.rereg.value;}else{var n=document.fm.sel.value;}
	document.fm.target="blank";
	document.fm.action="http://www.vivementlesvacances.com/location_"+n+".php";
	document.fm.submit();
	
}
function check_mois(){
	document.fm.target="";
	document.fm.action="index.php";
	document.fm.submit();
}
function actFav(){
	if( navigator.appName!='Microsoft Internet Explorer'){window.sidebar.addPanel("O'dispo","http://www.odispo.com/","");
	}else{window.external.AddFavorite("http://www.odispo.com/","O'dispo");}
}
function dermin(n,c){
	document.fm.aff.value=n;
	document.fm.typ.value=c;
	document.fm.target='blank';
	if(!c){document.fm.action='dernieres-minutes.php';}else{document.fm.action='promotion-vacances.php';}
	document.fm.submit();
	document.fm.target='';
	document.fm.action='index.php';
}
var Xpos=0;
var Ypos=0;	
var Xxp=0;
var Yyp=0;
var pp;
function mouseMove(evt) { 
	var Xp,Yp;
	if (document.layers){Xp=evt.x; Yp=evt.y;} 
	if (document.all){Xp=event.clientX; Yp=event.clientY;}else{if (document.getElementById) {Xp=evt.clientX; Yp=evt.clientY;}}
	Yyp=Yp;Xxp=Xp;
	Ypos=Yp+(document.body.offsetHeight+document.body.scrollTop-window.document.body.offsetHeight);
	Xpos=Xp+(document.body.offsetWidth+document.body.scrollLeft-window.document.body.offsetWidth);
	if(DrpActDivSel){
		if(Xpos>480){pp=300;}else{pp=-10;}
		document.getElementById('DecouvDesc'+DrpActDivSel).style.left=Xpos-pp;
		document.getElementById('DecouvDesc'+DrpActDivSel).style.top=Ypos+5;	
	}
}
function mouseDown(){}
function mouseUp(){}
if (document.layers){document.captureEvents(Event.MOUSEDOWN | Event.MOUSEMOVE | Event.MOUSEUP); }
if (document.layers || document.all){document.onmousemove = mouseMove;document.onmousedown = mouseDown;document.onmouseup = mouseUp;}
if (document.addEventListener){document.addEventListener('mousemove', mouseMove, true);document.addEventListener('mousedown', mouseDown, true);document.addEventListener('mouseup', mouseUp, true);}
var at="@";
var fai="odispo.com";
