	  function GEtyk(point, html, classname, pixelOffset, percentOpacity, overlap, action, number) {
        this.point = point;
        this.html = html;
        this.action = action;
		this.id = number;
        
 
        this.classname = classname||"";
        this.pixelOffset = pixelOffset||new GSize(0,0);
        if (percentOpacity) {
          if(percentOpacity<0){percentOpacity=0;}
          if(percentOpacity>100){percentOpacity=100;}
        }        
        this.percentOpacity = percentOpacity;
        this.overlap=overlap||false;
        this.hidden = false;
      } 
      
      GEtyk.prototype = new GOverlay();

      GEtyk.prototype.initialize = function(map) {
        var div = document.createElement("div");
        div.style.position = "absolute";
		
        if (this.action) {
            var actiondiv = 'onclick="'+this.action+'"'; 
        } else {
            var actiondiv = '';
        }
        div.innerHTML = '<div class="' + this.classname + '" ' + actiondiv + '>' + this.html + '</div>' ;
        map.getPane(G_MAP_FLOAT_SHADOW_PANE).appendChild(div);
        this.map_ = map;
        this.div_ = div;
        if (this.percentOpacity) {        
          if(typeof(div.style.filter)=='string'){div.style.filter='alpha(opacity:'+this.percentOpacity+')';}
          if(typeof(div.style.KHTMLOpacity)=='string'){div.style.KHTMLOpacity=this.percentOpacity/100;}
          if(typeof(div.style.MozOpacity)=='string'){div.style.MozOpacity=this.percentOpacity/100;}
          if(typeof(div.style.opacity)=='string'){div.style.opacity=this.percentOpacity/100;}
        }
        if (this.overlap) {
          var z = GOverlay.getZIndex(this.point.lat());
          this.div_.style.zIndex = z;
        }
        if (this.hidden) {
          this.hide();
        }
		
      }

      GEtyk.prototype.remove = function() {
        this.div_.parentNode.removeChild(this.div_);
      }

      GEtyk.prototype.copy = function() {
        return new GEtyk(this.point, this.html, this.classname, this.pixelOffset, this.percentOpacity, this.overlap);
      }

      GEtyk.prototype.redraw = function(force) {
        var p = this.map_.fromLatLngToDivPixel(this.point);
        var h = parseInt(this.div_.clientHeight);
        this.div_.style.left = (p.x + this.pixelOffset.width) + "px";
        this.div_.style.top = (p.y +this.pixelOffset.height - h) + "px";
		/*
		if(jsGet('test')=='rozsun' && globalZoomType=='city'){
		
		  var latlng = this.map_.fromDivPixelToLatLng(new GPoint(p.x + this.pixelOffset.width,p.y +this.pixelOffset.height - h));
		  advAJAX.get({
		    url: 'updateMiasta.php',
			parameters:{
			  'id':this.id,
			  'lat':latlng.lat(),
			  'lng':latlng.lng()
			}
		  });
		  
		}
		*/
      }

      GEtyk.prototype.show = function() {
        if (this.div_) {
          this.div_.style.display="";
          this.redraw();
        }
        this.hidden = false;
      }
      
      GEtyk.prototype.hide = function() {
        if (this.div_) {
          this.div_.style.display="none";
        }
        this.hidden = true;
      }
      
      GEtyk.prototype.isHidden = function() {
        return this.hidden;
      }
      
      GEtyk.prototype.supportsHide = function() {
        return true;
      }

      GEtyk.prototype.setContents = function(html) {
        this.html = html;
        this.div_.innerHTML = '<div class="' + this.classname + '">' + this.html + '</div>' ;
        this.redraw(true);
      }
      
      GEtyk.prototype.setPoint = function(point) {
        this.point = point;
        if (this.overlap) {
          var z = GOverlay.getZIndex(this.point.lat());
          this.div_.style.zIndex = z;
        }
        this.redraw(true);
      }
      
      GEtyk.prototype.setOpacity = function(percentOpacity) {
        if (percentOpacity) {
          if(percentOpacity<0){percentOpacity=0;}
          if(percentOpacity>100){percentOpacity=100;}
        }        
        this.percentOpacity = percentOpacity;
        if (this.percentOpacity) {        
          if(typeof(this.div_.style.filter)=='string'){this.div_.style.filter='alpha(opacity:'+this.percentOpacity+')';}
          if(typeof(this.div_.style.KHTMLOpacity)=='string'){this.div_.style.KHTMLOpacity=this.percentOpacity/100;}
          if(typeof(this.div_.style.MozOpacity)=='string'){this.div_.style.MozOpacity=this.percentOpacity/100;}
          if(typeof(this.div_.style.opacity)=='string'){this.div_.style.opacity=this.percentOpacity/100;}
        }
      }

      GEtyk.prototype.getPoint = function() {
        return this.point;
      }
      GEtyk.prototype.U = function() {
        return this.point;
      }
      GEtyk.prototype.V = function() {
        return this.point;
      }
      GEtyk.prototype.W = function() {
        return this.point;
      }
      GEtyk.prototype.X = function() {
        return this.point;
      }
      GEtyk.prototype.Y = function() {
        return this.point;
      }
      GEtyk.prototype.Z = function() {
        return this.point;
      }

