// JavaScript Document

  function toggle_it(itemID)
  {
      // Toggle visibility between none and inline
      if ((document.getElementById(itemID).style.display == 'none'))
      {
        document.getElementById(itemID).style.display = 'inline';
		document.getElementById(itemID).style.padding = '20px';
      } else {
        document.getElementById(itemID).style.display = 'none';
      }
  }
  
  
  
  

function displayRow()
{
	var row = document.getElementById("captionRow");
	
	if (row.style.display == '') 
	{
		row.style.display = 'none';
	}
	else 
	{
		row.style.display = '';
	}
}
  
  
  

function delayer(){
    window.location = "http://www.lagrange.edu/"
}







/*function poorman_toggle(id)
{
	var tr = document.getElementById(id);
	if (tr==null) { return; }
	var bExpand = tr.style.display == '';
	tr.style.display = (bExpand ? 'none' : '');
}
function poorman_changeimage(id, sMinus, sPlus)
{
	var img = document.getElementById(id);
	if (img!=null)
	{
	    var bExpand = img.src.indexOf(sPlus) >= 0;
		if (!bExpand)
			img.src = sPlus;
		else
			img.src = sMinus;
	}
}*/















/*function Toggle_trGrpHeader2()
{
    poorman_changeimage('trGrpHeader2_Img', 'images/minus.gif', 'images/plus.gif');
    poorman_toggle('row1');
    poorman_toggle('row2');
    poorman_toggle('row3');
}*/











/*function Toggle_trGrpHeader1()
{
    poorman_changeimage('trGrpHeader1_Img', 'images/minus.gif', 'images/plus.gif');
    poorman_toggle('trRow1');
}
*/








function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}






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 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) { //v4.01
  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);
  if(!x && d.getElementById) x=d.getElementById(n); 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 editParam(divID) {
	document.getElementById('param_' + divID).style.display = (document.getElementById('param_' + divID).style.display =="block" ? "none" : "block");
	document.getElementById('option_' + divID).style.display = (document.getElementById('param_' + divID).style.display =="block" ? "none" : "block");
	document.getElementById('saveBtn').style.display = "block";
}