// JavaScript Dominique Wavre

function swap(lang_from, lang_to)
{
    href = window.location.href;
    pos = href.indexOf("/" + lang_from);
    if (pos > -1)
    {
        url = href.substring(0, pos) + "/" + lang_to;
        if (href.length > (pos + 3)) url = url + href.substr(pos + 3);

        window.open(url, "_self");
    }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
