
var subs = new Array();
var count = 1;

$(window).load(function(){
    $("#bottom").each(function(){
       push_pos = this.scrollHeight;
        $("#left_spot").css("height",push_pos);
         $("#bottom").css("height",push_pos);
   });
});

$(document).ready(function(){
    $(".sub_menu_holder").each(function(){
        id = $(this).attr("id");
        subs[id.substr(0,id.length-4)] = new SubMenu(this);
    })
    if ( typeof( subs[$(".selected").attr("id")] ) != "undefined" ) {
        $(subs[$(".selected").attr("id")].el).css("display", "block");
   }
    
    $(".sub_sub").each(function(){
        $(this).parent().mouseover(function(){
            $(this).children(".sub_sub").show();
        });

        $(this).parent().mouseout(function(){
            $(this).children(".sub_sub").hide();
        })
    })
    
});





function SubMenu(el)
{
    this.el = el;
    //$(el).css("display", "none");
}