function checkLanguage(x){
if (document.formA.jumpMenu.value != "null") {
	if (document.formA.jumpMenu.value == "English"){
	loadEnglish();
	}
	else if (document.formA.jumpMenu.value == "Chinese"){
	loadChinese();
	}
	else if (document.formA.jumpMenu.value == "Spanish"){
	loadSpanish();
	}
	else if (document.formA.jumpMenu.value == "Jap"){
	loadJap();
	}
	else if (document.formA.jumpMenu.value == "Korean"){
	loadKorean();
	}
	}
}

function loadKorean(){
	//get pathname
	var url = window.location.pathname;
	var filename = url.substring(url.lastIndexOf("/") + 1, url.length);
	//return filename;
	//alert (filename);
	var urlarray = new Array();
	urlarray = url.split('/');
	var extract = urlarray[urlarray.length - 2]; 

	//switch statement
	switch(filename){
		case "":window.location="/lang/korean/index.php"
		break;	
		case "index.php":window.location="/lang/korean/index.php"
		break;
		case "callcentres.htm":window.location="/lang/korean/callcentres.htm"
		break;
		case "contacts.htm":window.location="/lang/korean/contacts.htm"
		break;
		case "corporate_profile.htm":window.location="/lang/korean/corporate_profile.htm"
		break;
		case "countries.php":window.location="/lang/korean/countries.php"
		break;
		case "dealers.htm":window.location="/lang/korean/dealers.htm"
		break;
		case "en2000.htm":window.location="/lang/korean/en2000.htm"
		break;
		case "en2000spec.htm":window.location="/lang/korean/en2000spec.htm"
		break;
		case "events.htm":window.location="/lang/korean/events.htm"
		break;
		case "file.php":window.location="/lang/korean/file.php"
		break;
		case "FormValidator.php":window.location="/lang/korean/FormValidator.php"
		break;
		case "installations.htm":window.location="/lang/korean/installations.htm"
		break;
		case "installations2.htm":window.location="/lang/korean/installations2.htm"
		break;
		case "memberships.htm":window.location="/lang/korean/memberships.htm"
		break;
		case "pastevents2005.htm":window.location="/lang/korean/pastevents2005.htm"
		break;
		case "pastevents2006.htm":window.location="/lang/korean/pastevents2006.htm"
		break;
		case "pastevents2007.htm":window.location="/lang/korean/pastevents2007.htm"
		break;
		case "pastevents2008.htm":window.location="/lang/korean/pastevents2008.htm"
		break;
		case "pastevents2009.htm":window.location="/lang/korean/pastevents2009.htm"
		break;
		case "projectorcomp.htm":window.location="/lang/korean/projectorcomp.htm"
		break;
		case "resources.htm":window.location="/lang/korean/resources.htm"
		break;
		case "pressroom.php":window.location="/lang/korean/pressroom.php"
		break;
		
		case "pressroom2009.php":window.location="/lang/korean/pressroom2009.htm"
		break;
		case "pressroom2008.htm":window.location="/lang/korean/pressroom2008.htm"
		break;
		case "pressroom2007.htm":window.location="/lang/korean/pressroom2007.htm"
		break;
		case "pressroom2006.htm":window.location="/lang/korean/pressroom2006.htm"
		break;
		case "pressroom2005.htm":window.location="/lang/korean/pressroom2005.htm"
		break;
		case "pressroom2004.htm":window.location="/lang/korean/pressroom2004.htm"
		break;
		case "pressroom2003.htm":window.location="/lang/korean/pressroom2003.htm"
		break;
		case "pressroom2002.htm":window.location="/lang/korean/pressroom2002.htm"
		break;
		case "pressroom2001.htm":window.location="/lang/korean/pressroom2001.htm"
		break;
		
		case "milestones.htm":window.location="/lang/korean/milestones.htm"
		break;
		case "pastevents2010.htm":window.location="/lang/korean/pastevents2010.htm"
		break;
		case "dci2000.htm":window.location="/lang/korean/dci2000.htm"
		break;
		case "dci2000spec.htm":window.location="/lang/korean/dci2000spec.htm"
		break;
		case "sa2100A.htm":window.location="/lang/korean/sa2100A.htm"
		break;
		case "sa2100Aspec.htm":window.location="/lang/korean/sa2100Aspec.htm"
		break;
		case "sdm4000.htm":window.location="/lang/korean/sdm4000.htm"
		break;
		case "sdm4000spec.htm":window.location="/lang/korean/sdm4000spec.htm"
		break;
		case "tms.htm":window.location="/lang/korean/tms.htm"
		break;
		case "tmsspec.htm":window.location="/lang/korean/tmsspec.htm"
		break;
		case "milestones2009.html":window.location="/lang/korean/milestones2009.html"
		break;
		case "milestones2008.html":window.location="/lang/korean/milestones2008.html"
		break;
		case "milestones2007.html":window.location="/lang/korean/milestones2007.html"
		break;
		case "milestones2006.html":window.location="/lang/korean/milestones2006.html"
		break;
		case "milestones2005.html":window.location="/lang/korean/milestones2005.html"
		break;
		case "milestones2004.html":window.location="/lang/korean/milestones2004.html"
		break;
		case "milestones2003.html":window.location="/lang/korean/milestones2003.html"
		break;
		case "milestones2002.html":window.location="/lang/korean/milestones2002.html"
		break;
		case "milestones2001.html":window.location="/lang/korean/milestones2001.html"
		break;
		
		case "sx2000a.htm":window.location="/lang/korean/sx2000a.htm"
		break;
		case "sx2000aspec.htm":window.location="/lang/korean/sx2000aspec.htm"
		break;
		case "sx2001a.htm":window.location="/lang/korean/sx2001a.htm"
		break;
		case "sx2001aspec.htm":window.location="/lang/korean/sx2001aspec.htm"
		break;
		
		break;
		case "emailus.php":window.location="/lang/korean/emailus.php"
		break;
			
	//window.location= newURL;
	}
	
	// from chinese to korean 
	if (extract == 'chinese') {
			switch(filename){
				case "":window.location="/lang/korean/index.php"
				break;		
				case "callcentres.html":window.location="/lang/korean/callcentres.htm"
				break;
				case "contacts.html":window.location="/lang/korean/contacts.htm"
				break;
				case "projector.html":window.location="/lang/korean/projectorcomp.htm"
				break;
				case "projector.html#3D":window.location="/lang/korean/projectorcomp.htm#3D"
				break;
				case "distributors.html":window.location="/lang/korean/dealers.htm"
				break;
				case "resources.html":window.location="/lang/korean/resources.htm"
				break;
				case "milestones.html":window.location="/lang/korean/milestones.htm"
				break;
				case "installations1.html":window.location="/lang/korean/installations.htm"
				break;
				case "installations2.html":window.location="/lang/korean/installations2.htm"
				break;
				case "pressroom.html":window.location="/lang/korean/pressroom.php"
				break;
				case "events.html":window.location="/lang/korean/events.htm"
				break;
				case "SA2100a.html":window.location="/lang/korean/sa2100A.htm"
				break;
				case "sdm4000.html":window.location="/lang/korean/sdm4000.htm"
				break;
				case "TMS1000.html":window.location="/lang/korean/tms.htm"
				break;
				case "TMS1000spec.html":window.location="/lang/korean/tmsspec.htm"
				break;
				case "DCI2000.html":window.location="/lang/korean/dci2000.htm"
				break;
				case "EN2000.html":window.location="/lang/korean/en2000.htm"
				break;
				case "aboutus.html":window.location="/lang/korean/corporate_profile.htm"
				break;
				case "membership.html":window.location="/lang/korean/memberships.htm"
				break;
				case "index.html":window.location="/lang/korean/index.php"
				break;
				
				case "sa2100aspec.html":window.location="/lang/korean/sa2100Aspec.htm"
				break;
				case "dci2000spec.html":window.location="/lang/korean/dci2000spec.htm"
				break;
				case "en2000spec.html":window.location="/lang/korean/en2000spec.htm"
				break;
				case "sdm4000spec.html":window.location="/lang/korean/sdm4000spec.htm"
				break;
				case "pastevents2009.html":window.location="/lang/korean/pastevents2009.htm"
				break;
				case "pastevents2008.html":window.location="/lang/korean/pastevents2008.htm"
				break;
				case "pastevents2007.html":window.location="/lang/korean/pastevents2007.htm"
				break;
				case "pastevents2006.html":window.location="/lang/korean/pastevents2006.htm"
				break;
				case "pastevents2005.html":window.location="/lang/korean/pastevents2005.htm"
				break;
				case "pressroom2009.html":window.location="/lang/korean/pressroom2009.htm"
				break;
				case "pressroom2008.html":window.location="/lang/korean/pressroom2008.htm"
				break;
				case "pressroom2007.html":window.location="/lang/korean/pressroom2007.htm"
				break;
				case "pressroom2006.html":window.location="/lang/korean/pressroom2006.htm"
				break;
				case "pressroom2005.html":window.location="/lang/korean/pressroom2005.htm"
				break;
				case "pressroom2004.html":window.location="/lang/korean/pressroom2004.htm"
				break;
				case "pressroom2003.html":window.location="/lang/korean/pressroom2003.htm"
				break;
				case "pressroom2002.html":window.location="/lang/korean/pressroom2002.htm"
				break;
				case "pressroom2001.html":window.location="/lang/korean/pressroom2001.htm"
				break;
				case "milestones2009.html":window.location="/lang/korean/milestones2009.html"
				break;
				case "milestones2008.html":window.location="/lang/korean/milestones2008.html"
				break;
				case "milestones2007.html":window.location="/lang/korean/milestones2007.html"
				break;
				case "milestones2006.html":window.location="/lang/korean/milestones2006.html"
				break;
				case "milestones2005.html":window.location="/lang/korean/milestones2005.html"
				break;
				case "milestones2004.html":window.location="/lang/korean/milestones2004.html"
				break;
				case "milestones2003.html":window.location="/lang/korean/milestones2003.html"
				break;
				case "milestones2002.html":window.location="/lang/korean/milestones2002.html"
				break;
				case "milestones2001.html":window.location="/lang/korean/milestones2001.html"
				break;
				case "pastevents2010.html":window.location="/lang/korean/pastevents2010.htm"
				break;
				
				case "sx2000a.html":window.location="/lang/korean/sx2000a.htm"
				break;
				case "sx2000aspec.html":window.location="/lang/korean/sx2000aspec.htm"
				break;
				case "sx2001a.html":window.location="/lang/korean/sx2001a.htm"
				break;
				case "sx2001aspec.html":window.location="/lang/korean/sx2001aspec.htm"
				break;
				
				break;
				case "emailus.php":window.location="/lang/korean/emailus.php"
				break;
			}
	}
	
}

function loadJap(){
	//get pathname
	var url = window.location.pathname;
	var filename = url.substring(url.lastIndexOf("/") + 1, url.length);
	//return filename;
	//alert (filename);
	var urlarray = new Array();
	urlarray = url.split('/');
	var extract = urlarray[urlarray.length - 2]; 

	//switch statement
	switch(filename){
		case "":window.location="/lang/jap/index.php"
		break;	
		case "index.php":window.location="/lang/jap/index.php"
		break;
		case "callcentres.htm":window.location="/lang/jap/callcentres.htm"
		break;
		case "contacts.htm":window.location="/lang/jap/contacts.htm"
		break;
		case "corporate_profile.htm":window.location="/lang/jap/corporate_profile.htm"
		break;
		case "countries.php":window.location="/lang/jap/countries.php"
		break;
		case "dealers.htm":window.location="/lang/jap/dealers.htm"
		break;
		case "en2000.htm":window.location="/lang/jap/en2000.htm"
		break;
		case "en2000spec.htm":window.location="/lang/jap/en2000spec.htm"
		break;
		case "events.htm":window.location="/lang/jap/events.htm"
		break;
		case "file.php":window.location="/lang/jap/file.php"
		break;
		case "FormValidator.php":window.location="/lang/jap/FormValidator.php"
		break;
		case "installations.htm":window.location="/lang/jap/installations.htm"
		break;
		case "installations2.htm":window.location="/lang/jap/installations2.htm"
		break;
		case "memberships.htm":window.location="/lang/jap/memberships.htm"
		break;
		case "pastevents2005.htm":window.location="/lang/jap/pastevents2005.htm"
		break;
		case "pastevents2006.htm":window.location="/lang/jap/pastevents2006.htm"
		break;
		case "pastevents2007.htm":window.location="/lang/jap/pastevents2007.htm"
		break;
		case "pastevents2008.htm":window.location="/lang/jap/pastevents2008.htm"
		break;
		case "pastevents2009.htm":window.location="/lang/jap/pastevents2009.htm"
		break;
		case "projectorcomp.htm":window.location="/lang/jap/projectorcomp.htm"
		break;
		case "resources.htm":window.location="/lang/jap/resources.htm"
		break;
		case "pressroom.php":window.location="/lang/jap/pressroom.php"
		break;
		
		case "pressroom2009.php":window.location="/lang/jap/pressroom2009.htm"
		break;
		case "pressroom2008.htm":window.location="/lang/jap/pressroom2008.htm"
		break;
		case "pressroom2007.htm":window.location="/lang/jap/pressroom2007.htm"
		break;
		case "pressroom2006.htm":window.location="/lang/jap/pressroom2006.htm"
		break;
		case "pressroom2005.htm":window.location="/lang/jap/pressroom2005.htm"
		break;
		case "pressroom2004.htm":window.location="/lang/jap/pressroom2004.htm"
		break;
		case "pressroom2003.htm":window.location="/lang/jap/pressroom2003.htm"
		break;
		case "pressroom2002.htm":window.location="/lang/jap/pressroom2002.htm"
		break;
		case "pressroom2001.htm":window.location="/lang/jap/pressroom2001.htm"
		break;
		case "milestones.htm":window.location="/lang/jap/milestones.htm"
		break;
		case "pastevents2010.htm":window.location="/lang/jap/pastevents2010.htm"
		break;
		case "events.htm":window.location="/lang/jap/events.htm"
		break;
		case "dci2000.htm":window.location="/lang/jap/dci2000.htm"
		break;
		case "dci2000spec.htm":window.location="/lang/jap/dci2000spec.htm"
		break;
		case "sa2100A.htm":window.location="/lang/jap/sa2100A.htm"
		break;
		case "sa2100Aspec.htm":window.location="/lang/jap/sa2100Aspec.htm"
		break;
		case "sdm4000.htm":window.location="/lang/jap/sdm4000.htm"
		break;
		case "sdm4000spec.htm":window.location="/lang/jap/sdm4000spec.htm"
		break;
		case "tms.htm":window.location="/lang/jap/tms.htm"
		break;
		case "tmsspec.htm":window.location="/lang/jap/tmsspec.htm"
		break;
		case "milestones2001.html":window.location="/lang/jap/milestones2001.html"
		break;
		case "milestones2002.html":window.location="/lang/jap/milestones2002.html"
		break;
		case "milestones2003.html":window.location="/lang/jap/milestones2003.html"
		break;
		case "milestones2004.html":window.location="/lang/jap/milestones2004.html"
		break;
		case "milestones2005.html":window.location="/lang/jap/milestones2005.html"
		break;
		case "milestones2006.html":window.location="/lang/jap/milestones2006.html"
		break;
		case "milestones2007.html":window.location="/lang/jap/milestones2007.html"
		break;
		case "milestones2008.html":window.location="/lang/jap/milestones2008.html"
		break;
		case "milestones2009.html":window.location="/lang/jap/milestones2009.html"
		break;
		
		case "sx2000a.htm":window.location="/lang/jap/sx2000a.htm"
		break;
		case "sx2000aspec.htm":window.location="/lang/jap/sx2000aspec.htm"
		break;
		case "sx2001a.htm":window.location="/lang/jap/sx2001a.htm"
		break;
		case "sx2001aspec.htm":window.location="/lang/jap/sx2001aspec.htm"
		break;
		
		break;
		case "emailus.php":window.location="/lang/jap/emailus.php"
		break;
			
	//window.location= newURL;
	}
	
	// from chinese to jap 
	if (extract == 'chinese') {
			switch(filename){
				case "":window.location="/lang/jap/index.php"
				break;		
				case "callcentres.html":window.location="/lang/jap/callcentres.htm"
				break;
				case "contacts.html":window.location="/lang/jap/contacts.htm"
				break;
				case "projector.html":window.location="/lang/jap/projectorcomp.htm"
				break;
				case "projector.html#3D":window.location="/lang/jap/projectorcomp.htm#3D"
				break;
				case "distributors.html":window.location="/lang/jap/dealers.htm"
				break;
				case "resources.html":window.location="/lang/jap/resources.htm"
				break;
				case "milestones.html":window.location="/lang/jap/milestones.htm"
				break;
				case "installations1.html":window.location="/lang/jap/installations.htm"
				break;
				case "installations2.html":window.location="/lang/jap/installations2.htm"
				break;
				case "pressroom.html":window.location="/lang/jap/pressroom.php"
				break;
				case "events.html":window.location="/lang/jap/events.htm"
				break;
				case "SA2100a.html":window.location="/lang/jap/sa2100A.htm"
				break;
				case "sdm4000.html":window.location="/lang/jap/sdm4000.htm"
				break;
				case "TMS1000.html":window.location="/lang/jap/tms.htm"
				break;
				case "TMS1000spec.html":window.location="/lang/jap/tmsspec.htm"
				break;
				case "DCI2000.html":window.location="/lang/jap/dci2000.htm"
				break;
				case "EN2000.html":window.location="/lang/jap/en2000.htm"
				break;
				case "aboutus.html":window.location="/lang/jap/corporate_profile.htm"
				break;
				case "membership.html":window.location="/lang/jap/memberships.htm"
				break;
				case "index.html":window.location="/lang/jap/index.php"
				break;
				
				case "sa2100aspec.html":window.location="/lang/jap/sa2100Aspec.htm"
				break;
				case "dci2000spec.html":window.location="/lang/jap/dci2000spec.htm"
				break;
				case "en2000spec.html":window.location="/lang/jap/en2000spec.htm"
				break;
				case "sdm4000spec.html":window.location="/lang/jap/sdm4000spec.htm"
				break;
				case "pastevents2009.html":window.location="/lang/jap/pastevents2009.htm"
				break;
				case "pastevents2008.html":window.location="/lang/jap/pastevents2008.htm"
				break;
				case "pastevents2007.html":window.location="/lang/jap/pastevents2007.htm"
				break;
				case "pastevents2006.html":window.location="/lang/jap/pastevents2006.htm"
				break;
				case "pastevents2005.html":window.location="/lang/jap/pastevents2005.htm"
				break;
				case "pressroom2009.html":window.location="/lang/jap/pressroom2009.htm"
				break;
				case "pressroom2008.html":window.location="/lang/jap/pressroom2008.htm"
				break;
				case "pressroom2007.html":window.location="/lang/jap/pressroom2007.htm"
				break;
				case "pressroom2006.html":window.location="/lang/jap/pressroom2006.htm"
				break;
				case "pressroom2005.html":window.location="/lang/jap/pressroom2005.htm"
				break;
				case "pressroom2004.html":window.location="/lang/jap/pressroom2004.htm"
				break;
				case "pressroom2003.html":window.location="/lang/jap/pressroom2003.htm"
				break;
				case "pressroom2002.html":window.location="/lang/jap/pressroom2002.htm"
				break;
				case "pressroom2001.html":window.location="/lang/jap/pressroom2001.htm"
				break;
				case "milestones2008.html":window.location="/lang/jap/milestones2008.html"
				break;
				case "milestones2007.html":window.location="/lang/jap/milestones2007.html"
				break;
				case "milestones2006.html":window.location="/lang/jap/milestones2006.html"
				break;
				case "milestones2005.html":window.location="/lang/jap/milestones2005.html"
				break;
				case "milestones2004.html":window.location="/lang/jap/milestones2004.html"
				break;
				case "milestones2003.html":window.location="/lang/jap/milestones2003.html"
				break;
				case "milestones2002.html":window.location="/lang/jap/milestones2002.html"
				break;
				case "milestones2001.html":window.location="/lang/jap/milestones2001.html"
				break;
				case "milestones.html":window.location="/lang/jap/milestones.htm"
				break;
				case "pastevents2010.html":window.location="/lang/jap/pastevents2010.htm"
				break;
				case "milestones2009.html":window.location="/lang/jap/milestones2009.html"
				break;
				
				case "sx2000a.html":window.location="/lang/jap/sx2000a.htm"
				break;
				case "sx2000aspec.html":window.location="/lang/jap/sx2000aspec.htm"
				break;
				case "sx2001a.html":window.location="/lang/jap/sx2001a.htm"
				break;
				case "sx2001aspec.html":window.location="/lang/jap/sx2001aspec.htm"
				break;
				
				break;
				case "emailus.php":window.location="/lang/jap/emailus.php"
				break;
			}
	}
	
}

function loadSpanish(){
	//get pathname
	var url = window.location.pathname;
	var filename = url.substring(url.lastIndexOf("/") + 1, url.length);
	//return filename;
	//alert (filename);
	var urlarray = new Array();
	urlarray = url.split('/');
	var extract = urlarray[urlarray.length - 2]; 

	//switch statement
	switch(filename){
		case "":window.location="/lang/spanish/index.php"
		break;	
		case "index.php":window.location="/lang/spanish/index.php"
		break;
		case "callcentres.htm":window.location="/lang/spanish/callcentres.htm"
		break;
		case "contacts.htm":window.location="/lang/spanish/contacts.htm"
		break;
		case "corporate_profile.htm":window.location="/lang/spanish/corporate_profile.htm"
		break;
		case "countries.php":window.location="/lang/spanish/countries.php"
		break;
		case "dealers.htm":window.location="/lang/spanish/dealers.htm"
		break;
		case "en2000.htm":window.location="/lang/spanish/en2000.htm"
		break;
		case "en2000spec.htm":window.location="/lang/spanish/en2000spec.htm"
		break;
		case "events.htm":window.location="/lang/spanish/events.htm"
		break;
		case "file.php":window.location="/lang/spanish/file.php"
		break;
		case "FormValidator.php":window.location="/lang/spanish/FormValidator.php"
		break;
		case "installations.htm":window.location="/lang/spanish/installations.htm"
		break;
		case "installations2.htm":window.location="/lang/spanish/installations2.htm"
		break;
		case "memberships.htm":window.location="/lang/spanish/memberships.htm"
		break;
		case "pastevents2005.htm":window.location="/lang/spanish/pastevents2005.htm"
		break;
		case "pastevents2006.htm":window.location="/lang/spanish/pastevents2006.htm"
		break;
		case "pastevents2007.htm":window.location="/lang/spanish/pastevents2007.htm"
		break;
		case "pastevents2008.htm":window.location="/lang/spanish/pastevents2008.htm"
		break;
		case "pastevents2009.htm":window.location="/lang/spanish/pastevents2009.htm"
		break;
		case "projectorcomp.htm":window.location="/lang/spanish/projectorcomp.htm"
		break;
		case "resources.htm":window.location="/lang/spanish/resources.htm"
		break;
		case "pressroom.php":window.location="/lang/spanish/pressroom.php"
		break;
		
		case "pressroom2009.php":window.location="/lang/spanish/pressroom2009.htm"
		break;
		case "pressroom2008.htm":window.location="/lang/spanish/pressroom2008.htm"
		break;
		case "pressroom2007.htm":window.location="/lang/spanish/pressroom2007.htm"
		break;
		case "pressroom2006.htm":window.location="/lang/spanish/pressroom2006.htm"
		break;
		case "pressroom2005.htm":window.location="/lang/spanish/pressroom2005.htm"
		break;
		case "pressroom2004.htm":window.location="/lang/spanish/pressroom2004.htm"
		break;
		case "pressroom2003.htm":window.location="/lang/spanish/pressroom2003.htm"
		break;
		case "pressroom2002.htm":window.location="/lang/spanish/pressroom2002.htm"
		break;
		case "pressroom2001.htm":window.location="/lang/spanish/pressroom2001.htm"
		break;
		
		case "milestones.htm":window.location="/lang/spanish/milestones.htm"
		break;
		case "pastevents2010.htm":window.location="/lang/spanish/pastevents2010.htm"
		break;
		case "dci2000.htm":window.location="/lang/spanish/dci2000.htm"
		break;
		case "dci2000spec.htm":window.location="/lang/spanish/dci2000spec.htm"
		break;
		case "sa2100A.htm":window.location="/lang/spanish/sa2100A.htm"
		break;
		case "sa2100Aspec.htm":window.location="/lang/spanish/sa2100Aspec.htm"
		break;
		case "sdm4000.htm":window.location="/lang/spanish/sdm4000.htm"
		break;
		case "sdm4000spec.htm":window.location="/lang/spanish/sdm4000spec.htm"
		break;
		case "tms.htm":window.location="/lang/spanish/tms.htm"
		break;
		case "tmsspec.htm":window.location="/lang/spanish/tmsspec.htm"
		break;
		case "milestones2009.html":window.location="/lang/spanish/milestones2009.html"
		break;
		case "milestones2008.html":window.location="/lang/spanish/milestones2008.html"
		break;
		case "milestones2007.html":window.location="/lang/spanish/milestones2007.html"
		break;
		case "milestones2006.html":window.location="/lang/spanish/milestones2006.html"
		break;
		case "milestones2005.html":window.location="/lang/spanish/milestones2005.html"
		break;
		case "milestones2004.html":window.location="/lang/spanish/milestones2004.html"
		break;
		case "milestones2003.html":window.location="/lang/spanish/milestones2003.html"
		break;
		case "milestones2002.html":window.location="/lang/spanish/milestones2002.html"
		break;
		case "milestones2001.html":window.location="/lang/spanish/milestones2001.html"
		break;
		
		case "sx2000a.htm":window.location="/lang/spanish/sx2000a.htm"
		break;
		case "sx2000aspec.htm":window.location="/lang/spanish/sx2000aspec.htm"
		break;
		case "sx2001a.htm":window.location="/lang/spanish/sx2001a.htm"
		break;
		case "sx2001aspec.htm":window.location="/lang/spanish/sx2001aspec.htm"
		break;
		
		case "emailus.php":window.location="/lang/spanish/emailus.php"
		break;
			
	//window.location= newURL;
	}
	
	// from chinese to spanish 
	if (extract == 'chinese') {
			switch(filename){
				case "":window.location="/lang/spanish/index.php"
				break;		
				case "callcentres.html":window.location="/lang/spanish/callcentres.htm"
				break;
				case "contacts.html":window.location="/lang/spanish/contacts.htm"
				break;
				case "projector.html":window.location="/lang/spanish/projectorcomp.htm"
				break;
				case "projector.html#3D":window.location="/lang/spanish/projectorcomp.htm#3D"
				break;
				case "distributors.html":window.location="/lang/spanish/dealers.htm"
				break;
				case "resources.html":window.location="/lang/spanish/resources.htm"
				break;
				case "milestones.html":window.location="/lang/spanish/milestones.htm"
				break;
				case "installations1.html":window.location="/lang/spanish/installations.htm"
				break;
				case "installations2.html":window.location="/lang/spanish/installations2.htm"
				break;
				case "pressroom.html":window.location="/lang/spanish/pressroom.php"
				break;
				case "events.html":window.location="/lang/spanish/events.htm"
				break;
				case "SA2100a.html":window.location="/lang/spanish/sa2100A.htm"
				break;
				case "sdm4000.html":window.location="/lang/spanish/sdm4000.htm"
				break;
				case "TMS1000.html":window.location="/lang/spanish/tms.htm"
				break;
				case "TMS1000spec.html":window.location="/lang/spanish/tmsspec.htm"
				break;
				case "DCI2000.html":window.location="/lang/spanish/dci2000.htm"
				break;
				case "EN2000.html":window.location="/lang/spanish/en2000.htm"
				break;
				case "aboutus.html":window.location="/lang/spanish/corporate_profile.htm"
				break;
				case "membership.html":window.location="/lang/spanish/memberships.htm"
				break;
				case "index.html":window.location="/lang/spanish/index.php"
				break;
				
				case "sa2100aspec.html":window.location="/lang/spanish/sa2100Aspec.htm"
				break;
				case "dci2000spec.html":window.location="/lang/spanish/dci2000spec.htm"
				break;
				case "en2000spec.html":window.location="/lang/spanish/en2000spec.htm"
				break;
				case "sdm4000spec.html":window.location="/lang/spanish/sdm4000spec.htm"
				break;
				case "pastevents2009.html":window.location="/lang/spanish/pastevents2009.htm"
				break;
				case "pastevents2008.html":window.location="/lang/spanish/pastevents2008.htm"
				break;
				case "pastevents2007.html":window.location="/lang/spanish/pastevents2007.htm"
				break;
				case "pastevents2006.html":window.location="/lang/spanish/pastevents2006.htm"
				break;
				case "pastevents2005.html":window.location="/lang/spanish/pastevents2005.htm"
				break;
				case "pressroom2009.html":window.location="/lang/spanish/pressroom2009.htm"
				break;
				case "pressroom2008.html":window.location="/lang/spanish/pressroom2008.htm"
				break;
				case "pressroom2007.html":window.location="/lang/spanish/pressroom2007.htm"
				break;
				case "pressroom2006.html":window.location="/lang/spanish/pressroom2006.htm"
				break;
				case "pressroom2005.html":window.location="/lang/spanish/pressroom2005.htm"
				break;
				case "pressroom2004.html":window.location="/lang/spanish/pressroom2004.htm"
				break;
				case "pressroom2003.html":window.location="/lang/spanish/pressroom2003.htm"
				break;
				case "pressroom2002.html":window.location="/lang/spanish/pressroom2002.htm"
				break;
				case "pressroom2001.html":window.location="/lang/spanish/pressroom2001.htm"
				break;
				case "milestones2009.html":window.location="/lang/spanish/milestones2009.html"
				break;
				case "milestones2008.html":window.location="/lang/spanish/milestones2008.html"
				break;
				case "milestones2007.html":window.location="/lang/spanish/milestones2007.html"
				break;
				case "milestones2006.html":window.location="/lang/spanish/milestones2006.html"
				break;
				case "milestones2005.html":window.location="/lang/spanish/milestones2005.html"
				break;
				case "milestones2004.html":window.location="/lang/spanish/milestones2004.html"
				break;
				case "milestones2003.html":window.location="/lang/spanish/milestones2003.html"
				break;
				case "milestones2002.html":window.location="/lang/spanish/milestones2002.html"
				break;
				case "milestones2001.html":window.location="/lang/spanish/milestones2001.html"
				break;
				
				case "pastevents2010.html":window.location="/lang/spanish/pastevents2010.htm"
				break;
				
				case "sx2000a.html":window.location="/lang/spanish/sx2000a.htm"
				break;
				case "sx2000aspec.html":window.location="/lang/spanish/sx2000aspec.htm"
				break;
				case "sx2001a.html":window.location="/lang/spanish/sx2001a.htm"
				break;
				case "sx2001aspec.html":window.location="/lang/spanish/sx2001aspec.htm"
				break;
				
				break;
				case "emailus.php":window.location="/lang/spanish/emailus.php"
				break;
			}
	}
	
}

function loadChinese(){
	//get pathname
	var url = window.location.pathname;
	var filename = url.substring(url.lastIndexOf("/") + 1, url.length);
	//return filename;
	//alert (filename);
	
	//switch statement
	switch(filename){
		case "":window.location="/lang/chinese/index.html"
		break;		
		case "index.php":window.location="/lang/chinese/index.html"
		break;
		case "callcentres.htm":window.location="/lang/chinese/callcentres.html"
		break;
		case "contacts.htm":window.location="/lang/chinese/contacts.html"
		break;
		case "projectorcomp.htm":window.location="/lang/chinese/projector.html"
		break;
		case "projectorcomp.htm#3D":window.location="/lang/chinese/projector.html#3D"
		break;
		case "dealers.htm":window.location="/lang/chinese/distributors.html"
		break;
		case "resources.htm":window.location="/lang/chinese/resources.html"
		break;
		case "milestones.htm":window.location="/lang/chinese/milestones.html"
		break;
		case "installations.htm":window.location="/lang/chinese/installations1.html"
		break;
		case "installations2.htm":window.location="/lang/chinese/installations2.html"
		break;
		case "pressroom.php":window.location="/lang/chinese/pressroom.html"
		break;
		case "events.htm":window.location="/lang/chinese/events.html"
		break;
		case "sa2100A.htm":window.location="/lang/chinese/SA2100a.html"
		break;
		case "sdm4000.htm":window.location="/lang/chinese/sdm4000.html"
		break;
		case "tms.htm":window.location="/lang/chinese/TMS1000.html"
		break;
		case "tmsspec.htm":window.location="/lang/chinese/TMS1000spec.html"
		break;		
		case "dci2000.htm":window.location="/lang/chinese/DCI2000.html"
		break;
		case "en2000.htm":window.location="/lang/chinese/EN2000.html"
		break;
		case "corporate_profile.htm":window.location="/lang/chinese/aboutus.html"
		break;
		case "memberships.htm":window.location="/lang/chinese/membership.html"
		break;
		case "index.php":window.location="/lang/chinese/index.html"
		break;
		
		//newly added...
		case "dci2000spec.htm":window.location="/lang/chinese/dci2000spec.html"
		break;
		case "sa2100Aspec.htm":window.location="/lang/chinese/sa2100aspec.html"
		break;
		case "en2000spec.htm":window.location="/lang/chinese/en2000spec.html"
		break;
		case "sdm4000spec.htm":window.location="/lang/chinese/sdm4000spec.html"
		break;
		case "pastevents2009.htm":window.location="/lang/chinese/pastevents2009.html"
		break;
		case "pastevents2008.htm":window.location="/lang/chinese/pastevents2008.html"
		break;
		case "pastevents2007.htm":window.location="/lang/chinese/pastevents2007.html"
		break;
		case "pastevents2006.htm":window.location="/lang/chinese/pastevents2006.html"
		break;
		case "pastevents2005.htm":window.location="/lang/chinese/pastevents2005.html"
		break;
		case "pressroom2008.htm":window.location="/lang/chinese/pressroom2008.html"
		break;
		case "pressroom2007.htm":window.location="/lang/chinese/pressroom2007.html"
		break;
		case "pressroom2006.htm":window.location="/lang/chinese/pressroom2006.html"
		break;
		case "pressroom2005.htm":window.location="/lang/chinese/pressroom2005.html"
		break;
		case "pressroom2004.htm":window.location="/lang/chinese/pressroom2004.html"
		break;
		case "pressroom2003.htm":window.location="/lang/chinese/pressroom2003.html"
		break;
		case "pressroom2002.htm":window.location="/lang/chinese/pressroom2002.html"
		break;
		case "pressroom2001.htm":window.location="/lang/chinese/pressroom2001.html"
		break;
		case "milestones2008.html":window.location="/lang/chinese/milestones2008.html"
		break;
		case "milestones2007.html":window.location="/lang/chinese/milestones2007.html"
		break;
		case "milestones2006.html":window.location="/lang/chinese/milestones2006.html"
		break;
		case "milestones2005.html":window.location="/lang/chinese/milestones2005.html"
		break;
		case "milestones2004.html":window.location="/lang/chinese/milestones2004.html"
		break;
		case "milestones2003.html":window.location="/lang/chinese/milestones2003.html"
		break;
		case "milestones2002.html":window.location="/lang/chinese/milestones2002.html"
		break;
		case "milestones2001.html":window.location="/lang/chinese/milestones2001.html"
		break;
		
		case "pressroom2009.htm":window.location="/lang/chinese/pressroom2009.html"
		break;
		case "pressroom2009.php":window.location="/lang/chinese/pressroom2009.html"
		break;
		case "pastevents2010.htm":window.location="/lang/chinese/pastevents2010.html"
		break;
		case "milestones2009.html":window.location="/lang/chinese/milestones2009.html"
		break;
		
		case "sx2000a.htm":window.location="/lang/chinese/sx2000a.html"
		break;
		case "sx2000aspec.htm":window.location="/lang/chinese/sx2000aspec.html"
		break;
		case "sx2001a.htm":window.location="/lang/chinese/sx2001a.html"
		break;
		case "sx2001aspec.htm":window.location="/lang/chinese/sx2001aspec.html"
		break;
		
		break;
		case "emailus.php":window.location="/lang/chinese/emailus.php"
		break;
			
	//window.location= newURL;
	}
	
}

function loadEnglish(){
	//get pathname
	var url = window.location.pathname;
	var filename = url.substring(url.lastIndexOf("/") + 1, url.length);
	//return filename;
	//alert (filename);
	var urlarray = new Array();
	urlarray = url.split('/');
	var extract = urlarray[urlarray.length - 2]; 
	
	//switch statement
	switch(filename){
		case "":window.location="../../index.php"
		break;	
		case "index.php":window.location="../../index.php"
		break;
		case "callcentres.htm":window.location="../../callcentres.htm"
		break;
		case "contacts.htm":window.location="../../contacts.htm"
		break;
		case "corporate_profile.htm":window.location="../../corporate_profile.htm"
		break;
		case "countries.php":window.location="../../countries.php"
		break;
		case "dealers.htm":window.location="../../dealers.htm"
		break;
		case "en2000.htm":window.location="../../en2000.htm"
		break;
		case "en2000spec.htm":window.location="../../en2000spec.htm"
		break;
		case "events.htm":window.location="../../events.htm"
		break;
		case "file.php":window.location="../../file.php"
		break;
		case "FormValidator.php":window.location="../../FormValidator.php"
		break;
		case "installations.htm":window.location="../../installations.htm"
		break;
		case "installations2.htm":window.location="../../installations2.htm"
		break;
		case "memberships.htm":window.location="../../memberships.htm"
		break;
		case "pastevents2005.htm":window.location="../../pastevents2005.htm"
		break;
		case "pastevents2006.htm":window.location="../../pastevents2006.htm"
		break;
		case "pastevents2007.htm":window.location="../../pastevents2007.htm"
		break;
		case "pastevents2008.htm":window.location="../../pastevents2008.htm"
		break;
		case "pastevents2009.htm":window.location="../../pastevents2009.htm"
		break;
		case "projectorcomp.htm":window.location="../../projectorcomp.htm"
		break;
		case "resources.htm":window.location="../../resources.htm"
		break;
		case "pressroom.php":window.location="../../pressroom.php"
		break;
		
		case "pressroom2009.htm":window.location="../../pressroom2009.php"
		break;
		case "pressroom2008.htm":window.location="../../pressroom2008.htm"
		break;
		case "pressroom2007.htm":window.location="../../pressroom2007.htm"
		break;
		case "pressroom2006.htm":window.location="../../pressroom2006.htm"
		break;
		case "pressroom2005.htm":window.location="../../pressroom2005.htm"
		break;
		case "pressroom2004.htm":window.location="../../pressroom2004.htm"
		break;
		case "pressroom2003.htm":window.location="../../pressroom2003.htm"
		break;
		case "pressroom2002.htm":window.location="../../pressroom2002.htm"
		break;
		case "pressroom2001.htm":window.location="../../pressroom2001.htm"
		break;
		
		case "milestones.htm":window.location="../../milestones.htm"
		break;
		case "pastevents2010.htm":window.location="../../pastevents2010.htm"
		break;
		case "dci2000.htm":window.location="../../dci2000.htm"
		break;
		case "dci2000spec.htm":window.location="../../dci2000spec.htm"
		break;
		case "sa2100A.htm":window.location="../../sa2100A.htm"
		break;
		case "sa2100Aspec.htm":window.location="../../sa2100Aspec.htm"
		break;
		case "sdm4000.htm":window.location="../../sdm4000.htm"
		break;
		case "sdm4000spec.htm":window.location="../../sdm4000spec.htm"
		break;
		case "tms.htm":window.location="../../tms.htm"
		break;
		case "tmsspec.htm":window.location="../../tmsspec.htm"
		break;
		case "milestones2009.html":window.location="../../milestones2009.html"
		break;
		case "milestones2008.html":window.location="../../milestones2008.html"
		break;
		case "milestones2007.html":window.location="../../milestones2007.html"
		break;
		case "milestones2006.html":window.location="../../milestones2006.html"
		break;
		case "milestones2005.html":window.location="../../milestones2005.html"
		break;
		case "milestones2004.html":window.location="../../milestones2004.html"
		break;
		case "milestones2003.html":window.location="../../milestones2003.html"
		break;
		case "milestones2002.html":window.location="../../milestones2002.html"
		break;
		case "milestones2001.html":window.location="../../milestones2001.html"
		break;
		
		case "sx2000a.htm":window.location="../../sx2000a.htm"
		break;
		case "sx2000aspec.htm":window.location="../../sx2000aspec.htm"
		break;
		case "sx2001a.htm":window.location="../../sx2001a.htm"
		break;
		case "sx2001aspec.htm":window.location="../../sx2001aspec.htm"
		break;
		
		break;
		case "emailus.php":window.location="../../emailus.php"
		break;
				
	}
	
	// from chinese to english 
	if (extract == 'chinese') {
			switch(filename){
				case "":window.location="../../index.php"
				break;		
				case "callcentres.html":window.location="../../callcentres.htm"
				break;
				case "contacts.html":window.location="../../contacts.htm"
				break;
				case "projector.html":window.location="../../projectorcomp.htm"
				break;
				case "projector.html#3D":window.location="../../projectorcomp.htm#3D"
				break;
				case "distributors.html":window.location="../../dealers.htm"
				break;
				case "resources.html":window.location="../../resources.htm"
				break;
				case "milestones.html":window.location="../../milestones.htm"
				break;
				case "installations1.html":window.location="../../installations.htm"
				break;
				case "installations2.html":window.location="../../installations2.htm"
				break;
				case "pressroom.html":window.location="../../pressroom.php"
				break;
				case "events.html":window.location="../../events.htm"
				break;
				case "SA2100a.html":window.location="../../sa2100A.htm"
				break;
				case "sdm4000.html":window.location="../../sdm4000.htm"
				break;
				case "TMS1000.html":window.location="../../tms.htm"
				break;
				case "TMS1000spec.html":window.location="../../tmsspec.htm"
				break;
				case "DCI2000.html":window.location="../../dci2000.htm"
				break;
				case "EN2000.html":window.location="../../en2000.htm"
				break;
				case "aboutus.html":window.location="../../corporate_profile.htm"
				break;
				case "membership.html":window.location="../../memberships.htm"
				break;
				case "index.html":window.location="../../index.php"
				break;
				
				case "sa2100aspec.html":window.location="../../sa2100Aspec.htm"
				break;
				case "dci2000spec.html":window.location="../../dci2000spec.htm"
				break;
				case "en2000spec.html":window.location="../../en2000spec.htm"
				break;
				case "sdm4000spec.html":window.location="../../sdm4000spec.htm"
				break;
				case "pastevents2010.html":window.location="../../pastevents2010.htm"
				break;
				case "pastevents2009.html":window.location="../../pastevents2009.htm"
				break;
				case "pastevents2008.html":window.location="../../pastevents2008.htm"
				break;
				case "pastevents2007.html":window.location="../../pastevents2007.htm"
				break;
				case "pastevents2006.html":window.location="../../pastevents2006.htm"
				break;
				case "pastevents2005.html":window.location="../../pastevents2005.htm"
				break;
				case "pressroom2008.html":window.location="../../pressroom2008.htm"
				break;
				case "pressroom2007.html":window.location="../../pressroom2007.htm"
				break;
				case "pressroom2006.html":window.location="../../pressroom2006.htm"
				break;
				case "pressroom2005.html":window.location="../../pressroom2005.htm"
				break;
				case "pressroom2004.html":window.location="../../pressroom2004.htm"
				break;
				case "pressroom2003.html":window.location="../../pressroom2003.htm"
				break;
				case "pressroom2002.html":window.location="../../pressroom2002.htm"
				break;
				case "pressroom2001.html":window.location="../../pressroom2001.htm"
				break;
				case "milestones2008.html":window.location="../../milestones2008.html"
				break;
				case "milestones2007.html":window.location="../../milestones2007.html"
				break;
				case "milestones2006.html":window.location="../../milestones2006.html"
				break;
				case "milestones2005.html":window.location="../../milestones2005.html"
				break;
				case "milestones2004.html":window.location="../../milestones2004.html"
				break;
				case "milestones2003.html":window.location="../../milestones2003.html"
				break;
				case "milestones2002.html":window.location="../../milestones2002.html"
				break;
				case "milestones2001.html":window.location="../../milestones2001.html"
				break;
				case "pressroom2009.html":window.location="../../pressroom2009.php"
				break;
				
				case "milestones2009.html":window.location="../../milestones2009.html"
				break;
				
				case "sx2000a.html":window.location="../../sx2000a.htm"
				break;
				case "sx2000aspec.html":window.location="../../sx2000aspec.htm"
				break;
				case "sx2001a.html":window.location="../../sx2001a.htm"
				break;
				case "sx2001aspec.html":window.location="../../sx2001aspec.htm"
				break;
				
				break;
				case "emailus.php":window.location="../../emailus.php"
				break;
					
			//window.location= newURL;
			}
	}
	
}