// JavaScript Document
(function($) {
  var cache = [];
  // Arguments are image paths relative to the current page.
  $.preLoadImages = function() {
    var args_len = arguments.length;
    for (var i = args_len; i--;) {
      var cacheImage = document.createElement('img');
      cacheImage.src = arguments[i];
      cache.push(cacheImage);
    }
  }
})(jQuery)

function ajaxload(href) {
	$("#overall").fadeIn(500, function() {
		$("#box").load(href+" #box > *",{},function() {
			$("#overall").fadeOut(750);
		});
	});
}

function GhvvFadeIn() {
	$("#overall").fadeOut(1500);
	
}

function slideupclick() {
	$(".blank").animate({width:"0px"}, 2500, function() {
		// ritardo
		$('a#slideup').click();
	});
}
function scrollbars_on() {
	//alert("scroll on");
	$("#content #content-main").css({height: "389px"});	
	$("#content").css({top: "435px", height: "459px"});
	$(".scrollable").livequery(function() {
       $(this).jScrollPane();
	});
	
}
function scrollbars_off() {
	$("#slideup").hide();
	$("#slidedown").hide();
	$("#content").css({bottom: "0px"},1500);
	//alert("scroll off");
}