        $(document).ready(function() {
            lastBlock = $("#a1");
            maxWidth = 380;
            minWidth = 52;

            var A = document.getElementById('a1');
            $(A).animate({ width: minWidth + "px" }, { queue: false, duration: 400 });
            $(A).animate({ width: maxWidth + "px" }, { queue: false, duration: 400 });
            $("ul li h3").click(
		function() {
		    $(lastBlock).animate({ width: minWidth + "px" }, { queue: false, duration: 400 });
		    $(this).animate({ width: maxWidth + "px" }, { queue: false, duration: 400 });
		    $(this).animate({ width: maxWidth + "px" }, { queue: false, duration: 400 });
		    currentBlock = this;
		    lastBlock = this;

		    var target1 = document.getElementById('tray1')
		    var target2 = document.getElementById('tray2')
		    var target3 = document.getElementById('tray3')
		    var target4 = document.getElementById('tray4')
		    var target5 = document.getElementById('tray5')

		    target1.style.display = 'none'
		    target2.style.display = 'none'
		    target3.style.display = 'none'
		    target4.style.display = 'none'
		    target5.style.display = 'none'
		}
	);
        });

        // TOGGLE SLIDER IMAGE HOVER
		
		origImage=null; 

		$(function() { 
		  $("#howto").hover(function() { 
			origImage=$(this).attr("src"); 
			$(this).attr("src", "/wp-content/themes/mwblog/images/mw_sliders_slider_1_how_to_hover.gif") 
		  },function() { 
			$(this).attr("src", origImage) 
		  }); 
		});
		
		$(function() { 
		  $("#events").hover(function() { 
			origImage=$(this).attr("src"); 
			$(this).attr("src", "/wp-content/themes/mwblog/images/mw_sliders_slider_2_events_hover.gif") 
		  },function() { 
			$(this).attr("src", origImage) 
		  }); 
		});
		
		$(function() { 
		  $("#social").hover(function() { 
			origImage=$(this).attr("src"); 
			$(this).attr("src", "/wp-content/themes/mwblog/images/mw_sliders_slider_3_social_hover.gif") 
		  },function() { 
			$(this).attr("src", origImage) 
		  }); 
		});
		
		$(function() { 
		  $("#favorites").hover(function() { 
			origImage=$(this).attr("src"); 
			$(this).attr("src", "/wp-content/themes/mwblog/images/mw_sliders_slider_4_favorites_hover.gif") 
		  },function() { 
			$(this).attr("src", origImage) 
		  }); 
		});
		
		$(function() { 
		  $("#video").hover(function() { 
			origImage=$(this).attr("src"); 
			$(this).attr("src", "/wp-content/themes/mwblog/images/mw_sliders_slider_5_video_hover.gif") 		  },function() { 
			$(this).attr("src", origImage) 
		  }); 
		});

        // END SLIDER TOGGLE




        function toggle(elementID) {

            var target1 = document.getElementById(elementID)

            if (target1.style.display == 'none') {
                target1.style.display = 'block'
            } else {
                target1.style.display = 'none'
            }
        }