// JavaScript Document
function switchLang()
{
pathArray = window.location.pathname.split( "/" );

switch (pathArray[1]) {
   case "e": pathArray[1] = "f"; break;
   case "f": pathArray[1] = "e"; break;
   default: break;
}

newPathname = "";
for ( i = 1; i < pathArray.length; i++ ) {
	newPathname += "/";
	newPathname += pathArray[i];
}

window.location.pathname=newPathname;
newURL = window.location.protocol + "//" + window.location.host + newPathname;
window.location = newURL;
}