$(document).ready(function(){ 
$('#nav li div').css({opacity: 0});

$('#nav li a').hover(function() {
$(this).stop().parent().children('div').animate({opacity: 1}, 350);
},function() {
$(this).stop().parent().children('div').animate({opacity: 0}, 350);
});

//
// Active page state logic. The nav link title must match the page FileName(ul nav class)
var pageState = $('#nav').attr('class');
$('#nav li').each(function() {
if(pageState == $('a', this).attr('title')) {
	$('div', this).css({opacity:1});
    $('a', this).unbind('mouseenter mouseleave');
}
});

$('#slideshow').cycle({ 
fx:    'fade', 
speed:  500,
timeout: 5000
});

}); 
