$(document).ready(function(){
    $('.hoverdesc a').hover(
        function() {
            $(this).parent().find('span').show();
        },
        function() {
            $(this).parent().find('span').hide();
        }
    );
    $('#searchinput').focus( function() {
        $(this).val('');
    });
    $('#search').blur( function() {
        
    })

    // Add Bookmark script
    // add a "rel" attrib if Opera 7+
    if(window.opera) {
            if ($("a.jqbookmark").attr("rel") != ""){
                    $("a.jqbookmark").attr("rel","sidebar");
            }
    }

    $("a.jqbookmark").click(function(event){
            event.preventDefault();
            var url = this.href;
            var title = this.title;

            if (window.sidebar) { // Mozilla Firefox Bookmark
                    window.sidebar.addPanel(title, url,"");
            } else if( window.external ) { // IE Favorite
                    window.external.AddFavorite( url, title);
            } else if(window.opera) { // Opera 7+
                    return false; // do nothing
            } else {
                     alert('Unfortunately, this browser does not support the requested action,'
                     + ' please bookmark this page manually.');
            }

    });
    // End Bookmark Script
});
