// JavaScript Document
onload=function(d,E,b,i,a){
   var tooltip={
      'id1':'<b>SPRZEDANE</b>',
      'id2':'<b>REZERWACJA</b>',
      'id3':'<b>WOLNE</b>' 
   }
   var tclass={
      'id1':'x',
      'id2':'y',
      'id3':'z' 
   }
  d=document;E=d.documentElement;b=d.body;if(!E)return;
  for(i=0;a=(d.all?b.all:b.getElementsByTagName("*"))[i];i++){
    if(a.id in tooltip){
      with(a.t=d.createElement("div")){
        className="tooltip"
        if(a.id in tclass)className+=' '+tclass[a.id]
        innerHTML=tooltip[a.id]
      }
      a.onmouseover=function(e){
        with(this){onmousemove(e)}
        b.appendChild(this.t)
		this.style.border= "1px solid #ff0000";
		this.style.backgroundColor="#FF0000";
      }
      a.onmouseout=function(){
        b.removeChild(this.t)
		this.style.border= "none";
      }
      a.onmousemove=function(e){
        e=e||event;with(this.t.style){
         left=e.clientX+(E.scrollLeft||b.scrollLeft)+12+"px"
         top=e.clientY+(E.scrollTop||b.scrollTop)+20+"px"
        }
      }
    }
  }
}