// For Brain Imaging Lab Website
// http://childpsych.columbia.edu/brainimaging
// Ning Dong 2006
// http://childpsych.columbia.edu/brainimaging/CV_ning.html

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function DN_shrink() { //v3.0
	//parent.sideframe.cols = "128,*";
	//parent.side.location.href = "side_small.html";
	var frameSet = parent.document.getElementById('sideframe');
	frameSet.cols = "128,*";
	var side = parent.document.getElementById('side');
	side.src = "side_small.html";
	return true;
}

function DN_remove() { //v3.0
	var frameSet = parent.document.getElementById('sideframe');
	frameSet.cols = "0,*";
	//parent.side.location.href = "side_small.html";
	return true;
}

function DN_enlarge() { //v3.0
	//parent.side.location.href = "side.html";
	//parent.sideframe.cols = "206,*";
	var side = parent.document.getElementById('side');
	side.src = "side.html";
	var frameSet = parent.document.getElementById('sideframe');
	frameSet.cols = "206,*";
	return true;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function DN_print_footer()
{
	document.write('<DIV ALIGN=center class="small">');
	document.write('<HR width=85% align=center size=1 bgcolor=c1c1c1>');
	document.write('<FONT color=black size=1>|');
	document.write(' <a href="index.html" TARGET="_parent" style="font-size: 8pt">Home</a> |');
	document.write(' <A HREF="technology.html" style="font-size: 8pt">Technology</a> |');
	document.write(' <A HREF="people.html" style="font-size: 8pt">People</a> |');
	document.write(' <A HREF="projects.html" style="font-size: 8pt">Projects</a> |');
	document.write(' <A HREF="public.html" style="font-size: 8pt">Publications</a> |');
	document.write(' <A HREF="links.html" style="font-size: 8pt">Useful Links</a> |');
	document.write(' <A HREF="partic.html" style="font-size: 8pt">Participation</a> |');
	document.write(' <A HREF="contact.html" style="font-size: 8pt">Contact Info</a> |');
	document.write(' <A HREF="giving.html" style="font-size: 8pt">Giving</a> |');
	document.write(' <A HREF="Jobs.html" style="font-size: 8pt">Jobs</a> |');
	document.write('</FONT>');
	document.write('</DIV>');
	
	document.write('<DIV');
	document.write('<tr><td></td></tr>');
	document.write('<tr>');
	
	document.write('<td>');
	document.write('<a href="http://www.nyspi.org" target="_blank"> <img src="newpics/nyspi.jpg"></a>');	
	document.write('</td>');
	document.write('<td>');
	document.write('<a href="http://columbiapsychiatry.org/" target="_blank"> <img src="newpics/columbia_psych.gif"></a>');	
	document.write('</td>');
		document.write('</tr>');
	document.write('</DIV>');
	
//	document.write('<DIV>');
//	document.write('<FONT color=black size=1>');
//	document.write('<HR width=50% align=center size=1 bgcolor=c1c1c1>');

//	document.write('<tr>');
//	document.write('<td align=center>');
//	document.write('Developed by J. Royal and N. Dong, Copyright &copy; 2006, all rights reserved.');
//	document.write('</td>');
//	document.write('</tr>');
// document.write('</FONT>');
//	document.write('</DIV>');	
}

function DN_print_main_footer()
{
	document.write('<DIV ALIGN=center class="small">');
	document.write('<HR width=85% align=center size=1 bgcolor=c1c1c1>');
	document.write('<FONT color=black size=1>|');
	document.write('<a href="main.html" style="font-size: 8pt">Home</a>|');
	document.write('<A HREF="technology.html" onClick="DN_shrink()" style="font-size: 8pt">Technology</a>|');
	document.write('<A HREF="people.html" onClick="DN_shrink()" style="font-size: 8pt">People</a>|');
	document.write('<A HREF="projects.html" onClick="DN_shrink()" style="font-size: 8pt">Projects</a>|');
	document.write('<A HREF="public.html" onClick="DN_shrink()" style="font-size: 8pt">Publications</a>|');
	document.write('<A HREF="links.html" onClick="DN_shrink()" style="font-size: 8pt">Useful Links</a>|');
	document.write('<A HREF="partic.html" onClick="DN_shrink()" style="font-size: 8pt">Participation</a>|');
	document.write('<A HREF="contact.html" onClick="DN_shrink()" style="font-size: 8pt">Contact Info</a>|');
	document.write('<A HREF="giving.html" onClick="DN_shrink()" style="font-size: 8pt">Giving</a>|');
	document.write('<A HREF="Jobs.html" onClick="DN_shrink()" style="font-size: 8pt">Jobs</a>|');
	document.write('</FONT>');
	document.write('</DIV>');
	
  document.write('<DIV');
  	document.write('<tr><td></td></tr>');
	document.write('<tr>');
	document.write('<td>');
	document.write('<a href="http://www.nyspi.org" target="_blank"> <img src="newpics/nyspi.jpg"></a>');	
	document.write('</td>');
		document.write('<td>');
	document.write('<a href="http://columbiapsychiatry.org/" target="_blank"> <img src="newpics/columbia_psych.gif"></a>');	
	document.write('</td>');
	document.write('</tr>');
	document.write('</DIV>');
		
//	document.write('<DIV>');
//	document.write('<FONT color=black size=1>');
//	document.write('<HR width=50% align=center size=1 bgcolor=c1c1c1>');
//	document.write('<tr>');
//	document.write('<td align=center>');
//	document.write('Developed by J. Royal and N. Dong, Copyright &copy; 2006, all rights reserved.');
//	document.write('</td>');
//	document.write('</tr>');
// document.write('</FONT>');
// document.write('</DIV>');	
}

function hideemail(name,user,domain,subject,display) {
  if (display == null || display == '') {
    if (name == '') {
      display = user + '@' + domain;
    } else {
      display = name;
    }
  }

  if (subject != '') {
    subject = '?subject=' + subject;
  }
  document.write('<a href="mailto:' + name + ' <' + user + '@' + domain +
    '>' + subject + '">' + display + '</a>');
}
