function breadcrumbs(){
sURL = new String;
bits = new Object;
var x = 0;
var stop = 0;
var output = "<span class='content_smtext'>You are here > </span> ";
sURL = location.href;
sURL = sURL.slice(8,sURL.length);
chunkStart = sURL.indexOf("/");
sURL = sURL.slice(chunkStart+1,sURL.length)
while(!stop){
  chunkStart = sURL.indexOf("/");
  if (chunkStart != -1){
	bits[x] = sURL.slice(0,chunkStart)
	sURL = sURL.slice(chunkStart+1,sURL.length);
  }else{
	stop = 1;
  }
  x++;
}
for(var i in bits){
  output += "<A HREF=\"";
  for(y=1;y<x-i;y++){
	output += "../";
  }
  output += bits[i] + "/\"><span class='content_smtext'>" + bits[i] + "</span></A> <span class='content_smtext'>></span> ";
}
var where_is_mytool=document.title;
var mytool_array=where_is_mytool.split("-");
document.write(output + "<span class='content_smtext'>" + mytool_array[0] + "</span>");
}

function toggleblock1(theid,theimg,thevideo){
	var bname = navigator.appName;
	 
	if (document.getElementById(theid).style.display == 'none')			
		{
		if (thevideo != 'x') {
				if (bname.search(/microsoft/i) == 0)
   				{
  				if (thevideo !='IChart1') {
					document.getElementById(thevideo).controls.play();
					}
				}
		}
		document.getElementById(theid).style.display = 'block';	
		if (!theimg==''){
			switch (thevideo) {
   				case 'IAudio1': MM_swapImage(theimg,'','/MemoryandAging/images/icons/closeaudio.png',1); break;
   				case 'IChart1': MM_swapImage(theimg,'','/MemoryandAging/images/icons/closechart.png',1); break;
   				default: MM_swapImage(theimg,'','/MemoryandAging/images/icons/closevideo.png',1);
			}
			//MM_swapImage(theimg,'','/MemoryAging/images/icons/closevideo.png',1);
			document.getElementById(theimg).alt = 'close';	
			}
		}
	else
		{
		if (bname.search(/microsoft/i) == 0)
   						{
  						if (thevideo != 'x') {
						if (thevideo !='IChart1') {
							document.getElementById(thevideo).controls.stop();
  							document.getElementById(thevideo).close();
							}
						}
  						document.getElementById(theid).style.display = 'none';
   						}
						else
   						{
   						document.getElementById(theid).style.display = 'none';
   						}
		if (!theimg==''){
			MM_swapImgRestore(); 
			document.getElementById(theimg).alt = 'view';	
			}
		}
	
 
}


function toggleblock2(theid,theimg){
	
	 
	if (document.getElementById(theid).style.display == 'none')			
		{
		document.getElementById(theid).style.display = 'block';	
		if (!theimg==''){
			MM_swapImage(theimg,'','/MemoryandAging/images/icons/video2.png',1);
			document.getElementById(theimg).alt = 'close video';	
			}
		}
	else
		{
		document.getElementById(theid).style.display = 'none';	
		if (!theimg==''){
			MM_swapImgRestore(); 
			document.getElementById(theimg).alt = 'play video';	
			}
		}
	
 
}

function hideblock1(){
		document.getElementById('moreinfo1').style.display = 'none';	
		document.getElementById('transcript1').style.display = 'none';	
}

function hideblock2(){
		document.getElementById('moreinfo2').style.display = 'none';	
		document.getElementById('transcript2').style.display = 'none';	
}
function hideblock3(){
		document.getElementById('moreinfo3').style.display = 'none';	
		document.getElementById('transcript3').style.display = 'none';	
}

