<!--
// custom object constructor
function mySUrecord(filename, fullname, shortdescription, longdescription){
	this.filename = filename;
	this.fullname = fullname;
	this.shortdescription = shortdescription;
	this.longdescription = longdescription;
}

// set up mySU: each group of 10 records makes a set
var mySU = new Array();

mySU[0] = new mySUrecord("boris","Victor Boris","embodies Susquehanna University's maxim of achieve, lead and serve","To ensure that the endowment will grow well into the future, Vic made Susquehanna the beneficiary of his retirement plans.");



// choose set
var mySUintNumberOfSets = 1;
var mySUintRandSet = Math.round((Math.random() * mySUintNumberOfSets) - 0.5);
var mySUintStart = 0;
var mySUintEnd = 10;
if (mySUintRandSet > 0){
	mySUintStart = mySUintStart + 10;
	mySUintEnd = mySUintEnd + 10;
}

// choose single
var mySUintRandSingle = Math.round((Math.random() * mySU.length) - 0.5);

// function to load mySU set
function LoadMySU(){
	for (i=mySUintStart; i<=mySUintEnd; i++){
		document.writeln("<li><a class=\"clearfix\" href=\"javascript:OpenMySU('"+mySU[i].filename+"')\">");
		document.writeln("<img src=\"http://www.susqu.edu/images/mysu/photos/"+mySU[i].filename+"_a.jpg\" alt=\"\" />");
		document.writeln("<span>");
		document.writeln("<strong>"+mySU[i].fullname+"</strong>");
		document.writeln(mySU[i].shortdescription);
		document.writeln("</span>");
		document.writeln("</a></li>");
	}
}

// function to load a single, random mySU profile
function LoadMySUSingle(){
	document.writeln("<div class=\"module profile\">");
	document.writeln("	<img src=\"http://www.legacy.vg/clients/166/"+mySU[mySUintRandSingle].filename+".jpg\" alt=\"\" />");
	//document.writeln("	<img src=\"http://www.susqu.edu/images/interim/profiles/melanieHolmesColor.jpg\" alt=\"Portrait of Laura Gausmann\" />");
	document.writeln("	<img src=\"http://www.legacy.vg/clients/166/"+mySU[mySUintRandSingle].filename+".jpg\" alt=\"Portrait of "+mySU[mySUintRandSingle].fullname+"\" />");
	document.writeln("	<span class=\"arrow\"></span><span class=\"handle\"></span>");
	document.writeln("	<div class=\"profileInside\">");
	//document.writeln("		<h2>Laura Gausmann<br />Class of 2011</h2>");
	document.writeln("		<h2>"+mySU[mySUintRandSingle].fullname.replace(" '","<br />Class of 20")+"</h2>");
	//document.writeln("		<strong class=\"desc\">Political Science Major | York, Pa.</strong>");
	document.writeln("		<strong class=\"desc\">"+mySU[mySUintRandSingle].shortdescription.replace(" | "," Major<br />")+"</strong>");
	document.writeln("		<p>"+mySU[mySUintRandSingle].longdescription+"</p>");
	document.writeln("		<a class=\"explore\" href=\"http://www.legacy.vg/166/giving/3.html\">More &raquo;</a>");
	document.writeln("	</div><!--// end inside //-->");
	document.writeln("	<a class=\"module button susquepedia\">&nbsp;</a>");
	document.writeln("</div><!--// end module profile //-->");
}

// function to open mySU window
function OpenMySU(name){
	openstaticwindow("http://www.susqu.edu/multimedia/mysu/"+name+".htm",550,700,"_MySU");
}

// function to open video profiles window
function OpenProfiles(){
	openstaticwindow("http://stream.susqu.edu/e/http_delivery/Profiles/profilesinterim.htm",600,800,"_Profiles");
}
//-->