/**
* @fileOverview Js for trip-detail page
*/
$(document).ready(function(){
    Whl.UA.initData();
    // Create Alm Object 
    new Whl.UA.Alm(alm.almUrl, alm.allotment, alm.childPolicy);
    $('#cancel-policy-dlg').dialog({
        bgiframe: false,
        autoOpen: false,
        height: 'auto',
        width: 500,
        modal: false,
        buttons: {
            Close: function(){
                $(this).dialog('close');
            }
        }
    });
    $('#uxPhysicalRating').click(function(){
        arguments[0].preventDefault();
        window.open(this.href, 'caf', 'width=400,height=600,toolbar=1,status=1,scrollbars=1,location=1');
        return false;
    });
    $('#uxCultureRating').click(function(){
        arguments[0].preventDefault();
        window.open(this.href, 'caf', 'width=400,height=600,toolbar=1,status=1,scrollbars=1,location=1');
        return false;
    });
    $('#uxAdventureRating').click(function(){
        arguments[0].preventDefault();
        window.open(this.href, 'caf', 'width=400,height=600,toolbar=1,status=1,scrollbars=1,location=1');
        return false;
    });
    $('#cancel-policy-lnk').click(function(){
        arguments[0].preventDefault();
        $('#cancel-policy-dlg').dialog('open');
        return false;
    });
});
