// JavaScript Document
function changelang(){
//alert(location.href);
switch(location.href)
{
case "http://prestonphipps.com/en/home/index.shtml":
  eval("window.location = 'http://prestonphipps.com/fr/accueil/index.shtml'");
  break;
case "http://prestonphipps.com/en/company/index.shtml":
  eval("window.location = 'http://prestonphipps.com/fr/compagnie/index.shtml'");
  break;
case "http://prestonphipps.com/en/products/index.shtml":
  eval("window.location = 'http://prestonphipps.com/fr/produits/index.shtml'");
  break;
case "http://prestonphipps.com/en/industries/index.shtml":
  eval("window.location = 'http://prestonphipps.com/fr/industries/index.shtml'");
  break;
case "http://prestonphipps.com/en/services/index.shtml":
  eval("window.location = 'http://prestonphipps.com/fr/services/index.shtml'");
  break;
case "http://prestonphipps.com/en/services/armserv.shtml":
  eval("window.location = 'http://prestonphipps.com/fr/services/armserv.shtml'");
  break;
case "http://prestonphipps.com/en/seminars/index.shtml":
  eval("window.location = 'http://prestonphipps.com/fr/ateliers/index.shtml'");
  break;
case "http://prestonphipps.com/en/careers/index.shtml":
  eval("window.location = 'http://prestonphipps.com/fr/carriere/index.shtml'");
  break;
case "http://prestonphipps.com/en/company/about.shtml":
  eval("window.location = 'http://prestonphipps.com/fr/compagnie/entreprise.shtml'");
  break;  
case "http://prestonphipps.com/en/company/customer_service.shtml":
  eval("window.location = 'http://prestonphipps.com/fr/compagnie/service_clientele.shtml'");
  break;  
case "http://prestonphipps.com/en/company/history.shtml":
  eval("window.location = 'http://prestonphipps.com/fr/compagnie/histoire.shtml'");
  break; 
case "http://prestonphipps.com/en/company/informations.shtml":
  eval("window.location = 'http://prestonphipps.com/fr/compagnie/informations.shtml'");
  break;
case "http://prestonphipps.com/en/company/locations.shtml":
  eval("window.location = 'http://prestonphipps.com/fr/compagnie/bureaux.shtml'");
  break;
case "http://prestonphipps.com/en/company/team.shtml":
  eval("window.location = 'http://prestonphipps.com/fr/compagnie/equipe.shtml'");
  break;
case "http://prestonphipps.com/en/industries/steam.shtml":
  eval("window.location = 'http://prestonphipps.com/fr/industries/vapeur.shtml'");
  break;
case "http://prestonphipps.com/en/industries/biopharm.shtml":
  eval("window.location = 'http://prestonphipps.com/fr/industries/biopharmaceutique.shtml'");
  break;
case "http://prestonphipps.com/en/industries/petrochemical.shtml":
  eval("window.location = 'http://prestonphipps.com/fr/industries/petrochimie.shtml'");
  break;
case "http://prestonphipps.com/en/industries/food_beverage.shtml":
  eval("window.location = 'http://prestonphipps.com/fr/industries/alimentation.shtml'");
  break;
case "http://prestonphipps.com/en/industries/pulp_paper.shtml":
  eval("window.location = 'http://prestonphipps.com/fr/industries/pates_papiers.shtml'");
  break;
case "http://prestonphipps.com/en/industries/mining.shtml":
  eval("window.location = 'http://prestonphipps.com/fr/industries/mines_metallurgie.shtml'");
  break;
case "http://prestonphipps.com/en/industries/water_treatment.shtml":
  eval("window.location = 'http://prestonphipps.com/fr/industries/traitement_eau.shtml'");
  break;
case "http://prestonphipps.com/en/industries/automotive.shtml":
  eval("window.location = 'http://prestonphipps.com/fr/industries/automobile.shtml'");
  break;
case "http://prestonphipps.com/en/industries/institutional.shtml":
  eval("window.location = 'http://prestonphipps.com/fr/industries/institutionnel.shtml'");
  break;
case "http://prestonphipps.com/en/products/steam.shtml":
  eval("window.location = 'http://prestonphipps.com/fr/produits/vapeur.shtml'");
  break;
case "http://prestonphipps.com/en/products/valves.shtml":
  eval("window.location = 'http://prestonphipps.com/fr/produits/robinetterie.shtml'");
  break;
case "http://prestonphipps.com/en/products/heating.shtml":
  eval("window.location = 'http://prestonphipps.com/fr/produits/chauffage.shtml'");
  break;
case "http://prestonphipps.com/en/products/ventilations.shtml":
  eval("window.location = 'http://prestonphipps.com/fr/produits/ventilations.shtml'");
  break;
case "http://prestonphipps.com/en/products/water_treatment.shtml":
  eval("window.location = 'http://prestonphipps.com/fr/produits/traitement_eau.shtml'");
  break;
case "http://prestonphipps.com/en/products/flow_measurement.shtml":
  eval("window.location = 'http://prestonphipps.com/fr/produits/controle_ecoulement.shtml'");
  break;
case "http://prestonphipps.com/en/seminars/steam_seminars.shtml":
  eval("window.location = 'http://prestonphipps.com/fr/ateliers/atelier_vapeur.shtml'");
  break;
case "http://prestonphipps.com/en/seminars/steam_seminars_agenda.shtml":
  eval("window.location = 'http://prestonphipps.com/fr/ateliers/atelier_vapeur_agenda.shtml'");
  break;
case "http://prestonphipps.com/en/company/locations.shtml#stJohns":
  eval("window.location = 'http://prestonphipps.com/fr/compagnie/bureaux.shtml#stJohns'");
  break;
case "http://prestonphipps.com/en/company/locations.shtml#halifax":
  eval("window.location = 'http://prestonphipps.com/fr/compagnie/bureaux.shtml#halifax'");
  break;
case "window.location = 'http://prestonphipps.com/en/company/locations.shtml#stJohn'":
  eval("http://prestonphipps.com/fr/compagnie/bureaux.shtml#stJohn");
  break;
case "http://prestonphipps.com/en/company/locations.shtml#quebec":
  eval("window.location = 'http://prestonphipps.com/fr/compagnie/bureaux.shtml#quebec'");
  break;  
case "http://prestonphipps.com/en/company/locations.shtml#mtl":
  eval("window.location = 'http://prestonphipps.com/fr/compagnie/bureaux.shtml#mtl'");
  break;  
case "http://prestonphipps.com/en/company/locations.shtml#ottawa":
  eval("window.location = 'http://prestonphipps.com/fr/compagnie/bureaux.shtml#ottawa'");
  break;  
case "http://prestonphipps.com/en/company/locations.shtml#toronto":
  eval("window.location = 'http://prestonphipps.com/fr/compagnie/bureaux.shtml#toronto'");
  break;  
case "http://prestonphipps.com/en/company/locations.shtml#sarnia":
  eval("window.location = 'http://prestonphipps.com/fr/compagnie/bureaux.shtml#sarnia'");
  break;  
case "http://prestonphipps.com/en/company/locations.shtml#calgary":
  eval("window.location = 'http://prestonphipps.com/fr/compagnie/bureaux.shtml#calgary'");
  break;  
case "http://prestonphipps.com/en/company/locations.shtml#edmonton":
  eval("window.location = 'http://prestonphipps.com/fr/compagnie/bureaux.shtml#edmonton'");
  break;  
case "http://prestonphipps.com/en/company/locations.shtml#vancouver":
  eval("window.location = 'http://prestonphipps.com/fr/compagnie/bureaux.shtml#vancouver'");
  break;  
default:
  eval("window.location = 'http://prestonphipps.com/fr/accueil/index.shtml'");
}
}

function scrollit_r2l(seed)
{
  var m1  = "  Your ultimate source for industrial steam, HVAC and water treatment products and solutions.          "; 
  var m2  = "  Your ultimate source for industrial steam, HVAC and water treatment products and solutions.          "; 
  var msg=m1+m2;
  var out = "   ";
  var c   = 1;
  if (seed > 100) {
    seed--;
    var cmd="scrollit_r2l(" + seed + ")";
    timerTwo=window.setTimeout(cmd,100);
  }
  else if (seed <= 100 && seed > 0) {
    for (c=0 ; c < seed ; c++) {
      out+=" ";
    }
    out+=msg;
    seed--;
    var cmd="scrollit_r2l(" + seed + ")";
    window.status=out;
    timerTwo=window.setTimeout(cmd,100);
  }
  else if (seed <= 0) {
    if (-seed < msg.length) {
      out+=msg.substring(-seed,msg.length);
      seed--;
      var cmd="scrollit_r2l(" + seed + ")";
      window.status=out;
      timerTwo=window.setTimeout(cmd,100);
    }
    else {
      window.status=" ";
      timerTwo=window.setTimeout("scrollit_r2l(100)",75);
    }
  }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
  return 0;
}
