function showRecovery() { 
    $("#bu").slideToggle("fast");
    return false;
}	
	
function showInfo1() { 
    $("#switch1").toggleClass("switch1");
    $("#info1").slideToggle("fast");
    return false;
}	
	
function showInfo2() { 
    $("#switch2").toggleClass("switch1");
    $("#info2").slideToggle("fast");
    return false;
}	
	
function showInfo3() { 
    $("#switch3").toggleClass("switch1");
    $("#info3").slideToggle("fast");
    return false;
}	
	
function showInfo4() { 
    $("#switch4").toggleClass("switch1");
    $("#info4").slideToggle("fast");
    return false;
}	

function showInfo5() {
    $("#switch5").toggleClass("switch1");
    $("#info5").slideToggle("fast");
    return false;
}
        
function showInfo6() {
    $("#switch6").toggleClass("switch1");
    $("#info6").slideToggle("fast");
    return false;
}

function showInfo7() {
    $("#switch7").toggleClass("switch1");
    $("#info7").slideToggle("fast");
    return false;
}

function showInfo8() {
    $("#switch8").toggleClass("switch1");
    $("#info8").slideToggle("fast");
    return false;
}

function showInfo9() {
    $("#switch9").toggleClass("switch1");
    $("#info9").slideToggle("fast");
    return false;
}

function addComment() {
    $("#add").slideToggle("fast");
    return false;
}

$(document).ready(function() {

    $("#recovery").click(showRecovery);

    $("#add_comment").click(addComment);
});

$(function(){
    $("#create_ugc_second_step :input.yellow-helptext").tooltip({
        // a little tweaking of the position
        offset: [-2, 10],

        // use the built-in fadeIn/fadeOut effect
        effect: "fade",

        // custom opacity setting
        opacity: 1,

        // use this single tooltip element
        tip: '.help-tooltip',

        position: 'center right'

    });

    $("#create_ugc_third_step :input").tooltip({
        // a little tweaking of the position
        offset: [-2, 10],

        // use the built-in fadeIn/fadeOut effect
        effect: "fade",

        // custom opacity setting
        opacity: 1,

        // use this single tooltip element
        tip: '.help-tooltip',

        position: 'center right'

    });

    $("#edit_ugc_form :input.yellow-helptext").tooltip({
        // a little tweaking of the position
        offset: [-2, 10],

        // use the built-in fadeIn/fadeOut effect
        effect: "fade",

        // custom opacity setting
        opacity: 1,

        // use this single tooltip element
        tip: '.help-tooltip',

        position: 'center right'

    });

    $("#terms_of_use :input").tooltip({
        // a little tweaking of the position
        offset: [-2, 10],

        // use the built-in fadeIn/fadeOut effect
        effect: "fade",

        // custom opacity setting
        opacity: 1,

        // use this single tooltip element
        tip: '.help-tooltip',

        position: 'center right'

    });

    $("a.powered-by-help").tooltip({
        tip: '.powered-by-tooltip',
        position: 'center right'
    });

})



