/* Transformed JS from: /jslib/region_reminder.js */
(function(){function a(j){var l,i,k,c,d,f,h,e,g;f=b(window.location,"country");h=b(window.location,"division");if(h===""){return}l=document.getElementById(j);i=document.getElementById(j+"_text");k=document.getElementById(j+"_mid");c=document.getElementById(j+"_country");d=document.getElementById(j+"_division");regionDivisionName=document.getElementById(j+"_division_name");if(c){c.innerHTML=f.toUpperCase()}if(d){d.innerHTML=h}if(regionDivisionName){switch(h){case"fxtrade.oanda.com":e="";break;case"fxtrade.oanda.ca":e=" Canada";break;case"oanda.sg":e=" Asia Pacific";break;case"fxtrade.oanda.co.uk":e=" Europe";break}regionDivisionName.innerHTML=e}l.style.display="block";k.style.height=i.offsetHeight>35?i.offsetHeight+"px":"35px";document.getElementById("division_dropdown").style.color="#276fdb";l.onclick=function(){document.getElementById(j).style.display="none";document.getElementById("division_dropdown").style.color="#000"}}function b(d,c){var f=new RegExp("[\\?&]"+c+"=([^&#]*)");var e=f.exec(d);if(e===null){return""}return unescape(e[1])}jOanda.onready(function(){a("region_reminder")})})();
