$(function() {
    $.fn.outerHTML = function(s) {
        return (s) ? this.before(s).remove() : $("<p>").append(this.eq(0).clone()).html();
    };

    $.fn.exists = function() {
        return $(this).length>0;
    };
    
    if ($("#subnavigation ul li").length == 0) {
    	$("#subnavigation").css({visibility: "hidden"});
    }
});

$(window).resize(function() {
});


