jQuery(function($) {
    $('#menu li:last').addClass('support');
    $('.link-holder').each(function() {
       addtional_elements = $(this).html();
       $(this).remove();
       $('#bottom-menu ul').append(addtional_elements); 
    });
    $('blockquote p strike').each(function() {
    	$(this).parents('blockquote').addClass('complex-quote');
    	$(this).replaceWith($(this).html());
    });

    /***** DROP DOWN NAVIGATION *****/

    $('#menu .sm_nav ul li').hover(function() {
    	$(this).find('ul').show();	
    }, function() {
    	$(this).find('ul').hide();
    });

    $('#menu').css('display', 'block');

    $('#menu .sm_nav li ul li.current').each(function() {
        $(this).parents('li').addClass('current');
    });

	function create_dropdown(dropdown_parent) {
		 $('#menu .sm_nav ul li a').each(function() {
	    	if ($(this).html() == dropdown_parent) {
	    		$(this).parent().append('<ul class="dd"></ul>');
	    	}
	    });
	}

    function add_element_to_dropdown(nav_element, dropdown_parent) {
    	nav_element.parents('li').wrap('<span class="temp"></span>');
		element_html = nav_element.parents('.temp').html();
		nav_element.parents('.temp').remove();
		$('#menu .sm_nav ul li a').each(function() {
			if ($(this).html() == dropdown_parent) {
	    		$(this).parent().find('.dd').append(element_html);
	    	}
		});
    }
    /***** DROP DOWN NAVIGATION *****/

    $('#bottom-menu').css('display', 'block');
    /***** CLEANUP FOOTER NAVIGATION END *****/
});

