var BA;var BA_STATUSMSG;var BA_KEYEQUIV;function BAEnvironment(){this.debugMode=false;var j=document;var k=j.implementation;var i=j.documentElement;var l=navigator.userAgent;var d=location.protocol;var h=location.hostname;this.url={};this.url.commonDir=BAGetCommonDir("shared");this.url.cssDir=this.url.commonDir+"css/";this.url.jsDir=this.url.commonDir+"js/";this.ns={};this.ns.defaultNS=(i&&i.namespaceURI)?i.namespaceURI:(i&&i.tagUrn)?i.tagUrn:null;this.ns.xhtml1="http://www.w3.org/1999/xhtml";this.ns.xhtml2="http://www.w3.org/2002/06/xhtml2";this.ns.bAattrs="urn:bA.attrs";this.prefix={};this.prefix.bAattrs="bAattrs:";this.ua={};this.ua.isGecko=l.match(/Gecko\//);this.ua.isSafari=l.match(/AppleWebKit/);this.ua.isOpera=window.opera;this.ua.isIE=(j.all&&!this.ua.isGecko&&!this.ua.isSafari&&!this.ua.isOpera);this.ua.isIE40=(this.ua.isIE&&l.match(/MSIE 4\.0/));this.ua.isIE45=(this.ua.isIE&&l.match(/MSIE 4\.5/));this.ua.isIE50=(this.ua.isIE&&l.match(/MSIE 5\.0/));this.ua.isIE55=(this.ua.isIE&&l.match(/MSIE 5\.5/));this.ua.isIE60=(this.ua.isIE&&l.match(/MSIE 6\.0/));this.ua.isIE70=(this.ua.isIE&&l.match(/MSIE 7\.0/));this.ua.isIE80=(this.ua.isIE&&l.match(/MSIE 8\.0/));this.ua.isNN4=j.layers;this.ua.isMac=l.match(/Mac/);this.ua.isWin=l.match(/Win/);this.ua.isWinIE=this.ua.isWin&&this.ua.isIE;this.ua.isMacIE=this.ua.isMac&&this.ua.isIE;this.ua.productSub=navigator.productSub;this.ua.revision=(this.ua.isIE)?parseFloat(l.match(/MSIE ([\d\.]+)/)[1]):(this.ua.isGecko)?parseFloat(l.match(/; rv:([\d\.]+)/)[1]):(this.ua.isSafari)?parseFloat(l.match(/AppleWebKit\/([\d\.]+)/)[1]):(this.ua.isOpera)?parseFloat(l.match(/Opera.([\d\.]+)/)[1]):0;this.ua.DOMok=(k)?k.hasFeature("HTML","1.0"):(this.ua.isIE&&i);this.env={};this.env.online=(d=="http:"||d=="https:");this.env.referer=(typeof document.referrer=="string")?document.referrer:"";this.css={};this.css.revise={};this.css.reviseTitle="";this.geom={}}window.onerror=function(){if(typeof BA=="object"){if(BA.debugMode){var b="Error: "+arguments[0]+"\nFile: "+arguments[1]+"\nLine: "+arguments[2];alert(b)}return true}};if(!window.encodeURIComponent){window.encodeURIComponent=function(b){return escape(b)}}if(!Function.prototype.apply){Function.prototype.apply=function(aThisObject,anArray){if(typeof anArray!="null"&&typeof anArray!="undefined"&&typeof anArray!="object"){throw"Function.apply: second argument must be an array."}else{if(typeof aThisObject!="object"||!aThisObject){aThisObject=window}if(!anArray){anArray=[]}var prop="__Function_Apply_stored__";var args=[];for(var i=0,n=anArray.length;i<n;i++){args.push("anArray["+i+"]")}aThisObject[prop]=this;var ret=eval("aThisObject."+prop+"("+args.join(",")+")");try{delete aThisObject[prop]}catch(err){aThisObject[prop]=null}return ret}}}if(!Function.prototype.call){Function.prototype.call=function(f){var e=[];for(var h=1,g=arguments.length;h<g;h++){e.push(arguments[h])}return this.apply(f,e)}}if(!Array.prototype.pop){Array.prototype.pop=function(){if(!this.length){return null}else{var b=this[this.length-1];--this.length;return b}}}if(!Array.prototype.push){Array.prototype.push=function(e){for(var d=0,f=arguments.length;d<f;d++){this[this.length]=arguments[d]}return this.length}}if(!Array.prototype.shift){Array.prototype.shift=function(){if(!this.length){return null}else{this.reverse();var b=this.pop();this.reverse();return b}}}if(!Array.prototype.unshift){Array.prototype.unshift=function(d){this.reverse();for(var c=arguments.length-1;c>=0;c--){this.push(arguments[c])}this.reverse();return this.length}}if(!Array.prototype.splice){Array.prototype.splice=function(f,i){f=(f<0)?Math.max(f+this.length,0):Math.min(f,this.length);i=Math.min(Math.max(i||this.length,0),this.length-f);var h=this.slice(0,f);var j=this.slice(f+i);var g=this.slice(f,f+i);Array.prototype.slice.call(arguments,2).forEach(function(a){h.push(a)});this.length=0;this.push.apply(this,h);this.push.apply(this,j);return g}}if(!Array.prototype.indexOf){Array.prototype.indexOf=function(h,e){if(typeof e!="number"){e=0}else{if(e<0){e=this.length+e}}for(var f=e,g=this.length;f<g;f++){if(this[f]===h){return f}}return -1}}if(!Array.prototype.lastIndexOf){Array.prototype.lastIndexOf=function(f,d){if(typeof d!="number"){d=this.length-1}else{if(d<0){d=this.length+d}}for(var e=d;e>=0;e--){if(this[e]===f){return e}}return -1}}if(!Array.prototype.forEach){Array.prototype.forEach=function(h,f){for(var e=0,g=this.length;e<g;e++){h.call(f,this[e],e,this)}}}if(!Array.prototype.map){Array.prototype.map=function(i,g){var f=[];for(var j=0,h=this.length;j<h;j++){f.push(i.call(g,this[j],j,this))}return f}}if(!Array.prototype.filter){Array.prototype.filter=function(i,g){var f=[];for(var j=0,h=this.length;j<h;j++){if(i.call(g,this[j],j,this)){f.push(this[j])}}return f}}if(!Array.prototype.some){Array.prototype.some=function(h,f){for(var e=0,g=this.length;e<g;e++){if(h.call(f,this[e],e,this)){return true}}return false}}if(!Array.prototype.every){Array.prototype.every=function(h,f){for(var e=0,g=this.length;e<g;e++){if(!h.call(f,this[e],e,this)){return false}}return true}}if(!Array.prototype.equal){Array.prototype.equal=function(b){if(!b||this.length!=b.length){return false}else{return this.every(function(d,a){return(d===b[a])})}}}Number.prototype.formatNumberBA=function(p){if(!p||typeof p!="string"){throw"Number.formatNumberBA: first argument must be a formatting string."}else{var r=[];var s=p.split(".")[0].split("");var q=p.split(".")[1]||"";var o=(q)?Math.abs(this):Math.round(Math.abs(this));var w=(this<0)?"-":"";var x=o.toString().split(".")[0].split("");do{var m=x.pop()||"";var t=s.pop()||"";switch(t){case"0":r.push(m?m:"0");break;case"#":r.push(m?m:"");break;case"":x=[];break;default:r.push(t);x.push(m);break}}while(x.length>0||s.length>0);r=r.reverse().join("").replace(/^\D+/,"");if(q){var u=Math.pow(10,q.length);var v=Math.round(o*u)/u;if(v-r==1){r++}var n=v.toString().split(".")[1]||"0";n=n.split("").reverse().join("");q=q.split("").reverse().join("");r=r+"."+n.formatNumberBA(q).split("").reverse().join("")}if(q.startsWithBA("#")&&r.endsWithBA(".0")){r=r.getBeforeBA(".0")}return w+r}};String.prototype.formatNumberBA=function(c){var d=parseFloat(this,10);if(isNaN(d)){throw"String.formatNumberBA: this string is not a number string."}else{return d.formatNumberBA(c)}};String.prototype.formatTextBA=function(f){var h=this;if(f&&f.constructor==Array){for(var e=0,g=f.length;e<g;e++){h=h.replace(new RegExp("\\$\\{"+e+"\\}","g"),f[e])}}return h};String.prototype.getBeforeBA=function(f,d){var e=this.indexOf(f);return(e==-1)?"":this.substring(0,e)+(d?f:"")};String.prototype.getAfterBA=function(f,d){var e=this.indexOf(f);return(e==-1)?"":(d?f:"")+this.substring(e+f.length,this.length)};String.prototype.startsWithBA=function(b){return(this.indexOf(b)==0)};String.prototype.endsWithBA=function(c){var d=this.lastIndexOf(c);return(d>-1&&d+c.length==this.length)};String.prototype.relToAbsBA=function(f){var b=f.split("/");var g=this.split("/");var h=/^(\/|\w+:)/;if(!f.match(h)){throw"String.relToAbsBA: first argument must be an absolute path/URL."}else{if(this.match(h)){return this}else{if(this.charAt(0)=="#"||this.charAt(0)=="?"){return f+this}else{if(g[0]=="."||g[0]==".."){return g.slice(1,g.length).join("/").relToAbsBA(b.slice(0,b.length-g[0].length).join("/")+"/")}else{return b.slice(0,b.length-1).join("/")+"/"+this}}}}};String.prototype.absToRelBA=function(g){var f=/^(\/|\w+:)/;if(!g.match(f)){throw"String.absToRelBA: first argument must be an absolute path/URL."}else{if(!this.match(f)){throw"String.absToRelBA: String must be an absolute path/URL."}else{return h(g,this)||g}}function h(a,c){var d=a.split("/");var b=c.split("/");if(!a){return c}else{if(!c){return e(a)}else{if(d[0]!=b[0]){return e(a)+c}else{return arguments.callee(d.slice(1,d.length).join("/"),b.slice(1,b.length).join("/"))}}}}function e(a){a=a.split("/");a.shift();a.forEach(function(b,c){a[c]=".."});return a.join("/")+"/"}};String.prototype.getSanitizedStringBA=function(){var f={"&":"&amp;","<":"&lt;",">":"&gt;","\u0022":"&quot;","\u0027":"&apos;"};var e=this;for(var d in f){e=e.replace(new RegExp(d,"g"),f[d])}return e};function BADOM(){this.instanceOf="BAElement"}BADOM.prototype.addEventListenerBA=function(l,q,r){function o(b){var a=window.event;var d=document.documentElement;var c=document.body;this.currentTarget=b;if(!a){return}this.type=a.type;this.target=a.srcElement;this.relatedTarget=(a.srcElement==a.toElement)?a.fromElement:a.toElement;this.clientX=a.clientX;this.clientY=a.clientY;this.pageX=(d.scrollLeft?d.scrollLeft:(c?c.scrollLeft:0))+a.clientX;this.pageY=(d.scrollTop?d.scrollTop:(c?c.scrollTop:0))+a.clientY;this.charCode=a.keyCode;this.keyCode=a.keyCode;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.altKey=a.altKey;this.metaKey=a.metaKey;this.detail=a.detail;this.wheelDelta=a.wheelDelta;this.stopPropagation=function(){a.cancelBubble=true};this.preventDefault=function(){a.returnValue=false}}function p(a){var b=this.__addEventListenerBA_stored__;var c=a.type;if(BA.ua.isGecko&&c=="DOMMouseScroll"){a.wheelDelta=a.detail*-40}else{if(BA.ua.isSafari&&BA.ua.revision<412){a.preventDefault=function(){this.currentTarget["on"+this.type]=function(){return false}}}}if(b&&b[c]){b[c].forEach(function(d){d.call(null,a)})}}if(!l||typeof l!="string"){throw"BADOM.addEventListenerBA: first argument must be a string (event type)."}else{if(!q||typeof q!="function"){throw"BADOM.addEventListenerBA: second argument must be a function (event listener)."}else{if(BA.ua.isOpera&&BA.ua.revision<9.02&&l=="mousewheel"){return}else{if(BA.ua.isGecko&&l=="mousewheel"){l="DOMMouseScroll"}}}}var n=this.__addEventListenerBA_stored__;if(!n){n=this.__addEventListenerBA_stored__={}}var s=n[l];if(!s){s=n[l]=[];if(this.addEventListener){this.addEventListener(l,p,false)}else{var m=(this.window)?this.window:this;var k=m["on"+l];m["on"+l]=(k)?function(){k();p.call(m,new o(m))}:function(){p.call(m,new o(m))}}}if(s.indexOf(q)>-1){return}else{if(typeof r=="object"&&r!=null){s.push(BACreateDelegate(q,r))}else{s.push(q)}}var t=window.BA_EVENTLISTENER_STORED_NODES;if(!t){t=window.BA_EVENTLISTENER_STORED_NODES=[]}if(t.indexOf(this)==-1){t.push(this)}};BADOM.prototype.removeEventListenerBA=function(i,h){if(!i||typeof i!="string"){throw"BADOM.removeEventListenerBA: first argument must be a string (event type)."}else{if(!h||typeof h!="function"){throw"BADOM.removeEventListenerBA: second argument must be a function (event listener)."}else{if(BA.ua.isGecko&&i=="mousewheel"){i="DOMMouseScroll"}}}var j=this.__addEventListenerBA_stored__;if(j&&j[i]&&j[i].length>0){var g=j[i];var f=g.indexOf(h);if(f>-1){g.splice(f,1)}}};BADOM.prototype.dispatchEventBA=function(b){if(!b||typeof b!="object"){throw"BADOM.dispatchEventBA: first argument must be an Event object."}else{if(this.dispatchEvent){this.dispatchEvent(b)}else{if(this.fireEvent){this.fireEvent("on"+b.type)}else{if(this["on"+b.type]){this["on"+b.type]()}}}}};function BAWindow(){}BAWindow.prototype=new BADOM;function BADocument(){}BADocument.prototype=new BADOM;BADocument.prototype.getElementsByTagNameBA=function(r){var n=[];if(!r||typeof r!="string"){throw"BADocument.getElementsByTagNameBA: first argument must be a string (tagName)."}else{if(r=="*"){n=this.getElementsByTagName(r);if(BA.ua.isIE||n.length==0){n=(document.all&&this===document)?document.all:(function(f){var e=f.childNodes;var a=[];for(var b=0,c=e.length;b<c;b++){var d=e[b];if(d.nodeType==1&&d.nodeName!="!"){a.push(d)}a=a.concat(arguments.callee(d))}return a})(this)}}else{if(r.indexOf(":")!=-1){var l=r.split(":")[0];var t=r.split(":")[1];n=(BA.ns.defaultNS&&this.getElementsByTagNameNS)?this.getElementsByTagNameNS(BA.ns[l],t):this.getElementsByTagName(r);if(n.length==0){n=(t=="*")?this.getElementsByTagNameBA(t):this.getElementsByTagName(t);var q=[];for(var p=0,s=n.length;p<s;p++){var i=n[p];if(BA.ns.defaultNS&&i.namespaceURI==BA.ns[l]||i.tagUrn==BA.ns[l]){q.push(i)}}if(q.length==0){n=(t=="*")?n:this.getElementsByTagNameBA("*");var q=[];for(var p=0,s=n.length;p<s;p++){var i=n[p];var o=i.nodeName.split(":")[0];var m=i.nodeName.split(":")[1];if(m&&o==l&&(t=="*"||m.toLowerCase()==t.toLowerCase())){q.push(i)}}}n=q}}else{n=(BA.ns.defaultNS&&this.getElementsByTagNameNS)?this.getElementsByTagNameNS(BA.ns.defaultNS,r):(r.match(/^body$/i)&&document.body)?[document.body]:this.getElementsByTagName(r);if(typeof document.documentElement.tagUrn=="string"){var q=[];for(var p=0,s=n.length;p<s;p++){var i=n[p];if(!i.tagUrn||i.tagUrn==BA.ns.defaultNS){q.push(i)}}n=q}}}}["indexOf","lastIndexOf","forEach","map","filter","some","every","equal"].forEach(function(a){if(!n[a]){n[a]=function(){return Array.prototype[a].apply(this,arguments)}}});if(BA.ua.isWinIE&&BA.ua.revision<7){n.forEach(BARegisterDOMMethodsTo)}return n};BADocument.prototype.getElementsByClassNameBA=function(h,e){if(!h||typeof h!="string"){throw"BADocument.getElementsByClassNameBA: first argument must be a string (className)."}else{var f=this.getElementsByTagNameBA(e||"*");var g=function(a){return(a.hasClassNameBA&&a.hasClassNameBA(h))};if(typeof(f.filter)!="function"){return Array.prototype.filter.apply(f,[g])}else{return this.getElementsByTagNameBA(e||"*").filter(g)}}};BADocument.prototype.createElementBA=function(d){if(!d||typeof d!="string"){throw"BADocument.createElementBA: first argument must be a string (tagName)."}else{var c=(BA.ns.defaultNS&&document.createElementNS&&d.match(/:/))?document.createElementNS(BA.ns[d.split(":")[0]],d.split(":")[1]):(BA.ns.defaultNS&&document.createElementNS)?document.createElementNS(BA.ns.defaultNS,d):document.createElement(d);return BARegisterDOMMethodsTo(c)}};BADocument.prototype.createDocumentFragmentBA=function(){if(!document.createDocumentFragment||!BA.ua.isMacIE){return BARegisterDOMMethodsTo(document.createDocumentFragment())}else{var b=document.createElementBA("ins");b.__DOCUMENT_FRAGMENT_BA_NODE__=true;return b}};function BAElement(){}BAElement.prototype=new BADocument;BAElement.prototype.createElementBA=function(){};BAElement.prototype.createDocumentFragmentBA=function(){};BAElement.prototype.appendChildBA=function(g,e){if(typeof g=="undefined"||typeof g=="object"&&!g){throw"BAElement.appendChildBA: first argument must be a node or a string or a BATag instance."}else{if(g.nodeType==1||g.nodeType==3||g.nodeType==11){if(g.__DOCUMENT_FRAGMENT_BA_NODE__){while(g.hasChildNodes()){this.appendChild(g.firstChild)}return g}else{return this.appendChild(g)}}else{if(g.instanceOf=="BATag"||e){g=g.toString();if(document.createRange){var f=document.createRange();f.selectNode(this);g=f.createContextualFragment(g);this.appendChild(g)}else{if(this.insertAdjacentHTML){this.insertAdjacentHTML("beforeEnd",g)}else{this.innerHTML+=g}}BARegisterDOMMethodsTo(this,true);return g}else{if(g.toString){g=g.toString();var h=document.createTextNode(g);if(this.insertAdjacentText){this.insertAdjacentText("beforeEnd",g);return h}else{return this.appendChild(h)}}}}}};BAElement.prototype.removeChildBA=function(b){if(!b||typeof b.nodeType!="number"){throw"BAElement.removeChildBA: first argument must be a DOM node."}else{return BARegisterDOMMethodsTo(this.removeChild(b))}};BAElement.prototype.removeAllChildrenBA=function(){var b=[];while(this.hasChildNodes()){b.push(this.removeChildBA(this.firstChild))}return b};BAElement.prototype.getInnerTextBA=function(){var f=this.childNodes;var e=[];for(var h=0,g=f.length;h<g;h++){if(f[h].hasChildNodes()){e.push(f[h].getInnerTextBA())}else{if(f[h].nodeType==3){e.push(f[h].nodeValue)}else{if(f[h].alt){e.push(f[h].alt)}}}}return e.join("").replace(/\s+/g," ")};BAElement.prototype.getAttributeBA=function(e){if(!e||typeof e!="string"){throw"BAElement.getAttributeBA: first argument must be a string (atribute name)."}else{if(BA.ua.isIE&&e=="class"){if(!BA.ua.isIE80){e+="Name"}}var d=this.getAttribute(e);if(!d&&this.getAttributeNS&&e.match(/:/)){var f=e.split(":")[0];var e=e.split(":")[1];return this.getAttributeNS(BA.ns[f],e)}return d}};BAElement.prototype.setAttributeBA=function(e,f){if(!e||typeof e!="string"){throw"BAElement.setAttributeBA: first argument must be a string (atribute name)."}else{if(e.match(/:/)){var d=e.split(":")[0];var e=e.split(":")[1];if(this.setAttributeNS&&this.namespaceURI||BA.ua.isSafari){this.setAttributeNS(BA.ns[d],e,f)}else{this.setAttribute("xmlns:"+d,BA.ns[d]);this.setAttribute(d+":"+e,f)}}else{if(BA.ua.isIE&&e=="class"){if(!BA.ua.isIE80){e+="Name"}}this.setAttribute(e,f)}}};BAElement.prototype.hasClassNameBA=function(b){if(!b||typeof b!="string"){throw"BAElement.hasClassNameBA: first argument must be a string (className)."}else{if(this.nodeType!=1){return false}else{return(this.getAttributeBA("class")||"").split(" ").some(function(a){return(a==b)})}}};BAElement.prototype.appendClassNameBA=function(c){if(!c||typeof c!="string"){throw"BAElement.appendClassNameBA: first argument must be a string (className)."}else{if(!this.hasClassNameBA(c)){var d=(this.getAttributeBA("class")||"").split(" ");d.push(c);this.setAttributeBA("class",d.join(" "))}}},BAElement.prototype.removeClassNameBA=function(f){if(!f||typeof f!="string"){throw"BAElement.removeClassNameBA: first argument must be a string (className)."}else{if(this.hasClassNameBA(f)){var d=this.getAttributeBA("class").split(" ");var e=d.indexOf(f);if(e>-1){d.splice(e,1);this.setAttributeBA("class",d.join(" "))}}}};BAElement.prototype.getAbsoluteOffsetBA=function(){var d={X:this.offsetLeft,Y:this.offsetTop};if(this.offsetParent){var c=this.offsetParent.getAbsoluteOffsetBA();d.X+=c.X;d.Y+=c.Y}return d};function BARegisterDOMMethodsTo(h,f){if(h&&h.instanceOf!="BAElement"&&(h.nodeType==1||h.nodeType==11)){for(var e in BAElement.prototype){h[e]=BAElement.prototype[e]}}if(f===true&&f&&h.hasChildNodes()){for(var e=0,g=h.childNodes.length;e<g;e++){arguments.callee(h.childNodes[e],true)}}return h}function BAAddOnload(d){var f=(BA.ua.isGecko||BA.ua.isOpera)?document:window;var e=(BA.ua.isGecko)?"DOMContentLoaded":"load";f.addEventListenerBA(e,d)}function BAAddDuringLoad(e,d){if(!d){d=500}var f=arguments.callee;f.__store__=[];f.__store__.push(new BASetInterval(e,d));BAAddOnload(e);BAAddOnload(function(){for(var b=0,a=f.__store__.length;b<a;b++){f.__store__[b].clearTimer()}})}function BAAddOnunload(b){window.addEventListenerBA("unload",b)}function BAGetCommonDir(m){var j=BAGetStyleSheets();var n="";if(j&&j[0]){var h="/"+m+"/";var i=j[0].href||"";if(!i.match(/^(\.\.?\/|\w+:)/)&&!i.startsWithBA("/")){i="/"+i}if(i.indexOf(h)>-1){n=i.getBeforeBA(h,true);if(!n.match(/^\w+:/)){var k=document.getElementsByTagName("base")[0];var l=(k)?k.href:location.href;if(n.startsWithBA("/")){n=l.match(/^\w+:\/*[^\/]+/)+n}else{n=n.relToAbsBA(l)}}}}return n}function BAGetStyleSheets(){var i=document.styleSheets;if(i&&i.length==0&&document.getElementsByTagName){var f=document.getElementsByTagName("link");i=[];for(var j=0,h=f.length;j<h;j++){var g=f[j].getAttribute("rel")||"";if(g.endsWithBA("stylesheet")){i.push(f[j])}}}return i}function BAGetActiveCSSTitle(){var h=BAGetStyleSheets();var f="";if(h){for(var e=0,g=h.length;e<g;e++){if(!h[e].disabled&&h[e].title){f=h[e].title;break}}}return f}function BASingleton(b){return b.__BASingleInstance__||(b.__BASingleInstance__=new b())}function BACreateDelegate(f,e){var d=function(){return f.apply(e,arguments)};d.func=f;d.aThisObject=e;return d}function BAAlreadyApplied(b){if(!BA.ua.DOMok||b.__BAAlreadyApplied__){return true}b.__BAAlreadyApplied__=true;return false}function BAConcatNodeList(){var b=[];(function(f){for(var a=0,e=f.length;a<e;a++){if(f[a].nodeType==1){b.push(f[a])}else{if(f[a].length>0){arguments.callee(f[a])}}}})(arguments);return b}function BAPreloadImage(c){var d=new Image();d.src=c;return d}function BAOpenWindow(n,k,l,j,o,i){if(!k){k="_blank"}var m={exampleTarget1:"toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes",exampleTarget2:"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no"};o=o||m[k]||"";l+=(o.match("scrollbars=yes"))?16:0;if(l&&j){o="width="+l+",height="+j+(o?","+o:"")}var p=window.open(n,k,o);p.focus();if(i){p.moveTo(0,0)}if(window.event){window.event.returnValue=false}return p}function BAOpenFullscreenWindow(d,f,e){e=e||"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no";return BAOpenWindow(d,f,screen.availWidth,screen.availHeight,e,true)}function BAAppendJS(c){var d=new BATag("script");d.setAttributeBA("type","text/javascript");d.setAttributeBA("src",c.replace(/~/g,"%7E"));d.appendChildBA("");document.write(d.toString())}function BAAppendCSS(f,h,i){var g=BAGetActiveCSSTitle();var j=new BATag("link");j.setAttributeBA("rel",((!h||!g||h==g)?"stylesheet":"alternate stylesheet"));j.setAttributeBA("type","text/css");j.setAttributeBA("media",(i||"all"));j.setAttributeBA("href",f.replace(/~/g,"%7E"));if(h){j.setAttributeBA("title",h)}document.write(j.toString())}function BAAppendStateClassName(c){if(typeof c!="string"||!c){throw"BASetStateClassName: argument must be a string."}else{var d=document.getElementsByTagNameBA("body")[0];if(!d){throw"BASetStateClassName: <body> element not exists."}else{d.appendClassNameBA(c)}}}function BARemoveStateClassName(c){if(typeof c!="string"||!c){throw"BASetStateClassName: argument must be a string."}else{var d=document.getElementsByTagNameBA("body")[0];if(!d){throw"BASetStateClassName: <body> element not exists."}else{d.removeClassNameBA(c)}}}function BAGetGeometry(o){var b=window;var n=document.documentElement;var d=document.getElementsByTagNameBA("body")[0];var p=BA.ua.isWinIE&&(!document.compatMode||document.compatMode=="BackCompat");var r=BA.ua.isMacIE;var e=BA.ua.isSafari;BA.geom.scrollBar=t();BA.geom.scrollX=b.scrollX||n.scrollLeft||d.scrollLeft||0;BA.geom.scrollY=b.scrollY||n.scrollTop||d.scrollTop||0;BA.geom.windowW=b.innerWidth||(r?d.scrollWidth:n.offsetWidth);BA.geom.windowH=b.innerHeight||(r?d.scrollHeight:n.offsetHeight);BA.geom.pageW=(r)?n.offsetWidth:(p)?d.scrollWidth:n.scrollWidth;BA.geom.pageH=(r)?n.offsetHeight:(p)?d.scrollHeight:n.scrollHeight;BA.geom.windowX=(!o)?(BA.geom.windowX||0):o.clientX-(e?BA.geom.scrollX:0);BA.geom.windowY=(!o)?(BA.geom.windowY||0):o.clientY-(e?BA.geom.scrollY:0);BA.geom.mouseX=(!o)?(BA.geom.mouseX||0):o.clientX+(!e?BA.geom.scrollX:0);BA.geom.mouseY=(!o)?(BA.geom.mouseY||0):o.clientY+(!e?BA.geom.scrollY:0);BA.geom.nodeName=(!o)?(BA.geom.nodeName||""):o.target.nodeName;if(BA.debugMode){var q=[BA.geom.windowW,BA.geom.windowH,BA.geom.pageW,BA.geom.pageH,BA.geom.windowX,BA.geom.windowY,BA.geom.scrollX,BA.geom.scrollY,BA.geom.mouseX,BA.geom.mouseY,BA.geom.nodeName];var s="window: ${0} x ${1} | page: ${2} x ${3} | scroll: ${6}, ${7} | pos (viewport): ${4}, ${5} | pos (absolute): ${8}, ${9} | node: ${10}";BA_STATUSMSG.set("[Debug Mode: ON] | "+s.formatTextBA(q))}function t(){var c="BAGetGeometry_getScrollBarWidth_testNode";var a=document.getElementById(c);if(!a){a=document.createElementBA("ins");a.id=c;a.style.display="block";a.style.visibility="hidden";a.style.overflow="scroll";a.style.position="absolute";a.style.border="none";a.style.top=a.style.left="-10000px";a.style.width=a.style.height="100px";a.style.margin=a.style.padding="0";d.appendChildBA(a)}return(a.offsetWidth-a.clientWidth)}}function BAGetZoomRatio(){var d=1;if(BA.ua.isIE70){if(!document.compatMode||document.compatMode=="BackCompat"){d=document.documentElement.offsetWidth/document.body.offsetWidth}else{BAGetGeometry();var c=document.createElementBA("ins");c.style.display="block";c.style.position="absolute";c.style.top="-100px";c.style.left="0px";c.style.width=(BA.geom.pageW*10)+"px";document.body.appendChildBA(c);BAGetGeometry();d=BA.geom.pageW/c.offsetWidth;document.body.removeChildBA(c)}}return d}function BASetWording(expression,str){if(typeof expression!="string"||typeof str!="string"){throw"BASetWording: argument type must be string."}else{if(!expression){throw"BASetWording: not enough arguments."}else{var props=expression.split(".");var target="window";while(props.length>1){var type=null;target+="."+props.shift();try{type=(typeof eval(target))}catch(err){}switch(type){case"undefined":eval(target+" = {}");break;case"object":break;default:throw"BASetWording: specified expression is unavailable.";return}}var type=null;try{type=typeof eval("window."+expression)}catch(err){throw"BASetWording: specified expression is unavailable."}if(type=="undefined"||type=="string"){eval(expression+' = "'+str+'"')}}}}function BASetTimeout(f,d,e){this.storeIndex=0;this.timer=null;this.storeName="BA_SETTIMEOUT_STOREDFUNC";this.removerName="BA_SETTIMEOUT_STOREDFUNC_REMOVER";if(arguments.length){this.storeFunc(f,d,e)}}BASetTimeout.prototype={storeFunc:function(f,d,e){if(!window[this.storeName]){window[this.removerName]=[];window[this.storeName]=[];window[this.storeName].remove=function(a){this[a]=null}}this.storeIndex=window[this.storeName].push(BACreateDelegate(f,e));this.storeIndex--;this.setTimer(d)},setTimer:function(d){var c;if(BA.ua.isIE){c="JScript"}this.timer=setTimeout("window."+this.storeName+"["+this.storeIndex+"]()",d,c);this.removeFunc(d)},clearTimer:function(){if(this.timer){this.clearTimerMain();clearTimeout(window[this.removerName][this.storeIndex]);this.timer=null;this.removeFunc(0)}},clearTimerMain:function(){clearTimeout(this.timer)},removeFunc:function(d){var c;if(BA.ua.isIE){c="JScript"}window[this.removerName][this.storeIndex]=setTimeout("window."+this.storeName+".remove("+this.storeIndex+")",d+1000,c)}};function BASetInterval(f,d,e){this.storeName="BA_SETINTERVAL_STOREDFUNC";this.removerName="BA_SETINTERVAL_STOREDFUNC_REMOVER";if(arguments.length){this.storeFunc(f,d,e)}}BASetInterval.prototype=new BASetTimeout;BASetInterval.prototype.setTimer=function(d){var c;if(BA.ua.isIE){c="JScript"}this.timer=setInterval("window."+this.storeName+"["+this.storeIndex+"]()",d,c)};BASetInterval.prototype.clearTimerMain=function(){clearInterval(this.timer)};function BAStatusDisplay(){this.node=null;this.msg="";this.defaultMsg="";this.delay=0;this.sustain=0;this.delayTimer=null;this.sustainTimer=null}BAStatusDisplay.prototype={init:function(d,c){this.setStatusDisplayNode(d);this.setDefaultMsg((typeof c=="string")?c:this.node.getInnerTextBA());this.node.removeAllChildrenBA();this.node.appendChildBA("");this.unset();return d},getStatusDisplayNode:function(){return this.node},setStatusDisplayNode:function(b){if(!b||!b.nodeType||b.nodeType!=1){throw"BAStatusDisplay.setStatusDisplayNode: first argument must be an element node."}else{this.node=b;return b}},getDefaultMsg:function(){return this.defaultMsg},setDefaultMsg:function(b){if(typeof b!="string"){throw"BAStatusDisplay.setDefaultMsg: first argument must be an string."}else{this.defaultMsg=b;return b}},set:function(f,d,e){if(typeof f!="string"){throw"BAStatusDisplay.set: first argument must be an string."}else{this.msg=f;this.delay=(typeof d=="number"&&d>0)?d:0;this.sustain=(typeof e=="number"&&e>0)?e:0;if(this.delay>0){this.delayTimer=new BASetTimeout(this.setProcess,this.delay,this)}else{this.setProcess()}return f}},unset:function(){this.clearTimer();this.unsetMsg()},setProcess:function(){this.clearTimer();if(this.msg){this.setMsg();if(this.sustain>0){this.sustainTimer=new BASetTimeout(this.unset,this.sustain,this)}}else{this.unset()}},setMsg:function(){if(this.node){this.node.removeAllChildrenBA();this.node.appendChildBA(this.msg)}},unsetMsg:function(){if(this.node){this.node.removeAllChildrenBA();this.node.appendChildBA(this.defaultMsg)}},clearTimer:function(){if(this.delayTimer){this.delayTimer.clearTimer()}if(this.sustainTimer){this.sustainTimer.clearTimer()}}};function BAStatusMsg(){this.node=window.defaultStatus||"";this.msg="";this.defaultMsg="";this.delay=0;this.sustain=0;this.delayTimer=null;this.sustainTimer=null}BAStatusMsg.prototype=new BAStatusDisplay;BAStatusMsg.prototype.init=function(b){if(typeof b=="string"){this.setDefaultMsg(b)}this.unset()};BAStatusMsg.prototype.getStatusDisplayNode=function(){};BAStatusMsg.prototype.setStatusDisplayNode=function(){};BAStatusMsg.prototype.setMsg=function(){window.status=this.msg};BAStatusMsg.prototype.unsetMsg=function(){window.status=this.defaultMsg};function BATimer(){this.reset()}BATimer.prototype={reset:function(){this.startTime=(new Date()).getTime()},getTime:function(){return(new Date()).getTime()-this.startTime},getSeconds:function(){return this.getTime()/1000}};function BATag(c,d){this.tagName=c;this.attributes=d||{};this.childNodes=[];this.instanceOf="BATag"}BATag.prototype={setAttributeBA:function(d,c){this.attributes[d]=c},appendChildBA:function(b){this.childNodes.push(b)},toString:function(o){var m=(o)?"&lt;":"<";var p=(o)?"&gt;":">";var i=m+this.tagName;var l=(this.childNodes.length)?"":null;for(var n=0,k=this.childNodes.length;n<k;n++){l+=this.childNodes[n].toString(o)}for(var j in this.attributes){i+=" "+j+'="'+this.attributes[j]+'"'}i+=(l!=null)?p+l+m+"/"+this.tagName+p:" /"+p;return i}};function BAKeyEquivalents(){this.keyAlias={"$":{aliasName:"Shift",keyCode:16,DOMName:"shiftKey"},"%":{aliasName:"Ctrl",keyCode:17,DOMName:"ctrlKey"},"~":{aliasName:"Alt",keyCode:18,DOMName:"altKey"},"&":{aliasName:"Meta",keyCode:91,DOMName:null},"#":{aliasName:"Enter",keyCode:13,DOMName:null},"|":{aliasName:"Tab",keyCode:9,DOMName:null},"!":{aliasName:"Esc",keyCode:27,DOMName:null},"<":{aliasName:"\u2190",keyCode:37,DOMName:null},"{":{aliasName:"\u2191",keyCode:38,DOMName:null},">":{aliasName:"\u2192",keyCode:39,DOMName:null},"}":{aliasName:"\u2193",keyCode:40,DOMName:null}};this.equivalents={};this.numOfEquivs=0}BAKeyEquivalents.prototype={init:function(){document.addEventListenerBA("keydown",BACreateDelegate(this.dispatchEvent,this))},addKeyEquivalent:function(h,e,g,f){this.numOfEquivs++;if(!e){e="BAKeyEquivalents"+this.numOfEquivs}this.equivalents[e]={key:h,aCallBack:g,aThisObject:f};return e},getKeybind:function(l){var h=this.equivalents[l];var j=h.key.split("");var g=[];for(var k=0,i=j.length;k<i;k++){g.push(this.keyAlias[j[k]]?this.keyAlias[j[k]].aliasName:j[k].toUpperCase())}return g},doCallBack:function(d,f){if(d&&this.equivalents[d]){var e=this.equivalents[d];e.aCallBack.call(e.aThisObject,f)}},dispatchEvent:function(n){for(var s in this.equivalents){var o=this.equivalents[s];var e=o.key.split("");var m=true;for(var p=0,r=e.length;(p<r&&m);p++){var i=e[p].toLowerCase();var t=this.keyAlias[i];if(t&&t.DOMName){m=(m&&n[t.DOMName])}else{if(t&&t.keyCode){m=(m&&(n.keyCode==t.keyCode))}else{var q=String.fromCharCode(n.charCode?n.charCode:n.keyCode).toLowerCase();m=(m&&(i==q))}}}if(m){this.doCallBack(s,n)}}}};function BARegisterDOMMethods(){if((typeof Node=="object"||typeof Node=="function")&&Node.prototype){for(var b in BAElement.prototype){Node.prototype[b]=BAElement.prototype[b]}}for(var b in BADocument.prototype){document[b]=BADocument.prototype[b]}for(var b in BAWindow.prototype){window[b]=BAWindow.prototype[b]}}function BAAppendReviseCSS(){for(var d in BA.css.revise){var e=d.split(".")[0];var f=d.split(".")[1];if(f&&BA.ua["is"+f]&&BA.ua["is"+e]||!f&&BA.ua["is"+e]){BAAppendCSS(BA.url.cssDir+BA.css.revise[d],BA.css.reviseTitle);break}}}function BARegisterDOMMethodsRoundRobin(){if((typeof Node=="object"||typeof Node=="function")&&Node.prototype){return}if(BAAlreadyApplied(arguments.callee)){return}document.getElementsByTagNameBA("*").forEach(BARegisterDOMMethodsTo)}function BAScrollToFragmentIDTarget(){if(BAAlreadyApplied(arguments.callee)){return}if(!BA.ua.isSafari||!BA.css.revise.Safari){return}var b=location.hash||"";b=b.split("#")[1]||"";b=document.getElementById(b)||null;if(b){window.scrollTo(0,b.getAbsoluteOffsetBA().Y)}}function BAStartGeometryMeasure(){if(!BA.debugMode||BAAlreadyApplied(arguments.callee)){return}BAGetGeometry();document.addEventListenerBA("mousemove",BAGetGeometry);document.addEventListenerBA("mousewheel",BAGetGeometry)}function BACleanUpEventListeners(){if(BA_EVENTLISTENER_STORED_NODES){BA_EVENTLISTENER_STORED_NODES.forEach(function(c){for(var d in c.__addEventListenerBA_stored__){if(d!="unload"){c["on"+d]=null}}c.__addEventListenerBA_stored__=null})}}BA=BASingleton(BAEnvironment);BA_STATUSMSG=BASingleton(BAStatusMsg);BA_KEYEQUIV=BASingleton(BAKeyEquivalents);BARegisterDOMMethods();BAAppendReviseCSS();if(BA.ua.isWinIE&&BA.ua.revision<7){document._getElementById=document.getElementById;document.getElementById=function(c){var d=document._getElementById(c);if(d){BARegisterDOMMethodsTo(d)}return d}}BAAddOnload(function(){if(BA.ua.isWinIE&&BA.ua.revision<7){BARegisterDOMMethodsTo(document.documentElement);BARegisterDOMMethodsTo(document.body)}else{BARegisterDOMMethodsRoundRobin()}BAScrollToFragmentIDTarget();BAStartGeometryMeasure();BA_KEYEQUIV.init();BA_STATUSMSG.unset()});BAAddOnunload(function(){BACleanUpEventListeners()});function BAObservable(){this.callBackChains={}}BAObservable.prototype.doCallBack=function(f){if(this.callBackChains[f]==null){return null}var i;var g=[];for(var j=1,h=arguments.length;j<h;j++){g.push(arguments[j])}this.callBackChains[f].forEach(function(a){a.apply(g)});return i};BAObservable.prototype.setCallBack=function(d,f,e){if(this.callBackChains[d]==null){this.callBackChains[d]=[]}this.callBackChains[d].push(new CallBackFunc(d,BACreateDelegate(f,e)))};function CallBackFunc(d,c){this.name=d;this.callBack=c}CallBackFunc.prototype.apply=function(b){return this.callBack.apply(null,b)};function interactiveItem(){this.callBackChains={};this.id="";this.className="active";this.available=false;this.node=null}interactiveItem.prototype=new BAObservable;interactiveItem.prototype.attachNode=function(b){this.node=b};interactiveItem.prototype.getId=function(){return this.id};interactiveItem.prototype.setId=function(b){this.id=b;return b};interactiveItem.prototype.isAvailable=function(){return this.available};interactiveItem.prototype.enable=function(){this.available=true;if(this.node){this.node.appendClassNameBA(this.className)}};interactiveItem.prototype.disable=function(){this.available=false;if(this.node){this.node.removeClassNameBA(this.className)}};interactiveItem.prototype.callBack=function(b){this.doCallBack("change",this.getId(),b)};function interactiveManager(){this.callBackChains={};this.id="";this.store=-1;this.items=[];this.switchers=[]}interactiveManager.prototype=new BAObservable;interactiveManager.prototype.addItem=function(d,e){var f=this.items.length;d.setId(f);d.disable();d.setCallBack("change",this.callBack,this);this.items[f]=d;if(e){e.setId(f);e.disable();e.setCallBack("change",this.callBack,this);this.switchers[f]=e}};interactiveManager.prototype.getId=function(){return this.id};interactiveManager.prototype.setId=function(b){this.id=b;return b};interactiveManager.prototype.select=function(b){if(b==this.store){return}if(this.items[this.store]){this.items[this.store].disable();if(this.switchers&&this.switchers[this.store]){this.switchers[this.store].disable()}}if(this.items[b]){this.items[b].enable();if(this.switchers&&this.switchers[b]){this.switchers[b].enable()}}this.store=b};interactiveManager.prototype.callBack=function(c,d){d.preventDefault();this.select(c)};function RollOverImages(g,h,f,j,i){if(!document.BARO){document.BARO=this}this.targetClass=h;this.ois=f;this.ais=j;this.fis=i||f||"";this.targetAreas=g||new Array();this.pli=new Array();if(h&&(f||j||i)){this.init()}}RollOverImages.prototype.preloadImg=function(f){var e=new Array();if(!document.images||!f){return}for(var d=0;d<f.length;d++){(new Image()).src=f[d];e.push(f[d])}};RollOverImages.prototype.swap=function(g,f){for(var e=0;e<g.length;e++){var h=(document.all)?document.all[g[e]]:document.getElementById(g[e]);if(h[f]){h.src=h[f]}}};RollOverImages.prototype.setEvent=function(f){var f=f;var e=this.ois;var h=this.ais;var g=this.fis;if(e&&!f.onmouseover){f.onmouseover=function(){if(h){this._onfocus=this.onfocus;this.onfocus=""}document.BARO.swap(this.BAROti,"o")}}if(e&&!f.onmouseout){f.onmouseout=function(){var a=(this.focused)?"f":"u";if(h){this.onfocus=this._onfocus}document.BARO.swap(this.BAROti,a)}}if(h&&!f.onmousedown){f.onmousedown=function(){document.BARO.swap(this.BAROti,"a")}}if(e&&h&&!f.onmouseup){f.onmouseup=function(){document.BARO.swap(this.BAROti,"o")}}if(g&&!f.onfocus){f.onfocus=function(b){var a=this;if(!b){b=window.event}if(!this.BAROti){a=b.srcElement}document.BARO.swap(a.BAROti,"f");a.focused=true}}else{if(e&&!f.onfocus){f.onfocus=function(b){var a=this;if(!b){b=window.event}if(!this.BAROti){a=b.srcElement}document.BARO.swap(this.BAROti,"o")}}}if(!f.onblur){f.onblur=function(b){var a=this;if(!b){b=window.event}if(!this.BAROti){a=b.srcElement}document.BARO.swap(a.BAROti,"u");a.focused=false}}if(h&&!f.onkeypress){f.onkeypress=function(){document.BARO.swap(this.BAROti,"a")}}if(e&&h&&!f.onkeyup){f.onkeyup=function(){var a=(this.focused)?"f":"o";document.BARO.swap(this.BAROti,a)}}};RollOverImages.prototype.init=function(){if(!document.getElementById&&document.all){return}if(!document.images){return}var F=this.pli;var C=this.ois;var i=this.ais;var A=this.fis;var B="BARO_";var G=[];if(this.targetAreas.length){for(var y=0,D=this.targetAreas.length;y<D;y++){var w=document.getElementById(this.targetAreas[y]);if(!w){w=document.getElementsByClassNameBA(this.targetAreas[y],"div")[0]}if(w){G=BAConcatNodeList(G,w.getElementsByClassNameBA(this.targetClass,"input"),w.getElementsByClassNameBA(this.targetClass,"img"))}}}else{var E=document.getElementsByClassNameBA(this.targetClass,"input");var j=document.getElementsByClassNameBA(this.targetClass,"img");var G=BAConcatNodeList(E,j)}for(var y=0;y<G.length;y++){var x=G[y];x.id=(x.id)?x.id:(B+this.targetClass+"_"+y);var v=x.src;var n=v.substring(v.lastIndexOf("."));var I=v.substring(0,v.length-n.length);var H=new Object();x.u=v;if(C){x.o=H.o=I+C+n;if(F.indexOf(H.o)==-1){F.push(H.o)}}if(i){x.a=H.a=I+i+n;if(F.indexOf(H.a)==-1){F.push(H.a)}}if(A){x.f=H.f=I+A+n;if(F.indexOf(H.f)==-1){F.push(H.f)}}if(x.tagName.toLowerCase()=="img"){var J=x.parentNode;for(var z=0;z<10;z++){if(J&&J.tagName&&J.tagName.toLowerCase()=="a"){if(!J.BAROti){J.BAROti=new Array()}J.BAROti.push(x.id);this.setEvent(J);break}else{if(J.parentNode){J=J.parentNode}else{break}}}}else{if(x.tagName.toLowerCase()=="input"){x.BAROti=new Array(x.id);this.setEvent(x)}}}this.preloadImg(F)};BAAddOnload(function(){new RollOverImages(["country-websites","header-area","lead-area","primary-contents-area","exist-primary-contents-area","related-info-area","iweb-login-area","store"],"rollover","_o")});BAAddOnload(function(){new RollOverImages(["country-websites","header-area","lead-area","primary-contents-area","related-info-area","iweb-login-area"],"button","_o","_a","_f")});BAAddOnload(function(){function j(o,d,b){var e=document.getElementsByClassNameBA(o,d);var n=[];for(var c=0,a=e.length;c<a;c++){n=BAConcatNodeList(n,e[c].getElementsByTagNameBA(b))}return n}var g=BAConcatNodeList(j("sequential-linkA01","div","a"),j("link-listE01","div","input"));for(var f=0,h=g.length;f<h;f++){var i=g[f];if(!i.BAROti&&!i.hasClassNameBA("button")&&!i.hasClassNameBA("rollover")){i.addEventListenerBA("mouseover",function(){if(!this._isActive){this.appendClassNameBA("hover")}this.removeClassNameBA("focus");this._isHover=true},i);i.addEventListenerBA("mouseout",function(){this.removeClassNameBA("hover");this._isHover=false;this.removeClassNameBA("active");this._isActive=false;if(this._isFocus){this.appendClassNameBA("focus")}},i);i.addEventListenerBA("focus",function(){if(!this._isActive&&!this._isHover){this.appendClassNameBA("focus")}this._isFocus=true},i);i.addEventListenerBA("blur",function(){this.removeClassNameBA("focus");this._isFocus=false;this.removeClassNameBA("active");this._isActive=false;if(this._isHover){this.appendClassNameBA("hover")}},i);i.addEventListenerBA("mousedown",function(){this.removeClassNameBA("hover");this.removeClassNameBA("focus");this.appendClassNameBA("active");this._isActive=true},i);i.addEventListenerBA("mouseup",function(){if(this._isHover){this.appendClassNameBA("hover")}if(this._isFocus){this.appendClassNameBA("focus")}this.removeClassNameBA("active");this._isActive=false},i)}}});