$(document).ready(function(){

  /*
   * From: http://www.shopdev.co.uk/blog/text-resizing-with-jquery/ -->>
   */
  // Reset Font Size
  var originalFontSize = $('#centerCol').css('font-size');
  $(".resetFont").click(function() {
  $('#centerCol').css('font-size', originalFontSize);
  });
  // Increase Font Size
  $(".increaseFont").click(function() {
    var currentFontSize = $('#centerCol').css('font-size');
    var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = parseInt(currentFontSizeNum+5);
    $('#centerCol').css('font-size', newFontSize + "px");
    return false;
  });
  // Decrease Font Size
  $(".decreaseFont").click(function() {
    var currentFontSize = $('#centerCol').css('font-size');
    var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = parseInt(currentFontSizeNum-5);
    $('#centerCol').css('font-size', newFontSize + "px");
    return false;
  });
  /*
   * <<-- From: http://www.shopdev.co.uk/blog/text-resizing-with-jquery/
   */

  $(".faq_question").click(function() {
      $(this).next().slideToggle();
      $(this).toggleClass("open");
  });

  $('.lightbox_gallery a').lightBox();

  /* Fix hover in IE6 */
  $('.hover').hover(function() {
      $(this).addClass('ie-hover');
  }, function() {
      $(this).removeClass('ie-hover');
  });

  buttonfix();
});

function buttonfix() {
    var buttons = document.getElementsByTagName('button');
    for (var i=0; i<buttons.length; i++) {
        if(buttons[i].onclick) 
        {
          continue;
        }
        
        buttons[i].onclick = function () {
            for(var j=0; j<this.form.elements.length; j++)
            {
                if( this.form.elements[j].tagName == 'BUTTON' )
                {
                  this.form.elements[j].disabled = true;
                }
            }
            this.disabled=false;
            this.value = this.attributes.getNamedItem("value").nodeValue;
        };
    }
}

