function switchSection(id)	{
	if (document.getElementById(id).style.display != "none")	{
		Effect.BlindUp(id, { duration: 0.5 });
	} else {

		var openSection = "";
		var sectionArray = new Array ('about', 'projects', 'find', 'tags', 'contact');
		for (a=0; a<sectionArray.length; a++)	{
			if (document.getElementById(sectionArray[a]).style.display != "none")	{
			openSection = sectionArray[a];
			}
		}
		if (openSection == "")	{
			Effect.BlindDown(id, { duration: 0.5 });
		} else {
			Effect.BlindUp(openSection, { duration: 0.5 , afterFinish: function () { Effect.BlindDown(id, { duration: 0.5 })} });
		}
	}
}

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