<!-- Hide Image -->
function showimages()
{
for (a=0;a<document.images.length;a++)
{
document.images[a].style.display = 'inline'
}
}

// JavaScript Document
function slideSwitch() {
    var $active = $('#slideshow IMG.active');

    if ( $active.length == 0 ) $active = $('#slideshow IMG:last');

    // use this to pull the images in the order they appear in the markup
    var $next =  $active.next().length ? $active.next()
        : $('#slideshow IMG:first');

    // uncomment the 3 lines below to pull the images in random order
    
    // var $sibs  = $active.siblings();
    // var rndNum = Math.floor(Math.random() * $sibs.length );
    // var $next  = $( $sibs[ rndNum ] );


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

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

<!-- NEWS ROTATOR -->
$(function() {
    setInterval( "slideSwitch()", 5000 );
});
	$(document).ready(function(){
		$("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);
	});
	
<!--   EXPANDER -->
      $(document).ready(function(){
	  
	  $('#content1').hide();
   
   			$('a').click(function(){
			
			$('#abText').show('slow');
   
   });
   
   $('a#close').click(function(){
   		$('#abText').hide('slow');
		})
   
 	  });
	  
<!-- FANCYBOX -->
$(document).ready(function() {
			$("a.zoom").fancybox({
								 	'overlayOpacity'	:	0.7,
				'overlayColor'		:	'#000000'
								 });

			$("a.zoom1").fancybox({
				'overlayOpacity'	:	0.7,
				'overlayColor'		:	'#000000'
			});

			$("a.zoom2").fancybox({
				'zoomSpeedIn'		:	500,
				'zoomSpeedOut'		:	500
			});
		});


<!-- COLLAPSE -->
$(document).ready(function(){
	//hide the all of the element with class msg_body
	$(".msg_body").hide();
	//toggle the componenet with class msg_body
	$(".msg_head").click(function(){
		$(this).next(".msg_body").slideToggle(600);
	});
});