// JavaScript Document

function openCenterWin(url,theWidth,theHeight){
var theTop=(screen.height/2)-(theHeight/2);
var theLeft=(screen.width/2)-(theWidth/2);
var features=
'height='+theHeight+',width='+theWidth+',top='+theTop+',left='+theLeft+",scrollbars=yes";
neo=window.open(url,'ethiq_immo',features);
  if(neo.window.focus){neo.window.focus();}
}



function set_tosame_pos(id_element, id_element_cible, majo_x, majo_y) {
	if ($(id_element)) {
   	var position_element=Position.positionedOffset($(id_element));
   	var pos_y=position_element.last();
   	var pos_x=position_element.first();
	$(id_element_cible).style.left = (pos_y+majo_y)+"px";
	$(id_element_cible).style.top = (pos_x+majo_x)+"px";
	}
}

function update_conteneur_magasins (page) {
	if (page != "") {
			var AppelAjax = new Ajax.Updater(
									"conteneur_magasins",
									"magasins/"+page, 
									{
									evalScripts:true
									}
									);
	}
}
	
function make_email (name) {
	mail= name+"@"+"infolys"+"."+"com";
	window.location.href= "mailto:"+mail;
}