/**
* @fileOverview  Js for local homepage
*
*/
var tripHref = '';    
$(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');
    UpdateTripAvisor();    
});
function UpdateTripAvisor(){        
    /*if(typeof $('.AxwdPCR a').attr('href') !== 'undefined'){        
        tripHref = $('.AxwdPCR a').attr('href');
    }*/
	var t = setTimeout('UpdateTripAvisor()', 100);
	if(typeof $('.widFRRCopy')[0] !== 'undefined'){			    		    
		//$('.widFRRCopy').html('<a href="'+tripHref+'">Read and write reviews about '+destName+' Urban Adventures here</a>');
		$('#CDSWIDFRR var.widFRRCopy ').css('margin-top', '10px');
		clearTimeout(t);
	}
}
