$(function (){
            //facebook widget
            $(".facebook").hover(function(){
                $(".facebook").stop(true, false).animate({right:"0"},"medium");
            },function(){
                $(".facebook").stop(true, false).animate({right:"-205"},"medium");
            },500);
        }); 

$(document).ready(function(){

	$("ul.dropdown li").dropdown();

});

$(function(){
	$('#newsSlider').loopedSlider({
		autoStart: 3000,
		containerClick: false
	});
});

$(function() {
	$('a.show').lightBox();
});

$.fn.dropdown = function() {

	$(this).hover(function(){
		$(this).addClass("hover");
		$('> .dir',this).addClass("open");
		$('ul:first',this).css('visibility', 'visible');
	},function(){
		$(this).removeClass("hover");
		$('.open',this).removeClass("open");
		$('ul:first',this).css('visibility', 'hidden');
	});

}

$().ready(function()
{
	$('#Tabs div#screen').hide(); // Hide all divs
	$('#Tabs div#screen:first').show(); // Show the first div
	
	$('#Tabs ul li:first').addClass('active'); // Set the class of the first link to active
	$('#Tabs ul li a').click(function(){ //When any link is clicked
	$('#Tabs ul li').removeClass('active'); // Remove active class from all links
	$(this).parent().addClass('active'); //Set clicked link class to active
	
	var currentTab = $(this).attr('href'); // Set variable currentTab to value of href attribute of clicked link

	$("#screen div:visible").hide();
	$("#screen div#"+currentTab).show();
	return false;
	});
});

marqueeInit({uniqueid: 'galeriaShowID', style: {'width': '964px', 'height': '145px'}, inc: 5, 
mouse: 'cursor driven', moveatleast: 1, neutral: 40, savedirection: true});
