function futureURL(cu,lng1,lng2) {
	var p=cu.indexOf("/".concat(lng1,"/"))+1;
	var part1=cu.substring(0,p);
	var part2=cu.substring(p+lng1.length,cu.length);
	return(part1.concat(lng2,part2));
}

function changeLng(lng1,lng2) {
		var current_url;
		//framy: header,text,menu,bottom
		current_url=top.header.location.href;
		top.header.location.replace(futureURL(current_url,lng1,lng2));
		current_url=top.text.location.href;
		top.text.location.replace(futureURL(current_url,lng1,lng2));
		current_url=top.menu.location.href;
		top.menu.location.replace(futureURL(current_url,lng1,lng2));
		current_url=top.bottom.location.href;
		top.bottom.location.replace(futureURL(current_url,lng1,lng2));
}


