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") == "nofollow"))
     anchor.target = "_blank";
 }
}
window.onload = externalLinks;

function toggleQuicklinks(){
	if($('quick_links_body').visible()){
		$('minimize_button').hide();
		$('maximize_button').show();
		new Effect.toggle('quick_links_body','blind', {queue: 'end'});
	}
	else{
		$('maximize_button').hide();
		$('minimize_button').show();
		new Effect.toggle('quick_links_body','blind', {queue: 'end'});
	}
}