function  showForm(t) {       			
	var casestudyObj = t;           /*  t is renamed. t defines new layer position.  */
		
	var topObj = document.getElementById('casestudy_event').style;
	
	switch (casestudyObj){     			
		case 'casestudy_close':
  			topObj.zIndex = 0;     				
			break;
		case 'casestudy_open':
			topObj.zIndex = 25;
			break;
	}
}

var returnObj = 'sample1';     				 /*  This variable seeds the function */
function showSample(x) {       				 /*  X is new Top Layer */
	var toTopObj = x;           		 	 /*  X is renamed */
	var curTopObj = returnObj;           	 /*  returnObj is current top layer. returnObj is renamed */
		
	var topObj = document.getElementById(curTopObj).style;      /*   */  
	var newObj = document.getElementById(toTopObj).style;
	
	returnObj = toTopObj;       				 /*  The new top layer will become current top layer upon next iteration */
	
	switch (curTopObj){     				 /*  Current top layer must move first */
		case 'sample1':
  			topObj.zIndex = 10;     				
			toTop(newObj);
		case 'sample2':
  			topObj.zIndex = 9;
			toTop(newObj);
		case 'sample3':
  			topObj.zIndex = 8;
			toTop(newObj);
		case 'sample4':
  			topObj.zIndex = 7;
			toTop(newObj);
		case 'sample5':
  			topObj.zIndex = 6;
			toTop(newObj);
		case 'sample6':
  			topObj.zIndex = 5;
			toTop(newObj);
		case 'sample7':
  			topObj.zIndex = 4;
			toTop(newObj);
		case 'sample8':
  			topObj.zIndex = 3;
			toTop(newObj);
		case 'sample9':
  			topObj.zIndex = 2;
			toTop(newObj);
		case 'sample10':
			topObj.zIndex = 1;
			toTop(newObj);
	}
}

function toTop(x) {
	var newTopObj = x;      /*  renames input variable */

  	newTopObj.zIndex = 20      /*  new top layer moves to layer 20 */
}


function rollout(x) {
	if (document.images) document.images[x].src = imgNrm[x].src;
}

function rollover(name, filename) {
	var fullpath = '../../../images/nav/' + filename;
  document.images[name].src = fullpath;
}

function rollover2(name, filename) {
	var fullpath = '../images/nav/' + filename;
  document.images[name].src = fullpath;
}

function rollover1(name, filename) {
	var fullpath = 'images/nav/' + filename;
  document.images[name].src = fullpath;
}
