/*  JS Resource: 31511  */

rc_getDivs=function(s){s=s||document;var i,ib,divs=[];if(document.evaluate){var result=document.evaluate("//div[contains(@class,'rounded_corners')]",s,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);for(i=0,ib=result.snapshotLength;i<ib;i++)
{divs[i]=result.snapshotItem(i);}}else{var cn,list=s.getElementsByTagName('div');for(i=0,ib=list.length;i<ib;i++){cn=list[i].className||'';if(cn.match(/rounded_corners/)){divs[divs.length]=list[i];}}}
return divs;};rc_installDivs=function(div){if(div.initedRC){return;}
else{div.initedRC=true;}
for(var i=0,el;el=div.childNodes[i];i++){if(el.nodeType==3){div.removeChild(el);i--;}}
if(div.firstChild&&div.lastChild==div.firstChild){if(!div.firstChild.className){div.firstChild.className='';}
div.firstChild.className +=" corners_content";}
var top=document.createElement("div");var bottom=document.createElement("div");top.className="top";bottom.className="bottom";div.appendChild(bottom);div.insertBefore(top,div.firstChild);top.innerHTML='<div style="font-size: 1px; height: 1px; margin: 0 3px;"></div>'
+'<div style="font-size: 1px; height: 1px; margin: 0 2px;"></div>'
+'<div style="font-size: 1px; height: 1px; margin: 0 1px;"></div>'
+'<div style="font-size: 1px; height: 2px; margin: 0;"></div>';bottom.innerHTML='<div style="font-size: 1px; height: 2px; margin: 0;"></div>'
+'<div style="font-size: 1px; height: 1px; margin: 0 1px;"></div>'
+'<div style="font-size: 1px; height: 1px; margin: 0 2px;"></div>'
+'<div style="font-size: 1px; height: 1px; margin: 0 3px;"></div>';};rc_Setup=function(evt){var i,ib,el,list=document.getElementsByTagName("div")||[];for(i=0,ib=list.length;i<ib;i++){el=list[i];if(el.className&&el.className.match(/clear_float_bounding/)){while(el.firstChild){el.removeChild(el.firstChild);}}}
if(!document.insertBefore){return;}
evt=evt||window.event;var el,i,ib,divs,t;if(evt){t=evt.target||evt.srcElement||document;}
else{t=document;}
if(t.setupRC){return;}
else{t.setupRC=true;}
divs=rc_getDivs(t);for(i=0,ib=divs.length;i<ib;i++){el=divs[i];rc_installDivs(el);}};if(window.attachEvent){document.write("<script id=__onDOMContentLoaded defer " +"src='//:'><\/script>");document.getElementById("__onDOMContentLoaded").onreadystatechange=function(){if(this.readyState=="complete"){this.onreadystatechange=null;rc_Setup();}};window.attachEvent('onload',rc_Setup);}else if(window.addEventListener){window.addEventListener('load',rc_Setup,true);window.addEventListener('DOMContentLoaded',rc_Setup,true);}
/*  JS Resource: lib/i2rd-util.js  */

if(typeof __i2rd_initted=='undefined'){__i2rd_initted=true;if(typeof Array.prototype.push=='undefined'){Array.prototype.push=function(i){if(i){this[this.length]=i;}};}
if(typeof Array.prototype.pop=='undefined'){Array.prototype.pop=function(){if(this.length==0){return;}
var i,n=this.length -1;i=this[n];delete this[n];this.length=n;return i;};}
Array.prototype.pushAll=function(list){for(var h=0,hb=list.length;h<hb;h++){this.push(list[h]);}};if(typeof String.prototype.trim=='undefined'){String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"");};}
if(typeof __i2rd_domupdate_event=='undefined'){__i2rd_domupdate_event="i2rd:domupdate";__i2rd_domupdate_handlers=[];__i2rd_domupdate_fire=function(element,evt){var i,h,args=[];if(evt){args.push(evt);}
for(i=0;(h=__i2rd_domupdate_handlers[i]);i++){try{h.apply(element,args);}catch(e){}}};}
var log4js={};log4js.logger={};log4js.logger.log=function(msg){if(typeof console!='undefined'&&console.log)console.log(msg);};log4js.logger.debug=log4js.logger.info=log4js.logger.warn=log4js.logger.error=log4js.logger.log;if(typeof i2rd=='undefined'){window.i2rd={};}
i2rd.isIE=!+'\v1';i2rd.getConfigMap=function(el){if(typeof el=='string')
el=document.getElementById(el);if(!el)return{};var e=el.childNodes,b={};for(var n=0,mx=e.length;n<mx;n++)b[e[n].className]=e[n].innerHTML;return b;};i2rd.xmlToString=function(xml){var str='';if(typeof xml!='string'){var i,ib;if(xml.xml){for(i=0,ib=xml.childNodes.length;i<ib;i++){str+=xml.childNodes[i].xml;}}else{var xs=new XMLSerializer();for(i=0,ib=xml.childNodes.length;i<ib;i++){str+=xs.serializeToString(xml.childNodes[i]);}}}else{str=xml;}
return str;};i2rd.scriptRX=new RegExp('<script[^>]*>([\\S\\s]*?)<\/script>','gim');i2rd.stripScripts=function(html){return{html:html.replace(i2rd.scriptRX,''),scripts:(function(){var m=[],i,arr;while((arr=i2rd.scriptRX.exec(html))){if(arr[1]){m[m.length]=arr[1].replace(/^\s*<!\[CDATA\[/,'').replace(/\]\]>\s*$/,'');}}
return m;})()};};i2rd.createElement=function(tag){var ns,de=document.documentElement;ns=(de?de.namespaceURI:false);if(ns){return document.createElementNS(ns,tag);}
else{return document.createElement(tag);}};i2rd.getBody=function(w){var doc=(w||window).document;return(doc.body||doc.getElementsByTagName("body")[0]);};i2rd.getElementsByTagName=function(tn,start){start=start||document;var r=[],els=start.getElementsByTagName(tn);if(!els||els.length==0){els=start.getElementsByTagName(tn.toUpperCase());}
r.pushAll(els);return r;};i2rd.addEvent=function(el,type,handler){if(type==__i2rd_domupdate_event){__i2rd_domupdate_handlers.push(handler);}else if(el.addEventListener){el.addEventListener(type,handler,false);}else{if(!handler.$$guid){handler.$$guid=i2rd.addEvent_guid++;}
if(!el.events){el.events={};}
var handlers=el.events[type];if(!handlers){handlers=el.events[type]={};if(el["on" +type]){handlers[0]=el["on" +type];}}
handlers[handler.$$guid]=handler;el["on" +type]=i2rd.handleEvent;}};i2rd.removeEvent=function(el,type,handler){if(type==__i2rd_domupdate_event){var hl=[];for(i=0;(h=__i2rd_domupdate_handlers[i]);i++){if(h!==handler){hl.push(h);}}
__i2rd_domupdate_handlers=hl;}else if(el.removeEventListener){el.removeEventListener(type,handler,false);}else{if(el.events&&el.events[type]){delete el.events[type][handler.$$guid];}}};i2rd.addEvent_guid=1;i2rd.handleEvent=function(event){var i,hl,rv=true;event=event||i2rd.fixEvent(((this.ownerDocument||this.document||this).parentWindow||window).event);hl=this.events[event.type];for(i in hl){this.$$handleEvent=hl[i];if(this.$$handleEvent(event)==false){rv=false;}}
return rv;};i2rd.fixEvent=function(event){event.preventDefault=i2rd.fixEvent_preventDefault;event.stopPropagation=i2rd.fixEvent_stopPropagation;return event;};i2rd.fixEvent_preventDefault=function(){this.returnValue=false;};i2rd.fixEvent_stopPropagation=function(){this.cancelBubble=true;};i2rd.getAjaxTransport=function(){try{return new XMLHttpRequest();}catch(e){}
try{return new ActiveXObject("Msxml2.XMLHTTP");}catch(e){}
try{return new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}
return null;};i2rd.bind=function(m,caller){var args=[],_m=m,obj=caller;if(arguments&&arguments.length>2){for(var i=2;i<arguments.length;i++){args[i -2]=arguments[i];}}
return function(){for(var i=0;i<arguments.length;i++){args[args.length]=arguments[i];}
_m.apply(obj,args);};};i2rd.bindAsEventListener=function(m,caller){var args=[],_m=m,obj=caller;if(arguments&&arguments.length>2){for(var i=2;i<arguments.length;i++){args[i -2]=arguments[i];}}
return function(evt){for(var i=0;i<arguments.length;i++){args[args.length]=arguments[i];}
_m.apply(obj,[evt||window.event].concat(args));};};i2rd.eventElement=function(evt){var e=evt||window.event;return(e.target||e.srcElement);};i2rd.getInnerText=function(el){if(typeof el=="string"){return el;}
var cn,i,str="",children=el.childNodes;for(i=0;(cn=children[i]);i++){switch(cn.nodeType){case 1:str +=i2rd.getInnerText(cn);break;case 3:case 4:str +=cn.nodeValue;break;}}
return str;};i2rd.mousex=0;i2rd.mousey=0;i2rd.mousetrack=false;i2rd.updateLoc=function(evt){var x=0,y=0;if(evt.pageX){x=evt.pageX;y=evt.pageY;}else if(evt.clientX){var de=document.documentElement;x=evt.clientX +de.scrollLeft;y=evt.clientY +de.scrollTop;}else{x=evt.screenX;y=evt.screenY;}
i2rd.mousex=x;i2rd.mousey=y;};i2rd.getMouseCoord=function(evt){if(!i2rd.mousetrack){i2rd.mousetrack=true;if((evt=evt||window.event)){i2rd.updateLoc(evt);}
i2rd.addEvent(document,'mousemove',i2rd.updateLoc);setTimeout(function(){i2rd.mousetrack=false;i2rd.removeEvent(document,'mousemove',i2rd.updateLoc);},120000);}
return{x:i2rd.mousex,y:i2rd.mousey};};i2rd.addClassName=function(el,cn){var cn=cn.trim();if(!i2rd.hasClassName(el,cn))
el.className=((el.className||'') +' ' +cn).trim();};i2rd.removeClassName=function(el,cn){if(!i2rd.hasClassName(el,cn))return;el.className=(el.className||'').replace(RegExp("(^|\\s+)" +cn.trim() +"(\\s+|$)",'g'),' ').trim();};i2rd.hasClassName=function(el,cn){var cur=(el.className||'');return cur==cn||(RegExp('\\b'+cn+'\\b').test(cur));};i2rd.getCookie=function(name){var p,b,dc=document.cookie;if(!dc){return null;}
p=name+"=";b=dc.indexOf("; "+p);if(b==-1){b=dc.indexOf(p);if(b!=0){return null;}}else{b+=2;}
var e=document.cookie.indexOf(";",b);if(e==-1){e=dc.length;}
return unescape(dc.substring(b+p.length,e));};i2rd.setCookie=function(name,value,expires,path,domain,secure){document.cookie=name+"="+escape(value)+
((expires)?"; expires="+expires.toGMTString():"")+
((path)?"; path="+path:"")+
((domain)?"; domain="+domain:"")+
((secure)?"; secure":"");};i2rd.deleteCookie=function(name,path,domain){document.cookie=name+"; expires=Thu, 01-Jan-1970 00:00:01 GMT"+
((path)?"; path="+path:"")+
((domain)?"; domain="+domain:"");};i2rd.lastFocus=null;i2rd.focusListener=function(evt){var el,lf=i2rd.lastFocus;if(lf){lf.className=lf.className.replace("focused","");}
evt=evt||window.event;el=evt.target||evt.srcElement;i2rd.lastFocus=el;el.className=el.className+" focused";};i2rd.owfDefault={menubar:false,location:false,toolbar:false,scrollbars:true,statusbar:false};i2rd.openWindow=function(url,name,dim,features,pbMesg,evt){name=name||'_blank';features=features||i2rd.owfDefault;pbMesg=pbMesg||'Please disable any popup blockers for this site.';var fstr='';for(var key in features){var val=i2rd.getOWFeature(features,key);if(val!=null){fstr +=','+key+'='+(val?'yes':'no');}}
if(dim){if(dim.x&&dim.x>0){dim.x+=30;fstr+=',width='+dim.x;}
if(dim.y&&dim.y>0){dim.y+=50;fstr+=',height='+dim.y;}}
if(fstr.length>0){fstr=fstr.substring(1);}
var nw=window.open(url,name,fstr);if(name!='_top'&&name!='_parent'&&name!='_self'){if(nw.opener!=window){alert(pbMesg);}}
try{nw.focus();if(dim&&dim.x&&dim.y){if(dim.x>0&&dim.y>0){nw.resizeTo(dim.x,dim.y);}}}catch(e){}
evt=evt||window.event;if(evt){if(evt.preventDefault){evt.preventDefault();}
else{evt.canceBubble=true;}}
return false;};i2rd.getOWFeature=function(m,prop){var val=m[prop];if(typeof val=='undefined'||val==null){return null;}
else{return!!val;}};i2rd.each=function(array,fn,filter){var ct=0,all=(typeof filter!=='function');for(var i=0,mx=array.length;i<mx;i++){var el=array[i];if(all||filter.call(el,i,el,ct)){fn.call(el,i,el,ct++);}}};i2rd.addEvent(window,'load',function(){var i1,i2,fe1,f,el,fl=document.forms;if(typeof fl=='undefined'){return;}
for(f=null,i1=0;(f=fl[i1]);i1++){el=f.elements;for(fe1=null,i2=0;(fe1=el[i2]);i2++){if(fe1.type=='hidden'){continue;}
i2rd.addEvent(fe1,'focus',i2rd.focusListener);if(fe1.type&&fe1.className&&fe1.type.match(/select.*/i)&&fe1.className.match(/.*autosubmitselect.*/i)){fe1.onchange=function(evt){this.form.submit();};}}}});}
/*  JS Resource: cms/js/page-timezone-retriever.js  */

cms_page_lookup_timezone=function(evt){var time=new Date();if(time.getTimezoneOffset){var ajax=i2rd.getAjaxTransport();if(ajax){ajax.open("POST",window.location.href,true);ajax.setRequestHeader('X-CMS-TimeZone',time.getTimezoneOffset());if(time.toString){var tos=time.toString();var id=/(GMT[\-+]\d+) ?\(([a-zA-Z0-9]+)\)?/.exec(tos);if(!id||id.length==1){id=new RegExp(" ([A-Z]{2,4}) " +time.getFullYear()).exec(tos);}
if(id&&id.length>1){var tmp=id[1];if(id.length==3){tmp=id[2];}
ajax.setRequestHeader('X-CMS-TimeZone-ID',tmp);}}
ajax.send('');}}
i2rd.removeEvent(window,'load',cms_page_lookup_timezone);};i2rd.addEvent(window,'load',cms_page_lookup_timezone);
/*  JS Resource: cms/js/cms-include.js  */

if(typeof cmsinclude=='undefined'){cmsinclude=true;if(typeof cms=='undefined'){cms={};}
cms_js_includes=[];cms_js_includes_pop=false;__ci_getAjaxTransport=function(){if(window.ActiveXObject){try{return new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}}}else{try{return new XMLHttpRequest();}catch(e){}}
return null;};__ci_createElement=function(tag){var ns,de=document.documentElement;ns=(de?de.namespaceURI:false);if(ns){return document.createElementNS(ns,tag);}
else{return document.createElement(tag);}};cms.populateJSIncludes=function(){cms_js_includes_pop=true;var h,script,asl=document.scripts;if(!asl){asl=document.getElementsByTagName("script");}
for(h=0;h<asl.length;h++){script=asl[h];script.loaded=true;cms_js_includes.push(script);}
if(window.detachEvent){window.detachEvent("onload",cms.populateJSIncludes);}else{window.removeEventListener("load",cms.populateJSIncludes,true);}};if(window.attachEvent){window.attachEvent("onload",cms.populateJSIncludes);}else{window.addEventListener("load",cms.populateJSIncludes,true);}
cms.addJSInclude=function(url){var i,found=false;for(i=0;i<cms_js_includes.length;i++){if(cms_js_includes[i].src==url){found=true;break;}}
if(!found){var script=__ci_createElement("script");script.setAttribute("type","text/javascript");script.setAttribute("src",url);script.loaded=true;cms_js_includes.push(script);}};cms.includeJS=function(url,allowDuplicates){var src,h,bound,allowDups=(allowDuplicates=='true')||allowDuplicates===true||false;var rx=/https?:\/\/[A-Za-z0-9.\-]+(:[0-9]+)?/;if(!allowDups){var js_list=(cms_js_includes_pop?cms_js_includes:document.getElementsByTagName("script"));for(h=0;h<js_list.length;h++){var script=js_list[h];if(!script.src){continue;}
src=script.src;url=url.replace(rx,'');src=src.replace(rx,'');if(src==url||('/' +src)==url){return script;}}}
var scr=__ci_createElement("script");scr.setAttribute("type","text/javascript");scr.setAttribute("src",url);cms_js_includes.push(scr);scr.loaded=false;var ajax=__ci_getAjaxTransport();if(ajax){ajax.open("GET",scr.src,false);try{ajax.send('');if(ajax.status==200||ajax.status===0){if(typeof execScript!='undefined'){execScript(ajax.responseText,"JavaScript");}
else{window.eval(ajax.responseText);}
scr.loaded=true;}}catch(e){if(typeof console!='undefined'){console.error("Unable to load and parse javascript: " +scr.src +"\n" +e.stackTrace);}}}
if(!scr.loaded){document.getElementsByTagName("head")[0].appendChild(scr);scr.loaded=true;}
return scr;};cms.includeCSS=function(url,type,mediaType){var rel="stylesheet",media="all";if(type){rel=type.toLowerCase();}
if(mediaType){media=mediaType;}
var head=document.getElementsByTagName("head")[0];var base=cms.getBaseURL();var allCSS=[];allCSS.pushAll(document.getElementsByTagName("link"));for(var h=0;h<allCSS.length;h++){var el=allCSS[h];if(!el.href||!el.rel){continue;}
var src=el.href;if(src.indexOf(base)===0){src=src.substring(base.length);}
if(el.rel.toLowerCase()==rel&&(src==url||('/'+src)==url)){return el;}}
var link=__ci_createElement("link");link.setAttribute("rel",rel);link.setAttribute("type","text/css");link.setAttribute("href",url);link.setAttribute("media",media);head.appendChild(link);return link;};}
/*  JS Resource: lib/logger.js  */

if(typeof log4jsdefined=='undefined'){i2rd.hasConsole=function(){return(typeof console!='undefined'&&typeof console.info!='undefined');};log4jsdefined=true;var log4js={};log4js.funcname=function(f){var s,v=/function (\w*)/.exec(f.toString());if(v&&v.length>1){s=v[1];}
if(!s||(s.length==0)){return"anonymous";}
return s;};log4js.stacktrace=function(){try{var ac,s="";for(ac=arguments.callee;!!ac;ac=ac.caller){if(ac==log4js.stacktrace||ac==log4js.logger.log){continue;}
s +=log4js.funcname(ac) +"\n";if(ac.caller==ac){break;}}
return s;}catch(ee){alert("Unable to get stack trace. " +ee.message +"\n" +ee.stack);}};log4js.LogEvent=function(logLevel,message,exceptionName,exceptionMessage,stackTrace){this.logLevel=logLevel;this.message=message;this.exceptionName=exceptionName;this.exceptionMessage=exceptionMessage;this.stackTrace=stackTrace;};log4js.LogEvent.prototype={encodeParam:function(queueId){var b="&loglevel."+queueId+"="+this.logLevel+"&message."+queueId+"="+encodeURIComponent(this.message);if(this.exceptionName){b+="&exceptionname."+queueId+"="+encodeURIComponent(this.exceptionName);}
if(this.exceptionMessage){b+="&exceptionmessage."+queueId+"="+encodeURIComponent(this.exceptionMessage);}
if(this.stackTrace){b+="&exceptionstacktrace."+queueId+"="+encodeURIComponent(this.stackTrace);}
return b;}};log4js.LogLevel={};log4js.LogLevel.FATAL="FATAL";log4js.LogLevel.ERROR="ERROR";log4js.LogLevel.WARN="WARN";log4js.LogLevel.INFO="INFO";log4js.LogLevel.DEBUG="DEBUG";log4js.__Logger=function(){this.ajaxSync=false;this.logTarget=window.location||document.location||document.URL;this.internalError=false;this.currentLevel= -1;this.timeout=null;this.lastlog=new Date();var level=i2rd.getCookie("loglevel");if(level){this.currentLevel=this.getLogLevelInt(level);}
var me=this;i2rd.addEvent(window,'unload',function(){me.cleanup();delete me;});};log4js.__Logger.queue=[];log4js.__Logger.prototype={queue:[],cleanup:function(evt){if(this.timeout){window.clearTimeout(this.timeout);}
this.ajaxSync=true;this.flushQueue(true);},getLogLevelInt:function(level){switch(level){case log4js.LogLevel.FATAL:return 50000;case log4js.LogLevel.ERROR:return 40000;case log4js.LogLevel.WARN:return 30000;case log4js.LogLevel.INFO:return 20000;case log4js.LogLevel.DEBUG:return 10000;default:return 20000;}},canLog:function(level){return this.currentLevel<=this.getLogLevelInt(level);},setLogLevel:function(level){this.currentLevel=this.getLogLevelInt(level);var now=new Date();var future=new Date(now.getTime() +(180000));i2rd.setCookie("loglevel",level,future);},setInternalError:function(){this.internalError=true;},isOn:function(){return!this.internalError;},log:function(logLevel,msg,ex){var shouldLog=this.canLog(logLevel);try{if(!msg){return;}
var level=log4js.LogLevel.INFO;if(logLevel){level=logLevel;}
if(!this.isOn()||!shouldLog){return;}
this.lastlog=new Date();var en,em,st;if(ex){if(ex.name){en=ex.name;}
if(ex.message){em=ex.message;}
if(ex.stack){st=ex.stack;}
else{st=log4js.stacktrace();}}
var le=new log4js.LogEvent(logLevel,msg,en,em,st);log4js.__Logger.queue.push(le);if(log4js.__Logger.queue.length>50){this.flushQueue(true);}
else if(!this.timeout){var me=this;this.timeout=window.setTimeout(function(){me.flushQueue();delete me;},1500);}}
catch(e){alert("Logger misconfigured: " +e.message);}},fatal:function(msg,ex){this.log(log4js.LogLevel.FATAL,msg,ex);},error:function(msg,ex){this.log(log4js.LogLevel.ERROR,msg,ex);},warn:function(msg,ex){this.log(log4js.LogLevel.WARN,msg,ex);},info:function(msg,ex){this.log(log4js.LogLevel.INFO,msg,ex);},debug:function(msg,ex){this.log(log4js.LogLevel.DEBUG,msg,ex);},clog:function(msg,ll){if(!i2rd.hasConsole()){return;}
switch(ll){case log4js.LogLevel.FATAL:case log4js.LogLevel.ERROR:console.error(msg);break;case log4js.LogLevel.WARN:console.warn(msg);break;case log4js.LogLevel.INFO:console.info(msg);break;case log4js.LogLevel.DEBUG:default:console.debug(msg);break;}},flushQueue:function(force){this.timeout=null;var size=log4js.__Logger.queue.length;if(size==0){return;}
var now=new Date();if(!force&&(now.getTime() -this.lastlog.getTime())<250){var me=this;this.timeout=window.setTimeout(function(){me.flushQueue();delete me;},500);return;}
var h,b="?log4js.queue_size=" +size;for(h=0;h<size;h++){var qe=log4js.__Logger.queue[h];try{this.clog(qe.message,qe.logLevel);if(qe.exceptionMessage){this.clog(qe.exceptionMessage,qe.logLevel);}
if(qe.stackTrace){this.clog(qe.stackTrace,qe.logLevel);}}catch(e){}
b +=qe.encodeParam(h);}
var ajax=i2rd.getAjaxTransport();if(ajax){if(!this.ajaxSync){ajax.onreadystatechange=log4js.__getReqCallback(ajax,this);}
ajax.open("POST",window.location.href,!this.ajaxSync);ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');ajax.setRequestHeader("Filter-Logging","on");ajax.setRequestHeader("Filter-Logging_Queue_Size",size);ajax.send(b);}
log4js.__Logger.queue.length=0;}};log4js.logger=new log4js.__Logger();log4js.__getReqCallback=function(ajax,log){var req=ajax,logger=log;return function(){if(req.readyState==4){if(req.status==200||req.status==0){if(req.responseText){logger.setLogLevel(req.responseText);}}else{logger.setInternalError();}
try{if(req&&req.onreadystatechange){delete req.onreadystatechange;}}catch(e){}}};};}
/*  JS Resource: cms/js/bean/articlecontainer.js  */

if(typeof AC!='undefined'){log4js.logger.error("Redefining ArticleContainer library.");}
AC={};AC.getElementsByTagName=function(tagName,start){if(!start){start=document;}
var elements=start.getElementsByTagName(tagName);if(!elements||elements.length===0){elements=start.getElementsByTagName(tagName.toUpperCase());}
return elements;};AC.countWords=function(text){var count=0;if(text){var list=text.split(/\s+/);for(var h=0;h<list.length;h++){if(!(list[h]=='')){count++;}}}
return count;};AC.Article=function(li,wpm){this.article=li;var text="";var components=AC.getElementsByTagName("div",li);for(var el=null,idx=0;(el=components[idx]);idx++){var cn=el.className||"";if(cn.match(/article_heading/)||cn.match(/article_subheading/)||cn.match(/article_teaser/)||cn.match(/article_post_time/)||cn.match(/article_link_read_more/)||cn.match(/article_byline/)||cn.match(/article_content/)){text=text +this.getText(el);}else if(cn!=''){log4js.logger.info("Unexpected component with classname: " +cn);}}
this.wordCount=AC.countWords(text);wpm=wpm||120.0;var t1=(this.wordCount/wpm);t1=Math.ceil(t1*60)*1000;this.minShowTime=t1 +2000;};AC.Article.prototype={getRecommendedInterval:function(){return this.minShowTime;},show:function(cb){var opacity=this.getOpacity();if(this.article.style.display!='block'){opacity=0.0;this.setOpacity(opacity);this.article.style.display='block';}
if(opacity>0.9){if(cb){cb.apply(this);}}else{opacity=opacity +0.1;this.setOpacity(opacity);if(parseInt(opacity*100)!=parseInt(this.getOpacity()*100)){if(cb){cb.apply(this);}}
else
window.setTimeout(i2rd.bind(this.show,this,cb),100);}},hide:function(cb){var opacity=this.getOpacity();if(opacity<0.1){if(cb){cb.apply(this);}}else{opacity=opacity -0.1;this.setOpacity(opacity);if(parseInt(opacity*100)!=parseInt(this.getOpacity()*100)){if(cb){cb.apply(this);}}
else
window.setTimeout(i2rd.bind(this.hide,this,cb),100);}},getText:function(el){if(!el){return el;}
if(typeof el=="string"){return el;}
var str="",children=el.childNodes;var cn,i;for(i=0;(cn=children[i]);i++){switch(cn.nodeType){case 1:str +=this.getText(cn);break;case 3:if(cn.nodeValue){str +=cn.nodeValue;}else if(str.length>0&&str[str.length -1]!=""){str +=" ";}
break;}}
return str;},setOpacity:function(value){if(value>=1){value=(/Gecko/.test(navigator.userAgent)&&!/Konqueror|Safari|KHTML/.test(navigator.userAgent))?0.999999:1.0;if(/MSIE/.test(navigator.userAgent)&&!window.opera){this.article.style.filter=this.article.style.filter.replace(/alpha\([^\)]*\)/gi,'');}}else{if(value<0.00001)value=0;if(/MSIE/.test(navigator.userAgent)&&!window.opera){this.article.style.filter=this.article.style.filter.replace(/alpha\([^\)]*\)/gi,'') +'alpha(opacity='+parseInt(value*100) +')';}}
this.article.style.opacity=value;},getOpacity:function(){var value=this.article.style.opacity;if(this.article.style.filter){value=/alpha\(opacity=([^\)]+)\)/gi.exec((this.article.style.filter||''));if(value&&value[1]){value=parseFloat(value[1])/100.0;}}
if(value)return parseFloat(value);return this.article.style.filter?100:1.0;}};AC.RotatingHeadline=function(ol){this.container=ol;var articleContainer=ol.parentNode;while(articleContainer&&(articleContainer.className||"").toLowerCase().indexOf('articlecontainer')== -1){articleContainer=articleContainer.parentNode;}
if(!articleContainer){log4js.logger.error("Unable to find article container.");return;}
var article,idx,el,lis=AC.getElementsByTagName("var",articleContainer),wpm=95.0;for(el=null,idx=0;(el=lis[idx]);idx++){if(el.className=="wpm"){wpm=parseFloat(el.innerHTML+"");}}
this.containerId=articleContainer.id;this.articles=[];this.paused=false;lis=AC.getElementsByTagName("li",ol);if(lis.length<=1){return;}
for(el=null,idx=0;(el=lis[idx]);idx++){article=new AC.Article(el,wpm);this.articles[this.articles.length]=article;article.article.style.display='none';}
this.currentIdx=0;i2rd.addEvent(ol,"mouseover",i2rd.bind(this.pause,this));i2rd.addEvent(ol,"mouseout",i2rd.bind(this.start,this));var startIdx=0;if(this.containerId){var articleId=i2rd.getCookie(this.containerId +"-la");for(var el=null,idx=0;(el=lis[idx]);idx++){var article=this.articles[idx];if(article.article.id==articleId){startIdx=idx;break;}}}
this.currentArticle=this.articles[startIdx];this.currentIdx=startIdx;this.currentArticle.show();window.setTimeout(i2rd.bind(this.showNextArticle,this),this.currentArticle.getRecommendedInterval());};AC.RotatingHeadline.prototype={pause:function(){this.paused=true;},start:function(){this.paused=false;},showNextArticle:function(){if(this.paused){window.setTimeout(i2rd.bind(this.showNextArticle,this),750);return;}
this.prevArticle=null;this.currentIdx++;if(this.currentIdx>=this.articles.length)this.currentIdx=0;if(this.currentIdx==0)this.prevArticle=this.articles[this.articles.length -1];else this.prevArticle=this.articles[this.currentIdx -1];this.currentArticle=this.articles[this.currentIdx];this.prevArticle.hide(i2rd.bind(this.showNext,this));if(this.containerId){var time=new Date();time.setHours(time.getHours() +48);i2rd.setCookie(this.containerId +"-la",this.currentArticle.article.id,time);}},showNext:function(nextFunc){if(this.prevArticle)
this.prevArticle.article.style.display='none';this.currentArticle.show(i2rd.bind(this.startTimer,this));},startTimer:function(){window.setTimeout(i2rd.bind(this.showNextArticle,this),this.currentArticle.getRecommendedInterval());}};AC.init=function(evt){var lists=AC.getElementsByTagName("ol");for(var el=null,idx=0;(el=lists[idx]);idx++){var cn=el.className||"";if(cn.match(/ac_style_rotating_headline/)){new AC.RotatingHeadline(el);}}};i2rd.addEvent(window,'load',AC.init);
/*  JS Resource: cms/js/bean/MenuBean.js  */

if(typeof MB=='undefined'){var MB={};}
MB.lastEventTime=new Date();MB.getTarget=function(evt){evt=evt||window.event;var el=(evt.srcElement||evt.target);while(el&&el.nodeName.toLowerCase()!="li")
el=el.parentNode;return el;};MB.getTop=function(li){var parent=li;while(parent&&parent.className!='menubean'&&parent.nodeName.toLowerCase()!='div'){parent=parent.parentNode;}
if(parent==null)
throw new Error("Unable to find top of menu");return parent;};MB.GetChildUL=function(li){if(!li.className.match("mi_parent"))return null;var h,ul,hb,t;var children=li.getElementsByTagName("ul");if(!children||children.length==0){children=li.getElementsByTagName("UL");}
for(h=0,hb=children.length;(t=children[h]);h++){if(t.parentNode===li){if(ul){log4js.logger.error("Invalid DOM structure for menu. li.id = "+li.id+", children.length = " +(children==null?"null":children.length));break;}else{ul=t;}}}
return ul;};MB.SetInactiveClass=function(el){var elements=el.getElementsByTagName("li");if(!elements||elements.length==0){try{elements=el.getElementsByTagName("LI");}catch(e){}}
var liElements=[];liElements.pushAll(elements);var node=null;while((node=liElements.pop())){node.className=node.className.replace("mi_active","");node.className=node.className.replace("mi_inactive","");node.className +=" mi_inactive";}};MB.SetActive=function(li,activate){if(!li.className.match(/over/)){li.className +=" over";var ul=MB.GetChildUL(li);if(ul&&ul.className.match("_persistent")){var nodelist=MB.GetOpenState(li);var entry="," +li.id;if(nodelist.indexOf(entry)== -1){nodelist +=entry;}
MB.SetOpenState(li,nodelist)}}
if(activate){var top=MB.getTop(li);MB.SetInactiveClass(top);if(!li.className.match(/mi_active/)){li.className=li.className.replace("mi_inactive","");li.className +=" mi_active";}}
if(li.previousSibling&&!li.previousSibling.className.match(/prev_sibling/)){li.previousSibling.className+=" prev_sibling";}
if(li.nextSibling&&!li.nextSibling.className.match(/next_sibling/)){li.nextSibling.className+=" next_sibling";}};MB.SetInActive=function(li){if(!li.className.match(/over/))
return;li.className=li.className.replace("over","");var ul=MB.GetChildUL(li);if(ul&&ul.className.match("_persistent")){var nodelist=MB.GetOpenState(li);nodelist=nodelist.replace("," +li.id,"");MB.SetOpenState(li,nodelist);}
var prev=li.previousSibling;if(prev){prev.className=prev.className.replace(/ prev_sibling/g,"");}
var next=li.nextSibling;if(next){next.className=next.className.replace(/ next_sibling/g,"");}};MB.GetOpenState=function(li){var nodelist=i2rd.getCookie(MB.getTop(li).id +"-CMO");if(!nodelist)nodelist="";return nodelist;};MB.SetOpenState=function(li,nodelist){var time=new Date();time.setMonth(time.getMonth() +1);i2rd.setCookie(MB.getTop(li).id +"-CMO",nodelist,time,"/");};MB.MenuBeanInit=function(div){if(typeof div=='string')div=document.getElementById(div);if(!!div.mbinited)return;div.mbinited=true;var nodelist=i2rd.getCookie(div.id +"-CMO")||"";var item=null;var elements=div.getElementsByTagName("li");if(!elements||elements.length==0){try{elements=div.getElementsByTagName("LI");}catch(e){}}
var liElements=[];liElements.pushAll(elements);while((item=liElements.pop())){var pn=item.parentNode;if(pn&&pn.nodeName.toLowerCase()=="ul"){pn=pn.parentNode;if(pn&&pn.nodeName.toLowerCase()=="li"&&pn.className&&!pn.className.match("mi_parent")){pn.className +=" mi_parent";}}
item.onclick=function(evt){var now=new Date();if((now -MB.lastEventTime)<200)return;MB.lastEventTime=new Date();var target=MB.getTarget(evt);if(target.className.match(/over/)){MB.SetInActive(target,true);}
else{MB.SetActive(target);}};if(!item.parentNode.className.match(/persistent/)){item.onmouseover=function(evt){try{MB.SetActive(this);}catch(e){}};item.onmouseout=function(evt){try{MB.SetInActive(this);}catch(e){}};}else{var tmpId="," +item.id;if(nodelist.indexOf(tmpId)== -1){MB.SetInActive(item);}}}
if(document.getElementById){var liList=nodelist.split(",");for(var h=0;h<liList.length;h++){var id=liList[h];if(id){var li=document.getElementById(id);if(li){MB.SetActive(li);}}}}};MB.scan=function(start){if(typeof start=='string')start=document.getElementById(start);var m,div,s=(start||document),i,ib;if(document.evalute){var result=document.evaluate("//div[contains(@class,'menubean')]",s,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);for(i=0,ib=result.snapshotLength;i<ib;i++){m[m.length]=result.snapshotItem(i);}}else{m=s.getElementsByTagName("div");}
for(i=0,ib=m.length;i<ib;i++){div=m[i];if((div.className||'').match(/menubean/))
MB.MenuBeanInit(div);}};
if(typeof cms_js_includes != 'undefined') {
 cms.addJSInclude('/resources/dyn/files/31511/_fn/rounded_corners.js');
 cms.addJSInclude('/resources/dyn/docroot/lib/i2rd-util.js/_fn/i2rd-util.js');
 cms.addJSInclude('/resources/dyn/docroot/cms/js/page-timezone-retriever.js/_fn/page-timezone-retriever.js');
 cms.addJSInclude('/resources/dyn/docroot/cms/js/cms-include.js/_fn/cms-include.js');
 cms.addJSInclude('/resources/dyn/docroot/lib/logger.js/_fn/logger.js');
 cms.addJSInclude('/resources/dyn/docroot/cms/js/bean/articlecontainer.js/_fn/articlecontainer.js');
 cms.addJSInclude('/resources/dyn/docroot/cms/js/bean/MenuBean.js/_fn/MenuBean.js');
}
