







      var glbCountryListURL = relative("/common/js/country_list_en.js", glbBaseURL); 
      //The language part can come the the ISO Locale: example "en". 
      document.write("<scr"+"ipt src=\""+ glbCountryListURL+"\"></scr"+"ipt>");
//      var glbCountryList = buildCountryList("UY");

nav.logo = new Object();
nav.logo.href = relative("/uy/index.html", nav.baseURL);
nav.logo.img = new MCImage("/uy/images/logo.gif","110","108");
nav.logo.img.src = relative(nav.logo.img.src, nav.baseURL);
nav.logo.alt = "MasterCard";

nav.header = new Object();
nav.header.img = new MCImage("/uy/wce/JPG/11917_header-perro.jpg","520","108");
nav.header.img.src = relative(nav.header.img.src, nav.baseURL);
nav.header.alt = "Hay ciertas cosas que el dinero no puede comprar. Para todo lo demás existe MasterCard.";
	

nav.country = new Object();
nav.country.img = new MCImage("/uy/wce/GIF/4356_uruguay.gif","75","13");
nav.country.img.src = relative(nav.country.img.src, nav.baseURL);
nav.country.alt = "Uruguay";

nav.country.languages = new Array(); 


	
		


nav.country.languages[0] = new Object();
nav.country.languages[0].img = new MCImage("/uy/images/label_in_english.gif","46","10");
nav.country.languages[0].img.src = relative(nav.country.languages[0].img.src, nav.baseURL);
nav.country.languages[0].alt = "in english";
nav.country.languages[0].code = 
"en";

		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	


function writeHeader() {
	var colSpan = (nav.country.languages.length)?" colspan='2'":"";
	
	document.write("<table width='100%' height='100%' border='0' cellspacing='0' cellpadding='0'>");
	document.write("<tr>");
	document.write("<td valign='top'>");
	document.write("<table border='0' cellpadding='0' cellspacing='0' bgcolor='#000000'>");
	document.write("<tr>");
	document.write("<td width='110'><a href='" + this.logo.href + "' name='top'><img src='" + this.logo.img.src + "'  alt='" + this.logo.alt + "' border='0' name='top' width='" + this.logo.img.width + "' height='" + this.logo.img.height + "'></a></td>");
	document.write("<td width='520'><img src='" + this.header.img.src + "' width='" + this.header.img.width + "' height='" + this.header.img.height + "' border='0' alt='" + this.header.alt + "'></td>");
	document.write("<td width='10'><img src='" + this.spacer.src + "' width='10' height='1' border='0' alt=''></td>");
	document.write("<td width='100%' align='right' valign='bottom'>");
	document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0'>");

	if (nav.country.img.src.length) {
		document.write("<tr>");
		document.write("<td" + colSpan + "><img src='" + this.spacer.src + "' width='1' height='1' border='0' alt=''></td>");
		document.write("</tr>");

		document.write("<tr>");
		document.write("<td" + colSpan + "><img src='" + nav.country.img.src + "' width='" + nav.country.img.width + "' height='" + nav.country.img.height + "' alt='" + nav.country.alt + "' border='0'></td>");
		document.write("</tr>");

		document.write("<tr>");
		document.write("<td" + colSpan + "><img src='" + this.spacer.src + "' width='1' height='3' border='0' alt=''></td>");
		document.write("</tr>");

		document.write("<tr>");
		document.write("<td" + colSpan + " bgcolor='#66664E' width='100%'><img src='" + this.spacer.src + "' width='120' height='1' border='0' alt=''></td>");
		document.write("</tr>");

		document.write("<tr>");
		document.write("<td" + colSpan + "><img src='" + this.spacer.src + "' width='1' height='4' border='0' alt=''></td>");
		document.write("</tr>");
	} else {
		document.write("<tr>");
		document.write("<td" + colSpan + " width='100%'><img src='" + this.spacer.src + "' width='120' height='4' border='0' alt=''></td>");
		document.write("</tr>");
	}

	if (nav.country.languages.length > 1) {
		document.write("<tr>");
		document.write("<td rowspan='3'><img src='" + this.spacer.src + "' width='24' height='1' border='0' alt=''></td>");
		document.write("<td>");
		document.write("<table width='115' border='0' cellspacing='0' cellpadding='0'>");

		var cLang = getCookie(C_LANG);

		for (i=1; i<nav.country.languages.length; i++) {
			def = nav.country.languages[0];
			lang = nav.country.languages[i];
			strLink="";

			if (lang.code == cLang) {
				strLink = "<a href='javascript:nav.setDefault()'><img src='" + def.img.src + "' width='" + def.img.width + "' height='" + def.img.height + "' alt='" + def.alt + "' border='0'></a>";
			} else {
				strLink = "<a href='javascript:nav.setLanguage(\"" + lang.code + "\")'><img src='" + lang.img.src + "' width='" + lang.img.width + "' height='" + lang.img.height + "' alt='" + lang.alt + "' border='0'></a>";
			}

            if (i%2 != 0) {
                document.write ("<tr><td width='115'>");
                document.write (strLink + "<img src='" + this.spacer.src + "' width='7' height='12' border='0' alt=''>");
            }

            if (i%2 == 0) document.write (strLink);

            if ( (i == nav.country.languages.length-1) || (i%2 == 0) ) {
                document.write ("</td></tr>");
                document.write ("<tr>");
                document.write ("<td><img src='" + this.spacer.src + "' width='1' height='3' border='0' alt=''></td>");
                document.write ("</tr>");
            }
        }

        document.write("</table>");
        document.write("</td>");
        document.write("</tr>");
        document.write("<tr>");
        document.write("<td><img src='" + this.spacer.src + "' width='1' height='5' border='0' alt=''></td>");
        document.write("</tr>");
    }
	
	document.write("<tr>");

	document.write("<td width='100%'>");
	document.write("<form>");
//      var glbCountryListURL = relative("/common/js/country_list_en.js", glbBaseURL); 
      //The language part can come the the ISO Locale: example "en". 
//      document.write("<scr"+"ipt src=\""+ glbCountryListURL+"\"></scr"+"ipt>");
      var glbCountryList = buildCountryList("UY");
      document.write(glbCountryList);
//      document.write("<div id='countrydd'> </div>");
//	document.write("<select style='font-size:11px' onchange='if (this.selectedIndex != 0) document.location.href = this.options[this.selectedIndex].value;'>");
//	document.write("<option selected>- Select Country/Region -</option>");

	
	//document.write("<option value='http://www.mastercard.com/ar/'>Argentina</option>");
	

	
	//document.write("<option value='http://www.mastercard.com/au/'>Australia</option>");
	

	
	//document.write("<option value='http://www.mastercard.com/be/'>Belgium</option>");
	

	
	//document.write("<option value='http://www.mastercard.com/br/'>Brazil</option>");
	

	
	//document.write("<option value='http://www.mastercard.com/canada/'>Canada</option>");
	

	
	//document.write("<option value='http://www.mastercard.com/cn/'>China</option>");
	

	
	//document.write("<option value='http://www.mastercard.com/hr/'>Croatia</option>");
	

	
	//document.write("<option value='http://www.viceomastercard.cz'>Czech Republic</option>");
	

	
	//document.write("<option value='http://www.mastercardfrance.com/'>France</option>");
	

	
	//document.write("<option value='http://www.mastercard.com/fi/'>Finland</option>");
	

	
	//document.write("<option value='http://www.mastercard.com/de/'>Germany</option>");
	

	
	//document.write("<option value='http://www.mastercard.com/hkc/'>Hong Kong </option>");
	

	
	//document.write("<option value='http://www.mastercard.com/in/'>India</option>");
	

	
	//document.write("<option value='http://www.mastercard.com/sea/'>Indonesia</option>");
	

	
	//document.write("<option value='http://www.mastercard.com/it/'>Italy</option>");
	

	
	//document.write("<option value='http://www.mastercard.com/jp/'>Japan</option>");
	

	
	//document.write("<option value='http://www.mastercard.com/kr/'>Korea</option>");
	

	
	//document.write("<option value='http://www.mastercard.com/sea/'>Malaysia</option>");
	

	
	//document.write("<option value='http://www.mastercard.com/mx/'>Mexico</option>");
	

	
	//document.write("<option value='http://www.mastercard.com/nl/'>Netherlands</option>");
	

	
	//document.write("<option value='http://www.mastercard.com/nz/'>New Zealand</option>");
	

	
	//document.write("<option value='http://www.mastercard.com/sea/'>Philippines</option>");
	

	
	//document.write("<option value='http://www.mastercard.com/plp/'>Poland</option>");
	

	
	//document.write("<option value='http://www.mastercard.com/ru/'>Russia</option>");
	

	
	//document.write("<option value='http://www.mastercard.com/sea/'>Singapore</option>");
	

	
	//document.write("<option value='http://www.mastercard.sk'>Slovakia</option>");
	

	
	//document.write("<option value='http://www.mastercard.com/za/'>South Africa</option>");
	

	
	//document.write("<option value='http://www.mastercard.com/es/'>Spain</option>");
	

	
	//document.write("<option value='http://www.mastercard.com/se/'>Sweden</option>");
	

	
	//document.write("<option value='http://www.mastercard.com/chd/ '>Switzerland</option>");
	

	
	//document.write("<option value='http://www.mastercard.com/tw/'>Taiwan </option>");
	

	
	//document.write("<option value='http://www.mastercard.com/sea/'>Thailand</option>");
	

	
	//document.write("<option value='http://www.mastercard.com/uy/'>Uruguay</option>");
	

	
	//document.write("<option value='http://www.mastercard.com/ae/'>United Arab Emirates</option>");
	

	
	//document.write("<option value='http://www.mastercard.com/uk/'>United Kingdom</option>");
	

	
	//document.write("<option value='http://www.mastercard.com/us/'>United States</option>");
	

	
	//document.write("</select>");
	document.write("</form>");
	document.write("</td>");
	document.write("</tr>");
	document.write("</table>");
	document.write("</td>");
	document.write("</tr>");
	document.write("</table>");
}

NavSystem.prototype.writeHeader = writeHeader;


