﻿$(document).ready( function() { 
    //remove the brs
    
    var ImageRgn = $("#ImageRgn");
    
    //search the table
    
    var table = ImageRgn.find("table");
    
    if (table.length > 0) {
        var html = table.html();
        
        //remove everything from the original id
        ImageRgn.html ( html );
    }
    
    //Drop shadow from menu
    var MenuRgn = $("#MenuRgn");
    
    var myShadow = MenuRgn.dropShadow( { left: 0, top: 2 } );
    
    //remove the stupid left
    var posMenu = MenuRgn.position();
    
    var leftShadow = 3;
    
    var shadowWidth = MenuRgn.width()-1;
    myShadow.find("DIV").css ( {left: leftShadow, width: shadowWidth } );
});