var tID='';

if(navigator.appName =="Microsoft Internet Explorer") {
	if(navigator.userAgent.indexOf("Mac") == -1 && navigator.appVersion.indexOf("MSIE 5.0")<0) window.onresize = preload;
	else if(navigator.appVersion.indexOf("MSIE 5.0")>0) window.onresize = preload;
}

function preload() {
	checkRecherche();
}

window.onresize = new Function("preload();");


function viewInfo(objImg,id){
	x = new getObj(id);
	y = new getObj(objImg);
	x.style.left = getAbsoluteLeft(y.obj)+10+"px";
	x.style.top = getAbsoluteTop(y.obj)+10+"px";
	(x.style.visibility == "visible") ? x.style.visibility="hidden" : x.style.visibility="visible";
}
function viewFormule(objImg,id){
	x = new getObj(id);
	y = new getObj(objImg);
	x.style.left = getAbsoluteLeft(y.obj)-25+"px";
	x.style.top = getAbsoluteTop(y.obj)+20+"px";
	(x.style.visibility == "visible") ? x.style.visibility="hidden" : x.style.visibility="visible";
}
function viewDispo(objImg,id){
	x = new getObj(id);
	y = new getObj(objImg);
	x.style.left = getAbsoluteLeft(y.obj)-35+"px";
	x.style.top = getAbsoluteTop(y.obj)+20+"px";
	(x.style.visibility == "visible") ? x.style.visibility="hidden" : x.style.visibility="visible";
}
function viewCond(objImg,id){
	x = new getObj(id);
	y = new getObj(objImg);
	x.style.left = getAbsoluteLeft(y.obj)-75+"px";
	x.style.top = getAbsoluteTop(y.obj)+15+"px";
	(x.style.visibility == "visible") ? x.style.visibility="hidden" : x.style.visibility="visible";
}

function viewDetail(objImg,id){
	x = new getObj(id);
	y = new getObj(objImg);

	if(getAbsoluteLeft(y.obj) + 210>document.body.clientWidth)
		x.style.left = getAbsoluteLeft(y.obj)-150+"px";
	else
		x.style.left = getAbsoluteLeft(y.obj)+"px";
	x.style.top = getAbsoluteTop(y.obj)+75+"px";

	(x.style.visibility == "visible") ? x.style.visibility="hidden" : x.style.visibility="visible";
}

function viewNote(objImg,id){
	x = new getObj(id);
	y = new getObj(objImg);
	x.style.left = getAbsoluteLeft(y.obj)-20+"px";
	x.style.top = getAbsoluteTop(y.obj)+12+"px";
	(x.style.visibility != "visible") ? x.style.visibility="visible" : x.style.visibility="hidden";
	clearTimeout(tID);
}
function deViewNote(objImg,id){
	x = new getObj(id);
	y = new getObj(objImg);
	x.style.visibility="hidden";
}

function viewSelection(objImg,id){
	x = new getObj(id);
	y = new getObj(objImg);
	z = new getObj("moteur");
	x.style.left = getAbsoluteLeft(y.obj)-542+"px";
	x.style.top = getAbsoluteTop(y.obj)+"px";
	(x.style.visibility == "visible") ? x.style.visibility="hidden" : x.style.visibility="visible";
	if(z.style) (z.style.visibility == "hidden") ? z.style.visibility="visible" : z.style.visibility="hidden";
}

function viewTxt(objImg,id){
	x = new getObj(id);
	y = new getObj(objImg);
	x.style.left = getAbsoluteLeft(y.obj)+10+"px";
	x.style.top = getAbsoluteTop(y.obj)+20+"px";
	x.style.visibility="visible";
}
function maskTxt(objImg,id){
	x = new getObj(id);
	x.style.visibility="hidden";
}
function viewRecherche(){
	x = new getObj("moteurLay");
	y = new getObj("recherche");
	(x.style.visibility == "visible") ? x.style.visibility="hidden" : x.style.visibility="visible";
	x.style.left = getAbsoluteLeft(y.obj)-849+"px";
	
}
function checkRecherche(){
	x = new getObj("moteurLay");
	if(x.obj){
		y = new getObj("recherche");
		x.style.left = getAbsoluteLeft(y.obj)-849+"px";
	}
}