// Begin slideshow
function slideSwitch() {
var $active = $('#slideshow img.active');

if ( $active.length == 0 ) $active = $('#slideshow img:last-child');

// Sort the images according to html markup
var $next = $active.next().length ? $active.next() : $('#slideshow img:first-child');

$active.addClass('last-active');

$next.css({opacity: 0.0})
.addClass('active')
.animate({opacity: 1.0}, 700, function() {
$active.removeClass('active last-active');
});
}

$(function() {
setInterval("slideSwitch()", 8000 );
});
// End Slideshow


// Begin JQuery
$(document).ready(function() {

// Begin thumbnail link effects
$(".thumbnail-image").fadeTo("fast", 1.0); // Set initial opacity of thumbnails
$(".thumbnail-image").hover(function() {
$(this).fadeTo("fast", 0.6); // Set opacity on mouse over
},function() {
$(this).fadeTo("fast", 1.0); // Set opacity on mouse out
});
// End thumbnail link effects

// Begin rss image link effects
$(".rss-image").fadeTo("fast", 1.0); // Set initial opacity of thumbnails
$(".rss-image").hover(function() {
$(this).fadeTo("fast", 0.6); // Set opacity to 100% on mouse over
},function() {
$(this).fadeTo("fast", 1.0); // Set opacity on mouse out
});
// End rss image link effects


// Begin row-3col-thumbnail link effects
$(".row-3col-thumbnail").fadeTo("fast", 1.0); // Set initial opacity of thumbnails
$(".row-3col-thumbnail").css("background-color", "#eaeaea"); // Set initial background color
$(".row-3col-thumbnail").hover(function() { 
$(this).fadeTo("fast", 0.6); // Set opacity on mouse over
$(this).css("background-color", "#eaeaea"); // Set background color on mouse over
},function() {
$(this).fadeTo("fast", 1.0); // Set opacity on mouse out
$(this).css("background-color", "#eaeaea"); // Set background color on mouse out
});
// End thumbnail link effects


// Begin text input field selection behavior
$(".query").focus(function() {
// Select input field contents
$(this).val('')
});
// End text input field selection behavior

});
// End JQuery


// Current year
thedate = new Date();
theyear = thedate.getFullYear();


// Today's date
var dayNames = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
var monthNames = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
var today = new Date();
