function startTools(){
    startOgToggleSlide();
}

function startOgToggleSlide(){
    var className = ".og-accordion";
    $(className).children("div").css("overflow", "hidden");
    $(className).each(function(){
        var filho = $(this).children("div");
        filho.attr("myHeight", filho.height());
        if(filho.attr("close") == "true"){
            filho.css("height", "0px");
        }else{
            $(this).children("p").children("span").css("display", "none");
        }
    });
    
    $(className).children("p").click(function(){
        var $this = $(this).parent();
        var title = $(this);
        var rel = $this.attr("rel");
        $(className).not($this).each(function(){
            if($(this).attr("rel") == rel){
                $(this).children("div").animate({
                    height : "0px"
                },300);
                $(this).children("p").children("span").fadeIn("slow");
            }
        });
        var size = $this.children("div").attr("myHeight");
        $this.children("div").animate({
            height : size + "px"
        }, 300);
        title.children("span").fadeOut("slow");
    });
}

function existInArray(content, array){
    for(var i=0; i<array.length; i++){
        if(array[i] == content){
            return true;
        }
    }
    return false;
}
