/*================================================
FUNCTIONS FOR WRITING STUDENT ARTICLES TO THE PAGE
==================================================*/

function writeSArticle1()
{
	var a = document.getElementById('article1').innerHTML;
	var pArray = a.split(/<\/p>/i);
	
	document.write("<div class='holder'>" + pArray[1] + "<div class='more'>" + 
		"<strong class='show'>continue reading this spotlight ...</strong>" + 
		"<strong class='hide'>... collapse this spotlight</strong><br />");
	
	for(var x=2; x<pArray.length; x++)
	{
		document.write(pArray[x]);
	}
	
	document.write("<\/div><\/div>");
	
	document.getElementById('article1').style.display = 'none';
}

function writeSArticle2()
{
	var a = document.getElementById('article2').innerHTML;
	var pArray = a.split(/<\/p>/i);
	
	document.write("<div class='holder'>" + pArray[1] + "<div class='more'>" + 
		"<strong class='show'>continue reading this spotlight ...</strong>" + 
		"<strong class='hide'>... collapse this spotlight</strong><br />");
	
	for(var x=2; x<pArray.length; x++)
	{
		document.write(pArray[x]);
	}
	
	document.write("<\/div>");
	
	document.write("<\/div>");
	
	document.getElementById('article2').style.display = 'none';
}

function writeSArticle3()
{
	var a = document.getElementById('article3').innerHTML;
	var pArray = a.split(/<\/p>/i);
	
	document.write("<div class='holder'>" + pArray[1] + "<div class='more'>" + 
		"<strong class='show'>continue reading this spotlight ...</strong>" + 
		"<strong class='hide'>... collapse this spotlight</strong><br />");
	
	for(var x=2; x<pArray.length; x++)
	{
		document.write(pArray[x]);
	}
	
	document.write("<\/div>");
	
	document.write("<\/div>");
	
	document.getElementById('article3').style.display = 'none';
}


function writeSArticle4()
{
	var a = document.getElementById('article4').innerHTML;
	var pArray = a.split(/<\/p>/i);
	
	document.write("<div class='holder'>" + pArray[1] + "<div class='more'>" + 
		"<strong class='show'>continue reading this spotlight ...</strong>" + 
		"<strong class='hide'>... collapse this spotlight</strong><br />");
	
	for(var x=2; x<pArray.length; x++)
	{
		document.write(pArray[x]);
	}
	
	document.write("<\/div>");
	
	document.write("<\/div>");
	
	document.getElementById('article4').style.display = 'none';
}

function writeSArticle5()
{
	var a = document.getElementById('article5').innerHTML;
	var pArray = a.split(/<\/p>/i);
	
	document.write("<div class='holder'>" + pArray[1] + "<div class='more'>" + 
		"<strong class='show'>continue reading this spotlight ...</strong>" + 
		"<strong class='hide'>... collapse this spotlight</strong><br />");
	
	for(var x=2; x<pArray.length; x++)
	{
		document.write(pArray[x]);
	}
	
	document.write("<\/div>");
	
	document.write("<\/div>");
	
	document.getElementById('article5').style.display = 'none';
}

function writeSArticle6()
{
	var a = document.getElementById('article6').innerHTML;
	var pArray = a.split(/<\/p>/i);
	
	document.write("<div class='holder'>" + pArray[1] + "<div class='more'>" + 
		"<strong class='show'>continue reading this spotlight ...</strong>" + 
		"<strong class='hide'>... collapse this spotlight</strong><br />");
	
	for(var x=2; x<pArray.length; x++)
	{
		document.write(pArray[x]);
	}
	
	document.write("<\/div>");
	
	document.write("<\/div>");
	
	document.getElementById('article6').style.display = 'none';
}

/*===============================================
FUNCTIONS FOR WRITING ALUMNI ARTICLES TO THE PAGE
=================================================*/

function writeAArticle1()
{
	var a = document.getElementById('article7').innerHTML;
	var pArray = a.split(/<\/p>/i);
	
	document.write("<div class='holder'>" + pArray[1] + "<div class='more'>" + 
		"<strong class='show'>continue reading this spotlight ...</strong>" + 
		"<strong class='hide'>... collapse this spotlight</strong><br />");
	
	for(var x=2; x<pArray.length; x++)
	{
		document.write(pArray[x]);
	}
	
	document.write("<\/div><\/div>");
	
	document.getElementById('article7').style.display = 'none';
}

function writeAArticle2()
{
	var a = document.getElementById('article8').innerHTML;
	var pArray = a.split(/<\/p>/i);
	
	document.write("<div class='holder'>" + pArray[1] + "<div class='more'>" + 
		"<strong class='show'>continue reading this spotlight ...</strong>" + 
		"<strong class='hide'>... collapse this spotlight</strong><br />");
	
	for(var x=2; x<pArray.length; x++)
	{
		document.write(pArray[x]);
	}
	
	document.write("<\/div>");
	
	document.write("<\/div>");
	
	document.getElementById('article8').style.display = 'none';
}

function writeAArticle3()
{
	var a = document.getElementById('article9').innerHTML;
	var pArray = a.split(/<\/p>/i);
	
	document.write("<div class='holder'>" + pArray[1] + "<div class='more'>" + 
		"<strong class='show'>continue reading this spotlight ...</strong>" + 
		"<strong class='hide'>... collapse this spotlight</strong><br />");
	
	for(var x=2; x<pArray.length; x++)
	{
		document.write(pArray[x]);
	}
	
	document.write("<\/div>");
	
	document.write("<\/div>");
	
	document.getElementById('article9').style.display = 'none';
}


function writeAArticle4()
{
	var a = document.getElementById('article10').innerHTML;
	var pArray = a.split(/<\/p>/i);
	
	document.write("<div class='holder'>" + pArray[1] + "<div class='more'>" + 
		"<strong class='show'>continue reading this spotlight ...</strong>" + 
		"<strong class='hide'>... collapse this spotlight</strong><br />");
	
	for(var x=2; x<pArray.length; x++)
	{
		document.write(pArray[x]);
	}
	
	document.write("<\/div>");
	
	document.write("<\/div>");
	
	document.getElementById('article10').style.display = 'none';
}

function writeAArticle5()
{
	var a = document.getElementById('article11').innerHTML;
	var pArray = a.split(/<\/p>/i);
	
	document.write("<div class='holder'>" + pArray[1] + "<div class='more'>" + 
		"<strong class='show'>continue reading this spotlight ...</strong>" + 
		"<strong class='hide'>... collapse this spotlight</strong><br />");
	
	for(var x=2; x<pArray.length; x++)
	{
		document.write(pArray[x]);
	}
	
	document.write("<\/div>");
	
	document.write("<\/div>");
	
	document.getElementById('article11').style.display = 'none';
}

function writeAArticle6()
{
	var a = document.getElementById('article12').innerHTML;
	var pArray = a.split(/<\/p>/i);
	
	document.write("<div class='holder'>" + pArray[1] + "<div class='more'>" + 
		"<strong class='show'>continue reading this spotlight ...</strong>" + 
		"<strong class='hide'>... collapse this spotlight</strong><br />");
	
	for(var x=2; x<pArray.length; x++)
	{
		document.write(pArray[x]);
	}
	
	document.write("<\/div>");
	
	document.write("<\/div>");
	
	document.getElementById('article12').style.display = 'none';
}

/*================================================
FUNCTIONS FOR WRITING FACULTY ARTICLES TO THE PAGE
==================================================*/

function writeFacArticle1()
{
	var a = document.getElementById('article13').innerHTML;
	var pArray = a.split(/<\/p>/i);
	
	document.write("<div class='holder'>" + pArray[1] + "<div class='more'>" + 
		"<strong class='show'>continue reading this spotlight ...</strong>" + 
		"<strong class='hide'>... collapse this spotlight</strong><br />");
	
	for(var x=2; x<pArray.length; x++)
	{
		document.write(pArray[x]);
	}
	
	document.write("<\/div><\/div>");
	
	document.getElementById('article13').style.display = 'none';
}

function writeFacArticle2()
{
	var a = document.getElementById('article14').innerHTML;
	var pArray = a.split(/<\/p>/i);
	
	document.write("<div class='holder'>" + pArray[1] + "<div class='more'>" + 
		"<strong class='show'>continue reading this spotlight ...</strong>" + 
		"<strong class='hide'>... collapse this spotlight</strong><br />");
	
	for(var x=2; x<pArray.length; x++)
	{
		document.write(pArray[x]);
	}
	
	document.write("<\/div>");
	
	document.write("<\/div>");
	
	document.getElementById('article14').style.display = 'none';
}

function writeFacArticle3()
{
	var a = document.getElementById('article15').innerHTML;
	var pArray = a.split(/<\/p>/i);
	
	document.write("<div class='holder'>" + pArray[1] + "<div class='more'>" + 
		"<strong class='show'>continue reading this spotlight ...</strong>" + 
		"<strong class='hide'>... collapse this spotlight</strong><br />");
	
	for(var x=2; x<pArray.length; x++)
	{
		document.write(pArray[x]);
	}
	
	document.write("<\/div>");
	
	document.write("<\/div>");
	
	document.getElementById('article15').style.display = 'none';
}


function writeFacArticle4()
{
	var a = document.getElementById('article16').innerHTML;
	var pArray = a.split(/<\/p>/i);
	
	document.write("<div class='holder'>" + pArray[1] + "<div class='more'>" + 
		"<strong class='show'>continue reading this spotlight ...</strong>" + 
		"<strong class='hide'>... collapse this spotlight</strong><br />");
	
	for(var x=2; x<pArray.length; x++)
	{
		document.write(pArray[x]);
	}
	
	document.write("<\/div>");
	
	document.write("<\/div>");
	
	document.getElementById('article16').style.display = 'none';
}

function writeFacArticle5()
{
	var a = document.getElementById('article17').innerHTML;
	var pArray = a.split(/<\/p>/i);
	
	document.write("<div class='holder'>" + pArray[1] + "<div class='more'>" + 
		"<strong class='show'>continue reading this spotlight ...</strong>" + 
		"<strong class='hide'>... collapse this spotlight</strong><br />");
	
	for(var x=2; x<pArray.length; x++)
	{
		document.write(pArray[x]);
	}
	
	document.write("<\/div>");
	
	document.write("<\/div>");
	
	document.getElementById('article17').style.display = 'none';
}

function writeFacArticle6()
{
	var a = document.getElementById('article18').innerHTML;
	var pArray = a.split(/<\/p>/i);
	
	document.write("<div class='holder'>" + pArray[1] + "<div class='more'>" + 
		"<strong class='show'>continue reading this spotlight ...</strong>" + 
		"<strong class='hide'>... collapse this spotlight</strong><br />");
	
	for(var x=2; x<pArray.length; x++)
	{
		document.write(pArray[x]);
	}
	
	document.write("<\/div>");
	
	document.write("<\/div>");
	
	document.getElementById('article18').style.display = 'none';
}

function writeFacArticle7()
{
	var a = document.getElementById('article19').innerHTML;
	var pArray = a.split(/<\/p>/i);
	
	document.write("<div class='holder'>" + pArray[1] + "<div class='more'>" + 
		"<strong class='show'>continue reading this spotlight ...</strong>" + 
		"<strong class='hide'>... collapse this spotlight</strong><br />");
	
	for(var x=2; x<pArray.length; x++)
	{
		document.write(pArray[x]);
	}
	
	document.write("<\/div>");
	
	document.write("<\/div>");
	
	document.getElementById('article19').style.display = 'none';
}


/* ================================================================ 
This copyright notice must be untouched at all times.

The original version of this script and the associated (x)html
is available at http://www.stunicholls.com/various/more.html
Copyright (c) 2005-2007 Stu Nicholls. All rights reserved.
This script and the associated (x)html may be modified in any 
way to fit your requirements.
=================================================================== */

function clickMenu(menu,element,cname) {

	var getEls = document.getElementById(menu).getElementsByTagName(element);
	
	for (var i=0; i<getEls.length; i++) {
			getEls[i].onclick=function() {
			if ((this.className.indexOf(cname))!=-1)
			{
			if ((this.className.indexOf('click'))!=-1) {
				this.className=this.className.replace("click", "");;
				}
				else {
				this.className+=" click";
				}
			}
		}
	}
}