$(document).ready(function() {

    $('form .clean').bind('focus', function() { if ($(this).val() == $(this).attr('title')) $(this).val(''); });
    $('form .clean').bind('blur', function() { if ($(this).val().length == 0) $(this).val($(this).attr('title')); });

    // galeria de imagens
    $('.galleryImages a').click(function() {
        $('a', $(this).parent()).removeClass('selected');
        $(this).addClass('selected');
        $('.mainImage img').attr('src', $(this).attr('href'));
        return false;
    });
});

function HideContent(g) {
    document.getElementById(g).style.display = "none";
}

function ShowContent(g) {
    document.getElementById(g).style.display = "block";
}

function ReverseDisplay(g) {
    if (document.getElementById(g).style.display == "none") {
        document.getElementById(g).style.display = "block";
    }
    else {
        document.getElementById(g).style.display = "none";
    }
}