jQuery(document).ready(function(){
	
	// for slide show (heading img)
	setInterval( "slideSwitch()", 5000 );
});

// for slide show (heading img)
function slideSwitch() {
	var active = jQuery('#header2 IMG.active');

	if ( active.length == 0 ) active = jQuery('#header2 IMG:last');

	var next =  active.next().length ? active.next() : jQuery('#header2 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 slideSwitch() {
	var $active = $('#header2 IMG.active');

	if ( $active.length == 0 ) $active = $('#header2 IMG:last');

	var $next =  $active.next().length ? $active.next() : $('#header2 IMG:first');

	$active.addClass('last-active');

	$next.css({opacity: 0.0}).addClass('active').
		animate({opacity: 1.0}, 1000, function(){
			$active.removeClass('active last-active');
		});
}

*/