// JavaScript Document// home page slideshow// main image and pain pointfunction slideSwitch() {				var $active = $('#home_slideshow div.active');							if ( $active.length == 0 ) $active = $('#home_slideshow div:last');							var $next =  $active.next().length ? $active.next()					: $('#home_slideshow div:first');							$active.addClass('last-active');							$next.css({opacity: 0.0})					.addClass('active')					.animate({opacity: 1.0}, 2000, function() {						$active.removeClass('active last-active');					});				}								$(function() {					setInterval( "slideSwitch()", 9000 );				});// button 1function button1Switch() {				var $active = $('#home_button1 li.active');							if ( $active.length == 0 ) $active = $('#home_button1 li:last');							var $next =  $active.next().length ? $active.next()					: $('#home_button1 li:first');							$active.addClass('last-active');							$next.css({opacity: 0.0})					.addClass('active')					.animate({opacity: 1.0}, 2000, function() {						$active.removeClass('active last-active');					});				}								$(function() {					setInterval( "button1Switch()", 9000 );				});				// button 2function button2Switch() {				var $active = $('#home_button2 li.active');							if ( $active.length == 0 ) $active = $('#home_button2 li:last');							var $next =  $active.next().length ? $active.next()
					: $('#home_button2 li:first');							$active.addClass('last-active');							$next.css({opacity: 0.0})					.addClass('active')					.animate({opacity: 1.0}, 2000, function() {						$active.removeClass('active last-active');					});				}								$(function() {					setInterval( "button2Switch()", 9000 );				});				// button 3function button3Switch() {				var $active = $('#home_button3 li.active');							if ( $active.length == 0 ) $active = $('#home_button3 li:last');							var $next =  $active.next().length ? $active.next()					: $('#home_button3 li:first');							$active.addClass('last-active');							$next.css({opacity: 0.0})					.addClass('active')					.animate({opacity: 1.0}, 2000, function() {						$active.removeClass('active last-active');					});				}								$(function() {					setInterval( "button3Switch()", 9000 );				});					// button 4function button4Switch() {				var $active = $('#home_button4 li.active');							if ( $active.length == 0 ) $active = $('#home_button4 li:last');							var $next =  $active.next().length ? $active.next()					: $('#home_button4 li:first');							$active.addClass('last-active');							$next.css({opacity: 0.0})					.addClass('active')					.animate({opacity: 1.0}, 2000, function() {						$active.removeClass('active last-active');					});				}								$(function() {					setInterval( "button4Switch()", 9000 );				});
