<!--
function toggleView(id, n) {
	var x;
	var t = new Array();
	var id = escape(id);
	//var sec = id.split('_');
	
	for(i=1; i<=n; i++) {
		t[i] = document.getElementById(id + i);
		//document["img" + id].src = "./imgs/";
	}
	
	i = 1;
	for(x in t) {
		if(t[x].style.display == 'none') {
			t[x].style.display = 'block';
			//alert('Cookie ID: '+id+i);
		} else if(t[x].style.display == 'block') {
			t[x].style.display = 'none';
		}
		i++;
	}
}

function swapPic(sub)

 {
 if(document.getElementById)
   {
	if (sub) {
		var thePicture2=document.getElementById("header-promo");
		var picPath2="http://dev.givingisgood.org/images/promo-give-now-0"+rnd(3)+".gif";
		thePicture2.style.background="url("+picPath2+") no-repeat left bottom";
	} else {
   
	   var picPath="http://dev.givingisgood.org/images/home-rotate-0"+rnd(5)+".jpg";
	   var thePicture=document.getElementById("promo-jpg");
	  
	   thePicture.style.background="url("+picPath+")";
	   
	   var thePicture2=document.getElementById("header-promo");
		var picPath2="http://dev.givingisgood.org/images/promo-give-now-0"+rnd(3)+".gif";
		thePicture2.style.background="url("+picPath2+") no-repeat left bottom";
		
	}
   }
 }

function rnd(n)
 {
 return Math.floor(Math.random() * n) + 1;
 }

 function confirmDelete(delUrl) {
  if (confirm("You are about to delete this charity. Continue?")) {
    document.location = delUrl;
  }
}

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;

 //-->