function show_block(block, a, styl){
  if($('#'+block).css('display') == 'none'){
    $('#'+block).show(300);
    $(a).attr('class', 'hide'+(styl==2?2:''));
    $(a).text('Skrýt');
    Cufon.replace('.hide, .hide2', {fontFamily: 'Frutiger CE Roman'});
  }
  else 
  {
    $('#'+block).hide(300);
    $(a).attr('class', 'show'+(styl==2?2:''));
    $(a).text('Zobrazit více');
    Cufon.replace('.show, .show2', {fontFamily: 'Frutiger CE Roman'});
  }
  return false;
}
   
      $.fn.wait = function(time, type) {
        time = time || 2000;
        type = type || "fx";
        return this.queue(type, function() {
            var self = this;
            setTimeout(function() {
                $(self).dequeue();
            }, time);
        });
      };
      
     Cufon.replace('.furtiger,#main_menu .menu_item,h2.furtiger, h3.furtiger,#map_button', {fontFamily: 'Frutiger CE Roman'}); 
     Cufon.replace('.furtiger_bold,#main_menu .menu_item.active, .pro', {fontFamily: 'Frutiger CE Bold'});  
     Cufon.replace('#logo_text,#dodavatel,#investor,#media,h2.furtiger_light, h3.furtiger_light,.date.furtiger', {fontFamily: 'Frutiger CE Light'});
         
    
      $(document).ready(function()
      {  
        
         jQuery('.lightbox').colorbox({maxWidth:800, close:'Zavřít', opacity:0.5, current: '{current} z {total}'});
         
          $(".kontakty .mapa .popup").mouseover(function() {
             $(this).children(".popup_content").stop(true, true).animate({opacity: "show", top: "-194"}, "slow");
          });
          
          $(".kontakty .mapa .popup").mouseout(function() {
            $(this).children(".popup_content").wait(100).animate({opacity: "hide", top: "-214"}, "fast");
          });
          
          $(".contact .mapa .popup").mouseover(function() {
             $(this).children(".popup_content").stop(true, true).animate({opacity: "show", top: "-194"}, "slow");
          });
          
          $(".contact .mapa .popup").mouseout(function() {
            $(this).children(".popup_content").wait(100).animate({opacity: "hide", top: "-214"}, "fast");
          });
                                            
          $('#left_col_imgs').cycle({
      		  fx: 'fade',
      		  timeout:5000
          });
          
          $('#banner_items').cycle({
      		  fx: 'fade',
      		  timeout:5000,
      		  pager: '#square_nav'
          });

         
      });


