
    $(document).ready(function() {
    
        $("#menu>li").hover(
        function()
        {
            $("img", this).attr("src", function()
            {
                switch( this.id )
                {
                     case "products":
                                    this.src = '/images/menu-rollover-products.jpg';
                                    break;
                                    
                     case "support":
                                    this.src =  '/images/menu-rollover-support.jpg';
                                    break;
                     
                     case "blog":
                                    this.src =  '/images/menu-rollover-blog.jpg';
                                    break;
                     
                     case "company":
                                    this.src =  '/images/menu-rollover-company.jpg';
                                    break;
                    
                    case "home":
                                    this.src =  '/images/menu-rollover-home.jpg';
                                    break;
                }
            });
            
            $(".subMenuItem", this).css( {"display":"block", "background-color":"#898d8c", "padding":"3px"} );
        },
        
        function()
        {
                 $("img", this).attr("src", function()
            {
                switch( this.id )
                {
                     case "products":
                                    this.src =  '/images/menu-products.jpg';
                                    break;
                                    
                     case "support":
                                    this.src =  '/images/menu-support.jpg';
                                    break;
                     
                     case "blog":
                                    this.src =  '/images/menu-blog.jpg';
                                    break;
                     
                     case "company":
                                    this.src =  '/images/menu-company.jpg';
                                    break;
                     
                     case "home":
                                    this.src =  '/images/menu-home.jpg';
                                    break;
                }
            });
            $(".subMenuItem", this).css("display", "none");
        }
        );
    });
    
    function displayPageBorders()
    {
        var pageHeight = $("#innerContentBox").outerHeight();
        $(".boxBorderLeftBottom").height(pageHeight+15);
        $(".boxContent").height(pageHeight+100);
        $(".mainContent").height(pageHeight+170);
        $(".boxBorderRightBottom").height(pageHeight+15);      
    }
    
    