// this is the default language ID to use for the template if 

// the language of the page cannot be determined

var templateLangID = "en";





// ================================================





// ================================================

// gov_showHeader() 

// - the top table header output 

// - if print version is selected, then only shows

//   the printer header image

// ================================================

function gov_showHeader() {



	// set the default values for the google search box

	// if the calling web page has not set these values, it will go to the default search results template

	if (!isDefined(window.resourceSearch_client)) {

		resourceSearch_client = "";

	}

	if (!isDefined(window.resourceSearch_proxystylesheet)) {

		resourceSearch_proxystylesheet = "";

	}

	if (!isDefined(window.resourceSearch_site)) {

		resourceSearch_site = "";

	}



	if (resourceSearch_client == "") {

		resourceSearch_client = "manitoba";

	}

	if (resourceSearch_proxystylesheet == "") {

		resourceSearch_proxystylesheet = "manitoba";

	}

	if (resourceSearch_site == "") {

		resourceSearch_site = "default_collection";

	}





	var html = "";

	var obj = document.getElementById("header");

	if (obj) {

	

		if (tempURL.indexOf("?print") > -1 || tempURL.indexOf("#printerfriendly") > -1) {

			html += '<div align="center" style="margin-left:-20px;"><img src="'+resourcePath+'images/printer_header.jpg"></div>';

		} else {

		

		html += "		<a href=\"http://www.gov.mb.ca/index.fr.html\" id=\"logo\" accesskey=\"1\" title=\"Gouvernement du Manitoba\"><img src=\""+resourcePath+"images/mb_logo.jpg\" alt=\"Gouvernement du Manitoba\" /></a>\n";

		html += "		<ul id=\"navbar\">\n";

		html += "			<li><a href=\"http://www.gov.mb.ca/government/index.fr.html\"><img src=\""+resourcePath+"images/nav/government.gif\" alt=\"Gouvernement\" width=\"107\" height=\"43\" border=\"0\"/></a></li>\n";

		html += "			<li><a href=\"http://www.gov.mb.ca/business/index.fr.html\"><img src=\""+resourcePath+"images/nav/business.gif\" alt=\"Entreprises\" width=\"75\" height=\"43\" border=\"0\"/></a></li>\n";

		html += "			<li><a href=\"http://www.gov.mb.ca/residents/index.fr.html\"><img src=\""+resourcePath+"images/nav/residents.gif\" alt=\"R&eacute;sidents\" width=\"77\" height=\"43\" border=\"0\"/></a></li>\n";

		html += "			<li><a href=\"http://www.gov.mb.ca/tourism/index.fr.html\"><img src=\""+resourcePath+"images/nav/tourism.gif\" alt=\"Tourisme\" width=\"72\" height=\"43\" border=\"0\"/></a></li>\n";

		html += "			<li><a href=\"http://www.gov.mb.ca/services/index.fr.html\"><img src=\""+resourcePath+"images/nav/services.gif\" alt=\"Services\" width=\"80\" height=\"43\" border=\"0\"/></a></li>\n";

		html += "			<li id=\"search\">\n";

		html += "				<form name=\"gs\" method=\"get\" action=\"http://discovery.gov.mb.ca/search\">\n";

		html += "				  <a name=\"search\"></a>\n";

		html += "				  <label for=\"topsearchbox\" title=\"&Eacute;crivez le texte de recherche\"></label><input name=\"q\" type=\"text\" id=\"topsearchbox\" class=\"searchbox\" value=\"Recherche...\" size=\"15\" onfocus=\"if (this.value == 'Recherche...') this.value = '';\" title=\"&Eacute;crivez le texte de recherche\" alt=\"&Eacute;crivez le texte de recherche\" />\n";

		html += "				  <input type=\"image\" src=\""+resourcePath+"images/header_button_go.jpg\" alt=\"Commencez la recherche\" title=\"Commencez la recherche\" />\n";

		html += "				  <input type=\"hidden\" name=\"entqr\" value=\"0\" />\n";

		html += "				  <input type=\"hidden\" name=\"output\" value=\"xml_no_dtd\" />\n";

		html += "				  <input type=\"hidden\" name=\"sort\" value=\"date:D:L:d1\" />\n";

		html += "				  <input type=\"hidden\" name=\"ud\" value=\"1\" />\n";

		html += "		<input type=\"hidden\" name=\"client\" value=\""+resourceSearch_client+"\">\n";

		html += "		<input type=\"hidden\" name=\"oe\" value=\"UTF-8\">\n";

		html += "		<input type=\"hidden\" name=\"ie\" value=\"UTF-8\">\n";

		html += "		<input type=\"hidden\" name=\"proxystylesheet\" value=\""+resourceSearch_proxystylesheet+"\">\n";

		html += "		<input type=\"hidden\" name=\"site\" value=\""+resourceSearch_site+"\">\n";

		html += "				</form>\n";

		html += "			</li>\n";

		html += "		</ul>\n";







		}



		obj.innerHTML = html;

	}

}



// ================================================

// gov_showFooter()

// - displays the bottom table of text links

// ================================================

function gov_showFooter() {



	// set the default values for the google search box

	// if the calling web page has not set these values, it will go to the default search results template

	if (!isDefined(window.resourceSearch_client)) {

		resourceSearch_client = "";

	}

	if (!isDefined(window.resourceSearch_proxystylesheet)) {

		resourceSearch_proxystylesheet = "";

	}

	if (!isDefined(window.resourceSearch_site)) {

		resourceSearch_site = "";

	}



	if (resourceSearch_client == "") {

		resourceSearch_client = "manitoba";

	}

	if (resourceSearch_proxystylesheet == "") {

		resourceSearch_proxystylesheet = "manitoba";

	}

	if (resourceSearch_site == "") {

		resourceSearch_site = "default_collection";

	}





	var html = "\n";

	var obj = document.getElementById("footer");

	if (obj) {



html += "<ul class=\"nav\">\n";

html += "	<li class=\"government\"><a href=\"http://www.gov.mb.ca/government/index.fr.html\">Gouvernement</a></li>\n";

html += "	<li class=\"business\"><a href=\"http://www.gov.mb.ca/business/index.fr.html\">Entreprises</a></li>\n";

html += "	<li class=\"residents\"><a href=\"http://www.gov.mb.ca/residents/index.fr.html\">R&eacute;sidents</a></li>\n";

html += "	<li class=\"tourism\"><a href=\"http://www.gov.mb.ca/tourism/index.fr.html\">Tourisme</a></li>\n";

html += "	<li class=\"services\"><a href=\"http://www.gov.mb.ca/services/index.fr.html\">Services</a></li>\n";

html += "	<li class=\"search\">\n";

html += "	<form method=\"get\" action=\"http://discovery.gov.mb.ca/search\">\n";

html += "	<label for=\"bottomsearchbox\" title=\"&Eacute;crivez le texte de recherche\"></label><input name=\"q\" type=\"text\" id=\"bottomsearchbox\" class=\"searchbox\" value=\"Recherche...\" size=\"15\" onfocus=\"if (this.value == 'Recherche...') this.value = '';\" title=\"&Eacute;crivez le texte de recherche\" alt=\"&Eacute;crivez le texte de recherche\" />\n";

html += "	<input type=\"image\" src=\""+resourcePath+"images/header_button_go.jpg\" alt=\"Commencez la recherche\" title=\"Commencez la recherche\" />\n";

html += "	<input type=\"hidden\" name=\"entqr\" value=\"0\" />\n";

html += "	<input type=\"hidden\" name=\"output\" value=\"xml_no_dtd\" />\n";

html += "	<input type=\"hidden\" name=\"sort\" value=\"date:D:L:d1\" />\n";

html += "	<input type=\"hidden\" name=\"ud\" value=\"1\" />\n";

html += "	<input type=\"hidden\" name=\"client\" value=\""+resourceSearch_client+"\">\n";

html += "	<input type=\"hidden\" name=\"oe\" value=\"UTF-8\">\n";

html += "	<input type=\"hidden\" name=\"ie\" value=\"UTF-8\">\n";

html += "	<input type=\"hidden\" name=\"proxystylesheet\" value=\""+resourceSearch_proxystylesheet+"\">\n";

html += "	<input type=\"hidden\" name=\"site\" value=\""+resourceSearch_site+"\">\n";

html += "	</form>\n";

html += "	</li>\n";

html += "</ul>\n";

html += "<div id=\"links\">\n";

html += "<a href=\"http://www.spiritedenergy.ca/fr/\" title=\"Manitoba Vibrant d'&eacute;nergie\"><img src=\""+resourcePath+"images/footer_energy.gif\" alt=\"Manitoba Vibrant d'&eacute;nergie\" class=\"energy\" /></a><div id=\"acl3\">---</div><a href=\"http://www.gov.mb.ca/index.fr.html\" title=\"Gouvernement du Manitoba\"><img src=\""+resourcePath+"images/footer_govmb_logo.gif\" alt=\"Gouvernement du Manitoba\"  class=\"manitoba\"/></a>\n";

html += "<ul>\n";

html += "<li><a href=\"http://news.gov.mb.ca/news/index.fr.html\" title=\"Communiqu&eacute;s\">Communiqu&eacute;s</a> &nbsp;|&nbsp;</li>\n";

html += "<li><a href=\"http://www.gov.mb.ca/government/departments.fr.html\" title=\"Minist&egrave;res\">Minist&egrave;res</a> &nbsp;|&nbsp;</li>\n";

html += "<li><a href=\"http://www.gov.mb.ca/legal/disclaimer.fr.html\" title=\"Avertissement\">Avertissement</a> &nbsp;|&nbsp;</li>\n";

html += "<li><a href=\"http://www.gov.mb.ca/legal/copyright.fr.html\" title=\"Droits d'auteur\">Droits d'auteur</a> &nbsp;|&nbsp;</li>\n";

html += "<li><a href=\"http://www.gov.mb.ca/legal/privacy.fr.html\" title=\"&eacute;curit&eacute;; des renseignements\">S&eacute;curit&eacute;; des renseignements</a> &nbsp;|&nbsp;</li>\n";

html += "<li><a href=\"http://www.gov.mb.ca/contact/index.fr.html\">Pour nous joindre (1-866-626-4862)</a></li>\n";

html += "</ul>\n";



html += "</div>\n";











		obj.innerHTML = html;

	}

}





















// =================================================================

// gov_replaceIFR()

// - replaces elements with Inman Flash Replacement SWFs

// - if you have more elements to replace, then create a javascript 

//   function in your web page header call it before 

//   gov_setupPage() in the OnLoad() Event

// =================================================================

function gov_replaceIFR() {



/* Replacement calls. Please see documentation for more information. */

if(typeof sIFR == "function"){

	sIFR.replaceElement(named({sSelector:"div#banners ul li", sFlashSrc:resourcePath+"swf/banner_ifr.swf", sWmode:"transparent", sFlashVars:"", sWidth:"207", sHeight:"60"}));

	sIFR.replaceElement(named({sSelector:"#organization", sFlashSrc:resourcePath+"swf/title_ifr.swf", sWmode:"transparent",sFlashVars:"", sWidth:"620", sHeight:"38"}));

	sIFR.replaceElement(named({sSelector:"#left #menuheading", sFlashSrc:resourcePath+"swf/above_sidemenu_ifr.swf", sWmode:"transparent",sFlashVars:"", sWidth:"189", sHeight:"60"}));

};



}