//global variables that can be used by ALL the function son this page.
var imgPlus = '/images/links/plus.gif';
var imgMinus = '/images/links/minus.gif';

function HideShowBtn(id) {
        el = 'data_'+id;
        im = 'img_'+id;
        if ($('data_'+id).visible()) {
                $(im).src = imgPlus;
                $(el).hide();
        } else {
                $(im).src = imgMinus;
                $(el).show();
        }
}

function noenter(event) {
    event = (event) ? event : window.event;
    return !(event && event.keyCode == 13);
}

function show_login() 
{
    $("#login-form").show();
    $("#login-links").hide();
    $("#login-form #id_uname").focus();
    return false;
}

function hide_login() 
{
    $("#login-form").hide();
    $("#openid-form").hide();
    $("#login-links").show();
    return false;
}

function show_openid() 
{
    $("#openid-form").show();
    $("#login-links").hide();
    $("#openid-form #id_openid_url").focus();
    return false;
}

function get_content(blk, lnk)
{
    $('#loading').ajaxStart(function() {
        $(this).show();
        }).ajaxStop(function() {
            $(this).hide();
            });
 $(blk).load(lnk);
}

$(document).ready(function() {
$('input[type=checkbox]').checkbox({
  cls:'jquery-safari-checkbox',
  empty: '/images/empty.png'
});
});
