if (navigator.userAgent.toLowerCase().match('chrome')) { 
document.write('<link rel="stylesheet" type="text/css" href="css/stylechr.css" />');
}

$(document).ready(function() {
 // $("#footer .cols").equalHeights();

$('a[href=#top]').click(function(){
	        $('html, body').animate({scrollTop:0}, 'slow');
	        return false;
	    });
 
  $('#imgcaption').textShadow();
  //$(".slika_novice, .aslika").corner("3px");
 //$(".thumb").corner("5px");
   $(".picturelist a, a.fslika").fancybox({ 
	  'overlayOpacity': 0.7
	  }); 
});
 
 $(function(){

    $("ul.sf-menu ul").hover(function(){    
        $(this).parent().addClass("ulactive");
    }, function(){    
        $(this).parent().removeClass("ulactive");    
    });


 $('#big_images').cycle({
        timeout:5000, 
        before:  onBefore, 
        //after:   onAfter,
	slideExpr: 'img'  
    });

function onAfter() { 
  if (this.alt != "") {
     $('#imgcaption').hide();
     $('#imgcaption').html(this.alt); 
     $('#imgcaption').delay(50).fadeIn('slow'); 
    }     else {
    $('#imgcaption').html(""); 
    $('#imgcaption').fadeOut(); 
    }   
}

function onBefore() { 
  if (this.alt != "") {
     $('#imgcaption').hide();
     $('#imgcaption').html(this.alt); 
     $('#imgcaption').delay(50).fadeIn('slow'); 
    }     else {
    $('#imgcaption').html(""); 
    $('#imgcaption').fadeOut(); 
    }   
}


});
