jQuery.noConflict();

jQuery(document).ready(function($) {
    $('#resultDiv').hide();

    $('#downloadForm').bind('submit', function() {
        ttgg35ytgh45ygh4565fgf4t43egg();
        return false;
    });

    $("#resultField").bind('focus', function(e) {
       $(this).select();
       e.preventDefault();
    });
    
    $("#urlField").bind('focus', function(e) {
        if ($(this).val() == "URL") {
            $(this).val('');
        }
    });
    
    $("#urlField").bind('blur', function(e) {
        if ($(this).val() == "") {
            $(this).val('URL');
        }
    });
});

baseUrl = "downloader.ro";

function ttgg35ytgh45ygh4565fgf4t43egg() {
    if (jQuery) {
        (function($) {
            $('#resultDiv').hide();
            $('#progressBar').show();

            $.ajax({
                type: "POST",
                url: "http://"+baseUrl+"/sgb3ghrebfbery3rbg3g5t4t2geg4/r2gwe2g442t3g35g53g3ty.php",
                data: "4gr4353gt3g34ggtrhw5%YERHewtgd4="+$('#urlField').val(),
                success: function (msg) {
                    $("#resultField").val(msg);
                    $('#resultDiv').show();
                    $('#progressBar').hide();
                }
             });
        })(jQuery);
    }
}
