var telecoGalerie = Class.create();

telecoGalerie.prototype = {
 initialize: function(imgNode) {
   this.image= imgNode;
   this.link = this.image.parentNode;
   this.referenceId = this.link.getAttribute('rel'); 
   this.referenceNode = document.getElementById(this.referenceId);
   this.originalSource = this.image.getAttribute('src');
   this.blurSource = this.originalSource.replace('.jpg','nb.jpg');
  Event.observe(this .image,'mouseover',this.mouseover.bindAsEventListener(this), false);
  Event.observe(this .image,'mouseout',this.mouseout.bindAsEventListener(this), false);
 }, 
 mouseover: function() {
         this.image.setAttribute("src", this.blurSource);
		  if (this.referenceNode!=undefined)
		   {
		   this.referenceNode.style.display = 'block';
		   }
		return;
    },
 mouseout: function() {
       this.image.setAttribute("src", this.originalSource);
	   if (this.referenceNode!=undefined) 
	    {
		this.referenceNode.style.display = 'none';
		}
		return;
    }
}

function TELECO_load()
  {
   //Load
   //if (document.getElementById("map") != undefined) {load();}
   
   var imagesNodes = getElementsByClass('teleco_galerie',document,'img');
   for (var i=0;i<imagesNodes.length;i++)
    {
	 var imageNode = new telecoGalerie(imagesNodes[i]);
	}

  }
  
   function TELECO_unload()
  {
   //GUnload()
    //if (document.getElementById("map") != undefined) {GUnload();}
  }

Event.observe(window, 'load', TELECO_load,false);
Event.observe(window, 'unload', TELECO_unload,false);