	function TextualZoomControl() {
	}
	
	TextualZoomControl.prototype = new GControl();

// 	Creates a one DIV for each of the buttons and places them in a container
// 	DIV which is returned as our control element.
	TextualZoomControl.prototype.initialize = function(map) {
		var container = document.createElement("div");

// "Zoom In" button
		var zoomInDiv = document.createElement("div");
    //zoomInDiv.style.cssText = "z-index:300;";
		this.setButtonStyle_(zoomInDiv);
    zoomInDiv.innerHTML = "<img src='javascript/dragzoom/zoomin.gif' width='21' height='21' />";
    if (ieVersion>0){
      zoomInDiv.style.margin = '0 0 0px 0';
    }else{
      zoomInDiv.style.margin = '-100px 0 0 0';
    };
		//zoomInDiv.style.float = 'left';
		//zoomInDiv.style.display = 'block';
		zoomInDiv.style.zindex = 300;
		container.appendChild(zoomInDiv);
		//zoomInDiv.appendChild(document.createTextNode("Zoom In"));
		// The "true" argument in the zoomIn() method allows continuous zooming
		GEvent.addDomListener(zoomInDiv, "click", function() {cloudMap.zoomIn(null,null,true);} );
    
    
    
// "Zoom Out" button
		var zoomOutDiv = document.createElement("div");
    //zoomOutDiv.style.cssText = "z-index:300;";
		this.setButtonStyle_(zoomOutDiv);
    zoomOutDiv.innerHTML = "<img src='javascript/dragzoom/zoomout.gif' width='21' height='21' />";
    if (ieVersion>0){
      zoomOutDiv.style.margin = '0 0 53px 0';
    }else{
      zoomOutDiv.style.margin = '0 0 0 0';
    };
		//zoomOutDiv.style.display = 'block';
		zoomOutDiv.style.zindex = 300;
		container.appendChild(zoomOutDiv);
		//zoomOutDiv.appendChild(document.createTextNode("Zoom Out"));
		// The "true" argument in the zoomOut() method allows continuous zooming
		GEvent.addDomListener(zoomOutDiv, "click", function() {cloudMap.zoomOut(null,true);} );

// 		We add the control to to the map container and return the element 
// 		for the map class to position properly.

		cloudMap.getContainer().appendChild(container);
		return container;
	}


// 	The control will appear in the top left corner of the map with 7 pixels of padding.
	TextualZoomControl.prototype.getDefaultPosition = function() {
		return new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(15, 7));
	}

// Sets the proper CSS for the given button element.
	TextualZoomControl.prototype.setButtonStyle_ = function(button) {
		button.style.textDecoration = "none";
		button.style.color = "black";
		button.style.backgroundColor = "white";
//		button.style.font = "12px Verdana bold";
		button.style.fontFamily = "Verdana";
		button.style.fontSize = "12px";
		button.style.fontWeight= "bold";
		button.style.border = "1px solid gray";
		button.style.padding = "0px";
		//button.style.margin = "50px 0 0 0";
		button.style.textAlign = "center";
		button.style.width = "21px";
		button.style.height = "21px";
		button.style.cursor = "pointer";
	}

//-------------------- pour l'image deniveles

function zone_img_deniveles(){};
zone_img_deniveles.prototype = new GControl();

zone_img_deniveles.prototype.initialize = function(map) {
	var container = document.createElement("div");

// "Zoom In" button
		var img_deniveles = document.createElement("div");
    //img_deniveles.style.cssText = "z-index:300;";
		//this.setButtonStyle_(img_deniveles);
    img_deniveles.innerHTML = "<div id='profile' style='display:none'><img src='javascript/contours/images/no-profile.png' id='transect_img' style='border:1px solid black;'></div>";
    if (ieVersion > 0){
      img_deniveles.style.margin = '0 0 0 0';
    }else{
      img_deniveles.style.margin = '0 0 0 0';
    };
		//zoomInDiv.style.float = 'left';
		//zoomInDiv.style.display = 'block';
		//img_deniveles.style.zindex = 300;
		container.appendChild(img_deniveles);
		cloudMap.getContainer().appendChild(container);
		return container;

}

zone_img_deniveles.prototype.getDefaultPosition = function() {
  return new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(15, 7));
}

//-------------------- pour le rechercher

function zone_recherche(){};
zone_recherche.prototype = new GControl();

zone_recherche.prototype.initialize = function(map) {
	var container = document.createElement("div");
  //var icon=createPngImage("javascript/fullscreen/spotlight.png",container,new GPoint(0,0),new GSize(25,25));
  //icon.style.zIndex=2;

// "Zoom In" button
		var div_recherche = document.createElement("div");
    //div_recherche.style.zIndex=1;
    //div_recherche.style.cssText = "z-index:300;";
		//this.setButtonStyle_(div_recherche);
    div_recherche.innerHTML = "<div id='recherche_div'><form name='cp_form' action='#' onSubmit='AfficherAdresse(this.addresse.value); return false'><div style='float:left;vertical-align:top;'><input type='text' style='width:170px;' name='addresse' id='adresse' value=''/></div><div style='margin:4px 0 0 -10px;padding:0 0 0 0px;'><img src='javascript/fullscreen/spotlight.png' width='25' height='25' border='0' onclick='AfficherAdresse(document.getElementById(\"adresse\").value); return false'></div></form></div>";
    //div_recherche.innerHTML = "<div id='recherche_div'><form name='cp_form' action='#' onSubmit='AfficherAdresse(this.addresse.value); return false'><div style='float:left;vertical-align:top;'><img src='javascript/fullscreen/spotlight.gif' width='25' height='25' border='0'></div><input type='text' style='width:150px;' name='addresse' value=''/></form></div>";
    if (ieVersion > 0){
      div_recherche.style.margin = '0 0 0 0';
    }else{
      div_recherche.style.margin = '0 0 0 0';
    };
		//zoomInDiv.style.float = 'left';
		//zoomInDiv.style.display = 'block';
		//div_recherche.style.zindex = 300;
		container.appendChild(div_recherche);
		cloudMap.getContainer().appendChild(container);
		return container;

}

zone_recherche.prototype.getDefaultPosition = function() {
  return new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(80, 25));
}

function createPngImage(src,opt_parent,opt_position,opt_size){
  if(navigator.userAgent.indexOf("MSIE")>=0){
    var element=createElement("div",opt_parent,opt_position,opt_size);
    element.style.filter="progid:DXImageTransform.Microsoft."+"AlphaImageLoader(src='"+src+"')";
    return element;
  } else { 
    var image=createElement("img",opt_parent,opt_position,opt_size);
    image.src=src;
    return image;
  }
}  
    
    
