$(document).ready(function()
{	
	$("#login-box").focus(function() {$(this).attr("value","");});
	$("#pass-box").focus(function() {$(this).attr("value","");});
	
	$('.picture img').mouseover(function() {
		$(this).fadeTo("fast", 0.8);
	});
	$('.picture img').mouseout(function() {
		$(this).fadeTo("fast", 1);
	});
	
	$("ul#topnav li").hover(function() { 
	
		$(this).css({ 'background' : '#2e98a7'}); 
		$('#submenu').toggle();
		$(this).find("span").show();
	
	} , function() {
	if($(this).hasClass('active') == false){
		$(this).css({ 'background' : 'none'});
	}
		$('#submenu').toggle();
		$(this).find("span").hide();
	
	});
});

$(function() {
	$(".project-news").jCarouselLite({
		vertical: true,
		hoverPause:true,
		visible: 1,
		auto:4000,
		circular: true,
		speed:1000
	});
    $('.picture_galeria a').lightBox({fixedNavigation:true});
	
	$('#test').toggle(function() {
		  $(".project-news-list").slideDown();
		  $(".project-news ul").fadeOut();
		  $(this).html('Less news <img src="/images/more_news_arrow_up.gif" alt="" />');
		}, function() {
		  $(".project-news-list").slideUp();
		  $(".project-news ul").fadeIn();
		  $(this).html('More news <img src="/images/more_news_arrow.gif" alt="" />');
	}); 
});
