function CIMG(url)
{
   xGetElementById('mainImg').src = url;
}

 var event=false;

  function startanim() {
        xa = new xAnimation;
        xa.size('harta',437,310,1000,3,0,'');
        xShow('close');
        if (event==false) {
          xAddEventListener('imgharta','mousedown',open_hotel,true);
          event = true;
        }
    }
  function closeanim() {
        xa = new xAnimation;
        xa.size('harta',80,50,1000,3,0,'');
        xHide('close');
  }

  function closeall() {
    xRemoveEventListener('imgharta','mousedown',open_hotel,true);
    event=false;
    xa = new xAnimation;
    xa.size('float_hotel',0,0,1000,3,0,closeanim);
  }

  function mark(oEvent)  {
    xGetElementById('x').value = oEvent.x - xLeft('imgharta');
    xGetElementById('y').value = oEvent.y - xTop('imgharta');
  }

  function open_hotel(oEvent) {
    evt = new xEvent(oEvent);
    GLB_AfterAutoRefresh['1414'] = new Array();
    GLB_AfterAutoRefresh['1414'][0] = expand_hotel;
    rx = evt.offsetX;// - xLeft('imgharta');
    ry = evt.offsetY;// - xTop('imgharta');
    //alert(rx + ' ' + ry)  ;
    RCT(['1414'],'http://www.cazarionline.ro/index.php?x='+ rx + '&y=' + ry,'');
  }

  function expand_hotel() {
    xShow('float_hotel');
    xa = new xAnimation;
    xa.size('float_hotel',200,450,1000,3,0,'');

  }
