
    $(document).ready(function(){ 
        $('ul.sf-menu').superfish({ 
            delay:       1000,                            // one second delay on mouseout 
            animation:   {opacity:'show'},  			  // fade-in and slide-down animation 
            speed:       'fast',                          // faster animation speed 
            autoArrows:  false,                           // disable generation of arrow mark-up 
            dropShadows: false                            // disable drop shadows 
        });
        
        jQuery('#list').accordion();
        
        $('.category1').click(function(){
        	$('.category2_content').hide();
        	$('.category3_content').hide();
        	$('.category4_content').hide();
        	$('.category5_content').hide();
			$('.category6_content').hide();
        	$('.category1_content').fadeIn();
		});
		
		$('.category2').click(function(){
        	$('.category1_content').hide();
        	$('.category3_content').hide();
			$('.category4_content').hide();
        	$('.category5_content').hide();
			$('.category6_content').hide();
        	$('.category2_content').fadeIn();
		});
		
		$('.category3').click(function(){
        	$('.category1_content').hide();
        	$('.category2_content').hide();
        	$('.category5_content').hide();
        	$('.category4_content').hide();
			$('.category6_content').hide();
        	$('.category3_content').fadeIn();
		});
		
		$('.category4').click(function(){
        	$('.category1_content').hide();
        	$('.category2_content').hide();
        	$('.category3_content').hide();
        	$('.category5_content').hide();
			$('.category6_content').hide();
        	$('.category4_content').fadeIn();
		});
		
		$('.category5').click(function(){
        	$('.category1_content').hide();
        	$('.category2_content').hide();
			$('.category3_content').hide();
        	$('.category4_content').hide();
			$('.category6_content').hide();
        	$('.category5_content').fadeIn();
		});
		
		$('.category6').click(function(){
        	$('.category1_content').hide();
        	$('.category2_content').hide();
			$('.category3_content').hide();
        	$('.category4_content').hide();
			$('.category5_content').hide();
        	$('.category6_content').fadeIn();
		});		
		
		$('.nametrigger').click(function(){
			$('.hideme').hide();
			var currentObject =null;
			$currentObject = "."+$(this).attr('id')+"_content";
			$($currentObject).fadeIn();
		});

        
    });
        
		$whichImage=2;
		
		function doImageSwap(){
				
				switch($whichImage){
					
					case(1):
						$(".barimage1").animate({
						opacity: 1
						}, { duration: 1000 });
						$(".barimage4").animate({
						opacity: 0
						}, { duration: 1000 });
						
						$whichImage=2;
					break;
					case(2):
						$(".barimage2").css("visibility","visible");

						$(".barimage1").animate({
						opacity: 0
						}, { duration: 1000 });
						$(".barimage2").animate({
						opacity: 1
						}, { duration: 1000 });

						$whichImage=3;
					break;
					case(3):
						$(".barimage3").css("visibility","visible");
						
						$(".barimage2").animate({
						opacity: 0
						}, { duration: 1000 });
						$(".barimage3").animate({
						opacity: 1
						}, { duration: 1000 });
						
						$whichImage=4;
					break;
					case(4):
						$(".barimage4").css("visibility","visible");
						
						$(".barimage3").animate({
						opacity: 0
						}, { duration: 1000 });
						$(".barimage4").animate({
						opacity: 1
						}, { duration: 1000 });
						
						$whichImage=1;
					break;
				}	
		
		}
		
		$(function() {
		    setInterval( "doImageSwap()", 6000 );
		});
	

