// Staf*Tek : side_links2
// Exactly the same as side_links except for absolute images and links

function AddToList(list) {
	// 'start' stores the original value, since i need to increment
	// stepping through the argument list and adding each one to the array...
	var start = list.length-1;
	for (var i = start+1; i < start + AddToList.arguments.length; i++) {
		list[i] = AddToList.arguments[i-start];
	}
}


function DoList(list) {
	for (var i = 0; i < list.length; i++) {
		addentry(list[i]);
		}
	return true;
}


function addentry(tag) {
// Build the html to write to the page
var	html = '\n\n 			<!-- Link ' + tag + ' -->\n';
	html += '			<TR><TD VALIGN=top><IMG name="red_arrow_' + tag + '" src="images/red_arrow.jpg" width=19 height=25></TD>';
	html += "			<TD VALIGN=top class=\"sidelink\"><A onmouseover='changeImages(\"red_arrow_" + tag + "\",\"images/red_arrow-over.jpg\"); changeStatus(\"" + altt[tag] + "\"); return true;'\n";
	html += "				 onmouseout ='changeImages(\"red_arrow_" + tag + "\", \"images/red_arrow.jpg\"); changeStatus(\"\"); return true;' \n";
	html += "				 href='" + url[tag] + "'>\n";
	html += "				 " + altt[tag] + "\n";
	//html += "				<img src='images/" + imageURL[tag] + "' width='164' alt='" + altt[tag] + "' border='0'>\n";
	html += "				</A><BR><IMG src='images/spacer.gif' width=164 height=5></TD>\n\n";
    document.write(html);
}


// Build URLs
var url = new Object();		// URL for the link
var imageURL = new Object();// Image file name of the link
var altt = new Object();	// Alternative Text / Stat Text

// BENEFITS
url["BENEFITS"]   = "benefits.shtm";
altt["BENEFITS"]   = "Employee Benefits";
imageURL["BENEFITS"] = "link_employee_benefits.jpg";

// PROFILE
url["PROFILE"]   = "profile.shtm";
altt["PROFILE"]   = "Business Profile";
imageURL["PROFILE"] = "link_business_profile.jpg";

// ClIENT_COMPANIES
url["ClIENT_COMPANIES"]   = "client_companies.shtm";
altt["ClIENT_COMPANIES"]   = "Client Companies";
imageURL["ClIENT_COMPANIES"] = "link_client_companies.jpg";

// GET_SMART_ONLINE
url["GET_SMART_ONLINE"]   = "get_smart_online.shtm";
altt["GET_SMART_ONLINE"]   = "Get Smart Online";
imageURL["GET_SMART_ONLINE"] = "link_get_smart_online.jpg";

// LOCATIONS
url["LOCATIONS"]   = "locations.shtm";
altt["LOCATIONS"]   = "Staf*Tek Locations";
imageURL["LOCATIONS"] = "link_locations.jpg";

// MEDICAL
url["MEDICAL"]   = "employer.shtm";
altt["MEDICAL"]   = "Do You Need Medical Personnel?";
imageURL["MEDICAL"] = "link_need_medical_personnel.jpg";

// TECHNICAL
url["TECHNICAL"]   = "employer.shtm";
altt["TECHNICAL"]   = "Do You Need Technical Personnel?";
imageURL["TECHNICAL"] = "link_need_technical_personn.jpg";

// TEACHING
url["TEACHING"]   = "employer.shtm";
altt["TEACHING"]   = "Do You Need Teaching Personnel?";
imageURL["TEACHING"] = "link_need_teaching_personn.jpg";

// ABOUT_STAFTEACH
url["ABOUT_STAFTEACH"]   = "about_stafteach.shtm";
altt["ABOUT_STAFTEACH"]   = "About Staf*Teach";
imageURL["ABOUT_STAFTEACH"] = "link_about_stafteach.jpg";

// TEAM
url["TEAM"]   = "team.shtm";
altt["TEAM"]   = "Our Team";
imageURL["TEAM"] = "link_our_team.jpg";

// VISION
url["VISION"]   = "mvv.shtm";
altt["VISION"]   = "Our Vision, Mission and Values";
imageURL["VISION"] = "link_our_vision.jpg";

// NEWS
url["NEWS"]   = "news_articles.shtm";
altt["NEWS"]   = "News Articles";
imageURL["NEWS"] = "link_news_articles.jpg";

// EMPLOYER
url["EMPLOYER"]   = "employer.shtm";
altt["EMPLOYER"]   = "Employer Job Form";
imageURL["EMPLOYER"] = "link_employer_job_form.jpg";

// WORD_OF_THE_DAY
url["WORD_OF_THE_DAY"]   = "word_of_the_day.shtm";
altt["WORD_OF_THE_DAY"]   = "Word of the Day";
imageURL["WORD_OF_THE_DAY"] = "link_word_of_the_day.jpg";

// TULSA
url["TULSA"]   = "about_tulsa.shtm";
altt["TULSA"]   = "About Tulsa";
imageURL["TULSA"] = "link_about_tulsa.jpg";

// DALLAS
url["DALLAS"]   = "about_dallas.shtm";
altt["DALLAS"]   = "About Dallas";
imageURL["DALLAS"] = "link_about_dallas.jpg";

// BROCHURE
url["BROCHURE"]   = "brochure.html";
altt["BROCHURE"]   = "Staf*Tek Brochure";
imageURL["BROCHURE"] = "link_brochure.jpg";

// PARENT COMPANY
url["PARENT"]   = "http://www.stjosephinc.com";
altt["PARENT"]   = "Parent Company";
imageURL["PARENT"] = "link_brochure.jpg";


// Add links
//	var side_links = new Array();	// Create array of links
//	AddToList(side_links,"GET_SMART_ONLINE","BENEFITS","MEDICAL");
//	AddToList(side_links,"TECHNICAL","TEACHING","VISION","PROFILE","TEAM","WORD_OF_THE_DAY","ClIENT_COMPANIES","LOCATIONS");
//	DoList(side_links);	// Call function to display links
