$(document).ready(function() {
/*	$("ul#topnav li").hover(function() { //Hover over event on list item
		$(this).css({ 'background' : '#fc7d1e url(topnav_active.gif) repeat-x'}); //Add background color and image on hovered list item
		$(this).find("span").show(); //Show the subnav
	} , function() { //on hover out...
		$(this).css({ 'background' : 'none'}); //Ditch the background
		$(this).find("span").hide(); //Hide the subnav
	});*/
	
	
	$('topnav li a').hover(function()
{
$( this ).parent().find('span:first').show();
}
,function()
{

});

	
});


function slideSwitch() {
	var $active = $('#slideshow IMG.active');
	if ( $active.length == 0 ) $active = $('#slideshow IMG:last');
	var $next =  $active.next().length ? $active.next()
	: $('#slideshow IMG:first');
	$active.addClass('last-active');
	$next.css({opacity: 0.0})
	.addClass('active')
	.animate({opacity: 1.0}, 1000, function() {
		$active.removeClass('active last-active');
	});
}
$(function() {
	setInterval( "slideSwitch()", 5000 );
});


jQuery(document).ready(function() {
	jQuery('#mycarousel').jcarousel({
		wrap: 'circular',
		scroll: 1,
		auto: 3
	});
});


