$(document).ready(function(){
//  $(document).pngie();
  $(".fbox").fancybox();
	$('.dropdown').each(function () {
		$(this).parent().eq(0).hoverIntent({
			timeout: 500,
			over: function () {
				$('.dropdown:eq(0)', this).animate({height: 'show'}, {speed: 600, easing: 'easeOutBounce'});
			},
			out: function () {
				$('.dropdown:eq(0)', this).fadeOut(200);
			}
		});
	});
$("#weather-widget").weatherWidget({
      language:"sr",
          cities: Array("belgrade", "Beograd")
            });
});

var first = 0;
var speed = 500;
var pause = 3500;

function removeFirst(){
  first = $('ul#listticker li:first').html();
  $('ul#listticker li:first')
    //.animate({opacity: 0}, speed)
    .slideUp('slow', function() {$(this).remove();});
  addLast(first);
}

function addLast(first){
  last = '<li style="display:none">'+first+'</li>';
  $('ul#listticker').append(last)
    $('ul#listticker li:last')
    .animate({opacity: 1}, speed)
    .slideDown('slow')
}

interval = setInterval(removeFirst, pause);

