/* Minification failed. Returning unminified contents.
(26,10): run-time error CSS1031: Expected selector, found 'initialize('
(26,10): run-time error CSS1025: Expected comma or open brace, found 'initialize('
(48,1): run-time error CSS1019: Unexpected token, found '$'
(48,2): run-time error CSS1019: Unexpected token, found '('
(48,9): run-time error CSS1031: Expected selector, found ')'
(48,9): run-time error CSS1025: Expected comma or open brace, found ')'
(50,2): run-time error CSS1019: Unexpected token, found ')'
 */
//function isRequestValid() {
//    var fv = $('.divGlobalForm').data('formValidation');
//    var bOk = true;

//    fv.revalidateField('ctl00$ContentPlaceHolder1$txtName');
//    fv.revalidateField('ctl00$ContentPlaceHolder1$txtEmail');
//    fv.revalidateField('ctl00$ContentPlaceHolder1$txtMessage');

//    if (fv.isValidField('ctl00$ContentPlaceHolder1$txtName') === false) {
//        bOk = false;
//    }
//    if (fv.isValidField('ctl00$ContentPlaceHolder1$txtEmail') === false) {
//        bOk = false;
//    }
//    if (fv.isValidField('ctl00$ContentPlaceHolder1$txtMessage') === false) {
//        bOk = false;
//    }

//    if (bOk) {
//        __doPostBack('ctl00$ContentPlaceHolder1$btnSubmit', '')
//    } else {
//        return false;
//    }
//}

function initialize() {
       
    var myLatlng = new google.maps.LatLng($('#hdfLatitudeX').val(), $('#hdfLongitudeY').val());
    var mapOptions = {
        zoom: 15,
        center: myLatlng,
        scrollwheel: false,
        disableDefaultUI: false,
        mapTypeId: google.maps.MapTypeId.ROADMAP,
    }
    var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);

    //=====Initialise Default Marker    
    var marker = new google.maps.Marker({
        position: myLatlng,
        map: map,
        title: 'marker'
        //=====You can even customize the icons here
    });

}

$(window).on("load resize", function (e) {
    initialize();
});
