// JavaScript Document
/*
Variables from the script
The script returns a set of browser variables (Below are live results dependant on your browser type): 

var returns Description 
   
ie 1 Internet Explorer 4+ and IE-based third-party browsers. You can also be more specific:  
ie4 0 ... Internet Explorer 4 only.  
ie5 1 ... Internet Explorer 5 or 6.  
ie6 1 ... Internet Explorer 6 only.  

  
ns4 0 Netscape 4  

  
ns6 0 Gecko and KDE-based browsers - which includes Netscape 6 and 7, Mozilla, Konqueror and Safari. You can also identify smaller groups within this: 
ns7 0 ... Netscape 7.  
mz7 0 ... any gecko browser except Netscape. This is principally designed to identify Mozilla's own builds from Version 0.6 onwards, but it also returns true for any other non-netscape gecko browser.  
kde 0 ... Konqueror, from KDE 2.2 onwards.  
saf 0 ... Safari. This variable will identify Safari irrespective of which browser it's set to identify as.  

  
op5 0 Opera 5  
op6 0 Opera 6  
op7 0 Opera 7 
These variables will identify Opera irrespective of which browser it's set to identify as. 
 

Underpinning these is a safety variable, for protecting legacy browsers:

  
exclude 0  

There are also three OS variables: 

   
win 1 Windows  
mac 0 Mac OS  
lin 0 Linux, or anything else  

and you can query a lower-case version of the user agent string:

  
agt mozilla/4.0 (compatible; msie 6.0; windows nt 5.1; .net clr 1.0.3705)  

*/
var exclude=1;
var agt=navigator.userAgent.toLowerCase();
var win=0;var mac=0;var lin=1;
if(agt.indexOf('win')!=-1){win=1;lin=0;}
if(agt.indexOf('mac')!=-1){mac=1;lin=0;}
var lnx=0;if(lin){lnx=1;}
var ice=0;
var ie=0;var ie4=0;var ie5=0;var ie6=0;var com=0;var dcm;
var op5=0;var op6=0;var op7=0;
var ns4=0;var ns6=0;var ns7=0;var mz7=0;var kde=0;var saf=0;
if(typeof navigator.vendor!="undefined" && navigator.vendor=="KDE"){
	var thisKDE=agt;
	var splitKDE=thisKDE.split("konqueror/");
	var aKDE=splitKDE[1].split("; ");
	var KDEn=parseFloat(aKDE[0]);
	if(KDEn>=2.2){
		kde=1;
		ns6=1;
		exclude=0;
		}
	}
else if(agt.indexOf('webtv')!=-1){exclude=1;}
else if(typeof window.opera!="undefined"){
	exclude=0;
	if(agt.indexOf("opera/5")!=-1||agt.indexOf("opera 5")!=-1){op5=1;}
	if(agt.indexOf("opera/6")!=-1||agt.indexOf("opera 6")!=-1){op6=1;}
	if(agt.indexOf("opera/7")!=-1||agt.indexOf("opera 7")!=-1){op7=1;}
	}
else if(typeof document.all!="undefined"&&!kde){
	exclude=0;
	ie=1;
	if(typeof document.getElementById!="undefined"){
		ie5=1;
		if(agt.indexOf("msie 6")!=-1){
			ie6=1;
			dcm=document.compatMode;
			if(dcm!="BackCompat"){com=1;}
			}
		}
	else{ie4=1;}
	}
else if(typeof document.getElementById!="undefined"){
	exclude=0;
	if(agt.indexOf("netscape/6")!=-1||agt.indexOf("netscape6")!=-1){ns6=1;}
	else if(agt.indexOf("netscape/7")!=-1||agt.indexOf("netscape7")!=-1){ns6=1;ns7=1;}
	else if(agt.indexOf("gecko")!=-1){ns6=1;mz7=1;}
	if(agt.indexOf("safari")!=-1 || (typeof document.childNodes!="undefined" && typeof document.all=="undefined" && typeof navigator.taintEnabled=="undefined")){mz7=0;ns6=1;saf=1;}
	}
else if((agt.indexOf('mozilla')!=-1)&&(parseInt(navigator.appVersion)>=4)){
	exclude=0;
	ns4=1;
	if(typeof navigator.mimeTypes['*']=="undefined"){
		exclude=1;
		ns4=0;
		}
	}
if(agt.indexOf('escape')!=-1){exclude=1;ns4=0;}
if(typeof navigator.__ice_version!="undefined"){exclude=1;ie4=0;}


	if (op7) {
		document.write("<link href='/css/win_opera.css' rel='stylesheet' type='text/css' />")
	}

	if (mac) {
		
		if (ie5) {
			document.write("<link href='/css/mac_ie5.css' rel='stylesheet' type='text/css' />")
			
		}
		if ((ns6 || ns7) && (!saf)) {
			document.write("<link href='/css/mac_mozilla.css' rel='stylesheet' type='text/css' />")
		}
		if (saf) {
			document.write("<link href='/css/safari.css' rel='stylesheet' type='text/css' />")
		}
	}
	
	if (win) {
	
		if (ns6 || ns7) {
			document.write("<link href='/css/win_mozilla.css' rel='stylesheet' type='text/css' />")
		}
		
		if (ie5 && !ie6) {
			document.write("<link href='/css/win_ie5.css' rel='stylesheet' type='text/css' />")
		}
		if (ie6) {
			document.write("<link href='/css/win_ie6.css' rel='stylesheet' type='text/css' />")
		}
	} 
	
	
var Countries = new Array();

Countries[0] = "*Africa";
Countries[1] = "Argentina";
Countries[2] = "*Asia / Pacific";
Countries[3] = "Australia";
Countries[4] = "Austria";
Countries[5] = "Belgium";
Countries[6] = "Brazil";
Countries[7] = "Canada";
Countries[8] = "Central & Eastern Europe";
Countries[9] = "Chile";
Countries[10] = "China";
Countries[11] = "Colombia";
Countries[12] = "Croatia";
Countries[13] = "Czech Republic";
Countries[14] = "Denmark";
Countries[15] = "Ecuador";
Countries[16] = "Egypt";
Countries[17] = "Europe";
Countries[18] = "Finland";
Countries[19] = "France";
Countries[20] = "Germany";
Countries[21] = "Greece";
Countries[22] = "Hungary";
Countries[23] = "India";
Countries[24] = "Ireland";
Countries[25] = "Italy";
Countries[26] = "Japan";
Countries[27] = "*Lithuania";
Countries[28] = "Mexico";
Countries[29] = "Middle East - Arabia";
Countries[30] = "Netherlands";
Countries[31] = "*New Zealand";
Countries[32] = "Norway";
Countries[33] = "Poland";
Countries[34] = "Portugal";
Countries[35] = "Russia";
Countries[36] = "South Africa";
Countries[37] = "*South America";
Countries[38] = "South Korea";
Countries[39] = "Spain";
Countries[40] = "Sweden";
Countries[41] = "Switzerland";
Countries[42] = "*Thailand";
Countries[43] = "Turkey";
Countries[44] = "United Kingdom";
Countries[45] = "United States";
Countries[46] = "Venezuela";


var Brands = new Array();

Brands[0] = "Buick";
Brands[1] = "Cadillac";
Brands[2] = "Chevrolet";
Brands[3] = "Chevrolet Europe";
Brands[4] = "GM Corporate";
Brands[5] = "GMC";
Brands[6] = "Holden";
Brands[7] = "HUMMER";
Brands[8] = "Oldsmobile";
Brands[9] = "Opel";
Brands[10] = "Pontiac";
Brands[11] = "Saab";
Brands[12] = "Saturn";
Brands[13] = "Vauxhall";
Brands[14] = "Corvette";
Brands[15] = "Suzuki";
Brands[16] = "GMAC";
Brands[17] = "Powertrain";
Brands[18] = "SPO";
Brands[19] = "Onstar";
Brands[20] = "Isuzu";
Brands[21] = "GM Daewoo";

var Languages = new Array();

Languages[0] = "English";
Languages[1] = "Deutsch";
Languages[2] = "Francais";
Languages[3] = "Italiano";
Languages[4] = "Nederlands";
Languages[5] = "Espanol";
Languages[6] = "Portugues";
Languages[7] = "Norsk";
Languages[8] = "Dansk";
Languages[9] = "Greek";
Languages[10] = "Japanese";
Languages[11] = "Suomi";
Languages[12] = "Polska";
Languages[13] = "Svenska";
Languages[14] = "Russian";
Languages[15] = "Hungarian";
Languages[16] = "Chinese";
Languages[17] = "Korean";
Languages[18] = "Czech";
Languages[19] = "Arabic";

var CountryBrands = new Array() //Country Brand index number corresponds to Country Array index

CountryBrands[0] = new Array(4,99) //Africa Brands -	
CountryBrands[1] = new Array(2,4,15) //Argentina  - 			Chevrolet, GM, Suzuki
CountryBrands[2] = new Array(4,99) //Asia / Pacific Brands -	
CountryBrands[3] = new Array(1,4,6,7,11) //Australia -			Chevrolet Europe, GM, Holden, Saab
CountryBrands[4] = new Array(1,3,4,7,9,11,14) //Austria Brands - 	Cadillac,Chevrolet, Chevrolet Europe, GM, Opel,Saab  
CountryBrands[5] = new Array(1,3,4,7,9,11,14) //Belgium Brands - 	Cadillac, Chevrolet, Chevrolet Europe, GM, Opel, Saab
CountryBrands[6] = new Array(2,4) //Brazil Brands - 			Chevrolet, GM
CountryBrands[7] = new Array(0,1,2,4,5,7,8,10,11,12) //Canada Brands-	Buick, Cadillac, Chevrolet, GM, GMC, Oldsmobile, Pontiac, Saab, Saturn
CountryBrands[8] = new Array(4,99) //Central Eastern Europe -	
CountryBrands[9] = new Array(2,4) // Chile Brands -  			Chevrolet, GM
CountryBrands[10] = new Array(4,99) //China Brands - 		Buick, Cadillac, Chevrolet, GM, Opel, Saab
CountryBrands[11] = new Array(2,4) //Colombia Brands -  			Chevrolet, GM 
CountryBrands[12] = new Array(4,99) //Croatia Brands -  		Chevrolet Europe, GM, Opel
CountryBrands[13] = new Array(1,4,7,14) //Czech Rep Brands - 		Chevrolet Europe, GM, Opel, Saab
CountryBrands[14] = new Array(3,4,7,9,11) //Denmark Brands - 		Chevrolet Europe, GM, Opel, Saab
CountryBrands[15] = new Array(2,4) //Ecuador Brands - 			Chevrolet, GM
CountryBrands[16] = new Array(2,4,9) //Egypt Brands - 			Chevrolet, GM, Opel
CountryBrands[17] = new Array(1,3,4,7,9,11,14) //Europe Brands -	
CountryBrands[18] = new Array(3,4,7,9,11) //Finland Brands - 		Chevrolet Europe, GM, Opel, Saab
CountryBrands[19] = new Array(1,3,4,7,9,11,14) //France Brands -	Cadillac, Chevrolet Europe, GM, Opel, Saab
CountryBrands[20] = new Array(1,3,4,7,9,11,14) //Germany Brands-	Cadillac, Chevrolet Europe, GM, Opel, Saab
CountryBrands[21] = new Array(3,4,7,9,11,14) //Greece Brands - 		Chevrolet Europe, GM, Opel, Saab
CountryBrands[22] = new Array(1,2,4,9,14) //Hungary Brands - 		Chevrolet Europe, GM, 
CountryBrands[23] = new Array(4,2) //India Brands - 			GM Corporate, Chevrolet
CountryBrands[24] = new Array(3,4,7,9,11) //Ireland Brands - 		Chevrolet Europe, GM, Opel, Saab
CountryBrands[25] = new Array(1,3,4,7,9,11,14) //Italy Brands - 	Cadillac, Chevrolet,Cadillac, Chevrolet,Chevrolet Europe, GM, Opel, Saab
CountryBrands[26] = new Array(0,1,4,5,7,9,10,11,12) //Japan Brands -	Buick, Cadillac, Chevrolet, GM, GMC, Opel, Pontiac, Saab, Saturn
CountryBrands[27] = new Array(4,99) //Korea Brands - 			Chevrolet, GM
CountryBrands[28] = new Array(1,2,4,7,9,10,11) //Mexico Brands -	
CountryBrands[29] = new Array(1,2,4,5,7,11) //Middle East - Arabia Brands -		
CountryBrands[30] = new Array(1,3,4,7,9,11,14) //Netherlands Brands -	
CountryBrands[31] = new Array(4,6,11) //New Zealand Brands -	
CountryBrands[32] = new Array(1,3,4,7,9,11,14) //Norway Brands -	
CountryBrands[33] = new Array(1,4,14) //Poland Brands -	
CountryBrands[34] = new Array(3,4,9,11) //Portugal Brands -	
CountryBrands[35] = new Array(4,7) //Russia Brands -	
CountryBrands[36] = new Array(1,2,4,7,9,11,20) //South Africa Brands -	Chevrolet, GM, Opel, Saab, Isuzu
CountryBrands[37] = new Array(4,99) //South America Brands - 
CountryBrands[38] = new Array(21,99) //South Korea Brands -	
CountryBrands[39] = new Array(1,3,4,7,9,11,14) //Spain Brands -	
CountryBrands[40] = new Array(1,3,4,7,9,11,14) //Sweden Brands -	
CountryBrands[41] = new Array(1,3,4,7,9,11,14) //Switzerland Brands -	
CountryBrands[42] = new Array(4,99) //Thailand Brands - 			Chevrolet, GM
CountryBrands[43] = new Array(4,99) //Turkey Brands -	
CountryBrands[44] = new Array(1,3,4,7,11,13,14) //United Kingdom Brands -	
CountryBrands[45] = new Array(0,1,2,4,5,7,8,10,11,12,17,18,19) //USA Brands - 
CountryBrands[46] = new Array(2,4) //Venezuela Brands -	
CountryBrands[47] = new Array(98,99) //Coming Soon

var URLs = new Array();

URLs[0] = "http://media.gm.com/us/gm/en/"
URLs[1] = "http://media.gm.com/gb/vauxhall/en/"
URLs[2] = "http://daewoo.accesoresearch.com/comm.html"
URLs[3] = "http://media.gm.com/be/gm/de/"
URLs[4] = "http://media.gm.com/be/gm/fr/"
URLs[5] = "http://media.gm.com/be/gm/nl/"
URLs[6] = "http://media.gm.com/be/opel/de/"
URLs[7] = "http://media.gm.com/be/opel/fr/"
URLs[8] = "http://media.gm.com/be/opel/nl/"
URLs[9] = "http://media.gm.com/ch/gm/de/"
URLs[10] = "http://media.gm.com/ch/gm/fr/"
URLs[11] = "http://media.gm.com/ch/gm/it/"
URLs[12] = "http://media.gm.com/ch/opel/de/"
URLs[13] = "http://media.gm.com/ch/opel/fr/"
URLs[14] = "http://media.gm.com/ch/opel/it/"
URLs[15] = "http://media.gm.com/eur/gm/en/"
URLs[16] = "http://media.gm.com/de/opel/de/"
URLs[17] = "http://media.gm.com/division/brazil/"
URLs[18] = "http://media.gm.com/us/buick/en/"
URLs[19] = "http://media.gm.com/us/cadillac/en/"
URLs[20] = "http://media.gm.com/ca/gm/fr/index.html"
URLs[21] = "http://media.gm.com/ca/gm/en/index.html"
URLs[22] = "http://media.gm.com/us/chevrolet/en/"
URLs[23] = "http://media.gm.com/division/daewoo/belgium/french/"
URLs[24] = "http://media.gm.com/division/daewoo/austria/"
URLs[25] = "http://media.gm.com/division/daewoo/belgium/dutch/"
URLs[26] = "http://media.gm.com/division/daewoo/danish/"
URLs[27] = "http://media.gm.com/division/daewoo/france/"
URLs[28] = "http://media.gm.com/division/daewoo/germany/"
URLs[29] = "http://media.gm.com/division/daewoo/netherlands/"
URLs[30] = "http://media.gm.com/us/gmc/en/"
URLs[31] = "http://media.gm.com/aus/holden/en/"
URLs[32] = "http://media.gm.com/us/hummer/en/"
URLs[33] = "http://media.gm.com/division/olds/"
URLs[34] = "http://media.gm.com/us/pontiac/en/"
URLs[35] = "http://media.gm.com/us/saturn/en/"
URLs[36] = "http://media.gm.com/es/gm/es/"
URLs[37] = "http://media.gm.com/es/opel/es/"
URLs[38] = "http://media.gm.com/eur/cad/en/main.html"
URLs[39] = "http://media.gm.com/eur/chev/en/"
URLs[40] = "http://media.gm.com/eur/gm/en/"
URLs[41] = "http://media.gm.com/fr/gm/fr/"
URLs[42] = "http://media.gm.com/fr/opel/fr/"
URLs[43] = "http://media.gm.com/intl/opel/en/"
URLs[44] = "http://media.gm.com/it/gm/it/"
URLs[45] = "http://media.gm.com/it/opel/it/"
//URLs[46] = "http://media.gm.com/pt/gm/pt/" // commented by satya
URLs[46] = "http://media.gm.com/eur/gm/en/"
URLs[47] = "http://media.gm.com/pt/opel/pt/" 
URLs[48] = "http://media.gmjapan.co.jp"
URLs[49] = "http://media.gmnorge.no"
URLs[50] = "http://media.gm.com/at/opel/de/"
URLs[51] = "http://media.gm.com/us/saab/en/" //Saab USA
URLs[52] = "http://www.daewoo-cars.gr/"
URLs[53] = "http://media.gm.com/it/chevrolet/it/"
URLs[54] = "http://media.gm.com/at/saab/de/" //Saab Austria
URLs[55] = "http://media.gm.com/au/saab/en/" //Saab Australia
URLs[56] = "http://media.gm.com/be/saab/nl/" //Saab Belgium Dutch
URLs[57] = "http://media.gm.com/be/saab/fr/" //Saab Belgium French
URLs[58] = "http://media.gm.com/dk/saab/da/" //Saab Denmark
URLs[59] = "http://media.gm.com/de/saab/de/" //Saab Germany
URLs[60] = "http://media.gm.com/es/saab/es/" //Saab Spain
URLs[61] = "http://media.gm.com/fr/saab/fr/" //Saab France
URLs[62] = "http://media.gm.com/gr/saab/el/" //Saab Greece
URLs[63] = "http://media.gm.com/nl/saab/nl/" //Saab Netherlands
URLs[64] = "http://media.gm.com/it/saab/it/" //Saab Italia
URLs[65] = "http://media.gm.com/no/saab/no/" //Saab Norway
URLs[66] = "http://media.gm.com/pl/saab/pl/" //Saab Poland
URLs[67] = "http://media.gm.com/pt/saab/pt/" //Saab Portugal
URLs[68] = "http://media.gm.com/ru/saab/ru/" //Saab Russia
URLs[69] = "http://media.gm.com/fi/saab/fi/" //Saab Finland
URLs[70] = "http://media.gm.com/se/saab/sv/" //Saab Sweden
URLs[71] = "http://media.gm.com/eur/corv/en/main.html" // Corvette
URLs[72] = "http://media.gm.com/intl/saab/en/" //Saab International
URLs[73] = "http://media.gm.com/at/chevrolet/de/" //Chevrolet Austria
URLs[74] = "http://media.gm.com/be/chevrolet/nl/" //Chevrolet Belgie
URLs[75] = "http://media.gm.com/be/chevrolet/fr/" //Chevrolet Belgique
URLs[76] = "http://media.gm.com/dk/chevrolet/da/" //Chevrolet Denmark
URLs[77] = "http://media.gm.com/eur/chevrolet/en/main.html" //Chevrolet Europe
URLs[78] = "http://media.gm.com/fr/chevrolet/fr/" //Chevrolet France
URLs[79] = "http://media.gm.com/de/chevrolet/de/" //Chevrolet Germany
URLs[80] = "http://media.gm.com/hu/chevrolet/hu/" //Chevrolet Hungary
URLs[81] = "http://media.gm.com/ie/chevrolet/en/" //Chevrolet Ireland
URLs[82] = "http://media.gm.com/it/chevrolet/it/" //Chevrolet Italy
URLs[83] = "http://media.gm.com/nl/chevrolet/nl/" //Chevrolet Netherlands
URLs[84] = "http://media.gm.com/pl/chevrolet/pl/" //Chevrolet Poland
URLs[85] = "http://media.gm.com/pt/chevrolet/pt/" //Chevrolet Portugal
URLs[86] = "http://media.gm.com/es/chevrolet/es/" //Chevrolet Spain
URLs[87] = "http://media.gm.com/ch/chevrolet/de/" //Chevrolet Swiss DE
URLs[88] = "http://media.gm.com/gb/chevrolet/en/" //Chevrolet UK
URLs[89] = "http://media.gm.com/ch/chevrolet/it/" //Chevrolet Swiss IT
URLs[90] = "http://media.gm.com/ch/chevrolet/fr/" //Chevrolet Swiss FR
URLs[91] = "http://media.gm.com/at/opel/de/" //Opel Austria
URLs[92] = "http://media.gm.com/nl/opel/nl/" //Opel Netherlands
URLs[93] = "http://media.gm.com/gr/opel/el/" //Opel Greek
URLs[94] = "http://media.gm.com/se/opel/sv/" //Opel Sweden
URLs[95] = "http://media.gm.com/no/opel/no/" //Opel Norway
URLs[96] = "http://media.gm.com/ar/chevrolet/es/" //Chevy Argentina
URLs[97] = "http://media.gm.com/ar/suzuki/es/" //Suzuki Argentina
URLs[98] = "http://media.gm.com/gb/saab/en/" //Saab Great Britain
URLs[99] = "http://media.gm.com/ch/saab/de/" //Saab Swiss German
URLs[100] = "http://media.gm.com/ch/saab/fr/" //Saab Swiss French
URLs[101] = "http://media.gm.com/ch/saab/it/" //Saab Swiss Italian
URLs[102] = "http://media.gm.com/ar/gm/es/" //GM Argentina
URLs[103] = "http://media.gm.com/cn/gm/zh/" //GM China Chinese
URLs[104] = "http://media.gm.com/mx/gm/es/"
URLs[105] = "http://media.gm.com/be/corv/fr/" //Corvette BE Fr
URLs[106] = "http://media.gm.com/be/corv/nl/" //Corvette BE NL
URLs[107] = "http://media.gm.com/ch/corv/de/" //Corvette CH DE
URLs[108] = "http://media.gm.com/es/corv/es/" //Corvette ES
URLs[109] = "http://media.gm.com/ch/corv/fr/" //Corvette CH FR
URLs[110] = "http://media.gm.com/ch/corv/it/" //Corvette CH IT
URLs[111] = "http://media.gm.com/de/corv/de/" //Corvette DE
URLs[112] = "http://media.gm.com/fr/corv/fr/" //Corvette FR
URLs[113] = "http://media.gm.com/it/corv/it/" //Corvette IT
URLs[114] = "http://media.gm.com/nl/corv/nl/" //Corvette NL
URLs[115] = "http://media.gm.com/se/corv/sv/" //Corvette SE 
URLs[116] = "http://media.gm.com/gb/corv/en/" //Corvette UK
URLs[117] = "http://media.gm.com/be/cad/fr/" //Cadillac BE FR
URLs[118] = "http://media.gm.com/be/cad/nl/" //Cadillac BE NL
URLs[119] = "http://media.gm.com/ch/cad/de/" //Cadillac CH DE
URLs[120] = "http://media.gm.com/ch/cad/fr/" //Cadillac CH FR
URLs[121] = "http://media.gm.com/ch/cad/it/" //Cadillac CH IT
URLs[122] = "http://media.gm.com/de/cad/de/" //Cadillac DE
URLs[123] = "http://media.gm.com/es/cad/es/" //Cadillac ES
URLs[124] = "http://media.gm.com/fr/cad/fr/" //Cadillac FR
URLs[125] = "http://media.gm.com/it/cad/it/" //Cadillac IT
URLs[126] = "http://media.gm.com/nl/cad/nl/" //Cadillac NL
URLs[127] = "http://media.gm.com/se/cad/sv/" //Cadillac SE
URLs[128] = "http://media.gm.com/gb/cad/en/" //Cadillac UK
URLs[129] = "http://media.gm.com/gr/gm/el/" //GM GR
URLs[130] = "http://media.gm.com/no/gm/no/" //GM NO
URLs[131] = "http://media.gm.com/se/gm/sv/" //GM SE
URLs[132] = "http://media.gm.com/division/gmac/" //GMAC US
URLs[133] = "http://media.gm.com/us/powertrain/en/" //Powertrain US
URLs[134] = "http://media.gm.com/us/onstar/en/" //Onstar US
URLs[135] = "http://media.gm.com/us/spo/en/" //SPO US
URLs[136] = "http://media.gm.com/za/isuzu/en/" //Isuzu South Africa
URLs[137] = "http://media.gm.com/us/gm/es/" //US Spanish Diversity
URLs[138] = "http://media.gm.com/cl/chevrolet/es/" //Chile Chev
URLs[139] = "http://media.gm.com/co/chevrolet/es/" //Colombia Chev
URLs[140] = "http://media.gm.com/ve/chevrolet/es/" //Venezuela Chev
URLs[141] = "http://media.gm.com/ec/chevrolet/es/" //Ecuador Chev
URLs[142] = "http://media.gm.com/korean/" //US Korea
URLs[143] = "http://media.gm.com/chinese/" //US China
URLs[144] = "http://media.gm.com/za/gm/en/" //GM South Africa
URLs[145] = "http://media.gm.com/za/opel/en/" //Opel South Africa
URLs[146] = "http://media.gm.com/za/chevrolet/en/" //Chev South Africa
URLs[147] = "http://media.gm.com/za/saab/en/" //Saab South Africa
URLs[148] = "http://media.gm.com/cn/gm/en/" //GM China English
URLs[149] = "http://media.gm.com/me/gm/en/" //GM Middle East
URLs[150] = "http://media.gm.com/me/cad/en/" //cadillac Middle East
URLs[151] = "http://media.gm.com/me/chevrolet/en/" //Chev Middle East
URLs[152] = "http://media.gm.com/me/hummer/en/" //Hummer Middle East
URLs[153] = "http://media.gm.com/me/opel/en/" //Opel Middle East
URLs[154] = "http://media.gm.com/me/saab/en/" //Saab Middle East
URLs[155] = "http://media.gm.com/me/gmc/en/" //GMC Middle East
URLs[156] = "http://media.gm.com/eur/chevrolet/en/main.html"
URLs[157] = "http://media.gm.com/hu/cad/hu/" //cadillac Hungary
URLs[158] = "http://media.gm.com/pl/cad/pl/" //cadillac Poland
URLs[159] = "http://media.gm.com/hu/corv/hu/" //Corvette Hungary
URLs[160] = "http://media.gm.com/pl/corv/pl/" //Corvette Poland
URLs[161] = "http://media.gm.com/eg/chevrolet/en/" //Chev Egypt
URLs[162] = "http://media.gm.com/eg/gm/en/" //GM Egypt
URLs[163] = "http://media.gm.com/eg/opel/en/" //Opel Egypt
URLs[164] = "http://media.gm.com/cee/gm/en/" //Central Eastern Europe
URLs[165] = "http://media.gm.com/at/gm/de/" //GM Austria
URLs[166] = "http://media.gm.com/dk/gm/da/" //GM Denmark
URLs[167] = "http://media.gm.com/fi/gm/fi/" //GM Finland
URLs[168] = "http://media.gm.com/nl/gm/nl/" //GM Netherlands
URLs[169] = "http://media.gm.com/pt/gm/pt/" //GM Portugal
URLs[170] = "http://media.gm.com/gb/gm/en/" //GM UK
URLs[171] = "http://media.gm.com/br/gm/pt/" //GM Brasil
URLs[172] = "http://media.gm.com/aus/gm/en/" //GM Australia
URLs[173] = "http://media.gm.com/ie/gm/en/" //GM Ireland
URLs[174] = "http://media.gm.com/de/gm/de/" //GM Germany
URLs[175] = "http://media.gm.com/me/gm/ar/" //GM Middle East Arabic
URLs[176] = "http://media.gm.com/me/cad/ar/" //Cadillac Middle East Arabic
URLs[177] = "http://media.gm.com/me/chevrolet/ar/" //Chev Middle East Arabic
URLs[178] = "http://media.gm.com/me/hummer/ar/" //Hummer Middle East Arabic
URLs[179] = "http://media.gm.com/me/opel/ar/" //Opel Middle East Arabic
URLs[180] = "http://media.gm.com/me/saab/ar/" //Saab Middle East Arabic
URLs[181] = "http://media.gm.com/me/gmc/ar/" //GMC Middle East Arabic
URLs[182] = "http://media.gm.com/eur/hummer/en/main.html" //Hummer Europe
URLs[183] = "http://media.gm.com/br/gm/pt/" //GM Brazil
URLs[184] = "http://media.gm.com/co/gm/es/" //GM Colombia
URLs[185] = "http://media.gm.com/cl/gm/es/" //GM Chile
URLs[186] = "http://media.gm.com/ve/gm/es/" //GM Venezuela
URLs[187] = "http://media.gm.com/ec/gm/es/" //GM Ecuador
URLs[188] = "http://media.gm.com/eg/chevrolet/ar/" //Chev Egypt ar
URLs[189] = "http://media.gm.com/eg/gm/ar/" //GM Egypt ar
URLs[190] = "http://media.gm.com/eg/opel/ar/" //Opel Egypt ar
URLs[191] = "http://media.gm.com/regional_nav.html" //BLANK COUNTRY PAGE
URLs[192] = "http://media.gm.com/kr/daewoo/ko/" //Daewoo Korean
URLs[193] = "http://media.gm.com/kr/daewoo/en/" //Daewoo English
URLs[194] = "http://media.gm.com/in/gm/en/" //GM India English
URLs[195] = "http://media.gm.com/in/gm/en/product_services/vehicles/" //Chevrolet India English
URLs[196] = "http://media.gm.com/cz/cad/cs/" //Cadillac Czech
URLs[197] = "http://media.gm.com/cz/corv/cs/" //Corvette Czech
URLs[198] = "http://media.gm.com/za/cadillac/en/" //Cadillac South Africa
URLs[199] = "http://media.gm.com/za/hummer/en/" //Hummer South Africa
URLs[200] = "http://media.gm.com/aus/hummer/en/" //HUMMER Australia
URLs[201] = "http://www.gm-press.com/2006/HU/site/index.php?brand=3" //Chevrolet Hungary
URLs[202] = "http://www.gm-press.com/2006/HU/site/index.php?brand=2" //Opel Hungary
URLs[203] = "http://www.gm-press.com/2006/HU/site/index.php?brand=1" //GM Hungary
URLs[204] = "http://media.gm.com/ca/gm/fr/products/buick/index.html" //GM Canada Products
URLs[205] = "http://media.gm.com/ca/gm/en/products/buick/index.html" //GM Canada Products
URLs[206] = "http://media.gm.com/ca/gm/fr/products/cadillac/index.html" //GM Canada Products
URLs[207] = "http://media.gm.com/ca/gm/en/products/cadillac/index.html" //GM Canada Products
URLs[208] = "http://media.gm.com/ca/gm/fr/products/chevrolet/index.html" //GM Canada Products
URLs[209] = "http://media.gm.com/ca/gm/en/products/chevrolet/index.html" //GM Canada Products
URLs[210] = "http://media.gm.com/ca/gm/fr/products/pontiac/index.html" //GM Canada Products
URLs[211] = "http://media.gm.com/ca/gm/en/products/pontiac/index.html" //GM Canada Products
URLs[212] = "http://media.gm.com/ca/gm/fr/products/gmc/index.html" //GM Canada Products
URLs[213] = "http://media.gm.com/ca/gm/en/products/gmc/index.html" //GM Canada Products
URLs[214] = "http://media.gm.com/ca/gm/fr/products/saturn/index.html" //GM Canada Products
URLs[215] = "http://media.gm.com/ca/gm/en/products/saturn/index.html" //GM Canada Products
URLs[216] = "http://media.gm.com/ca/gm/fr/products/saab/index.html" //GM Canada Products
URLs[217] = "http://media.gm.com/ca/gm/en/products/saab/index.html" //GM Canada Products
URLs[218] = "http://media.gm.com/ca/gm/fr/products/hummer/index.html" //GM Canada Products
URLs[219] = "http://media.gm.com/ca/gm/en/products/hummer/index.html" //GM Canada Products
URLs[220] = "http://media.gm.com/gb/hummer/en/" //HUMMER UK
URLs[221] = "http://media.gm.com/se/cad/sv/" //Cadillac Sweden
URLs[222] = "http://media.gm.com/se/corv/sv/" //Corvette Sweden
URLs[223] = "http://media.gm.com/za/saab/en/" //SAAB South Africa
URLs[224] = "http://media.gm.com/aus/cadillac/en/" //Cadillac Australia

var LanguagesURLs = new Array(); //LanguageURLs index number corresponds to Country Index number 
					// First number in nested array corresponds to Brands Index number, the second number to Languages Index number, and the third to the URL Index number.

LanguagesURLs[0] = new Array(	
					new Array(4,0,191));
								
LanguagesURLs[1] = new Array(	
					new Array(2,5,96),
					new Array(4,5,102),
					new Array(15,5,97));
								
LanguagesURLs[2] = new Array(	
					new Array(4,0,191));
					
LanguagesURLs[3] = new Array(	
					new Array(1,0,224),
					new Array(4,0,172),
					new Array(6,0,31),
					new Array(7,0,200),
					new Array(11,0,55));
								
LanguagesURLs[4] = new Array(	
					new Array(1,0,38),
					new Array(3,1,73),
					new Array(4,1,165),
					new Array(7,0,182),
					new Array(9,1,91),
					new Array(14,0,71),
					new Array(11,1,54));
								
LanguagesURLs[5] = new Array(	
					new Array(1,2,117), 
					new Array(1,4,118), 
					new Array(3,2,75), 
					new Array(3,4,74), 
					new Array(4,1,3),
					new Array(4,2,4),
					new Array(4,4,5),
					new Array(7,0,182),
					new Array(9,1,6),
					new Array(9,2,7),
					new Array(9,4,8),
					new Array(11,4,56),
					new Array(14,2,105),
					new Array(14,4,106),
					new Array(11,2,57));
								
LanguagesURLs[6] = new Array(	
					new Array(2,6,17),
					new Array(4,6,183));
								
LanguagesURLs[7] = new Array(	
					new Array(0,2,204),
					new Array(0,0,205), 
					new Array(1,2,206),
					new Array(1,0,207),
					new Array(2,2,208),
					new Array(2,0,209),
					new Array(4,2,20),
					new Array(4,0,21),
					new Array(5,2,212),
					new Array(5,0,213),
					new Array(7,2,218),
					new Array(7,0,219),
					new Array(10,2,210),
					new Array(10,0,211),
					new Array(11,2,216),
					new Array(11,0,217),
					new Array(12,2,214),
					new Array(12,0,215));
								
LanguagesURLs[8] = new Array(	
					new Array(4,0,164));

LanguagesURLs[9] = new Array(	
					new Array(2,5,138), 
					new Array(4,5,185));
								
LanguagesURLs[10] = new Array(	
					new Array(4,16,103),
					new Array(4,0,148));
								
LanguagesURLs[11] = new Array(	
					new Array(2,5,139),
					new Array(4,5,184));
								
LanguagesURLs[12] = new Array(	
					new Array(4,0,164));

LanguagesURLs[13] = new Array(	
					new Array(1,18,196),
					new Array(4,0,164),
					new Array(14,18,197),
					new Array(7,0,182));
					
LanguagesURLs[14] = new Array(	
					new Array(3,8,76), 
					new Array(4,8,166),
					new Array(7,0,182),
					new Array(9,8,166),
					new Array(11,8,58));
								
LanguagesURLs[15] = new Array(	
					new Array(2,5,141),
					new Array(4,5,187));
								
LanguagesURLs[16] = new Array(	
					new Array(2,0,161), 
					new Array(2,19,188), 
					new Array(4,0,162),
					new Array(4,19,189),
					new Array(9,0,163),
					new Array(9,19,190));
								
LanguagesURLs[17] = new Array(	
					new Array(1,0,38), 
					new Array(3,0,156),
					new Array(4,0,40),
					new Array(7,0,182),
					new Array(9,0,43),
					new Array(11,0,72),
					new Array(14,0,71));
					
LanguagesURLs[18] = new Array(	
					new Array(3,0,77), 
					new Array(4,11,167),
					new Array(7,0,182),
					new Array(9,0,43),
					new Array(11,11,69));

LanguagesURLs[19] = new Array(	
					new Array(3,2,78),
					new Array(1,2,124),
					new Array(4,2,41),
					new Array(7,0,182),
					new Array(9,2,42),
					new Array(14,2,112),
					new Array(11,2,61));

LanguagesURLs[20] = new Array(	
					new Array(1,1,122), 
					new Array(3,1,79),
					new Array(4,1,174),
					new Array(7,0,182),
					new Array(9,1,16),
					new Array(14,1,111),
					new Array(11,1,59));

LanguagesURLs[21] = new Array(	
					new Array(3,9,77), 
					new Array(4,9,129),
					new Array(5,0,43),
					new Array(7,0,182),
					new Array(14,0,71),
					new Array(9,9,93),
					new Array(11,9,62));
								
LanguagesURLs[22] = new Array(	
					new Array(1,15,157), 
					new Array(2,15,201),
					new Array(4,15,203),
					new Array(9,15,202),
					new Array(14,15,159));

LanguagesURLs[23] = new Array(	
					new Array(4,0,194),
					new Array(2,0,195));

LanguagesURLs[24] = new Array(	
					new Array(3,0,81), 
					new Array(4,0,173),
					new Array(7,0,182),
					new Array(9,0,43),
					new Array(11,0,72));

LanguagesURLs[25] = new Array(	
					new Array(3,3,82),
					new Array(1,3,125), 
					new Array(4,3,44),
					new Array(7,0,182),
					new Array(9,3,45),
					new Array(11,3,64),				
					new Array(14,3,113));

LanguagesURLs[26] = new Array(	
					new Array(0,10,48), 
					new Array(1,10,48),
					new Array(2,10,48),
					new Array(3,10,48),
					new Array(4,10,48),
					new Array(5,10,48),
					new Array(7,0,32),
					new Array(9,10,48),
					new Array(11,10,48),
					new Array(12,10,48));

LanguagesURLs[27] = new Array(	
					new Array(4,0,191));

LanguagesURLs[28] = new Array(	
					new Array(1,5,104), 
					new Array(2,5,104),
					new Array(4,5,104),
					new Array(7,0,32),
					new Array(9,5,104),
					new Array(10,5,104),
					new Array(11,5,104));

LanguagesURLs[29] = new Array(	
					new Array(1,0,150), 
					new Array(1,19,176), 
					new Array(2,0,151),
					new Array(2,19,177),
					new Array(4,0,149),
					new Array(4,19,175),
					new Array(5,0,155),
					new Array(5,19,181),
					new Array(7,0,152),
					new Array(7,19,178),
					new Array(11,0,154),
					new Array(11,19,180));

LanguagesURLs[30] = new Array(	
					new Array(3,4,83),
					new Array(1,4,126), 
					new Array(4,4,168),
					new Array(7,0,182),
					new Array(9,4,92),
					new Array(14,4,114),
					new Array(11,4,63));

LanguagesURLs[31] = new Array(	
					new Array(4,0,0), 
					new Array(6,0,31),
					new Array(11,0,55));

LanguagesURLs[32] = new Array(	
					new Array(1,0,39), 
					new Array(3,0,77),
					new Array(4,7,130),
					new Array(7,0,182),
					new Array(9,7,95),
					new Array(14,0,71),
					new Array(11,7,65));

LanguagesURLs[33] = new Array(	
					new Array(1,12,158),
					new Array(4,0,164),
					new Array(14,12,160));

LanguagesURLs[34] = new Array(	
					new Array(9,6,47),
					new Array(4,6,169),
					new Array(3,6,85),
					new Array(11,6,67));

LanguagesURLs[35] = new Array(	
					new Array(4,0,164),
					new Array(7,0,182));

LanguagesURLs[36] = new Array(	
					new Array(1,0,198), 
					new Array(2,0,146), 
					new Array(4,0,144),
					new Array(7,0,199), 
					new Array(9,0,145),
					new Array(11,0,223),
					new Array(20,0,136));

LanguagesURLs[37] = new Array(	
					new Array(4,0,191));
					
LanguagesURLs[38] = new Array(	
					new Array(21,0,193),
					new Array(21,17,192));

LanguagesURLs[39] = new Array(	
					new Array(1,5,123), 
					new Array(3,5,86),
					new Array(4,5,36),
					new Array(7,0,182),
					new Array(9,5,37),
					new Array(14,5,108),
					new Array(11,5,60));

LanguagesURLs[40] = new Array(	
					new Array(1,13,221), 
					new Array(3,0,77),
					new Array(4,13,131),
					new Array(7,0,182),
					new Array(9,13,94),
					new Array(14,13,222),
					new Array(11,13,70));

LanguagesURLs[41] = new Array(	
					new Array(1,1,119), 
					new Array(1,2,120), 
					new Array(1,3,121), 
					new Array(3,1,87),
					new Array(3,2,90),
					new Array(3,3,89),
					new Array(4,1,9),
					new Array(4,2,10),
					new Array(4,3,11),
					new Array(7,0,182),
					new Array(9,1,12),
					new Array(9,2,13),
					new Array(9,3,14),
					new Array(14,1,107),
					new Array(14,2,109),
					new Array(14,3,110),
					new Array(11,1,99),
					new Array(11,2,100));

LanguagesURLs[42] = new Array(	
					new Array(4,0,191));

LanguagesURLs[43] = new Array(	
					new Array(4,0,164));

LanguagesURLs[44] = new Array(
					new Array(1,0,128),
					new Array(3,0,88),
					new Array(4,0,170),
					new Array(7,0,220),
					new Array(11,0,98),
					new Array(13,0,1),
					new Array(14,0,116));
								
LanguagesURLs[45] = new Array(	
					new Array(0,0,18), 
					new Array(1,0,19),
					new Array(2,0,22),
					new Array(4,0,0),
					new Array(5,0,30),
					new Array(7,0,32),
					new Array(8,0,33),
					new Array(10,0,34),
					new Array(11,0,51),
					new Array(17,0,133),
					new Array(19,0,134),
					new Array(18,0,135),
					new Array(12,0,35));				
								
LanguagesURLs[46] = new Array(	
					new Array(2,5,140),
					new Array(4,5,186));

LanguagesURLs[47] = new Array(	
					new Array(98,0,1),
					new Array(99,50,1));

function loadSearchDropDown() {
			//Put in "top" link after the fact - this avoids a template revision
			if (!op7) {
				if (document.getElementById("subContentWrapper")) {
					var Text = document.getElementById("subContentWrapper").innerHTML 
					document.getElementById("subContentWrapper").innerHTML = "<a name='top'></a>" + Text
				}
				
			}
			// Load Search Drop down 
			
			//if (SearchCollectionDisplay == null || SearchCollectionDisplay == "" ) { var SearchCollectionDisplay = " This site "}
			//if (SearchAllMediaOnline == null || SearchAllMediaOnline == "") { var SearchAllMediaOnline = "All Media Online" }
			

/*				
*/
		// insert Search Template parameter
	if (!(mac && ie5)) {		
		var theFormText  = document.getElementById("searchForm").innerHTML
		document.getElementById("searchForm").innerHTML = theFormText + "<input id='hiddenField5' type=hidden name='sp-t' value='" + SearchTemplate + "' />"
	}
}
								
function loadDropDowns() {


	// Load Country-Brand-Language Navigation drop-downs

			var temp = 0;
	for (i=0;i<Countries.length;i++) {

			if (i == thisCountry) { temp = i; }
	

			document.country_brand_language.country_selection.options[i] = new Option(Countries[i],i,false)
			
		}
			document.country_brand_language.country_selection.options[temp].selected = true

			var temp = 0;
			var j = 1;
			
	for (i=0;i<CountryBrands[thisCountry].length;i++) {
			if (CountryBrands[thisCountry][i] == thisBrand) {temp = i  }
			document.country_brand_language.brand_selection.options[j] = new Option(Brands[CountryBrands[thisCountry][i]],CountryBrands[thisCountry][i],false)
			j=j+1
		}
		
			document.country_brand_language.brand_selection.options[temp + 1].selected = true
			j = 1;
			
	for (i=0;i<LanguagesURLs[thisCountry].length;i++) {
			if (LanguagesURLs[thisCountry][i][0] == thisBrand) { 
				if (LanguagesURLs[thisCountry][i][1] == thisLanguage) { temp = j }
			document.country_brand_language.language_selection.options[j] = new Option(Languages[LanguagesURLs[thisCountry][i][1]],URLs[LanguagesURLs[thisCountry][i][2]],true)
			j=j+1
			}
		}
			document.country_brand_language.language_selection.options[temp].selected = true
			done = true;

}

function jumpMenu(selector, choice) {
		 
		switch (selector) {
			case "country" :
			
			document.country_brand_language.brand_selection.length = 0
			document.country_brand_language.brand_selection.options[0] = new Option('Select Brand',0,false)

			var CountryIndex = choice.value 
				for (i=0; i<CountryBrands[CountryIndex].length;i++) {
					var BrandIndex = CountryBrands[CountryIndex][i]

					var BrandName = Brands[BrandIndex]
					document.country_brand_language.brand_selection.options[i+1] = new Option(BrandName,BrandIndex)

				}	
				document.getElementById("countryHighlight").style.visibility = "hidden";
				document.getElementById("brandHighlight").style.visibility = "visible";
				document.getElementById("languageHighlight").style.visibility = "hidden";
			break
			case "brand" :
				document.country_brand_language.language_selection.length = 0
				document.country_brand_language.language_selection.options[0] = new Option('Select Language',0,false)

				var CountryIndex = document.country_brand_language.country_selection[document.country_brand_language.country_selection.selectedIndex].value
				
				var BrandIndex = choice.value
				var j=0
				for (i=0; i<LanguagesURLs[CountryIndex].length;i++) {
					if(LanguagesURLs[CountryIndex][i][0] == BrandIndex) {
						document.country_brand_language.language_selection.options[j+1] = new Option(Languages[LanguagesURLs[CountryIndex][i][1]],URLs[LanguagesURLs[CountryIndex][i][2]])
						j=j+1
						}
				}
				document.getElementById("countryHighlight").style.visibility = "hidden";
				document.getElementById("brandHighlight").style.visibility = "hidden";
				document.getElementById("languageHighlight").style.visibility = "visible";
			break
			case "language" :
				var CountryIndex = document.country_brand_language.country_selection[document.country_brand_language.country_selection.selectedIndex].value
				var destinationURL = choice.value
				window.location = destinationURL
			break
			
		default:
		}
}
/* Begin Rollover Menu Functions*/
function NavSubOpen(ElementId) 
{
	document.getElementById(ElementId).style.display = 'block';
}

function NavSubClose(ElementId)
{
	document.getElementById(ElementId).style.display = 'none';
}
/* End Rollover Menu Functions */