$(function() {
    $(".fancyboxRedListStatus").fancybox({
        'hideOnContentClick': false,
        'frameWidth': 622,
        'frameHeight': 581,
        'padding': 0,
        'overlayShow': true,
        'overlayOpacity': 0.5
    });
});

//function LoadDistributionList(birdId, pageSize, pageNumber, sortType) {
//    $.ajax({
//        type: "POST",
//        url: "../WebServices/wsBird.asmx/GetDistributionList",
//        data: "{'birdId':" + birdId + ",'pageSize':" + pageSize + ",'pageNumber':" + pageNumber + ",'sortType':" + sortType + "}",
//        contentType: "application/json; charset=utf-8",
//        dataType: "json",
//        success: function(result) {
//            ApplyTemplate(result.d);
//        }
//    });
//}

//function ApplyTemplate(result) {
//    $("#distributionList").setTemplate($("#distributionTemplate").html());
//    $("#distributionList").processTemplate(result);
//}


//<!-- START OF JTEMPLATE -->
//<script type="text/html" id="distributionTemplate">
//{#foreach $T as Region}
//    <div class="right_sightings_item">
//        <a href="/Birds/byCountry/?countryId={$T.Region.Id}&searchType=2&sortId=1" class="blue fl bold top_6 bottom_6 size_12">{$T.Region.Name}</a>
//        <div class="clearer0">
//            <!-- -->
//        </div>
//    </div>
//{#/for}
//</script>
//<!-- END OF JTEMPLATE -->
