//Objects used to hold the data
function Transitions_loc( location, languages ) {
    this.location = location;
    this.languages = languages;
}

function Transitions_lang( lang_name, sites){
    this.lang_name= lang_name;
    this.sites = sites;
}

function Transitions_site( site_name, url ){
    this.site_name = site_name;
    this.url = url;
}

//Redirects will work for staging and live sites.  Set the prefix for staging here.
var rootURL = document.URL;
var prefix = rootURL.match('staging-');


//Store the data
var locationArr = new Array();
var i=0;
tempSite = new Transitions_site('Consumidor', ('http://fr-emea.transitions.com'));	
tempSite1 = new Transitions_site('Profesional', 'http://fr-emea.transitions.com/professionals');
tempLang = new Transitions_lang('Franc\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Argelia", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://fr.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://fr.transitions.com/professionals');	
tempLang = new Transitions_lang('Franc\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Andorra", [tempLang]);
i++;
tempSite1 = new Transitions_site('Consumidor', 'http://asia.transitions.com');	
tempSite2 = new Transitions_site('Profesional', 'http://asia.transitions.com/professionals');	
tempLang1 = new Transitions_lang('Ingl\u00e9s', [tempSite1, tempSite2]);
tempSite3 = new Transitions_site('Consumidor', 'http://tw.transitions.com');	
tempSite4 = new Transitions_site('Profesional', 'http://tw.transitions.com/professionals');	
tempLang2 = new Transitions_lang('Chinese', [tempSite3, tempSite4]);
locationArr[i] = new Transitions_loc("Asia", [tempLang1, tempLang2]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://au.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://au.transitions.com/professionals');
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Australia", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://at.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://at.transitions.com/professionals');
tempLang = new Transitions_lang('Austr\u00edaco', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Austria", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-middleeast.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://en-middleeast.transitions.com/professionals');	
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Bahrein", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://nl-be.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://nl-be.transitions.com/professionals');
tempLang = new Transitions_lang('Holand\u00e9s', [tempSite, tempSite1]);
tempSite2 = new Transitions_site('Consumidor', 'http://fr-be.transitions.com');	
tempSite3 = new Transitions_site('Profesional', 'http://fr-be.transitions.com/professionals');	
tempLang1 = new Transitions_lang('Franc\u00e9s', [tempSite2, tempSite3]);
locationArr[i] = new Transitions_loc("B\u00e9lgica", [tempLang, tempLang1]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://fr-emea.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://fr-emea.transitions.com/professionals');
tempLang = new Transitions_lang('Franc\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Rep\u00fablica De Benin", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-emea.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://en-emea.transitions.com/professionals');
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Bulgaria", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://fr-emea.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://fr-emea.transitions.com/professionals');	
tempLang = new Transitions_lang('Franc\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Burkina Faso", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://fr-emea.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://fr-emea.transitions.com/professionals');	
tempLang = new Transitions_lang('Franc\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Camer\u00fan", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-ca.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://en-ca.transitions.com/professionals');
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
tempSite2 = new Transitions_site('Consumidor', 'http://fr-ca.transitions.com');
tempSite3 = new Transitions_site('Profesional', 'http://fr-ca.transitions.com/professionals');	
tempLang1 = new Transitions_lang('Franc\u00e9s', [tempSite2, tempSite3]);
locationArr[i] = new Transitions_loc("Canad\u00e1", [tempLang, tempLang1]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://cz.transitions.com');
tempSite1 = new Transitions_site('Profesional', 'http://cz.transitions.com/professionals');	
tempLang = new Transitions_lang('Checo', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Rep\u00fablica Checa", [tempLang]);
i++;
tempSite1 = new Transitions_site('Consumidor', 'http://asia.transitions.com');	
tempSite2 = new Transitions_site('Profesional', 'http://asia.transitions.com/professionals');	
tempLang1 = new Transitions_lang('Ingl\u00e9s', [tempSite1, tempSite2]);
tempSite3 = new Transitions_site('Consumidor', 'http://www.transitions.com.cn');	
tempSite4 = new Transitions_site('Profesional', 'http://www.transitions.com.cn/professionals');	
tempLang2 = new Transitions_lang('Chinese', [tempSite3, tempSite4]);
locationArr[i] = new Transitions_loc("China", [tempLang1, tempLang2]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-emea.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://en-emea.transitions.com/professionals');
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Chipre", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://fr-emea.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://fr-emea.transitions.com/professionals');	
tempLang = new Transitions_lang('Franc\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Congo", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://asia.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://asia.transitions.com/professionals');	
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Corea", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-emea.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://en-emea.transitions.com/professionals');	
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Croatia", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-emea.transitions.com');
tempSite1 = new Transitions_site('Profesional', 'http://en-emea.transitions.com/professionals');	
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Dinamarca", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-middleeast.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://en-middleeast.transitions.com/professionals');	
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Egipto", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-emea.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://en-emea.transitions.com/professionals');
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Etiop\u00eda", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-emea.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://en-emea.transitions.com/professionals');	
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Estonia", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://asia.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://asia.transitions.com/professionals');	
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Filipinas", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-emea.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://en-emea.transitions.com/professionals');	
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Finlandia", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://fr.transitions.com');
tempSite1 = new Transitions_site('Profesional', 'http://fr.transitions.com/professionals');	
tempLang = new Transitions_lang('Franc\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Francia", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://fr.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://fr.transitions.com/professionals');
tempLang = new Transitions_lang('Franc\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Polinesia Francesa", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://fr-emea.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://fr-emea.transitions.com/professionals');
tempLang = new Transitions_lang('Franc\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Gab\u00f3n", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-emea.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://en-emea.transitions.com/professionals');
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Georgia", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://de.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://de.transitions.com/professionals');
tempLang = new Transitions_lang('Alem\u00e1n', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Alemania", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-emea.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://en-emea.transitions.com/professionals');
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Ghana", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-emea.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://en-emea.transitions.com/professionals');
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Grecia", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://fr.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://fr.transitions.com/professionals');	
tempLang = new Transitions_lang('Franc\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Guadeloupe", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-emea.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://en-emea.transitions.com/professionals');	
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Guinea", [tempLang]);
i++;
tempSite1 = new Transitions_site('Consumidor', 'http://asia.transitions.com');	
tempSite2 = new Transitions_site('Profesional', 'http://asia.transitions.com/professionals');	
tempLang1 = new Transitions_lang('Ingl\u00e9s', [tempSite1, tempSite2]);
tempSite3 = new Transitions_site('Consumidor', 'http://tw.transitions.com');	
tempSite4 = new Transitions_site('Profesional', 'http://tw.transitions.com/professionals');	
tempLang2 = new Transitions_lang('Chinese', [tempSite3, tempSite4]);
locationArr[i] = new Transitions_loc("Hong Kong", [tempLang1, tempLang2]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://hu.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://hu.transitions.com/professionals');	
tempLang = new Transitions_lang('H\u00fangaro', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Hungr\u00eda", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://asia.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://asia.transitions.com/professionals');	
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("India", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://asia.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://asia.transitions.com/professionals');	
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Indonesia", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://gb.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://gb.transitions.com/professionals');	
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Irlanda", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-middleeast.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://en-middleeast.transitions.com/professionals');	
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Israel", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://it.transitions.com/');	
tempSite1 = new Transitions_site('Profesional', 'http://it.transitions.com/professionals');	//for new 2008 site
//tempSite1 = new Transitions_site('Profesional', 'http://it.transitions.com/trade/');   //for old 2007 site
tempLang = new Transitions_lang('Italiano', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Italia", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://fr-emea.transitions.com');
tempSite1 = new Transitions_site('Profesional', 'http://fr-emea.transitions.com/professionals');	
tempLang = new Transitions_lang('Franc\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Costa de Marfil", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', ' http://www.transitions.co.jp/index.html');	
tempSite1 = new Transitions_site('Consumidor', 'http://asia.transitions.com/');	
tempSite2 = new Transitions_site('Profesional', 'http://asia.transitions.com/professionals');
tempLang = new Transitions_lang('Japon\u00e9s', [tempSite]);
tempLang1 = new Transitions_lang('Ingl\u00e9s', [tempSite1, tempSite2]);
locationArr[i] = new Transitions_loc("Jap\u00f3n", [tempLang, tempLang1]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-emea.transitions.com');
tempSite1 = new Transitions_site('Profesional', 'http://en-emea.transitions.com/professionals');	
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Kazakhstan", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-emea.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://en-emea.transitions.com/professionals');	
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Kenia", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-middleeast.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://en-middleeast.transitions.com/professionals');	
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Kuwait", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://pt-la.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://pt-la.transitions.com/professionals');
tempLang = new Transitions_lang('Portugu\u00e9s', [tempSite, tempSite1]);
tempSite2 = new Transitions_site('Consumidor', 'http://es-la.transitions.com');
tempSite3 = new Transitions_site('Profesional', 'http://es-la.transitions.com/professionals');	
tempLang1 = new Transitions_lang('Espa\u00f1ol', [tempSite2, tempSite3]);
locationArr[i] = new Transitions_loc("Am\u00e9rica Latina", [tempLang, tempLang1]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-emea.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://en-emea.transitions.com/professionals');	
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Latvia", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-middleeast.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://en-middleeast.transitions.com/professionals');	
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("L\u00edbano", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-emea.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://en-emea.transitions.com/professionals');	
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Lituania", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://fr-emea.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://fr-emea.transitions.com/professionals');	
tempLang = new Transitions_lang('Franc\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Luxemburgo", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://fr-emea.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://fr-emea.transitions.com/professionals');tempLang = new Transitions_lang('Franc\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Madagascar", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://asia.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://asia.transitions.com/professionals');	
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Malasia", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://fr-emea.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://fr-emea.transitions.com/professionals');	
tempLang = new Transitions_lang('Franc\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Mal\u00ed", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-emea.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://en-emea.transitions.com/professionals');	
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Malta", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://fr.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://fr.transitions.com/professionals');	
tempLang = new Transitions_lang('Franc\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Martinica", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://fr-emea.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://fr-emea.transitions.com/professionals');
tempLang = new Transitions_lang('Franc\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Isla Mauricio", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-middleeast.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://en-middleeast.transitions.com/professionals');
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Medio-este", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-emea.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://en-emea.transitions.com/professionals');
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Moldavia", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://fr-emea.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://fr-emea.transitions.com/professionals');
tempLang = new Transitions_lang('Franc\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Marruecos", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://nl.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://nl.transitions.com/professionals');
tempLang = new Transitions_lang('Holand\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Pa\u00edses Bajos", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://fr.transitions.com');
tempSite1 = new Transitions_site('Profesional', 'http://fr.transitions.com/professionals');	
tempLang = new Transitions_lang('Franc\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Nueva Caledonia", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://au.transitions.com');
tempSite1 = new Transitions_site('Profesional', 'http://au.transitions.com/professionals');	
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Nueva Zelandia", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://fr-emea.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://fr-emea.transitions.com/professionals');
tempLang = new Transitions_lang('Franc\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Niger", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-emea.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://en-emea.transitions.com/professionals');	
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Nigeria", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-emea.transitions.com');
tempSite1 = new Transitions_site('Profesional', 'http://en-emea.transitions.com/professionals');	
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Noruega", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://pl.transitions.com');
tempSite1 = new Transitions_site('Profesional', 'http://pl.transitions.com/professionals');	
tempLang = new Transitions_lang('Pulimento', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Polonia", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://pt.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://pt.transitions.com/professionals');
tempLang = new Transitions_lang('Portugu\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Portugal", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://fr.transitions.com');
tempSite1 = new Transitions_site('Profesional', 'http://fr.transitions.com/professionals');	
tempLang = new Transitions_lang('Franc\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Reuni\u00f3n", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://ru.transitions.com');
tempSite1 = new Transitions_site('Profesional', 'http://ru.transitions.com/professionals');		
tempLang = new Transitions_lang('Ruso', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Rusia", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-middleeast.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://en-middleeast.transitions.com/professionals');	
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("La Arabia Saudita", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://fr-emea.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://fr-emea.transitions.com/professionals');	
tempLang = new Transitions_lang('Franc\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Senegal", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-emea.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://en-emea.transitions.com/professionals');
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Eslovaquia", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-emea.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://en-emea.transitions.com/professionals');	
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Eslovenia ", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-africa.transitions.com');
tempSite1 = new Transitions_site('Profesional', 'http://en-africa.transitions.com/professionals');	
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Sur\u00e1frica", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://es.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://es.transitions.com/professionals');
tempLang = new Transitions_lang('Espa\u00f1ol', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Espa\u00f1a", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://se.transitions.com');
tempSite1 = new Transitions_site('Profesional', 'http://se.transitions.com/professionals');	
tempLang = new Transitions_lang('Sueco', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Suecia", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-middleeast.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://en-middleeast.transitions.com/professionals');	
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Siria", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://de-ch.transitions.com');
tempSite1 = new Transitions_site('Profesional', 'http://de-ch.transitions.com/professionals');	
tempLang = new Transitions_lang('Alem\u00e1n', [tempSite, tempSite1]);
tempSite2 = new Transitions_site('Consumidor', 'http://fr-ch.transitions.com');	
tempSite3 = new Transitions_site('Profesional', 'http://fr-ch.transitions.com/professionals');	
tempLang1 = new Transitions_lang('Franc\u00e9s', [tempSite2, tempSite3]);
tempSite4 = new Transitions_site('Consumidor', 'http://it-ch.transitions.com');
tempSite5 = new Transitions_site('Profesional', 'http://it-ch.transitions.com/professionals');	
tempLang2 = new Transitions_lang('Itialian', [tempSite4, tempSite5]);
locationArr[i] = new Transitions_loc("Suiza", [tempLang, tempLang1, tempLang2]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-emea.transitions.com');
tempSite1 = new Transitions_site('Profesional', 'http://en-emea.transitions.com/professionals');	
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Tanzania", [tempLang]);
i++;
tempSite1 = new Transitions_site('Consumidor', 'http://asia.transitions.com');	
tempSite2 = new Transitions_site('Profesional', 'http://asia.transitions.com/professionals');	
tempLang1 = new Transitions_lang('Ingl\u00e9s', [tempSite1, tempSite2]);
locationArr[i] = new Transitions_loc("Tailandia", [tempLang1]);
i++;
tempSite1 = new Transitions_site('Consumidor', 'http://asia.transitions.com');	
tempSite2 = new Transitions_site('Profesional', 'http://asia.transitions.com/professionals');	
tempLang1 = new Transitions_lang('Ingl\u00e9s', [tempSite1, tempSite2]);
tempSite3 = new Transitions_site('Consumidor', 'http://tw.transitions.com');	
tempSite4 = new Transitions_site('Profesional', 'http://tw.transitions.com/professionals');	
tempLang2 = new Transitions_lang('Chinese', [tempSite3, tempSite4]);
locationArr[i] = new Transitions_loc("Taiw\u00e1n", [tempLang1, tempLang2]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://fr-emea.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://fr-emea.transitions.com/professionals');
tempLang = new Transitions_lang('Franc\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Togo", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://fr-emea.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://fr-emea.transitions.com/professionals');
tempLang = new Transitions_lang('Franc\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("T\u00fanez", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://tr.transitions.com');
tempSite1 = new Transitions_site('Profesional', 'http://tr.transitions.com/professionals');	
tempLang = new Transitions_lang('Turco', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Turqu\u00eda", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-emea.transitions.com');
tempSite1 = new Transitions_site('Profesional', 'http://en-emea.transitions.com/professionals');	
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Ucrania", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://en-middleeast.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://en-middleeast.transitions.com/professionals');	
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Emiratos \u00e1rabes Unidos", [tempLang]);
i++;
tempSite = new Transitions_site('Consumidor', 'http://gb.transitions.com');	
tempSite1 = new Transitions_site('Profesional', 'http://gb.transitions.com/professionals');
tempLang = new Transitions_lang('Ingl\u00e9s', [tempSite, tempSite1]);
locationArr[i] = new Transitions_loc("Reino Unido", [tempLang]);
i++;
tempSite1 = new Transitions_site('Consumidor', 'http://en-us.transitions.com');
tempSite2 = new Transitions_site('Profesional', 'http://en-us.transitions.com/professionals');	
tempLang1 = new Transitions_lang('Ingl\u00e9s', [tempSite1, tempSite2]);
tempSite3 = new Transitions_site('Consumidor', 'http://es-us.transitions.com');	
tempSite4 = new Transitions_site('Profesional', 'http://es-us.transitions.com/professionals');
tempLang2 = new Transitions_lang('Espa\u00f1ol', [tempSite3, tempSite4]);
locationArr[i] = new Transitions_loc("Estados Unidos", [tempLang1, tempLang2]);
i++;

//Write the data.  WriteLoactions gets called from the body's onLoad event.  The next two functions are called from onchange events.
function writeLocations() {
    var d=0;
    for(d=0; d<locationArr.length; d++){
	    loc = locationArr[d].location;
	    document.forms['siteSelect'].locationSelect.options[d+1] = new Option(loc,d);
	}	
}

function writeLanguages(locationIndex){	
    loc = locationArr[locationIndex];
    var j=0;
    for(j=0; j<loc.languages.length; j++){
        lang = loc.languages[j].lang_name;
        document.forms['siteSelect'].languageSelect.options[j+1] = new Option(lang,j);
    }
    document.forms['siteSelect'].siteTypeSelect.options.length = 1;
}

function writeSites(langIndex){
    locationIndex = document.forms['siteSelect'].locationSelect.value;
    lang = locationArr[locationIndex].languages[langIndex];
    var k=0;
    for(k=0; k<lang.sites.length; k++){
        site = lang.sites[k].site_name;
        url = lang.sites[k].url;
        /*if(prefix){
            http = url.substring(0, 7);
            theRest = url.substring(7);
            document.forms['siteSelect'].siteTypeSelect.options[k+1] = new Option(site, http+prefix+theRest);
         }
         else*/
         document.forms['siteSelect'].siteTypeSelect.options[k+1] = new Option(site, url);
    }
}

