function SubmitFormForSearch() {
    var v1 = document.getElementById('qt');
    var v2 = '';
    if (v1 != null)
        v2 = v1.value;
    var url = 'http://' + window.location.host + countryPath + 'Search.aspx?col=other&qt=' + v2;
    //alert(url);
    window.location.href = url;
}

function getKeyCode(event, btnID) {
    if (document.all) {
        if (window.event) {
            if (window.event.keyCode == 13)
                GetWindowSubmitEvent(event, btnID);
        }
        else {
            if (event.keyCode == 13)
                GetEventSubmitEvent(event, btnID);
        }
        return false;
    }
    else if (document.getElementById) {
        if (window.event) {
            if (window.event.keyCode == 13)
                GetWindowSubmitEvent(event, btnID);
        }
        else {
            if (event.keyCode == 13)
                GetEventSubmitEvent(event, btnID);
        }
        return false;
    }
    else if (document.layers) {
        if (window.event) {
            if (window.event.keyCode == 13)
                GetWindowSubmitEvent(event, btnID);
        }
        else {
            if (event.keyCode == 13)
                GetEventSubmitEvent(event, btnID);
        }
        return false;
    }
    return false;
}
function GetWindowSubmitEvent(event, btnID) {
    var btn = btnID.id;
    window.event.cancelBubble = true;
    window.event.returnValue = false;
    window.event.cancel = true;
    document.getElementById(btn).click();
    return false;
}
function GetEventSubmitEvent(event, btnID) {
    var btn = btnID.id;
    event.cancelBubble = true;
    event.returnValue = false;
    event.preventDefault();
    event.cancel = true;
    document.getElementById(btn).click();
    return false;
}

$(document).ready(function () {

    //Navigation for IE6
    if ($.browser.msie && $.browser.version.substring(0,1) === '6') {
        $("#main-nav ul.level-1 li, #language-menu ul.level-1 li").hover(
          function () {
              $(this).addClass('hover');
          },
          function () {
              $(this).removeClass('hover');
          }
        );
    }
    
    //External links
    $('a:not([href=""])').each(function () {
        if (this.hostname !== location.hostname) {
            $(this).attr('target', "_blank");
        }
    });
    
    //Logo opacity
    $(".btn-opacity").hover(
      function () {
          $(this).fadeTo('fast', 0.7);
      },
      function () {
          $(this).fadeTo('fast', 1.0);
      }
    );

 });
