// Prototype extension

//extentions to show a div element with the 'block' as display style
Element.addMethods({
    showDiv: function(element) {
        $(element).style.display = 'block';
        return element;
    }
});

//extentions to show a div element with the 'block' as display style
Element.addMethods({
    hideDiv: function(element) {
        $(element).style.display = 'none';
        return element;
    }
});

//extension to check if the div element is visible
Element.addMethods({
            visibleDiv: function(element){
                  return $(element).style.display == 'block';
                    
            }
      });

