﻿
function AdjustDD(DDCntrl)
{
    if($find(DDCntrl)== null)
        return;
//    $find(DDCntrl)._dropFrameTop.style.borderTop = "1px solid #26221c ";
//    $find(DDCntrl)._dropFrameRight.style.borderRight = "1px solid #26221c ";
//    $find(DDCntrl)._dropFrameBottom.style.borderBottom = "1px solid #26221c ";
//    $find(DDCntrl)._dropFrameLeft.style.borderLeft = "1px solid #26221c ";
//    $find(DDCntrl).set_highlightBackgroundColor("#26221c");      
//    $find(DDCntrl)._isOver= false;
//    $find(DDCntrl).hover();
//    $find(DDCntrl).add_hoverOut(function(){$find(DDCntrl).hover();});
//    $find(DDCntrl).add_hoverOver(
//        function() {
//            $find(DDCntrl)._isOver = true;
//            $find(DDCntrl)._dropFrame.visible = false;
//        }
//    );
    //$find(DDCntrl).set_dropArrowWidth("27px");
//    $find(DDCntrl).remove_hoverOver($find(DDCntrl).hover);
//    $find(DDCntrl).add_hoverOver(
//    function hover() {
//        var elt = $find(DDCntrl).get_element();if (!$find(DDCntrl)._isOver) {
//        $find(DDCntrl)._isOver = true;$find(DDCntrl).raiseHoverOver(Sys.EventArgs.Empty);var bounds = $common.getBounds(elt);$common.setLocation($find(DDCntrl)._dropFrame, {x:0, y:0});$common.setVisible($find(DDCntrl)._dropFrame, true);var offset = $common.getLocation($find(DDCntrl)._dropFrame);$common.setVisible($find(DDCntrl)._dropFrame, false);bounds.x -= offset.x;bounds.y -= offset.y;$common.setBounds($find(DDCntrl)._dropFrameTop, { 
//        x : bounds.x, 
//        y : bounds.y,
//        width : bounds.width,
//        height : 1
//        });$common.setBounds($find(DDCntrl)._dropFrameRight, {
//        x : bounds.x + bounds.width - 1,
//        y : bounds.y,
//        width : 1,
//        height : bounds.height
//        });$common.setBounds($find(DDCntrl)._dropFrameBottom, {
//        x : bounds.x,
//        y : bounds.y + bounds.height - 1,
//        width : bounds.width,
//        height : 1
//        });$common.setBounds($find(DDCntrl)._dropFrameLeft, {
//        x : bounds.x,
//        y : bounds.y,
//        width : 1,
//        height : bounds.height
//        });$common.setBounds($find(DDCntrl)._dropArrow, {
//        x : bounds.x + bounds.width - 17,
//        y : bounds.y + 1,
//        width : 27,
//        height : bounds.height - 2
//        });$find(DDCntrl)._dropFrameTop.style.backgroundColor = $find(DDCntrl)._highlightBorderColor;$find(DDCntrl)._dropFrameRight.style.backgroundColor = $find(DDCntrl)._highlightBorderColor;$find(DDCntrl)._dropFrameBottom.style.backgroundColor = $find(DDCntrl)._highlightBorderColor;$find(DDCntrl)._dropFrameLeft.style.backgroundColor = $find(DDCntrl)._highlightBorderColor;$common.setVisible($find(DDCntrl)._dropFrame, true);if (!$find(DDCntrl)._oldBackgroundColor) { 
//        $find(DDCntrl)._oldBackgroundColor = $common.getCurrentStyle(elt, 'backgroundColor');}
//        elt.style.backgroundColor = $find(DDCntrl)._highlightBackgroundColor;}
//        }
//    );
//    $find(DDCntrl).add_hoverOver(
//    function() {
//        var i = 0;
//    }
//    );

}

