<!--
//to add a country, add it to this if statement as an option
//if you change the numbering, be sure to change it in the loadHomeBusiness function

//To change the address of a page for a country or add pages to a country, add it to
//the loadHomeBusiness function


if (document.siteSelect.country) {
        document.siteSelect.country.options.length = 26;
        document.siteSelect.country.options[0].text = "请选择国家和语言";
        document.siteSelect.country.options[0].selected = true;
        document.siteSelect.country.options[1].text = "- - - - - - - - - - - - - - - - - - - - ";
        document.siteSelect.country.options[2].text = "北美 - 英语";
        document.siteSelect.country.options[3].text = "欧洲 - 英语";
        document.siteSelect.country.options[4].text = "欧洲 - 德语";
        document.siteSelect.country.options[5].text = "欧洲 - 法语";
        document.siteSelect.country.options[6].text = "欧洲 - 西班牙语";
        document.siteSelect.country.options[7].text = "欧洲 - 意大利语";
        document.siteSelect.country.options[8].text = "欧洲 - 斯洛伐克语";
        document.siteSelect.country.options[9].text = "墨西哥 - 西班牙语";
        document.siteSelect.country.options[10].text = "阿根廷 - 西班牙语";
        document.siteSelect.country.options[11].text = "巴西 - 葡萄牙语";
        document.siteSelect.country.options[12].text = "智利 - 西班牙语";
        document.siteSelect.country.options[13].text = "秘鲁 - 西班牙语";
        document.siteSelect.country.options[14].text = "委内瑞拉 - 西班牙语";
        document.siteSelect.country.options[15].text = "澳大利亚 - 英语";
	document.siteSelect.country.options[16].text = "中国 - 汉语";
	document.siteSelect.country.options[17].text = "印度尼西亚 - 英语";
	document.siteSelect.country.options[18].text = "日本 - 英语";
	document.siteSelect.country.options[19].text = "韩国 - 英语";
	document.siteSelect.country.options[20].text = "马来西亚 - 英语";
	document.siteSelect.country.options[21].text = "菲律宾 - 英语";
	document.siteSelect.country.options[22].text = "新加坡 - 英语";
	document.siteSelect.country.options[23].text = "台湾地区 - 英语";
	document.siteSelect.country.options[24].text = "泰国 - 英语";
	document.siteSelect.country.options[25].text = "越南 - 英语";
}


function changeSite()
{
   var cindex = document.siteSelect.country.selectedIndex;
   var lindex = document.siteSelect.homeBusiness.selectedIndex;
   if (!(cindex == 0 || cindex == 1) && !(lindex == 0 || lindex == 1))
   {
       var locval= document.siteSelect.homeBusiness.options[lindex].value;
       var expires = new Date();
	   expires.setTime (expires.getTime() + (356 * 24 * 60 * 60 * 1000)); // 1 year from now
       document.cookie = "url=" + escape (locval) + "; expires=" + expires.toGMTString() +  "; path=/";      
       window.document.location = locval;
       document.siteSelect.country.selectedIndex=0;
       document.siteSelect.homeBusiness.selectedIndex=0;
   }
   
  
} 

function loadHomeBusiness()
{
//To add a country add it to the if statement
//To change the addresses or add sites for a country, add it to the dropdown

    var countind =  document.siteSelect.country.selectedIndex;
    if ((countind == 0) || (countind == 1))
    {
//No country
        document.siteSelect.homeBusiness.options.length = 3;
        document.siteSelect.homeBusiness.options[0].text = "请选择相关站点               ";
        document.siteSelect.homeBusiness.options[0].selected = true;
        document.siteSelect.homeBusiness.options[1].text = "- - - - - - - - - - - - - - - - - -";
        document.siteSelect.homeBusiness.options[2].text = "请选择国家和语言";
    }
    else if (countind == 2)
    {
//North America 
        document.siteSelect.homeBusiness.options.length = 7;
        document.siteSelect.homeBusiness.options[0].text = "请选择相关站点               ";
        document.siteSelect.homeBusiness.options[0].selected = true;
        document.siteSelect.homeBusiness.options[1].text = "- - - - - - - - - - - - - - - - - -";
        document.siteSelect.homeBusiness.options[2].text = "家用照明";
        document.siteSelect.homeBusiness.options[2].value = "http://www.gelighting.com/na/home/";
        document.siteSelect.homeBusiness.options[3].text = "商用照明";
        document.siteSelect.homeBusiness.options[3].value = "http://www.gelighting.com/na/business/";
        document.siteSelect.homeBusiness.options[4].text = "通用照明系统";
        document.siteSelect.homeBusiness.options[4].value = "http://www.ge-lightingsystems.com";
        document.siteSelect.homeBusiness.options[5].text = "通用石英公司";
        document.siteSelect.homeBusiness.options[5].value = "http://www.geqonline.com";
        document.siteSelect.homeBusiness.options[6].text = "通用照明核心服务";
        document.siteSelect.homeBusiness.options[6].value = "http://www.GELcore.com";
        
    }
    else if (countind == 3)
    {
//Europe
        document.siteSelect.homeBusiness.options.length = 4;
        document.siteSelect.homeBusiness.options[0].text = "请选择照明地点               ";
        document.siteSelect.homeBusiness.options[0].selected = true;
        document.siteSelect.homeBusiness.options[1].text = "- - - - - - - - - - - - - - - - - -";
        document.siteSelect.homeBusiness.options[2].text = "家用照明照明";
        document.siteSelect.homeBusiness.options[2].value = "/eu/home/";
        document.siteSelect.homeBusiness.options[3].text = "商用照明照明";
        document.siteSelect.homeBusiness.options[3].value = "/eu/business/";
    }
    else if (countind == 4)
    {
        document.siteSelect.homeBusiness.options.length = 4;
        document.siteSelect.homeBusiness.options[0].text = "请选择照明地点              ";
        document.siteSelect.homeBusiness.options[0].selected = true;
        document.siteSelect.homeBusiness.options[1].text = "- - - - - - - - - - - - - - - - - -";
        document.siteSelect.homeBusiness.options[2].text = "家用照明照明";
        document.siteSelect.homeBusiness.options[2].value = "http://www.gespectrum.com/inet/eu/de/home/";
        document.siteSelect.homeBusiness.options[3].text = "商用照明照明";
        document.siteSelect.homeBusiness.options[3].value = "http://www.gespectrum.com/inet/eu/de/business/";
     }
    else if (countind == 5)
    {
        document.siteSelect.homeBusiness.options.length = 4;
        document.siteSelect.homeBusiness.options[0].text = "请选择照明地点               ";
        document.siteSelect.homeBusiness.options[0].selected = true;
        document.siteSelect.homeBusiness.options[1].text = "- - - - - - - - - - - - - - - - - -";
        document.siteSelect.homeBusiness.options[2].text = "家用照明照明";
        document.siteSelect.homeBusiness.options[2].value = "http://www.gespectrum.com/inet/eu/fr/home/";
        document.siteSelect.homeBusiness.options[3].text = "商用照明照明";
        document.siteSelect.homeBusiness.options[3].value = "http://www.gespectrum.com/inet/eu/fr/business/";
     }
    else if (countind == 6)
    {
        document.siteSelect.homeBusiness.options.length = 4;
        document.siteSelect.homeBusiness.options[0].text = "请选择照明地点               ";
        document.siteSelect.homeBusiness.options[0].selected = true;
        document.siteSelect.homeBusiness.options[1].text = "- - - - - - - - - - - - - - - - - -";
        document.siteSelect.homeBusiness.options[2].text = "家用照明";
        document.siteSelect.homeBusiness.options[2].value = "http://www.gespectrum.com/inet/eu/es/home/";
        document.siteSelect.homeBusiness.options[3].text = "商用照明照明 (empresa)";
        document.siteSelect.homeBusiness.options[3].value = "http://www.gespectrum.com/inet/eu/es/business/";
     }    
    else if (countind == 7)
    {
        document.siteSelect.homeBusiness.options.length = 4;
        document.siteSelect.homeBusiness.options[0].text = "请选择照明地点               ";
        document.siteSelect.homeBusiness.options[0].selected = true;
        document.siteSelect.homeBusiness.options[1].text = "- - - - - - - - - - - - - - - - - -";
        document.siteSelect.homeBusiness.options[2].text = "家用照明照明";
        document.siteSelect.homeBusiness.options[2].value = "http://www.gespectrum.com/inet/eu/it/home/";
        document.siteSelect.homeBusiness.options[3].text = "商用照明照明";
        document.siteSelect.homeBusiness.options[3].value = "http://www.gespectrum.com/inet/eu/it/business/";
     }    
    else if (countind == 8)
    {
        document.siteSelect.homeBusiness.options.length = 4;
        document.siteSelect.homeBusiness.options[0].text = "请选择照明地点               ";
        document.siteSelect.homeBusiness.options[0].selected = true;
        document.siteSelect.homeBusiness.options[1].text = "- - - - - - - - - - - - - - - - - -";
        document.siteSelect.homeBusiness.options[2].text = "家用照明";
        document.siteSelect.homeBusiness.options[2].value = "http://www.gespectrum.com/inet/eu/se/home/";
        document.siteSelect.homeBusiness.options[3].text = "商用照明";
        document.siteSelect.homeBusiness.options[3].value = "http://www.gespectrum.com/inet/eu/se/business/";
     }    
    else if (countind == 9)
    {
//Mexico
        document.siteSelect.homeBusiness.options.length = 4;
        document.siteSelect.homeBusiness.options[0].text = "请选择照明地点               ";
        document.siteSelect.homeBusiness.options[0].selected = true;
        document.siteSelect.homeBusiness.options[1].text = "- - - - - - - - - - - - - - - - - -";
        document.siteSelect.homeBusiness.options[2].text = "家用照明";
        document.siteSelect.homeBusiness.options[2].value = "http://www.geiluminacion.com/mx";
        document.siteSelect.homeBusiness.options[3].text = "商用照明";
        document.siteSelect.homeBusiness.options[3].value = "http://www.geiluminacion.com/mx/business/index.html";
     }
    else if (countind == 10)
    {
//Argentina - espa&ntilde;ol
        document.siteSelect.homeBusiness.options.length = 4;
        document.siteSelect.homeBusiness.options[0].text = "请选择照明地点               ";
        document.siteSelect.homeBusiness.options[0].selected = true;
        document.siteSelect.homeBusiness.options[1].text = "- - - - - - - - - - - - - - - - - -";
        document.siteSelect.homeBusiness.options[2].text = "家用照明";
        document.siteSelect.homeBusiness.options[2].value = "/ar";
        document.siteSelect.homeBusiness.options[3].text = "商用照明";
        document.siteSelect.homeBusiness.options[3].value = "/ar/business";
     }
    else if (countind == 11)
    {
//Brasil - Portugu&ecirc;s
        document.siteSelect.homeBusiness.options.length = 4;
        document.siteSelect.homeBusiness.options[0].text = "请选择照明地点               ";
        document.siteSelect.homeBusiness.options[0].selected = true;
        document.siteSelect.homeBusiness.options[1].text = "- - - - - - - - - - - - - - - - - -";
        document.siteSelect.homeBusiness.options[2].text = "家用照明";
        document.siteSelect.homeBusiness.options[2].value = "/br";
        document.siteSelect.homeBusiness.options[3].text = "商用照明";
        document.siteSelect.homeBusiness.options[3].value = "/br/business";
     }
    else if (countind == 12)
    {
//Chile - espa&ntilde;ol
        document.siteSelect.homeBusiness.options.length = 4;
        document.siteSelect.homeBusiness.options[0].text = "请选择照明地点               ";
        document.siteSelect.homeBusiness.options[0].selected = true;
        document.siteSelect.homeBusiness.options[1].text = "- - - - - - - - - - - - - - - - - -";
        document.siteSelect.homeBusiness.options[2].text = "家用照明";
        document.siteSelect.homeBusiness.options[2].value = "/cl";
        document.siteSelect.homeBusiness.options[3].text = "商用照明";
        document.siteSelect.homeBusiness.options[3].value = "/cl/business";
     }
    else if (countind == 13)
    {
//Per&uacute; - espa&ntilde;ol
        document.siteSelect.homeBusiness.options.length = 4;
        document.siteSelect.homeBusiness.options[0].text = "请选择照明地点               ";
        document.siteSelect.homeBusiness.options[0].selected = true;
        document.siteSelect.homeBusiness.options[1].text = "- - - - - - - - - - - - - - - - - -";
        document.siteSelect.homeBusiness.options[2].text = "家用照明";
        document.siteSelect.homeBusiness.options[2].value = "/pe";
        document.siteSelect.homeBusiness.options[3].text = "商用照明";
        document.siteSelect.homeBusiness.options[3].value = "/pe/business";
     }
    else if (countind == 14)
    {
//Venezuela - espa&ntilde;ol
        document.siteSelect.homeBusiness.options.length = 4;
        document.siteSelect.homeBusiness.options[0].text = "请选择照明地点               ";
        document.siteSelect.homeBusiness.options[0].selected = true;
        document.siteSelect.homeBusiness.options[1].text = "- - - - - - - - - - - - - - - - - -";
        document.siteSelect.homeBusiness.options[2].text = "家用照明";
        document.siteSelect.homeBusiness.options[2].value = "/ve";
        document.siteSelect.homeBusiness.options[3].text = "商用照明";
        document.siteSelect.homeBusiness.options[3].value = "/ve/business";
     }
     else if (countind == 15) 
     {
//Australia
        document.siteSelect.homeBusiness.options.length = 5;
        document.siteSelect.homeBusiness.options[0].text = "请选择照明地点               ";
        document.siteSelect.homeBusiness.options[0].selected = true;
        document.siteSelect.homeBusiness.options[1].text = "- - - - - - - - - - - - - - - - - -";
        document.siteSelect.homeBusiness.options[2].text = "家用照明";
        document.siteSelect.homeBusiness.options[2].value = "/apo/home/";
        document.siteSelect.homeBusiness.options[3].text = "商用照明";
        document.siteSelect.homeBusiness.options[3].value = "/apo/business/";
	
     }
 else if (countind == 16) 
     {
//China
        document.siteSelect.homeBusiness.options.length = 4;
        document.siteSelect.homeBusiness.options[0].text = "请选择照明地点               ";
        document.siteSelect.homeBusiness.options[0].selected = true;
        document.siteSelect.homeBusiness.options[1].text = "- - - - - - - - - - - - - - - - - -";
        document.siteSelect.homeBusiness.options[2].text = "家用照明";
        document.siteSelect.homeBusiness.options[2].value = "/apo/home/";
        document.siteSelect.homeBusiness.options[3].text = "商用照明";
        document.siteSelect.homeBusiness.options[3].value = "/apo/business/";
     }

 else if (countind == 17) 
     {
//Indonesia
        document.siteSelect.homeBusiness.options.length = 4;
        document.siteSelect.homeBusiness.options[0].text = "请选择照明地点               ";
        document.siteSelect.homeBusiness.options[0].selected = true;
        document.siteSelect.homeBusiness.options[1].text = "- - - - - - - - - - - - - - - - - -";
        document.siteSelect.homeBusiness.options[2].text = "家用照明";
        document.siteSelect.homeBusiness.options[2].value = "/apo/home/";
        document.siteSelect.homeBusiness.options[3].text = "商用照明";
        document.siteSelect.homeBusiness.options[3].value = "/apo/business/";
     }    
else if (countind == 18) 
     {
//Japan
        document.siteSelect.homeBusiness.options.length = 4;
        document.siteSelect.homeBusiness.options[0].text = "请选择照明地点               ";
        document.siteSelect.homeBusiness.options[0].selected = true;
        document.siteSelect.homeBusiness.options[1].text = "- - - - - - - - - - - - - - - - - -";
        document.siteSelect.homeBusiness.options[2].text = "家用照明";
        document.siteSelect.homeBusiness.options[2].value = "/apo/home/";
        document.siteSelect.homeBusiness.options[3].text = "商用照明";
        document.siteSelect.homeBusiness.options[3].value = "/apo/business/";
     }    
else if (countind == 19) 
     {
//Korea
        document.siteSelect.homeBusiness.options.length = 4;
        document.siteSelect.homeBusiness.options[0].text = "请选择照明地点               ";
        document.siteSelect.homeBusiness.options[0].selected = true;
        document.siteSelect.homeBusiness.options[1].text = "- - - - - - - - - - - - - - - - - -";
        document.siteSelect.homeBusiness.options[2].text = "家用照明";
        document.siteSelect.homeBusiness.options[2].value = "/apo/home/";
        document.siteSelect.homeBusiness.options[3].text = "商用照明";
        document.siteSelect.homeBusiness.options[3].value = "/apo/business/";
     }    
else if (countind == 20) 
     {
//Malaysia
        document.siteSelect.homeBusiness.options.length = 4;
        document.siteSelect.homeBusiness.options[0].text = "请选择照明地点               ";
        document.siteSelect.homeBusiness.options[0].selected = true;
        document.siteSelect.homeBusiness.options[1].text = "- - - - - - - - - - - - - - - - - -";
        document.siteSelect.homeBusiness.options[2].text = "家用照明";
        document.siteSelect.homeBusiness.options[2].value = "/apo/home/";
        document.siteSelect.homeBusiness.options[3].text = "商用照明";
        document.siteSelect.homeBusiness.options[3].value = "/apo/business/";
     }    
else if (countind == 21) 
     {
//Phillipines
        document.siteSelect.homeBusiness.options.length = 4;
        document.siteSelect.homeBusiness.options[0].text = "请选择照明地点               ";
        document.siteSelect.homeBusiness.options[0].selected = true;
        document.siteSelect.homeBusiness.options[1].text = "- - - - - - - - - - - - - - - - - -";
        document.siteSelect.homeBusiness.options[2].text = "家用照明";
        document.siteSelect.homeBusiness.options[2].value = "/apo/home/";
        document.siteSelect.homeBusiness.options[3].text = "商用照明";
        document.siteSelect.homeBusiness.options[3].value = "/apo/business/";
     }    
else if (countind == 22) 
     {
//Singapore
        document.siteSelect.homeBusiness.options.length = 5;
        document.siteSelect.homeBusiness.options[0].text = "请选择照明地点               ";
        document.siteSelect.homeBusiness.options[0].selected = true;
        document.siteSelect.homeBusiness.options[1].text = "- - - - - - - - - - - - - - - - - -";
        document.siteSelect.homeBusiness.options[2].text = "家用照明";
        document.siteSelect.homeBusiness.options[2].value = "/apo/home/";
        document.siteSelect.homeBusiness.options[3].text = "商用照明";
        document.siteSelect.homeBusiness.options[3].value = "/apo/business/";
	document.siteSelect.homeBusiness.options[4].text = "直销";
        document.siteSelect.homeBusiness.options[4].value = "http://www.gelighting.com.sg";
     }    
else if (countind == 23) 
     {
//Taiwan
        document.siteSelect.homeBusiness.options.length = 4;
        document.siteSelect.homeBusiness.options[0].text = "请选择照明地点               ";
        document.siteSelect.homeBusiness.options[0].selected = true;
        document.siteSelect.homeBusiness.options[1].text = "- - - - - - - - - - - - - - - - - -";
        document.siteSelect.homeBusiness.options[2].text = "家用照明";
        document.siteSelect.homeBusiness.options[2].value = "/apo/home/";
        document.siteSelect.homeBusiness.options[3].text = "商用照明";
        document.siteSelect.homeBusiness.options[3].value = "/apo/business/";
     }    
else if (countind == 24) 
     {
//Thailand
        document.siteSelect.homeBusiness.options.length = 4;
        document.siteSelect.homeBusiness.options[0].text = "请选择照明地点               ";
        document.siteSelect.homeBusiness.options[0].selected = true;
        document.siteSelect.homeBusiness.options[1].text = "- - - - - - - - - - - - - - - - - -";
        document.siteSelect.homeBusiness.options[2].text = "家用照明";
        document.siteSelect.homeBusiness.options[2].value = "/apo/home/";
        document.siteSelect.homeBusiness.options[3].text = "商用照明";
        document.siteSelect.homeBusiness.options[3].value = "/apo/business/";
     }    
else if (countind == 25) 
     {
//Vietnam
        document.siteSelect.homeBusiness.options.length = 4;
        document.siteSelect.homeBusiness.options[0].text = "请选择照明地点               ";
        document.siteSelect.homeBusiness.options[0].selected = true;
        document.siteSelect.homeBusiness.options[1].text = "- - - - - - - - - - - - - - - - - -";
        document.siteSelect.homeBusiness.options[2].text = "家用照明";
        document.siteSelect.homeBusiness.options[2].value = "/apo/home/";
        document.siteSelect.homeBusiness.options[3].text = "商用照明";
        document.siteSelect.homeBusiness.options[3].value = "/apo/business/";
     }    
} 

//-->