function alertMe( targetId){
	alert('im here blah');
	
}
function toggle( targetId, me ){
	//alert(me.id);
	//alert('hello'+targetId);
	hideall( targetId );
	
 if (document.getElementById){
  target = document.getElementById( targetId );
  
 	if (target.style.display == "block"){                         
   		target.style.display = "none";   
	} else {                                
   		target.style.display = "block";  
  
   		me.className="active";
   		//alert(me.id+".display = "+me.style.display);
  	}
  }
}

function showall( targetId ){
  if (document.getElementById){
  target = document.getElementById( targetId );
   target.style.display = "block";  
  }
}

function hideall( targetId ){
// create a new array for the div ids of all the profiles
	var allPageTags = new Array(); 
	var allActives = new Array();
	
	//look for the ids and populate the array
	var allPageTags=document.getElementsByTagName("ul");  
	var allActives=document.getElementsByTagName("a");  
	// get the all the divs in the array and hide them
	for (j=0; j<allActives.length; j++){
		if (allActives[j].className == "active"){
			allActives[j].className="inactive";
		
		}
	}
	for (i=0; i<allPageTags.length; i++) {  
		var subMenus="submenu_"+i;
//alert(subMenus);
		if ( (allPageTags[i].id == subMenus) && (allPageTags[i].id != targetId) ) {  
					allPageTags[i].style.display='none';    
		}
	} 	
}