// JavaScript Document
var careerList = new Array();
var content;

function init(){
	content= getById("content");
	for (var i=0; i< careerList.length; i++){
		var joblisting, jobtitle, jobtable, tbody,tr,td,joblink;
		joblisting = document.createElement("div");
		joblisting.className = "joblisting";
		jobtitle = htmlTag("div",careerList[i][0]);
		jobtitle.className="title";
		joblisting.appendChild(jobtitle);
		
		jobtable = document.createElement("table");
		tbody = document.createElement("tbody");
		
		tr = document.createElement("tr");
		td = htmlTag("td","Job Location:");
		td.className = "label"
		tr.appendChild(td);
		td = htmlTag("td",careerList[i][1]);
		tr.appendChild(td);
		tbody.appendChild(tr);
		
		tr = document.createElement("tr");
		td = htmlTag("td","Job Requirements:");
		td.className = "label"
		tr.appendChild(td);
		td = htmlTag("td",careerList[i][2]);
		tr.appendChild(td);
		tbody.appendChild(tr);
		jobtable.appendChild(tbody);
		joblisting.appendChild(jobtable);
		joblink = htmlTag("div","Please send electronic resumes or enquiries for this position to <a href='mailto:"+careerList[i][3]+"'>"+careerList[i][3]+"</a>");
		joblisting.appendChild(joblink);
		
		content.appendChild(joblisting);
	}
}
