jQuery.preloadImages = function()
{
  for(var i = 0; i<arguments.length; i++)
  {
    jQuery("<img>").attr("src", arguments[i]);
  }
}

$(function() {
	$('.scroll').jScrollPane({showArrows:true,scrollbarWidth:12,topCapHeight:50,bottomCapHeight:50,dragMaxHeight:40,dragMinHeight:40});
});

$(function() {
	$('#scroll').jScrollPane({showArrows:true,scrollbarWidth:12,topCapHeight:50,bottomCapHeight:50,dragMaxHeight:40,dragMinHeight:40});
});



$(function() {
    $("ul#menu span").css("opacity","0");
    $("ul#menu span").hover(function () {
		$(this).stop().animate({
			opacity: 1
		}, 'slow');
    },
    function () {
		$(this).stop().animate({
			opacity: 0
		}, 'slow');
    });
});

$(function(){
  $("div.tabs").tabs(".homeshow > div", {

        // enable "cross-fading" effect
        effect: 'fade',
        fadeOutSpeed: "fast",

        // start from the beginning after the last tab
        rotate: true

    // use the slideshow plugin. It accepts its own configuration
    }).slideshow({autoplay: true, autopause: false, interval: 4000});
});

$(function() {
    $("#abouttabs").tabs("#content > div").history();
});

$(function() {
    $("ul#abouttabs li").css("opacity",0.6)
    $("ul#abouttabs li").hover(function () {
        $(this).stop(0,1).animate({
            opacity: 1 }, 'slow');
    },
    function () {
        $(this).stop(0,1).animate({
            opacity: .6 }, 'slow');
    });
});


