$(document).ready(function() {

loadSlide_gpvbqk = function(index) {
	var trans_ms = 3000;
	// times in milliseconds
	var timer_delay_gpvbqk = 10000;
	var transition_in_delay_gpvbqk = 250;
	var transition_out_delay_gpvbqk = 1500;
	
	// image source
	var images_gpvbqk = new Array();
	images_gpvbqk[0] = '/images/td/marquee1.png';
	images_gpvbqk[1] = '/images/td/marquee2.png';
	
	// slide count
	var slide_count_gpvbqk = $(images_gpvbqk).length;
	
	// hide the current slide
	$('#slideshow').fadeOut(trans_ms, 'swing', function() {
		// set the new slide source
		$('#slideshow').attr('src', images_gpvbqk[index]);
		// display the new slide
		$('#slideshow').fadeIn(trans_ms);	
	});

	// revert back to the starting slide if at the end of the array
	index = (index + 1 >= slide_count_gpvbqk) ? 0 : index + 1;

	// queue up the next slide
	window.setTimeout('loadSlide_gpvbqk('+(index)+')', timer_delay_gpvbqk);
}

$("#apply-now, #sign-up-now").hover(function() {
	$(this).attr("src", $(this).attr("src").replace("\.png", "_over\.png"));
},function() {
	$(this).attr("src", $(this).attr("src").replace("_over\.png", "\.png"));
});

loadSlide_gpvbqk(0);

});


