    Cufon.replace('.helv', { fontFamily: 'Helvetica Neue LT Pro'});
    Cufon.replace('#right_col h1', { fontFamily: 'Helvetica Neue LT Pro'});
    Cufon.replace('.gl_name h2', { fontFamily: 'Helvetica Neue LT Pro'}); 
    Cufon.replace('.article_body .list a.helv', { fontFamily: 'Helvetica Neue LT Pro', hover:'true'});
    
    
$(document).ready(function(){

    cycle();
    $('.lightbox').lightBox();
    
   if(document.getElementById("map_canvas") != null){
      var latlng = new google.maps.LatLng(49.723423, 13.415813);  
   
      var geocoder = new google.maps.Geocoder();
  
      var myOptions = {
        zoom: 14,
        center: latlng,
        mapTypeId: google.maps.MapTypeId.ROADMAP
      };
  
      var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
  
      var marker = new google.maps.Marker({
                map: map, 
                position: latlng,
                title: "Abstrakt s.r.o."
            });  
  
      var infowindow = new google.maps.InfoWindow();
      infowindow.setContent('<strong>Abstrakt s.r.o.</strong><br />Koterovská 177, 326 00 Plzeň');
      
      
      google.maps.event.addListener(marker, 'click', function() {
      
      infowindow.open(map,marker);
      });   
  
  }
    
  });
  
  function cycle(){
    cycle_ref();
    cycle_img();
  }
  
  function cycle_ref(){
      $('#reference_main').cycle({
		  fx: 'fade',
		  next: '.next',
		  prev: '.prev',
		  timeout:15000
    });
   cycle_img(); 
  }
  
  function cycle_img(){

      $('.reference_photo').cycle({
		  fx: 'fade',
		  timeout:5000
    });
  }


  
