
function prelod(){
var d=document ,di=d.images, im=new Array();
 for(var i=0,j=0;i<di.length;i++){
  if(di[i].src.indexOf("_norm.")!=-1){
   im[j]= new Image();
   im[j].src=di[i].src.replace("_norm.", "_clic.");
    if(!di[i].onmouseover){
	di[i].onmouseover=Function("this.src=this.src.replace('_norm.','_clic.')");di[i].onmouseout=Function("this.src=this.src.replace('_clic.','_norm.')")
	}
   j++;
  }
 }
}

function findObj(n,c)			{var x,d=c?c.document:document; if(!(x=d[n])&&d.all) x=d.all[n];if(!x && d.getElementById) x=d.getElementById(n);return x;}

function findTags(obj,tag,arr)	{if(tag=='*'){obj.ALLS = obj.all||obj.getElementsByTagName(tag);}else{obj[tag+"S"] = obj.all?obj.all.tags(tag):obj.getElementsByTagName(tag);};if(arr)return obj.ALLS || obj[tag+"S"] || [];}

function getBounds(obj)			{obj.X=obj.offsetLeft;obj.Y=obj.offsetTop;obj.W=obj.offsetWidth;obj.H=obj.offsetHeight;var tempObj=obj;while(tempObj=tempObj.offsetParent){if (isNaN(tempObj.offsetTop)) break;obj.X+=tempObj.offsetLeft;obj.Y+=tempObj.offsetTop; }return obj;}

function findRealParent(obj)	{return obj.parentNode||obj.parentElement;}

String.prototype.trim = function() {return this.replace(/(^\s*)|(\s*$)/g,'');}
/* ajouter arondi monetaire */
function ismail(mail){return (/^([a-z_0-9\.-]+)@([a-z_0-9\.-]+)\.([a-z]{2,5})$/).test(mail);}
function Fwrite(str){document.write(str);}
function change_url(str){location=str;}

if(window.onload!=null) firstload=window.onload;
onload=function(){if(window.firstload!=null)firstload();prelod();}
