function doLangDropdown() {
        var curhost = location.hostname;
        //if(curhost!="www.com")jQuery("#languagedropdown ul li:first-child").before(jQuery("#languagedropdown ul li a[href*='"+curhost+"']").parent());
        jQuery("#languagedropdown ul li:last-child").addClass('last');
        jQuery("#languagedropdown ul li:first-child").addClass('first');
        var lddid = "#languagedropdown li:not(:first-child)";
        jQuery(lddid).css({ 'display': 'none' });
        var timer = null;
        function closeme() {
            jQuery(lddid).stop(false, true).slideUp('fast', function () { jQuery("#languagedropdown .bg").hide(); });
        }
        jQuery("#languagedropdown").append("<div class=\"bg\"><!--blank--></div>");
        jQuery("#languagedropdown .bg").hide().css({ 'opacity': '0.9' });
        jQuery("#languagedropdown li:first-child").hover(function () {
            jQuery(lddid).stop(false, true).slideDown('fast');
            jQuery("#languagedropdown .bg").show();
        });
        jQuery("#languagedropdown").hover(function () {
            clearTimeout(timer);
            timer = null;
        }, function () {
            timer = setTimeout(closeme, 250);
        });
        jQuery("#languagedropdown li a").click(function () {
            switchLang(jQuery(this).attr("href").replace("/", "").replace("http:", ""));
            return false;
        });
    }

doLangDropdown();


