 /* handles tab functionality on the tedailed page for hotels */



  function clear_links(){

        if (document.layers)
        {
                document.layers['link_info'].color                                              = '#3286AB';
                //document.layers['link_prices'].color                                  = '#3286AB';
                document.layers['link_map'].color                                               = '#3286AB';
        }
        else if (document.all)
        {
                document.all['link_info'].style.color                                   = '#3286AB';
                //document.all['link_prices'].style.color                               = '#3286AB';
                document.all['link_map'].style.color                                    = '#3286AB';
        }
        else if (document.getElementById)
        {
                document.getElementById('link_info').style.color                = '#3286AB';
                //document.getElementById('link_prices').style.color            = '#3286AB';
                document.getElementById('link_map').style.color                 = '#3286AB';
        }
  }

  function clear_tab(){
        if (document.layers)
        {
                document.layers['tab_info'].background                                  = '#FFFFFF';
                //document.layers['tab_prices'].background                              = '#FFFFFF';
                document.layers['tab_map'].background                                   = '#FFFFFF';
        }
        else if (document.all)
        {
                document.all['tab_info'].style.background                               = '#FFFFFF';
                //document.all['tab_prices'].style.background                   = '#FFFFFF';
                document.all['tab_map'].style.background                                = '#FFFFFF';
        }
        else if (document.getElementById)
        {
                document.getElementById('tab_info').style.background    = '#FFFFFF';
                //document.getElementById('tab_prices').style.background  = '#FFFFFF';
                document.getElementById('tab_map').style.background     = '#FFFFFF';
        }
  }

  function blocking(nr)
  {
        
        blkid  = 'blk_' + nr;
        linkid = 'link_' + nr;
        tabid  = 'tab_' + nr;
        
        clear_tab();
        clear_links();
        
        if (document.layers)
        {
                
                document.layers[linkid].color           = '#ffffff';
                document.layers[tabid].background       = 'url(/img/bt-bg.jpg)';
                
                document.layers['blk_info'].display     = 'none';
                //document.layers['blk_prices'].display         = 'none';
                document.layers['blk_map'].display              = 'none';
                
                current = (document.layers[blkid].display == 'none') ? 'block' : 'none';
        document.layers[blkid].display = current;
                
        }
        else if (document.all)
        {
                
                document.all[linkid].style.color = '#ffffff';
                document.all[tabid].style.background = 'url(/img/bt-bg.jpg)';
                
                document.all['blk_info'].style.display          = 'none';
                //document.all['blk_prices'].style.display      = 'none';
                document.all['blk_map'].style.display           = 'none';
                
                current = (document.all[blkid].style.display == 'none') ? 'block' : 'none';
                document.all[blkid].style.display = current;
                
        }
        else if (document.getElementById)
        {
                
                document.getElementById(linkid).style.color             = '#ffffff';
                document.getElementById(tabid).style.background         = 'url(/img/bt-bg.jpg)';
                
                
                document.getElementById('blk_info').style.display           = 'none';
                //document.getElementById('blk_prices').style.display   = 'none';
                document.getElementById('blk_map').style.display            = 'none';
                
                
                vista = (document.getElementById(blkid).style.display == 'none') ? 'block' : 'none';
                document.getElementById(blkid).style.display = vista;
                
        }
  }



window.onload = function(){
	    if (document.layers)
        {
                document.layers['blk_map'].display              = 'none';      
        }
        else if (document.all)
        {
                document.all['blk_map'].style.display           = 'none';             
        }
        else if (document.getElementById)
        {
                document.getElementById('blk_map').style.display            = 'none';
        }
}


