/* Fonctions Utilitaires developpees par LXSolutions
 *  (c) 2007 LXSolutions
/*--------------------------------------------------------------------------*/
var standHeight=200;
var currentDiv;

function showImage700(name,w,h,event){
	 $("targetImage").src=name;
	 $("targetImage").removeAttribute("width");
	 $("targetImage").removeAttribute("height");
	 if(w>0){ $("targetImage").width=w; } 
	 if(h>0){ $("targetImage").height=h;}

	 var Client = {   
	  viewportWidth: function() {     return self.innerWidth || (document.documentElement.clientWidth || document.body.clientWidth);   },   
	  viewportHeight: function() {     return self.innerHeight || (document.documentElement.clientHeight || document.body.clientHeight);   },   viewportSize: function() {     return { width: this.viewportWidth(), height: this.viewportHeight() };   } 
	 };
	 var viewportWidth=Client.viewportWidth(); 
	 var viewportHeight=Client.viewportHeight();
	 
	 var containerWidth = $("divImage").getWidth();
	 var containerHeight = $("divImage").getHeight();
	 if(containerHeight<2 ) containerHeight=h;
	 if(containerHeight<2 ) containerHeight=200;
	 
	 var ptop = (viewportHeight/2)-(containerHeight/2);	 
 	 $("divImage").style.left= 330 ;
	 $("divImage").style.top= 700 ; 
	 //$("divImage").style.top= ptop ; 
	 
 	 $("divImage").style.display="block";
	 currentDiv=$("divImage");
}

function hideCurrentDiv(){
	if(currentDiv){
		$("divImage").style.display="none";
		$("targetImage").src="imgs/spacer.gif";
	}
	currentDiv=null;
}

