$(document).ready(function() 
{
	$(document).pngFix();
	
	$("a.enlarge").fancybox({
		'zoomOpacity'			: true,
		'overlayShow'			: false,
		'zoomSpeedIn'			: 500,
		'zoomSpeedOut'			: 500
	});

});
	

$(document).ready(function() 
{
	$("#nextslide").show();
	$("#prevslide").show();
	var slideshowSize = $("#slides li").size();
	if(slideshowSize>1)
	{
		$("#nextslide").click (
			function()
			{
				var currIndex = $("#slides li").index($("#slides li.current").eq(0));
				$("#slides li").removeClass("current");
				$("#slides li").eq(currIndex==slideshowSize-1 ? 0 : currIndex+1).addClass("current");
				$(this).blur();
				return false;
			}
		);
		$("#prevslide").click (
			function()
			{
				var currIndex = $("#slides li").index($("#slides li.current").eq(0));
				$("#slides li").removeClass("current");
				$("#slides li").eq(currIndex==0 ? slideshowSize-1 : currIndex-1).addClass("current");
				$(this).blur();
				return false;
			}
		);	
	}
});


$(document).ready(function(){
  //this will work,
  //returns a jQuery object and translates the text when the Language API is loaded
  $('body').translate('english');

  //this won't (always) work!
  //the Language API may not be loaded, the return value cannot be determined
  $.translate.getLanguages();
  
  //this will work, as it will be executed when the Language API is loaded
  $.translate.ready(function(){
    $.translate.getLanguages() 
  })
  
  //you can also use a shorter alias as in jQuery:
  $.translate(function(){
    $.translate.getLanguages()
  })

})