
 
		$(document).ready(function(){
		 	slideSwitch();
			
			
		$("img#right_btm_ad_pic").hover(function() {
			$(this).addClass("hover").stop() /* Add class of "hover", then stop animation queue buildup*/
				.animate({
					width: '199px', /* Set new width */
					height: '132px',
					marginLeft:'29px',
					marginTop:'2px',
				}, 100) /* this value of "1000" is the speed of how fast/slow this hover animates */
			} , function() {
			$(this).removeClass("hover").stop()  /* Remove the "hover" class , then stop animation queue buildup*/
				.animate({
					width: '190px', /* Set width back to default */
					height: '127px', /* Set width back to default */
					marginLeft:'33px',
					marginTop:'5px',
				}, 100);
		});		
		

		$("div#right_top_ad").hover(function() {
			$(this).addClass("hover").stop() /* Add class of "hover", then stop animation queue buildup*/
				.animate({
					fontSize:'2em',
				}, 500) /* this value of "1000" is the speed of how fast/slow this hover animates */
			} , function() {
			$(this).removeClass("hover").stop()  /* Remove the "hover" class , then stop animation queue buildup*/
				.animate({
					fontSize:'1.4em',
				}, 500);
		});		
		
		
		
		});		 

		function slideSwitch() {
			var $active = $('#splash img.active');
			var $active_menu = $('#splash li.active_menu');
		
			if ( $active.length == 0 ) $active = $('#splash img:last');
			if ( $active_menu.length == 0 ) $active_menu = $('#splash li:last');			
		
			var $next =  $active.next().length ? $active.next()
				: $('#splash img:first');
			var $next_menu =  $active_menu.next().length ? $active_menu.next()
				: $('#splash li:first');

			$active.addClass('last-active');
			
			$next.css({opacity: 0.0})
				.addClass('active')
				.animate({opacity: 1.0}, 1000, function() {
					$active.removeClass('active last-active');
				});
				
			$active_menu.removeClass('active_menu');
			$next_menu.css({width:150})
				.animate({width:178}, 1000 );
			$next_menu.addClass('active_menu');
		}
		
		$(function() {
			setInterval( "slideSwitch()", 8000 );
		});
	 

