function superposts($jp, $the_path) {
	var $url = $the_path  + "?bottom_panel";
	$jp.ajax({
            url: $url,
            async: false,
            cache: false,
            success: function(html){
                $jp("#superposts").prepend(html);
            }
        });
	$jp(".related").css({"display": "none"})
}

function move_around($jp, $dom_element_value, $dom_element_to_change, $new_element) {
         var $dom_value = '<div id="' + $new_element + '">' + $jp($dom_element_value).html() + '</div>';
        $jp($dom_element_to_change).append($dom_value);
};

function contact_form($jp, $the_path) {
	$jp.ajax({
            url: $the_path,
            async: false,
            cache: false,
            success: function(html){
                $jp("#contact_form").prepend(html);
            }
        });
	
	$jp.ajax({
            url: '/?mega_menu',
            async: false,
            cache: false,
            success: function(html){
                $jp("#main-mega-menu").append(html);
            }
        });
	$jp(".related").css({"display": "none"});
}
function addMega(){ 
	$jp(this).addClass("hovering"); 
} 
	 
function removeMega(){ 
	$jp(this).removeClass("hovering"); 
}

function appendMenu($jp) {
	$jp("#header").append('<ul id="menu"><li class="mega"><a href="/">Home</a></li><li id="main-mega-menu" class="mega menu"><a href="#">Menu</a></li></ul>');
}
