/**
* @fileOverview  Js for local homepage
*
*/
$(document).ready(function() {
    Whl.UA.initData();
    Whl.getMore();
    new Whl.Combo.Double('country-list','destination-list','/?cmd=homepage&act=getDest&elmId=country-list', {param: {elmId: 'country-list'},defaultItems:[{text:'-- Destination --',value:-1}]});
    $("#go-local").click(function(event){
        event.preventDefault();
        if($("#destination-list").val() != -1){
            var domain = $("#destination-list").val();
            if(!domain.match(/^https?:/)){
                domain = "http://" + domain;
            }
            window.open(domain);
        }
    });
    $("#cont_right .menu_emb ul>li:first").css('background', 'none');
});