// fonction permettant de montrer des exemples en plein page sans changer de fenetre
// un div avec un fond gris transparent est affiché contenant l'exemple.
// un clique sur celui ci appel la fonction montrer avec cacher et cache donc ce div
function montrer(c,width,height){
	var exemple;	
	if(c=='cacher'){
		this.exemple.style.display='none';
		this.exemple=0;
	}else{	
		this.exemple=c;
		this.exemple.style.display='block';
			
		this.exemple.style.paddingTop=(((screen.height-height)/2)-80)+'px';
		this.exemple.style.paddingLeft=((screen.width-width)/2)+'px';
		
		if(document.all){
			hauteur = document.body.scrollHeight;
  			if (document.body.offsetHeight)	if (document.body.offsetHeight > hauteur) hauteur = document.body.offsetHeight;
		}else{
			hauteur = screen.height;
		}
		
		this.exemple.style.height=hauteur+'px';
		this.exemple.style.width=screen.width+'px';
	
		// si IE6 ou -
		var version=0;
		if (navigator.appVersion.indexOf("MSIE")!=-1){
			temp=navigator.appVersion.split("MSIE");
			version=parseFloat(temp[1]);
			if (version<7){ // les autres navigateurs retournent 0
				//alert("Vous utilisez IE5.5+ ou IE6");
				this.exemple.style.paddingTop=screen.height+'px';
				this.exemple.style.paddingLeft='0px';
				this.exemple.style.height=screen.height+hauteur+'px';
				this.exemple.style.width='0px';
			}
		}
	}
}
function montrer2(c,width,height){
	if(c=='cacher'){
		this.exemple.style.visibility='hidden';
		this.exemple=0;
	}else{
		this.exemple=0;
		
		if(this.exemple!=0){
			this.exemple.style.visibility='visible';
		}else{
			c.style.visibility='visible';
			this.exemple=c;
		}
		this.exemple.style.paddingTop=(((screen.height-height)/2)-80)+'px';
		this.exemple.style.paddingLeft=((screen.width-width)/2)+'px';
		
		if(document.all){
			hauteur = document.body.scrollHeight;
  			if (document.body.offsetHeight)	if (document.body.offsetHeight > hauteur) hauteur = document.body.offsetHeight;
		}else{
			hauteur = screen.height;
		}
		this.exemple.style.height=hauteur+'px';
		this.exemple.style.width=screen.width+'px';
	}
}
