function switchurl() {
    sURL = new String;
    
    siteDIR = new String;
    
    sURL = location.href;
    sURL = sURL.slice(8,sURL.length);
    chunkStart = sURL.indexOf("/");
    
    // For checking if this is the English site, 'en' or frpanese, 'fr'
    siteDIR = sURL.slice(chunkStart+1,chunkStart+3);
    
    sURL = sURL.slice(chunkStart+3,sURL.length);

    if (siteDIR == "en") {

        // Redirect to the French site
        // alert("/fr"+sURL);   
        location.href = "/fr"+sURL;
        
    } else {

        // Redirect to the english site
        // alert("/en"+sURL);
        location.href = "/en"+sURL;
    }
}



