jQuery(document).ready(function(){

    jQuery("a.lightbox").lightbox();

    //createConsole();
    //console('loading members.js');
/*
    //clear the default value from the user_name field on focus
    var default_user_id = 'user id';
    jQuery("input#user_name").attr('value',default_user_id);
    jQuery("input#user_name", this).focus(function() { if (this.value == default_user_id) this.value = ''; });
    jQuery("input#user_name", this).blur(function() { if (this.value == '') this.value = default_user_id; });

    //clear the default value from the user_pass field on focus
    var default_user_pass = '******';
    jQuery("input#password").attr('value',default_user_pass);
    jQuery("input#password", this).focus(function() { if (this.value == default_user_pass) this.value = ''; });
    jQuery("input#password", this).blur(function() { if (this.value == '') this.value = default_user_pass; });
*/

/*
    //replace the category go button with an onchange event
    jQuery("#cat-search-form", this).submit(function()
    {
        var alias = jQuery('#search_category_id').selectedIndex();
        alert('selected '+ alias);
//        document.location = '/diretory/category/'.alias;
        return false;
    });
*/

/*    
    //add ajax to member links on search results page
    jQuery(".member_links li a", this).click(function() 
    {
        //get the member alias
        var member_alias = this.id;//.substr('thumb-'.length);

        //remove current class from all member links
        jQuery(".member_links li a").removeClass('current');

        //mark the current member as selected
        jQuery("#"+this.id).addClass('current');

        //console('clicked '+member_alias);

        //show loading gif
//        showLoading();

        //replace the image
        jQuery.ajax({
            type: "POST",
            url: "/members/ajax/get_details/",
            data: "member_alias="+member_alias,
            dataType : "html",
            success : function(html) {
                //alert(html);
                //if (json.error) alert(json.error); return; 

                //swap the page elements
                jQuery("#members_details").html(html);

//                hideLoading();
            }
        }); 

        return false;
    });
*/
});

/*

//creates a div to write the console messages into
function createConsole() {
    jQuery("#footer-container").append('<div id="console"></div>');
}

//writes a message to the console (a div with id 'console')
function console(msg) {
    jQuery("#console").append('<div>'+msg+'</div>');
}


function showLoading() {
    jQuery('#loading-gif').show();
}

function hideLoading() {
    jQuery('#loading-gif').hide();
}
*/
