theObjects = document.getElementsByTagName("object");
for (var i = 0; i < theObjects.length; i++) {
theObjects[i].outerHTML = theObjects[i].outerHTML;
}
function switchlang(from,to)
{
           var currentStr = "";
           currentStr = window.location.href;
           currentStr = currentStr.replace("/"+from+"/","/"+to+"/");
           currentStr = currentStr.replace("lang=" + from, "lang=" + to);
	   window.location.href=currentStr;
}