$(document).ready(function() {

    //--- news accoridan
    $(".jq_dave_accordian").hover( function(){
      if( $(this).attr("down") != 1 ){
        id = $(this).attr("name");
        $( ".accordian_section" ).slideUp();
        $(".jq_dave_accordian").attr( "down" , 0 );        
        $( "#accordian_" + id ).slideDown();
        $(this).attr( "down" , 1 );
      }
      
    });

    //$("#accordion").accordion({ active: false });


    //---- thumbnail images clicked, sets the main image
    $(".jq_folio_thumb_click").click(function () {
        new_big_image = $(".folioimage_main").attr("jq_folder_name")+$(this).attr("jq_attr_imagename");
        $(".folioimage_main").attr("src", new_big_image );
    });
    
    //---- triggers the rollover to fade in for the thumbnails & main images.
    $(".jq_overlay_in_out").hover( function() {
        $( ".jq_overlay" , this ).fadeIn("fast");
    },function(){
        $( ".jq_overlay" , this ).css("display", "none" );
    });
        
    //---- 
	$(".jq_hassublevel").hover( function() {
		 $( "ul" , this ).fadeIn("fast");
	},function(){
		 $( "ul" , this ).css("display", "none" );
	});

    //---- 
//    $('#scroll').innerfade({
//		animationtype: 'fade',
//		speed: 850,
//		timeout: 3000,
//		type: 'random',
//		containerheight: '1em'
//	});

});

