/*
* Requires any version of jquery-ui-1.8.2.js or higher which contains the new support for jquery buttons

*/

$(document).ready(function () {
    _buttonize();

    try {
        with (Sys.WebForms.PageRequestManager.getInstance()) {
            add_endRequest(onEndRequest);
        }
    } catch (e) { }

});

function _buttonize() {
    try {
        $("input[usejquerybuttontheme='true']").button();
    } catch (e) { }
}


function onEndRequest(sender, args) {
    _buttonize();
}
