/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function searchWord() {
    var word = $(this).val();
    if(word.length < 1) {
        $('#searchHelp').hide().html("");
        return false;
    }
    $.get($('#searchForm').attr('action'), {word: word},
        function(data){
            $('#searchHelp').html(data).show();
     });
}

function lightbox_flash_interface(url) {    
    $('#lightLink').attr('href', url).click();    
}

$(document).ready(function(){       
   $("#searchBox").keyup(searchWord).focusout(function(){
       setTimeout(function() {$('#searchHelp').hide().html("");}, 300);
   });
});


