<!--

function Position() {
	// Constructor. Set all properties to default values.
	this.position = "";
	this.duties = new Array();
	this.terms = "";
	this.salary = "";
	this.startDate = "";
	this.required = new Array();
	this.preferred = new Array();
}

function Publication() {
	// Constructor. Set all properties to default values.
	this.displayName = "";
	this.fileName = ""
}



function printPositions(positionArray) {

	// Check if there are any positions.
	if (positionArray.length == 0) {
		document.write("<DIV CLASS='normal' ALIGN='Left'><I>No positions available at this time.</I></DIV><BR CLASS='smallBreak'><BR CLASS='largeBreak'>");
	}
	else {
		var i, j;
		
		for (i = 0; i < positionArray.length; i++)
		{
			// Table.
			document.write("<TABLE WIDTH=590 BORDER=3 BORDERCOLOR=#666666 BORDERCOLORLIGHT=#CCCCCC BORDERCOLORDARK=#666666 CELLPADDING=3 CELLSPACING=0>");
			
			// Position.
			document.write("<TR ALIGN='Left' VALIGN='Top'>");
			document.write("<TD WIDTH=30%>");
			document.write("<DIV CLASS='smallNormal' ALIGN='Left'>");
			document.write("<B>Position</B>");
			document.write("</DIV>");
			document.write("</TD><TD>");
			document.write("<DIV CLASS='smallNormal' ALIGN='Left'>");
			document.write(positionArray[i].position);
			document.write("</DIV>");
			document.write("</TD></TR>");
			
			// Typical Duties.
			document.write("<TR ALIGN='Left' VALIGN='Top'>");
			document.write("<TD>");
			document.write("<DIV CLASS='smallNormal' ALIGN='Left'>");
			document.write("<B>Typical Duties</B>");
			document.write("</DIV>");
			document.write("</TD><TD>");
			document.write("<DIV CLASS='smallNormal' ALIGN='Left'>");    			
			for (j = 0; j < positionArray[i].duties.length; j++)
			{	
    			document.write("<LI STYLE='margin-left: 9mm; text-indent: -8mm'>");
      			document.write(positionArray[i].duties[j]);
				document.write("</LI>");
			}
			document.write("</DIV>");
			document.write("</TD></TR>");
			
			// Terms of Employment.
			document.write("<TR ALIGN='Left' VALIGN='Top'>");
			document.write("<TD>");
			document.write("<DIV CLASS='smallNormal' ALIGN='Left'>");
			document.write("<B>Terms of Employment</B>");
			document.write("</DIV>");
			document.write("</TD><TD>");
			document.write("<DIV CLASS='smallNormal' ALIGN='Left'>");
			document.write(positionArray[i].terms);
			document.write("</DIV>");
			document.write("</TD></TR>");
	
			// Salary/Wage.
			document.write("<TR ALIGN='Left' VALIGN='Top'>");
			document.write("<TD>");
			document.write("<DIV CLASS='smallNormal' ALIGN='Left'>");
			document.write("<B>Salary/Wage</B>");
			document.write("</DIV>");
			document.write("</TD><TD>");
			document.write("<DIV CLASS='smallNormal' ALIGN='Left'>");
			document.write(positionArray[i].salary);
			document.write("</DIV>");
			document.write("</TD></TR>");
		
			// Anticipated Start Date
			document.write("<TR ALIGN='Left' VALIGN='Top'>");
			document.write("<TD>");
			document.write("<DIV CLASS='smallNormal' ALIGN='Left'>");
			document.write("<B>Anticipated Start Date</B>");
			document.write("</DIV>");
			document.write("</TD><TD>");
			document.write("<DIV CLASS='smallNormal' ALIGN='Left'>");
			document.write(positionArray[i].startDate);
			document.write("</DIV>");
			document.write("</TD></TR>");

			// Qualifications.
			document.write("<TR ALIGN='Left' VALIGN='Top'>");
			document.write("<TD>");
			document.write("<DIV CLASS='smallNormal' ALIGN='Left'>");
			document.write("<B>Qualifications</B>");
			document.write("</DIV>");
			document.write("</TD><TD>");
			document.write("<DIV CLASS='smallNormal' ALIGN='Left'>");
			// Required Qualifications.
			document.write("<I>Required:</I>");
			for (j = 0; j < positionArray[i].required.length; j++)
			{	
    			document.write("<LI STYLE='margin-left: 9mm; text-indent: -8mm'>");
      			document.write(positionArray[i].required[j]);
				document.write("</LI>");
			}
			document.write("</DIV>");
			document.write("<BR CLASS='smallBreak'>");
      		document.write("<DIV CLASS='smallNormal' ALIGN='Left'>");	
    		// Preferred Qualifications.
			document.write("<I>Preferred:</I>");
    		for (j = 0; j < positionArray[i].preferred.length; j++)
			{	
    			document.write("<LI STYLE='margin-left: 9mm; text-indent: -8mm'>");
      			document.write(positionArray[i].preferred[j]);
				document.write("</LI>");
			}
    		document.write("</DIV>");
			document.write("</TD></TR>");

			// Table end and break.
			document.write("</TABLE>");
			document.write("<BR CLASS='largeBreak'>");
		}
	}
}


function printPublications(annualReports, otherPubs) {
	// Print the title of the annual reports.
	document.write("<DIV CLASS='heading2' ALIGN='Left'>Annual Reports</DIV><BR CLASS='smallBreak'>");

	// Check if there are any annual reports.
	if (annualReports.length == 0) {
		document.write("<DIV CLASS='normal' ALIGN='Left'><I>No annual reports are available at this time.</I></DIV><BR CLASS='smallBreak'><BR CLASS='largeBreak'>");
	}
	else {
		var i;
		document.write("<DIV CLASS='title' ALIGN='Left'>");		

		for (i = 0; i < annualReports.length; i++)
		{
			// Annual Reports.
			document.write("<A HREF='docs/" + annualReports[i].fileName + "' TARGET='_blank'>");
			document.write(annualReports[i].displayName + "</A>");
			if (i != (annualReports.length - 1))
			{
				document.write("<BR CLASS='smallBreak'><BR CLASS='smallBreak'>");
			}			
		}
		
		document.write("</DIV><BR CLASS='largeBreak'>");
	}

	// Print the title of the other publications
	document.write("<DIV CLASS='heading2' ALIGN='Left'>Other Publications</DIV><BR CLASS='smallBreak'>");
	
	if (otherPubs.length == 0) {
		document.write("<I>No other publications are available at this time.</I><BR CLASS='smallBreak'><BR CLASS='largeBreak'>");
	}
	else {
		var i;
		document.write("<DIV CLASS='title' ALIGN='Left'>");		

		for (i = 0; i < otherPubs.length; i++)
		{
			// Annual Reports.
			document.write("<A HREF='docs/" + otherPubs[i].fileName + "' TARGET='_blank'>");
			document.write(otherPubs[i].displayName + "</A>");
			if (i != (otherPubs.length - 1))
			{
				document.write("<BR CLASS='smallBreak'><BR CLASS='smallBreak'>");
			}			
		}
		
		document.write("</DIV><BR CLASS='largeBreak'>");
	}
}

-->

