	var nav_items = [ 'about', 'band', 'events', 'shows', 'reviews', 'listen', 'videos', 'song_list', 'photos', 'contact', 'blog', 'resources' ];
	var preloader;
	
	for ( var i = 0; i < nav_items.length; i++ ) {
		preloader = new Image();
		preloader.src = SITE_BASE_URI + '/images/layout/nav/' + 'btn-' +  nav_items[i] + '-on.jpg'; 
		
	}

    $(document).ready(function(){ 

        $("#main_nav_list").superfish(
        	{
        		autoArrows: false,
        		dropShadows: false,
        		delay: 100,
        		animation: {opacity: 'show'},
        		speed:1,
        		onBeforeShow: 
        			function() {
        				var my_id = $(this).attr('id');
        				if ( typeof(my_id) != 'undefined' ) {
	        				var my_name = my_id.substr(5, my_id.length);
	        				var img_id = '#nav_img_' + my_name;
	        				$(img_id).attr('src', $(img_id).attr('src').replace('-off', '-on') );
						}
        			},
        			
        		onHide: 
        			function() {
        				var my_id = $(this).attr('id');
        				if ( typeof(my_id) != 'undefined' ) {
							var my_name = my_id.substr(5, my_id.length);
	        				var img_id = '#nav_img_' + my_name;
	        				$(img_id).attr('src', $(img_id).attr('src').replace('-on', '-off') );
						}  				
        			}

        	}
        ); 
        
        
	$('#navigation_container ul img:not(.has_submenu)').hover( 
		function() {
				$(this).attr('src', $(this).attr('src').replace('-off', '-on') );
				
		},
		function() {
			
				$(this).attr('src', $(this).attr('src').replace('-on', '-off') );
        			
		
		}	
	);
	        
    }); 
