$j(document).ready(function() {
    /*$j('#becas').flash({
        swf:'becas.swf',
        width: 360,
        height: 100
    });*/
    $j('.anythingSlider_becas').anythingSlider({
            easing: "swing",        // Anything other than "linear" or "swing" requires the easing plugin
            autoPlay: true,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
            delay: 5000,                    // How long between slide transitions in AutoPlay mode
            startStopped: false,            // If autoPlay is on, this can force it to start stopped
            animationTime: 600,             // How long the slide transition takes
            hashTags: true,                 // Should links change the hashtag in the URL?
            buildNavigation: true,          // If true, builds and list of anchor links to link to each slide
            pauseOnHover: true,             // If true, and autoPlay is enabled, the show will pause on hover
            startText: " ",             // Start text
            stopText: " "              // Stop text
        });
        $j('.anythingSlider_home').anythingSlider({
            easing: "swing",        // Anything other than "linear" or "swing" requires the easing plugin
            autoPlay: true,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
            delay: 10000,                    // How long between slide transitions in AutoPlay mode
            startStopped: false,            // If autoPlay is on, this can force it to start stopped
            animationTime: 1800,             // How long the slide transition takes
            hashTags: true,                 // Should links change the hashtag in the URL?
            buildNavigation: true,          // If true, builds and list of anchor links to link to each slide
            pauseOnHover: true,             // If true, and autoPlay is enabled, the show will pause on hover
            startText: " ",             // Start text
            stopText: " "              // Stop text
        });
    //FOCUS
    $j('#blog_cont_buscador #titulo').live('focusin',function(){
        if($j(this).val() == 'Digita la palabra relacionada a tu búsqueda'){
            $j(this).val('');
        }
    });
    //FOCUS OUT
    $j('#blog_cont_buscador #titulo').live('focusout',function(){
        if($j(this).val() == ''){
            $j(this).val('Digita la palabra relacionada a tu búsqueda');
        }
    });
});
function fnSearchBecas(orderby){

    var titulo = $j('#titulo').val();
    if(titulo=='Digita la palabra relacionada a tu búsqueda'){titulo='';}

    $j('#resultado_becas').html('<table width="100%"><tr/><td style="text-align:center;"><img src="img/ajax-loader_1.gif" /></td></table>');
    $j.ajax({
            type:   'POST',
            url:    'controller/becas/index.php',
            data:   'consulta='+titulo,
            success: function(datos){
                $j('#resultado_becas').html(datos);
            }
    });
}
