function externalLinks() {
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors.length; i++) {
		var anchor = anchors[i];
		if (
			anchor.getAttribute("href") && ( 
			anchor.getAttribute("rel") == "external" || 
			anchor.getAttribute("rel") == "external nofollow" || 
			anchor.getAttribute("rel") == "nofollow external" )
			)
		anchor.target = "_blank";
	}
}
window.onload = function() {
	externalLinks();
}

Event.observe(window, 'load', function() {
  externalLinks();


   if (document.getElementById('faq')) {
      var id_counter = 0;

       $$('ol h3').each(function(item) {
           if(item.nextSibling != null) {
            item.setStyle({ cursor: 'pointer'});
            var next = item.nextSiblings()[0];
            next.hide();
            if (next.getAttribute('id') == null) {
                  next.setAttribute('id', 'id_'+id_counter++);
            }
            Event.observe(item, 'click', function() {
               next.toggle();



/*
               if (!next.visible()) {
                  Effect.BlindUp(next.getAttribute('id'));
               } else {
                  Effect.BlindDown(next.getAttribute('id'));
               }
*/
            });
           }
//                   Effect.BlindUp('');
       });
   }


});
