$(document).ready(function(){
	
	$("#home_slider").cycle();
	$("#logos1").cycle();
	$("#logos2").cycle();
	$("#logos3").cycle();

	$("div.menu ul").superfish(); 
	var left = $("#content #left").height();
	var right = $("#content #right").height()
	if (left > right) { 
		$("#content #right").height($("#content #left").height());
	}
	
	 $(".citydot").hover(
	 	function(){
      		$(this).children(".cityname").show();
      		$(this).css("z-index",100);	
      	},
      	function(){
      		$(this).children(".cityname").hide();
      		$(this).css("z-index",0);	
      	}
      );
      $(".citydot").click(function(){
      	var name = $(this).attr("id");
      	window.location = "/data-center/research-data/city-profiles/" + name;
      });
	
	$('input#directory_search').quicksearch('table tbody tr');

	
	//$('#logos').delay(10000).scrollTo( '+=75px', 1000 ).delay(10000).scrollTo( '+=75px', 1000 );
	
	$('#logos').serialScroll({
		items:'img',
		duration:1000,
		force:true,
		axis:'y',
		easing:'linear',
		lazy:true,
		interval:1,
		cycle: true
	});
});

