//alert('includes.js loaded');

/* ------------------------------------------------   Magic Vars   ------------------------------------------------ */
var globalPath = 'http://dfcm.utah.gov/' //this is the path to root that we can use for building common elements

var uiiOverride = false; //false allows the uii banner to load. true turns it off. used with the loadUII() function below

var bannerSourceXML = globalPath + 'common/randomBanner/banners.xml'; // the source for the xml banners. this is used with loadBanner() below.

var theDate = new Date();
var currentYear = theDate.getYear();
if (currentYear < 2000) {
	currentYear += 1900;
}
//alert('currentYear = ' + currentYear);


var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");  //google analytics stuff
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); 



/* ------------------------------------------------   Menu Arrays   ------------------------------------------------ */
//in the arrays below, the first set of quotes is the url, the second is the graphical button, the third is the alt attribute and title value.
var mainNavArray = new Array();
	mainNavArray[0] = new Array('AboutUs/index.html', 								'imageHere', 'About Us');
	mainNavArray[1] = new Array('currentProj/index.html', 							'imageHere', 'Solicitations/RFP\'s');
	mainNavArray[2] = new Array('BldgOHP/index.html', 								'imageHere', 'Building Official');
	mainNavArray[3] = new Array('http://dfcm.utah.gov/downloads/FaciltyUse.pdf', 	'imageHere', 'Facilities Use');
	mainNavArray[4] = new Array('StdDocs/index.html', 								'imageHere', 'Standard Documents');
	mainNavArray[5] = new Array('Rpts/index.html', 									'imageHere', 'Reports');
	mainNavArray[6] = new Array('UtSBldgBoard/index.html', 							'imageHere', 'Building Board');
	mainNavArray[7] = new Array('contactUs/index.html', 							'imageHere', 'Contact Us');
	//mainNavArray[8] = new Array('', 'imageHere', '');
	//mainNavArray[9] = new Array('emp/index.html', 'imageHere', '');

var secondaryNavArray = new Array();
	secondaryNavArray[0] =  new Array('http://das.utah.gov/', 						'imageHere', 'DAS Home');
	secondaryNavArray[1] =  new Array('http://dfcm.utah.gov/', 						'imageHere', 'DFCM Home');
	secondaryNavArray[2] =  new Array('http://dfcm.utah.gov/AboutUs/DFCMServicePlan.pdf', 						'imageHere', 'Service Plan');
	secondaryNavArray[3] =  new Array('constManage/index.html', 					'imageHere', 'Construction Management ');
	secondaryNavArray[4] =  new Array('facilManage/index.html', 					'imageHere', 'Facilities <br>Management ');
	secondaryNavArray[5] =  new Array('realestate/index.html', 						'imageHere', 'Real Estate');
	secondaryNavArray[6] =  new Array('currentProj/index.html', 					'imageHere', 'Current Projects');
	secondaryNavArray[7] =  new Array('energyEff/index.html', 						'imageHere', 'Energy <br>Efficiency Program');
	secondaryNavArray[8] =  new Array('capImpDevPrcs/index.html',					'imageHere', 'Capital Improvement/<br>Development Process');
	secondaryNavArray[9] =  new Array('legalC/index.html', 							'imageHere', 'Legal Counsel');
	//secondaryNavArray[9] =  new Array('', 'imageHere', '');


var divisionNavArray = new Array();
	divisionNavArray[0] =  new Array('http://das.utah.gov/', 				'imageHere', 'DAS');
	divisionNavArray[1] =  new Array('http://archives.utah.gov', 			'imageHere', 'Archives');
	divisionNavArray[2] =  new Array('http://debt.utah.gov', 				'imageHere', 'Debt');
	divisionNavArray[3] =  new Array('http://dfcm.utah.gov', 				'imageHere', 'Facilities');
	divisionNavArray[4] =  new Array('http://finance.utah.gov', 			'imageHere', 'Finance');
	divisionNavArray[5] =  new Array('http://fleet.utah.gov', 				'imageHere', 'Fleet');
	divisionNavArray[6] =  new Array('http://purchasing.utah.gov', 			'imageHere', 'Purchasing');
	divisionNavArray[7] =  new Array('http://das.utah.gov/pd/index.html', 	'imageHere', 'Parental Defense');
	divisionNavArray[8] =  new Array('http://risk.utah.gov', 				'imageHere', 'Risk');
	divisionNavArray[9] =  new Array('http://rules.utah.gov', 				'imageHere', 'Rules');
	divisionNavArray[10] = new Array('http://untf.utah.gov', 				'imageHere', 'Navajo Royalties Holding Fund');

var sampleNavArray = new Array();
	sampleNavArray[0] = new Array('', 'imageHere', 'sampleLink00');
	sampleNavArray[1] = new Array('', 'imageHere', 'sampleLink01');
	sampleNavArray[2] = new Array('', 'imageHere', 'sampleLink02');
	sampleNavArray[3] = new Array('', 'imageHere', 'sampleLink03');
	sampleNavArray[4] = new Array('', 'imageHere', 'sampleLink04');
	sampleNavArray[5] = new Array('', 'imageHere', 'sampleLink05');

var footerNavArray = new Array();
	footerNavArray[0] =  new Array('', 'imageHere', 'Site Map');
	footerNavArray[1] =  new Array('', 'imageHere', 'Contact Us');
	footerNavArray[2] =  new Array('', 'imageHere', 'Public Parking');

var uiiFooterNavArray = new Array();
	uiiFooterNavArray[0] =  new Array('http://www.utah.gov/', 					'imageHere', 'Utah.gov Home');
	uiiFooterNavArray[1] =  new Array('http://www.utah.gov/disclaimer.html', 	'imageHere', 'Utah.gov Terms of Use');
	uiiFooterNavArray[2] =  new Array('http://www.utah.gov/privacypolicy.html', 'imageHere', 'Utah.gov Privacy Policy');
	uiiFooterNavArray[3] =  new Array('http://www.utah.gov/accessibility.html', 'imageHere', 'Utah.gov Accessibility Policy');
	
/* ---------------  MAW mods section  --------------- */	

var cMsecondaryNavArray = new Array();
	cMsecondaryNavArray[0] =  new Array('http://das.utah.gov/', 				'imageHere', 'DAS Home');
	cMsecondaryNavArray[1] =  new Array('http://dfcm.utah.gov/', 				'imageHere', 'DFCM Home');
	cMsecondaryNavArray[2] =  new Array('constManage/',							'imageHere', 'About Construction Management');
	cMsecondaryNavArray[3] =  new Array('constManage/roofingNpaving.html', 		'imageHere', 'Roofing & Paving');
	cMsecondaryNavArray[4] =  new Array('StdDocs/index.html', 					'imageHere', 'Standard Construction Documents');
	cMsecondaryNavArray[5] =  new Array('energyEff/index.html', 				'imageHere', 'Energy <br>Efficiency Program');
	cMsecondaryNavArray[6] =  new Array('BldgOHP/index.html', 					'imageHere', 'Building Official');
	cMsecondaryNavArray[7] =  new Array('currentProj/index.html', 				'imageHere', 'Current Projects');
	cMsecondaryNavArray[8] =  new Array('contactUs/index.html#construction',	'imageHere', 'Construction Contacts');
	//cMsecondaryNavArray[9] =  new Array('', 'imageHere', '');
	
var fclMsecondaryNavArray = new Array();
	fclMsecondaryNavArray[0] =  new Array('http://das.utah.gov/', 						'imageHere', 'DAS Home');
	fclMsecondaryNavArray[1] =  new Array('http://dfcm.utah.gov/', 						'imageHere', 'DFCM Home');
	fclMsecondaryNavArray[2] =  new Array('facilManage/index.html', 					'imageHere', 'About FM');
	fclMsecondaryNavArray[3] =  new Array('StdDocs/index.html', 						'imageHere', 'FM Standards & Publications');
	fclMsecondaryNavArray[4] =  new Array('facilManage/stateWideFclFocus.html', 		'imageHere', 'Statewide Facility Focus');
	fclMsecondaryNavArray[5] =  new Array('Rpts/index.html', 							'imageHere', 'FM Reports');
	fclMsecondaryNavArray[6] =  new Array('facilManage/maintenanceGroupes.html', 		'imageHere', 'Maintenance Groups');
	fclMsecondaryNavArray[7] =  new Array('facilManage/FclMgentTrainingPgms.html', 		'imageHere', 'FM Training Programs');
	fclMsecondaryNavArray[8] =  new Array('facilManage/FclMgentAtomteNBldgCtls.html',	'imageHere', 'FM Automation & Building Controls');
	fclMsecondaryNavArray[9] =  new Array('contactUs/index.html',						'imageHere', 'FM Contacts');
	
var realestateSecondaryNavArray = new Array();
	realestateSecondaryNavArray[0] =  new Array('http://das.utah.gov/', 						'imageHere', 'DAS Home');
	realestateSecondaryNavArray[1] =  new Array('http://dfcm.utah.gov/', 						'imageHere', 'DFCM Home');
	realestateSecondaryNavArray[2] =  new Array('http://dfcm.utah.gov/re_about.php',			'imageHere', 'Real Estate <br>Contacts & RFPs');
	realestateSecondaryNavArray[3] =  new Array('StdDocs/index.html', 							'imageHere', 'Standard Documents');
	
	
var currentPsecondaryNavArray = new Array();
	currentPsecondaryNavArray[0] =  new Array('http://das.utah.gov/', 							'imageHere', 'DAS Home');
	currentPsecondaryNavArray[1] =  new Array('http://dfcm.utah.gov/', 							'imageHere', 'DFCM Home');
	currentPsecondaryNavArray[2] =  new Array('http://dfcm.utah.gov/view_all.php', 				'imageHere', 'All Projects');
	currentPsecondaryNavArray[3] =  new Array('http://dfcm.utah.gov/view_architect.php', 		'imageHere', 'Architect/Engineering');
	currentPsecondaryNavArray[4] =  new Array('http://dfcm.utah.gov/view_const_projects.php', 	'imageHere', 'Construction Projects');
	currentPsecondaryNavArray[5] =  new Array('http://dfcm.utah.gov/view_design.php', 			'imageHere', 'Design/Build');
	currentPsecondaryNavArray[6] =  new Array('http://dfcm.utah.gov/view_cmgc.php', 			'imageHere', 'CM/GC');
	currentPsecondaryNavArray[7] =  new Array('http://dfcm.utah.gov/view_commisioning.php', 	'imageHere', 'Commissioning');
	currentPsecondaryNavArray[8] =  new Array('http://dfcm.utah.gov/view_insepctions.php', 		'imageHere', 'Inspections & Testing');
	currentPsecondaryNavArray[9] =  new Array('http://dfcm.utah.gov/re_about.php', 				'imageHere', 'Real Estate');	
	currentPsecondaryNavArray[10] =  new Array('http://dfcm.utah.gov/search.php', 				'imageHere', 'Search Projects');	
	
var eePgmsecondaryNavArray = new Array();
	eePgmsecondaryNavArray[0] =  new Array('http://das.utah.gov/', 					'imageHere', 'DAS Home');
	eePgmsecondaryNavArray[1] =  new Array('http://dfcm.utah.gov/', 				'imageHere', 'DFCM Home');
	eePgmsecondaryNavArray[2] =  new Array('energyEff/index.html', 					'imageHere', 'About SBEEP');
	eePgmsecondaryNavArray[3] =  new Array('energyEff/energyPerfTrack.html', 		'imageHere', 'Energy Performance <br>Tracking (Energy Star)<br>Portfolio');
	eePgmsecondaryNavArray[4] =  new Array('energyEff/energyDesignStand.html', 		'imageHere', 'Energy Design Standards');
	eePgmsecondaryNavArray[5] =  new Array('energyEff/energyEffProducts.html', 		'imageHere', 'Energy Efficient Products');
	eePgmsecondaryNavArray[6] =  new Array('energyEff/highPerfBldgs.html', 			'imageHere', 'High Performance Buildings');
	eePgmsecondaryNavArray[7] =  new Array('energyEff/lightingPrjcts.html', 		'imageHere', 'Lighting Projects');
	eePgmsecondaryNavArray[8] =  new Array('energyEff/recomissionPgm.html', 		'imageHere', 'Recommissioning Program');
	eePgmsecondaryNavArray[9] =  new Array('energyEff/loanPgmESCO.html', 			'imageHere', 'Loan Program ESCO\'s');
	eePgmsecondaryNavArray[10] =  new Array('energyEff/fiscalYearRpt.html', 		'imageHere', 'Fiscal Year Reports');
	eePgmsecondaryNavArray[11] =  new Array('contactUs/index.html', 				'imageHere', 'Energy Efficiency Contacts');
	
var capImpsecondaryNavArray = new Array();
	capImpsecondaryNavArray[0] =  new Array('http://das.utah.gov/', 				'imageHere', 'DAS Home');
	capImpsecondaryNavArray[1] =  new Array('http://dfcm.utah.gov/',				'imageHere', 'DFCM Home');
	capImpsecondaryNavArray[2] =  new Array('capImpDevPrcs/index.html', 			'imageHere', 'About Capital Improvement/<br>Development <br>Process');
	capImpsecondaryNavArray[3] =  new Array('capImpDevPrcs/facilAssNaudits.html', 	'imageHere', 'About Facility <br>Assets & Audits');
	capImpsecondaryNavArray[4] =  new Array('capImpDevPrcs/facilAssNaudits.html', 	'imageHere', 'Facility Condition Analysis');
	capImpsecondaryNavArray[5] =  new Array('capImpDevPrcs/facilAssNaudits.html', 	'imageHere', 'Facility Maintenance Audits');
	capImpsecondaryNavArray[6] =  new Array('contactUs/index.html', 				'imageHere', 'Contact Capital Improvement/<br>Development');

	
var legalCsecondaryNavArray = new Array();
	legalCsecondaryNavArray[0] =  new Array('http://das.utah.gov/', 				'imageHere', 'DAS Home');
	legalCsecondaryNavArray[1] =  new Array('http://dfcm.utah.gov/',				'imageHere', 'DFCM Home');
	legalCsecondaryNavArray[2] =  new Array('legalC/index.html', 					'imageHere', 'About Legal Counsel');
	legalCsecondaryNavArray[3] =  new Array('contactUs/index.html#LegalCounsel',	'imageHere', 'Legal Counsel Contacts');
	
var aboutUsSecondaryNavArray = new Array();
	aboutUsSecondaryNavArray[0] =  new Array('http://das.utah.gov/',							'imageHere', 'DAS Home');
	aboutUsSecondaryNavArray[1] =  new Array('http://dfcm.utah.gov/',							'imageHere', 'DFCM Home');
	aboutUsSecondaryNavArray[2] =  new Array('AboutUs/index.html', 								'imageHere', 'About Page');
	aboutUsSecondaryNavArray[3] =  new Array('http://dfcm.utah.gov/downloads/pdf/dfcm_org.pdf', 'imageHere', 'Organizational Chart');
	aboutUsSecondaryNavArray[4] =  new Array('AboutUs/vlauesNstandards.html', 					'imageHere', 'Values and Standards');
	aboutUsSecondaryNavArray[5] =  new Array('https://statejobs.utah.gov/', 					'imageHere', 'Employment Opportunities');
	aboutUsSecondaryNavArray[6] =  new Array('http://dfcm.utah.gov/phonelist.php', 				'imageHere', 'DFCM Phone List');
	aboutUsSecondaryNavArray[7] =  new Array('contactUs/index.html', 							'imageHere', 'Contact Us');
	
var UTBBsecondaryNavArray = new Array();
	UTBBsecondaryNavArray[0] =  new Array('http://das.utah.gov/',					'imageHere', 'DAS Home');
	UTBBsecondaryNavArray[1] =  new Array('http://dfcm.utah.gov/',					'imageHere', 'DFCM Home');
	UTBBsecondaryNavArray[2] =  new Array('UtSBldgBoard/index.html', 				'imageHere', 'Building Board Home');
	UTBBsecondaryNavArray[3] =  new Array('UtSBldgBoard/whatsNew.html', 			'imageHere', 'What\'s New');
	UTBBsecondaryNavArray[4] =  new Array('UtSBldgBoard/aboutUs.html', 				'imageHere', 'About Building Board');
	UTBBsecondaryNavArray[5] =  new Array('UtSBldgBoard/members.html', 				'imageHere', 'Members');
	UTBBsecondaryNavArray[6] =  new Array('UtSBldgBoard/meetingSched.html', 		'imageHere', 'Meeting Schedule');
	UTBBsecondaryNavArray[7] =  new Array('UtSBldgBoard/agenda.html', 				'imageHere', 'Agenda');
	UTBBsecondaryNavArray[8] =  new Array('UtSBldgBoard/crntMeetingPckt.html', 		'imageHere', 'Current Meeting Packet');
	UTBBsecondaryNavArray[9] =  new Array('UtSBldgBoard/minutes.html', 				'imageHere', 'Minutes');
	UTBBsecondaryNavArray[10] =  new Array('UtSBldgBoard/5yrPgm.html', 				'imageHere', '5-Year Program');
	UTBBsecondaryNavArray[11] =  new Array('UtSBldgBoard/comments.html', 			'imageHere', 'Comments');
	
var bldgOHPsecondaryNavArray = new Array();
	bldgOHPsecondaryNavArray[0] =  new Array('http://das.utah.gov/', 				'imageHere', 'DAS Home');
	bldgOHPsecondaryNavArray[1] =  new Array('http://dfcm.utah.gov/',				'imageHere', 'DFCM Home');
	bldgOHPsecondaryNavArray[2] =  new Array('BldgOHP/index.html',					'imageHere', 'About Building Official');
	bldgOHPsecondaryNavArray[3] =  new Array('BldgOHP/bldgCodeLinks.html', 			'imageHere', 'Building Code Links');
	bldgOHPsecondaryNavArray[4] =  new Array('contactUs/index.html', 				'imageHere', 'Building Official Contacts');

var stdDocsSecondaryNavArray = new Array();
	stdDocsSecondaryNavArray[0] =  new Array('http://das.utah.gov/', 				'imageHere', 'DAS Home');
	stdDocsSecondaryNavArray[1] =  new Array('http://dfcm.utah.gov/', 				'imageHere', 'DFCM Home');
	stdDocsSecondaryNavArray[2] =  new Array('constManage/index.html', 				'imageHere', 'Construction <br>Management');
	stdDocsSecondaryNavArray[3] =  new Array('facilManage/index.html', 				'imageHere', 'Facilities <br>Management');
	stdDocsSecondaryNavArray[4] =  new Array('realestate/index.html', 				'imageHere', 'Real Estate');
	stdDocsSecondaryNavArray[5] =  new Array('currentProj/index.html', 				'imageHere', 'Current Projects');
	stdDocsSecondaryNavArray[6] =  new Array('energyEff/index.html', 				'imageHere', 'Energy Efficiency Program');
	stdDocsSecondaryNavArray[7] =  new Array('capImpDevPrcs/index.html', 			'imageHere', 'Capital Improvement/<br>Development Process');
	stdDocsSecondaryNavArray[8] =  new Array('legalC/index.html', 					'imageHere', 'Legal Counsel');

var rptsSecondaryNavArray = new Array();
	rptsSecondaryNavArray[0] =  new Array('http://das.utah.gov/',					'imageHere', 'DAS Home');
	rptsSecondaryNavArray[1] =  new Array('http://dfcm.utah.gov/',					'imageHere', 'DFCM Home');
	rptsSecondaryNavArray[2] =  new Array('constManage/index.html', 				'imageHere', 'Construction Management');
	rptsSecondaryNavArray[3] =  new Array('facilManage/index.html', 				'imageHere', 'Facilities <br>Management');
	rptsSecondaryNavArray[4] =  new Array('realestate/index.html', 					'imageHere', 'Real Estate');
	rptsSecondaryNavArray[5] =  new Array('currentProj/index.html', 				'imageHere', 'Current Projects');
	rptsSecondaryNavArray[6] =  new Array('energyEff/index.html', 					'imageHere', 'Energy Efficiency Program');
	rptsSecondaryNavArray[7] =  new Array('capImpDevPrcs/index.html', 				'imageHere', 'Capital Improvement/<br>Development Process');
	rptsSecondaryNavArray[8] =  new Array('legalC/index.html', 						'imageHere', 'Legal Counsel');


	
/* ---------------  employee section  --------------- */
var sampleEmpNavArray = new Array();
	sampleEmpNavArray[0] = new Array('', 'imageHere', 'sampleEmpLink00');
	sampleEmpNavArray[1] = new Array('', 'imageHere', 'sampleEmpLink01');
	sampleEmpNavArray[2] = new Array('', 'imageHere', 'sampleEmpLink02');
	sampleEmpNavArray[3] = new Array('', 'imageHere', 'sampleEmpLink03');
	sampleEmpNavArray[4] = new Array('', 'imageHere', 'sampleEmpLink04');
	sampleEmpNavArray[5] = new Array('', 'imageHere', 'sampleEmpLink05');

	
/* ------------------------------------------------   Menu Functions   ------------------------------------------------ */
// !! this uses an array to build menu items. it relies on the global variable called globalPath (defined at top of page) to point to the current domain.
// Provide the array you want to build.
// Answer 'yes' to hardReturn if you want the menu organized as paragraphs
// Answer 'yes' to listItem if you want the menu organized as a list
function buildTextMenu(theArray, hardReturn, listItem, divider) { 
	var htmlCode = '';
	
	var listOpen = '';
	var listClose = '';
	var listItemBegin = '';
	var listItemEnd = '';
	var hardReturnBegin = '';
	var hardReturnEnd = '';
	var dividerClass = '';
	
	if (hardReturn == 'yes') {
		hardReturnBegin = '<p>';
		hardReturnEnd = '</p>';
	}
	
	if (listItem == 'yes') {
		listOpen = '<ul class="menuList">';
		listClose = '</ul>';
		listItemBegin = '<li>';
		listItemEnd = '</li>';
	}
	
	if (divider != 'none') {
		dividerClass = divider;
	}
	
	htmlCode += listOpen;
	
	for(i=0; i<theArray.length; i++) {
		if(i == theArray.length-1) {
			dividerClass = '';	
		}
		
		if( theArray[i][0].indexOf('http://') != -1 || theArray[i][0].indexOf('https://') != -1){ //check for absolute url
			htmlCode += hardReturnBegin + listItemBegin + '<a href="' + theArray[i][0] + '" alt="' + theArray[i][2] + '" title="' + theArray[i][2] + '" class="' + dividerClass + '">' + theArray[i][2] + '</a>' + listItemEnd + hardReturnEnd;
		} else { //if url is not absolute, then add the global path
			htmlCode += hardReturnBegin + listItemBegin + '<a href="' + globalPath + theArray[i][0] + '" alt="' + theArray[i][2] + '" title="' + theArray[i][2] + '" class="' + dividerClass + '">' + theArray[i][2] + '</a>' + listItemEnd + hardReturnEnd;
		}
	}
	
	htmlCode += listClose;
	//alert(htmlCode);
	
	document.write(htmlCode);
}


//buildGraphicMenu(mainNavArray);
function buildGraphicMenu(theArray) { // !! this uses an array to build menu items. it relies on the global variable called globalPath (defined at top of page) to point to the current domain. 
	var htmlCode = '';

	for(i=0; i<theArray.length; i++) {
		if( theArray[i][0].indexOf('http://') != -1 ){ //check for absolute url
			htmlCode += '<a href="' + theArray[i][0] + '"><img src="' + globalPath + theArray[i][1] + '" alt="' + theArray[i][2] + '" title="' + theArray[i][2] + '" /></a>';
		} else { //if url is not absolute, then add the global path
			htmlCode += '<a href="' + globalPath + theArray[i][0] + '"><img src="' + globalPath + theArray[i][1] + '" alt="' + theArray[i][2] + '" title="' + theArray[i][2] + '" /></a>';
		}
	}
	
	document.write(htmlCode);
}



/* ------------------------------------------------   Content   ------------------------------------------------ */
function loadBanner(sectionNumber) {
	var htmlCode = '';
	
	htmlCode += '<div id="flashBanner">';
	htmlCode += '<img src="' + globalPath + 'common/images/banners/bannerDefault.jpg" alt="Utah Department of Administrative Services" title="Utah Department of Administrative Services" />';
	htmlCode += '</div>';
	document.write(htmlCode);

	var so = new SWFObject(globalPath + "common/randomBanner/banner.swf", "DFCM Banner", "960", "73", "8", "#FFFFFF");
	so.addVariable("whatBannerSection", sectionNumber);
	so.addVariable("xmlSource", bannerSourceXML);
	so.write("flashBanner");
}



function addAnalytics() { //adds google anayltics
	var pageTracker = _gat._getTracker("UA-5219135-4"); 
	pageTracker._trackPageview(); 
}


function buildAddress() {
	var htmlCode = '';
	htmlCode += '<address>' + currentYear + ' &copy; Division of Facilities and Construction Management<br />';
	htmlCode += '4110 State Office Building/450 North State Street/Salt Lake City, UT 84114<br />';
	htmlCode += 'Phone: 801-538-3018 / Fax: 801-538-3267</address>';
	document.write(htmlCode);
}


function buildFooter() {
	var htmlCode = '';
	
	buildTextMenu(footerNavArray, 'no', 'no', 'divider042053');
	document.write('<br />');	
	buildTextMenu(divisionNavArray, 'no', 'no', 'divider042053');
	document.write('<br />');
	buildTextMenu(uiiFooterNavArray, 'no', 'no', 'divider042053');
	
//	htmlCode += '<br />Copyright © 2008 State of Utah - All rights reserved.';
//	document.write(htmlCode);
	
	addAnalytics();
}



/* ------------------------------------------------   IE Style   ------------------------------------------------ */
function ieStyle() {
	//alert('ieStyle() fired');
	var htmlCode = '';
	htmlCode += '<!--[if IE 5]><link href="' + globalPath + 'common/css/ieStyle.css" rel="stylesheet" type="text/css"><![endif]-->';
	htmlCode += '<!--[if IE 6]><link href="' + globalPath + 'common/css/ieStyle.css" rel="stylesheet" type="text/css"><![endif]-->';
	htmlCode += '<!--[if IE 7]><link href="' + globalPath + 'common/css/ieStyle7.css" rel="stylesheet" type="text/css"><![endif]-->';
	
	document.write(htmlCode);
}




/* ------------------------------------------------   UII Loader   ------------------------------------------------ */
function checkUIIblock() {
	if (uiiOverride == true) {
		document.getElementById('uiiStage').innerHTML = '<img src="../../common/script/common/images/uii/uiiLeft.gif" alt="Utah.gov" title="Utah.gov" />';
	}
}

function loadUII(pleaseLoad) {
	var htmlCode =  '';

	if (pleaseLoad == true && uiiOverride == false) {
		//alert("pleaseLoad = true");
		document.getElementById('uiiBanner').innerHTML = document.getElementById('uiiStage').innerHTML;
		document.getElementById('uiiStage').innerHTML = ' ';
	}
}
/*<script language="javascript" src="http://www.utah.gov/nav/fluidheader.js" type="text/javascript"></script>*/


































