$(document).ready(function () {
    var focus = 0;
    $("#MainMenu>ul>li").hover(
              function () {
                  var item1 = $(this).find('ul');
                  if (item1.attr('class') == "MenuDropDown") {
                      if ($(this).attr('class') == "PageFocus") {
                          focus = 1;
                          $(this).removeClass('PageFocus');
                          $("a.PageFocusInner").removeClass('PageFocusInner').addClass('temp');
                      }
                      $(this).addClass('MainMenuHover');
                      $(this).find("ul").css("display", "");
                  }
              },
              function () {
                  if (focus == 1) {
                      focus = 0;
                      $(this).addClass('PageFocus');
                      $("a.temp").removeClass('temp').addClass('PageFocusInner');
                  }
                  $(this).removeClass('MainMenuHover');
                  $(this).find("ul").css("display", "none");
              }
            );

    if ($.browser.msie) {
        if (($.browser.version == '7.0') || ($.browser.version == '8.0')) {
            var settings = {
                tl: { radius: 9 },
                tr: { radius: 9 },
                bl: { radius: 9 },
                br: { radius: 9 },
                antiAlias: true
            }
            curvyCorners(settings, ".More");
        }
    }
  
     if($("#contour").length >0)
     {
        // alert($("#contour select").length); 
           $("#contour select").each(function () {
                if($(this).find('option')[0].value == "")
                {
                   $(this).find('option')[0].text = $('#ContourDropdownlistDefaultText').val();
                }
              });
       
       
     }
  
  
});
