/*
* Last edited by:  $Author: rhoward $
*             on:  $Date: 2011/02/22 12:00:00 $
*       Filename:  $RCSfile: header.js,v $
*       Revision:  $Revision: 1.1 $
*/
if(typeof BLK!=="undefined"){if(typeof BLK.envConfig!=="undefined"){if(typeof BLK.envConfig.application!=="undefined"){if(BLK.envConfig.application.indexOf("blk.us.")>=0){var Prototype={Version:"1.5.0",BrowserFeatures:{XPath:!!document.evaluate},ScriptFragment:"(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)",emptyFunction:function(){},K:function(a){return a}};var Class={create:function(){return function(){this.initialize.apply(this,arguments)}}};var Abstract=new Object();Object.extend=function(a,c){for(var b in c){a[b]=c[b]}return a};Object.extend(Object,{inspect:function(a){try{if(a===undefined){return"undefined"}if(a===null){return"null"}return a.inspect?a.inspect():a.toString()}catch(b){if(b instanceof RangeError){return"..."}throw b}},keys:function(a){var b=[];for(var c in a){b.push(c)}return b},values:function(b){var a=[];for(var c in b){a.push(b[c])}return a},clone:function(a){return Object.extend({},a)}});Function.prototype.bind=function(){var a=this,c=$A(arguments),b=c.shift();return function(){return a.apply(b,c.concat($A(arguments)))}};Function.prototype.bindAsEventListener=function(c){var a=this,b=$A(arguments),c=b.shift();return function(d){return a.apply(c,[(d||window.event)].concat(b).concat($A(arguments)))}};Object.extend(Number.prototype,{toColorPart:function(){var a=this.toString(16);if(this<16){return"0"+a}return a},succ:function(){return this+1},times:function(a){$R(0,this,true).each(a);return this}});var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var PeriodicalExecuter=Class.create();PeriodicalExecuter.prototype={initialize:function(b,a){this.callback=b;this.frequency=a;this.currentlyExecuting=false;this.registerCallback()},registerCallback:function(){this.timer=setInterval(this.onTimerEvent.bind(this),this.frequency*1000)},stop:function(){if(!this.timer){return}clearInterval(this.timer);this.timer=null},onTimerEvent:function(){if(!this.currentlyExecuting){try{this.currentlyExecuting=true;this.callback(this)}finally{this.currentlyExecuting=false}}}};String.interpret=function(a){return a==null?"":String(a)};Object.extend(String.prototype,{gsub:function(e,c){var a="",d=this,b;c=arguments.callee.prepareReplacement(c);while(d.length>0){if(b=d.match(e)){a+=d.slice(0,b.index);a+=String.interpret(c(b));d=d.slice(b.index+b[0].length)}else{a+=d,d=""}}return a},sub:function(c,a,b){a=this.gsub.prepareReplacement(a);b=b===undefined?1:b;return this.gsub(c,function(d){if(--b<0){return d[0]}return a(d)})},scan:function(b,a){this.gsub(b,a);return this},truncate:function(b,a){b=b||30;a=a===undefined?"...":a;return this.length>b?this.slice(0,b-a.length)+a:this},strip:function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")},stripTags:function(){return this.replace(/<\/?[^>]+>/gi,"")},stripScripts:function(){return this.replace(new RegExp(Prototype.ScriptFragment,"img"),"")},extractScripts:function(){var b=new RegExp(Prototype.ScriptFragment,"img");var a=new RegExp(Prototype.ScriptFragment,"im");return(this.match(b)||[]).map(function(c){return(c.match(a)||["",""])[1]})},evalScripts:function(){return this.extractScripts().map(function(script){return eval(script)})},escapeHTML:function(){var b=document.createElement("div");var a=document.createTextNode(this);b.appendChild(a);return b.innerHTML},unescapeHTML:function(){var a=document.createElement("div");a.innerHTML=this.stripTags();return a.childNodes[0]?(a.childNodes.length>1?$A(a.childNodes).inject("",function(b,c){return b+c.nodeValue}):a.childNodes[0].nodeValue):""},toQueryParams:function(b){var a=this.strip().match(/([^?#]*)(#.*)?$/);if(!a){return{}}return a[1].split(b||"&").inject({},function(e,f){if((f=f.split("="))[0]){var c=decodeURIComponent(f[0]);var d=f[1]?decodeURIComponent(f[1]):undefined;if(e[c]!==undefined){if(e[c].constructor!=Array){e[c]=[e[c]]}if(d){e[c].push(d)}}else{e[c]=d}}return e})},toArray:function(){return this.split("")},succ:function(){return this.slice(0,this.length-1)+String.fromCharCode(this.charCodeAt(this.length-1)+1)},camelize:function(){var d=this.split("-"),a=d.length;if(a==1){return d[0]}var c=this.charAt(0)=="-"?d[0].charAt(0).toUpperCase()+d[0].substring(1):d[0];for(var b=1;b<a;b++){c+=d[b].charAt(0).toUpperCase()+d[b].substring(1)}return c},capitalize:function(){return this.charAt(0).toUpperCase()+this.substring(1).toLowerCase()},underscore:function(){return this.gsub(/::/,"/").gsub(/([A-Z]+)([A-Z][a-z])/,"#{1}_#{2}").gsub(/([a-z\d])([A-Z])/,"#{1}_#{2}").gsub(/-/,"_").toLowerCase()},dasherize:function(){return this.gsub(/_/,"-")},inspect:function(b){var a=this.replace(/\\/g,"\\\\");if(b){return'"'+a.replace(/"/g,'\\"')+'"'}else{return"'"+a.replace(/'/g,"\\'")+"'"}}});String.prototype.gsub.prepareReplacement=function(b){if(typeof b=="function"){return b}var a=new Template(b);return function(c){return a.evaluate(c)}};String.prototype.parseQuery=String.prototype.toQueryParams;var Template=Class.create();Template.Pattern=/(^|.|\r|\n)(#\{(.*?)\})/;Template.prototype={initialize:function(a,b){this.template=a.toString();this.pattern=b||Template.Pattern},evaluate:function(a){return this.template.gsub(this.pattern,function(b){var c=b[1];if(c=="\\"){return b[2]}return c+String.interpret(a[b[3]])})}};var $break=new Object();var $continue=new Object();var Enumerable={each:function(b){var a=0;try{this._each(function(d){try{b(d,a++)}catch(f){if(f!=$continue){throw f}}})}catch(c){if(c!=$break){throw c}}return this},eachSlice:function(c,b){var a=-c,d=[],e=this.toArray();while((a+=c)<e.length){d.push(e.slice(a,a+c))}return d.map(b)},all:function(b){var a=true;this.each(function(d,c){a=a&&!!(b||Prototype.K)(d,c);if(!a){throw $break}});return a},any:function(b){var a=false;this.each(function(d,c){if(a=!!(b||Prototype.K)(d,c)){throw $break}});return a},collect:function(b){var a=[];this.each(function(d,c){a.push((b||Prototype.K)(d,c))});return a},detect:function(b){var a;this.each(function(d,c){if(b(d,c)){a=d;throw $break}});return a},findAll:function(b){var a=[];this.each(function(d,c){if(b(d,c)){a.push(d)}});return a},grep:function(c,b){var a=[];this.each(function(f,e){var d=f.toString();if(d.match(c)){a.push((b||Prototype.K)(f,e))}});return a},include:function(a){var b=false;this.each(function(c){if(c==a){b=true;throw $break}});return b},inGroupsOf:function(b,a){a=a===undefined?null:a;return this.eachSlice(b,function(c){while(c.length<b){c.push(a)}return c})},inject:function(a,b){this.each(function(d,c){a=b(a,d,c)});return a},invoke:function(b){var a=$A(arguments).slice(1);return this.map(function(c){return c[b].apply(c,a)})},max:function(b){var a;this.each(function(d,c){d=(b||Prototype.K)(d,c);if(a==undefined||d>=a){a=d}});return a},min:function(b){var a;this.each(function(d,c){d=(b||Prototype.K)(d,c);if(a==undefined||d<a){a=d}});return a},partition:function(c){var b=[],a=[];this.each(function(e,d){((c||Prototype.K)(e,d)?b:a).push(e)});return[b,a]},pluck:function(b){var a=[];this.each(function(d,c){a.push(d[b])});return a},reject:function(b){var a=[];this.each(function(d,c){if(!b(d,c)){a.push(d)}});return a},sortBy:function(a){return this.map(function(c,b){return{value:c,criteria:a(c,b)}}).sort(function(f,e){var d=f.criteria,c=e.criteria;return d<c?-1:d>c?1:0}).pluck("value")},toArray:function(){return this.map()},zip:function(){var b=Prototype.K,a=$A(arguments);if(typeof a.last()=="function"){b=a.pop()}var c=[this].concat(a).map($A);return this.map(function(e,d){return b(c.pluck(d))})},size:function(){return this.toArray().length},inspect:function(){return"#<Enumerable:"+this.toArray().inspect()+">"}};Object.extend(Enumerable,{map:Enumerable.collect,find:Enumerable.detect,select:Enumerable.findAll,member:Enumerable.include,entries:Enumerable.toArray});var $A=Array.from=function(d){if(!d){return[]}if(d.toArray){return d.toArray()}else{var b=[];for(var a=0,c=d.length;a<c;a++){b.push(d[a])}return b}};Object.extend(Array.prototype,Enumerable);if(!Array.prototype._reverse){Array.prototype._reverse=Array.prototype.reverse}Object.extend(Array.prototype,{_each:function(b){for(var a=0,c=this.length;a<c;a++){b(this[a])}},clear:function(){this.length=0;return this},first:function(){return this[0]},last:function(){return this[this.length-1]},compact:function(){return this.select(function(a){return a!=null})},flatten:function(){return this.inject([],function(b,a){return b.concat(a&&a.constructor==Array?a.flatten():[a])})},without:function(){var a=$A(arguments);return this.select(function(b){return !a.include(b)})},indexOf:function(a){for(var b=0,c=this.length;b<c;b++){if(this[b]==a){return b}}return -1},reverse:function(a){return(a!==false?this:this.toArray())._reverse()},reduce:function(){return this.length>1?this:this[0]},uniq:function(){return this.inject([],function(b,a){return b.include(a)?b:b.concat([a])})},clone:function(){return[].concat(this)},size:function(){return this.length},inspect:function(){return"["+this.map(Object.inspect).join(", ")+"]"}});Array.prototype.toArray=Array.prototype.clone;function $w(a){a=a.strip();return a?a.split(/\s+/):[]}if(window.opera){Array.prototype.concat=function(){var e=[];for(var b=0,c=this.length;b<c;b++){e.push(this[b])}for(var b=0,c=arguments.length;b<c;b++){if(arguments[b].constructor==Array){for(var a=0,d=arguments[b].length;a<d;a++){e.push(arguments[b][a])}}else{e.push(arguments[b])}}return e}}var Hash=function(a){Object.extend(this,a||{})};Object.extend(Hash,{toQueryString:function(b){var a=[];this.prototype._each.call(b,function(d){if(!d.key){return}if(d.value&&d.value.constructor==Array){var c=d.value.compact();if(c.length<2){d.value=c.reduce()}else{key=encodeURIComponent(d.key);c.each(function(e){e=e!=undefined?encodeURIComponent(e):"";a.push(key+"="+encodeURIComponent(e))});return}}if(d.value==undefined){d[1]=""}a.push(d.map(encodeURIComponent).join("="))});return a.join("&")}});Object.extend(Hash.prototype,Enumerable);Object.extend(Hash.prototype,{_each:function(b){for(var a in this){var c=this[a];if(c&&c==Hash.prototype[a]){continue}var d=[a,c];d.key=a;d.value=c;b(d)}},keys:function(){return this.pluck("key")},values:function(){return this.pluck("value")},merge:function(a){return $H(a).inject(this,function(b,c){b[c.key]=c.value;return b})},remove:function(){var a;for(var b=0,c=arguments.length;b<c;b++){var d=this[arguments[b]];if(d!==undefined){if(a===undefined){a=d}else{if(a.constructor!=Array){a=[a]}a.push(d)}}delete this[arguments[b]]}return a},toQueryString:function(){return Hash.toQueryString(this)},inspect:function(){return"#<Hash:{"+this.map(function(a){return a.map(Object.inspect).join(": ")}).join(", ")+"}>"}});function $H(a){if(a&&a.constructor==Hash){return a}return new Hash(a)}ObjectRange=Class.create();Object.extend(ObjectRange.prototype,Enumerable);Object.extend(ObjectRange.prototype,{initialize:function(c,a,b){this.start=c;this.end=a;this.exclusive=b},_each:function(a){var b=this.start;while(this.include(b)){a(b);b=b.succ()}},include:function(a){if(a<this.start){return false}if(this.exclusive){return a<this.end}return a<=this.end}});var $R=function(c,a,b){return new ObjectRange(c,a,b)};var Ajax={getTransport:function(){return Try.these(function(){return new XMLHttpRequest()},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")})||false},activeRequestCount:0};Ajax.Responders={responders:[],_each:function(a){this.responders._each(a)},register:function(a){if(!this.include(a)){this.responders.push(a)}},unregister:function(a){this.responders=this.responders.without(a)},dispatch:function(d,b,c,a){this.each(function(f){if(typeof f[d]=="function"){try{f[d].apply(f,[b,c,a])}catch(g){}}})}};Object.extend(Ajax.Responders,Enumerable);Ajax.Responders.register({onCreate:function(){Ajax.activeRequestCount++},onComplete:function(){Ajax.activeRequestCount--}});Ajax.Base=function(){};Ajax.Base.prototype={setOptions:function(a){this.options={method:"post",asynchronous:true,contentType:"application/x-www-form-urlencoded",encoding:"UTF-8",parameters:""};Object.extend(this.options,a||{});this.options.method=this.options.method.toLowerCase();if(typeof this.options.parameters=="string"){this.options.parameters=this.options.parameters.toQueryParams()}}};Ajax.Request=Class.create();Ajax.Request.Events=["Uninitialized","Loading","Loaded","Interactive","Complete"];Ajax.Request.prototype=Object.extend(new Ajax.Base(),{_complete:false,initialize:function(b,a){this.transport=Ajax.getTransport();this.setOptions(a);this.request(b)},request:function(b){this.url=b;this.method=this.options.method;var d=this.options.parameters;if(!["get","post"].include(this.method)){d._method=this.method;this.method="post"}d=Hash.toQueryString(d);if(d&&/Konqueror|Safari|KHTML/.test(navigator.userAgent)){d+="&_="}if(this.method=="get"&&d){this.url+=(this.url.indexOf("?")>-1?"&":"?")+d}try{Ajax.Responders.dispatch("onCreate",this,this.transport);this.transport.open(this.method.toUpperCase(),this.url,this.options.asynchronous);if(this.options.asynchronous){setTimeout(function(){this.respondToReadyState(1)}.bind(this),10)}this.transport.onreadystatechange=this.onStateChange.bind(this);this.setRequestHeaders();var a=this.method=="post"?(this.options.postBody||d):null;this.transport.send(a);if(!this.options.asynchronous&&this.transport.overrideMimeType){this.onStateChange()}}catch(c){this.dispatchException(c)}},onStateChange:function(){var a=this.transport.readyState;if(a>1&&!((a==4)&&this._complete)){this.respondToReadyState(this.transport.readyState)}},setRequestHeaders:function(){var e={"X-Requested-With":"XMLHttpRequest","X-Prototype-Version":Prototype.Version,Accept:"text/javascript, text/html, application/xml, text/xml, */*"};if(this.method=="post"){e["Content-type"]=this.options.contentType+(this.options.encoding?"; charset="+this.options.encoding:"");if(this.transport.overrideMimeType&&(navigator.userAgent.match(/Gecko\/(\d{4})/)||[0,2005])[1]<2005){e.Connection="close"}}if(typeof this.options.requestHeaders=="object"){var c=this.options.requestHeaders;if(typeof c.push=="function"){for(var b=0,d=c.length;b<d;b+=2){e[c[b]]=c[b+1]}}else{$H(c).each(function(f){e[f.key]=f.value})}}for(var a in e){this.transport.setRequestHeader(a,e[a])}},success:function(){return !this.transport.status||(this.transport.status>=200&&this.transport.status<300)},respondToReadyState:function(a){var c=Ajax.Request.Events[a];var f=this.transport,b=this.evalJSON();if(c=="Complete"){try{this._complete=true;(this.options["on"+this.transport.status]||this.options["on"+(this.success()?"Success":"Failure")]||Prototype.emptyFunction)(f,b)}catch(d){this.dispatchException(d)}if((this.getHeader("Content-type")||"text/javascript").strip().match(/^(text|application)\/(x-)?(java|ecma)script(;.*)?$/i)){this.evalResponse()}}try{(this.options["on"+c]||Prototype.emptyFunction)(f,b);Ajax.Responders.dispatch("on"+c,this,f,b)}catch(d){this.dispatchException(d)}if(c=="Complete"){this.transport.onreadystatechange=Prototype.emptyFunction}},getHeader:function(a){try{return this.transport.getResponseHeader(a)}catch(b){return null}},evalJSON:function(){try{var json=this.getHeader("X-JSON");return json?eval("("+json+")"):null}catch(e){return null}},evalResponse:function(){try{return eval(this.transport.responseText)}catch(e){this.dispatchException(e)}},dispatchException:function(a){(this.options.onException||Prototype.emptyFunction)(this,a);Ajax.Responders.dispatch("onException",this,a)}});Ajax.Updater=Class.create();Object.extend(Object.extend(Ajax.Updater.prototype,Ajax.Request.prototype),{initialize:function(a,c,b){this.container={success:(a.success||a),failure:(a.failure||(a.success?null:a))};this.transport=Ajax.getTransport();this.setOptions(b);var d=this.options.onComplete||Prototype.emptyFunction;this.options.onComplete=(function(f,e){this.updateContent();d(f,e)}).bind(this);this.request(c)},updateContent:function(){var b=this.container[this.success()?"success":"failure"];var a=this.transport.responseText;if(!this.options.evalScripts){a=a.stripScripts()}if(b=proto$(b)){if(this.options.insertion){new this.options.insertion(b,a)}else{b.update(a)}}if(this.success()){if(this.onComplete){setTimeout(this.onComplete.bind(this),10)}}}});Ajax.PeriodicalUpdater=Class.create();Ajax.PeriodicalUpdater.prototype=Object.extend(new Ajax.Base(),{initialize:function(a,c,b){this.setOptions(b);this.onComplete=this.options.onComplete;this.frequency=(this.options.frequency||2);this.decay=(this.options.decay||1);this.updater={};this.container=a;this.url=c;this.start()},start:function(){this.options.onComplete=this.updateComplete.bind(this);this.onTimerEvent()},stop:function(){this.updater.options.onComplete=undefined;clearTimeout(this.timer);(this.onComplete||Prototype.emptyFunction).apply(this,arguments)},updateComplete:function(a){if(this.options.decay){this.decay=(a.responseText==this.lastText?this.decay*this.options.decay:1);this.lastText=a.responseText}this.timer=setTimeout(this.onTimerEvent.bind(this),this.decay*this.frequency*1000)},onTimerEvent:function(){this.updater=new Ajax.Updater(this.container,this.url,this.options)}});function proto$(b){if(arguments.length>1){for(var a=0,d=[],c=arguments.length;a<c;a++){d.push(proto$(arguments[a]))}return d}if(typeof b=="string"){b=document.getElementById(b)}return Element.extend(b)}if(Prototype.BrowserFeatures.XPath){document._getElementsByXPath=function(f,a){var c=[];var e=document.evaluate(f,proto$(a)||document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);for(var b=0,d=e.snapshotLength;b<d;b++){c.push(e.snapshotItem(b))}return c}}document.getElementsByClassName=function(d,a){if(Prototype.BrowserFeatures.XPath){var g=".//*[contains(concat(' ', @class, ' '), ' "+d+" ')]";return document._getElementsByXPath(g,a)}else{var c=(proto$(a)||document.body).getElementsByTagName("*");var f=[],h;for(var b=0,e=c.length;b<e;b++){h=c[b];if(Element.hasClassName(h,d)){f.push(Element.extend(h))}}return f}};if(!window.Element){var Element=new Object()}Element.extend=function(c){if(!c||_nativeExtensions||c.nodeType==3){return c}if(!c._extended&&c.tagName&&c!=window){var b=Object.clone(Element.Methods),a=Element.extend.cache;if(c.tagName=="FORM"){Object.extend(b,Form.Methods)}if(["INPUT","TEXTAREA","SELECT"].include(c.tagName)){Object.extend(b,Form.Element.Methods)}Object.extend(b,Element.Methods.Simulated);for(var e in b){var d=b[e];if(typeof d=="function"&&!(e in c)){c[e]=a.findOrStore(d)}}}c._extended=true;return c};Element.extend.cache={findOrStore:function(a){return this[a]=this[a]||function(){return a.apply(null,[this].concat($A(arguments)))}}};Element.Methods={visible:function(a){return proto$(a).style.display!="none"},toggle:function(a){a=proto$(a);Element[Element.visible(a)?"hide":"show"](a);return a},hide:function(a){proto$(a).style.display="none";return a},show:function(a){proto$(a).style.display="";return a},remove:function(a){a=proto$(a);a.parentNode.removeChild(a);return a},update:function(b,a){a=typeof a=="undefined"?"":a.toString();proto$(b).innerHTML=a.stripScripts();setTimeout(function(){a.evalScripts()},10);return b},replace:function(c,b){c=proto$(c);b=typeof b=="undefined"?"":b.toString();if(c.outerHTML){c.outerHTML=b.stripScripts()}else{var a=c.ownerDocument.createRange();a.selectNodeContents(c);c.parentNode.replaceChild(a.createContextualFragment(b.stripScripts()),c)}setTimeout(function(){b.evalScripts()},10);return c},inspect:function(b){b=proto$(b);var a="<"+b.tagName.toLowerCase();$H({id:"id",className:"class"}).each(function(f){var e=f.first(),c=f.last();var d=(b[e]||"").toString();if(d){a+=" "+c+"="+d.inspect(true)}});return a+">"},recursivelyCollect:function(a,c){a=proto$(a);var b=[];while(a=a[c]){if(a.nodeType==1){b.push(Element.extend(a))}}return b},ancestors:function(a){return proto$(a).recursivelyCollect("parentNode")},descendants:function(a){return $A(proto$(a).getElementsByTagName("*"))},immediateDescendants:function(a){if(!(a=proto$(a).firstChild)){return[]}while(a&&a.nodeType!=1){a=a.nextSibling}if(a){return[a].concat(proto$(a).nextSiblings())}return[]},previousSiblings:function(a){return proto$(a).recursivelyCollect("previousSibling")},nextSiblings:function(a){return proto$(a).recursivelyCollect("nextSibling")},siblings:function(a){a=proto$(a);return a.previousSiblings().reverse().concat(a.nextSiblings())},match:function(b,a){if(typeof a=="string"){a=new Selector(a)}return a.match(proto$(b))},up:function(b,c,a){return Selector.findElement(proto$(b).ancestors(),c,a)},down:function(b,c,a){return Selector.findElement(proto$(b).descendants(),c,a)},previous:function(b,c,a){return Selector.findElement(proto$(b).previousSiblings(),c,a)},next:function(b,c,a){return Selector.findElement(proto$(b).nextSiblings(),c,a)},getElementsBySelector:function(){var a=$A(arguments),b=proto$(a.shift());return Selector.findChildElements(b,a)},getElementsByClassName:function(a,b){return document.getElementsByClassName(b,a)},readAttribute:function(c,a){c=proto$(c);if(document.all&&!window.opera){var b=Element._attributeTranslations;if(b.values[a]){return b.values[a](c,a)}if(b.names[a]){a=b.names[a]}var d=c.attributes[a];if(d){return d.nodeValue}}return c.getAttribute(a)},getHeight:function(a){return proto$(a).getDimensions().height},getWidth:function(a){return proto$(a).getDimensions().width},classNames:function(a){return new Element.ClassNames(a)},hasClassName:function(a,b){if(!(a=proto$(a))){return}var c=a.className;if(c.length==0){return false}if(c==b||c.match(new RegExp("(^|\\s)"+b+"(\\s|$)"))){return true}return false},addClassName:function(a,b){if(!(a=proto$(a))){return}Element.classNames(a).add(b);return a},removeClassName:function(a,b){if(!(a=proto$(a))){return}Element.classNames(a).remove(b);return a},toggleClassName:function(a,b){if(!(a=proto$(a))){return}Element.classNames(a)[a.hasClassName(b)?"remove":"add"](b);return a},observe:function(){Event.observe.apply(Event,arguments);return $A(arguments).first()},stopObserving:function(){Event.stopObserving.apply(Event,arguments);return $A(arguments).first()},cleanWhitespace:function(b){b=proto$(b);var c=b.firstChild;while(c){var a=c.nextSibling;if(c.nodeType==3&&!/\S/.test(c.nodeValue)){b.removeChild(c)}c=a}return b},empty:function(a){return proto$(a).innerHTML.match(/^\s*$/)},descendantOf:function(b,a){b=proto$(b),a=proto$(a);while(b=b.parentNode){if(b==a){return true}}return false},scrollTo:function(a){a=proto$(a);var b=Position.cumulativeOffset(a);window.scrollTo(b[0],b[1]);return a},getStyle:function(b,c){b=proto$(b);if(["float","cssFloat"].include(c)){c=(typeof b.style.styleFloat!="undefined"?"styleFloat":"cssFloat")}c=c.camelize();var d=b.style[c];if(!d){if(document.defaultView&&document.defaultView.getComputedStyle){var a=document.defaultView.getComputedStyle(b,null);d=a?a[c]:null}else{if(b.currentStyle){d=b.currentStyle[c]}}}if((d=="auto")&&["width","height"].include(c)&&(b.getStyle("display")!="none")){d=b["offset"+c.capitalize()]+"px"}if(window.opera&&["left","top","right","bottom"].include(c)){if(Element.getStyle(b,"position")=="static"){d="auto"}}if(c=="opacity"){if(d){return parseFloat(d)}if(d=(b.getStyle("filter")||"").match(/alpha\(opacity=(.*)\)/)){if(d[1]){return parseFloat(d[1])/100}}return 1}return d=="auto"?null:d},setStyle:function(b,c){b=proto$(b);for(var a in c){var d=c[a];if(a=="opacity"){if(d==1){d=(/Gecko/.test(navigator.userAgent)&&!/Konqueror|Safari|KHTML/.test(navigator.userAgent))?0.999999:1;if(/MSIE/.test(navigator.userAgent)&&!window.opera){b.style.filter=b.getStyle("filter").replace(/alpha\([^\)]*\)/gi,"")}}else{if(d==""){if(/MSIE/.test(navigator.userAgent)&&!window.opera){b.style.filter=b.getStyle("filter").replace(/alpha\([^\)]*\)/gi,"")}}else{if(d<0.00001){d=0}if(/MSIE/.test(navigator.userAgent)&&!window.opera){b.style.filter=b.getStyle("filter").replace(/alpha\([^\)]*\)/gi,"")+"alpha(opacity="+d*100+")"}}}}else{if(["float","cssFloat"].include(a)){a=(typeof b.style.styleFloat!="undefined")?"styleFloat":"cssFloat"}}b.style[a.camelize()]=d}return b},getDimensions:function(c){c=proto$(c);var g=proto$(c).getStyle("display");if(g!="none"&&g!=null){return{width:c.offsetWidth,height:c.offsetHeight}}var b=c.style;var f=b.visibility;var d=b.position;var a=b.display;b.visibility="hidden";b.position="absolute";b.display="block";var h=c.clientWidth;var e=c.clientHeight;b.display=a;b.position=d;b.visibility=f;return{width:h,height:e}},makePositioned:function(a){a=proto$(a);var b=Element.getStyle(a,"position");if(b=="static"||!b){a._madePositioned=true;a.style.position="relative";if(window.opera){a.style.top=0;a.style.left=0}}return a},undoPositioned:function(a){a=proto$(a);if(a._madePositioned){a._madePositioned=undefined;a.style.position=a.style.top=a.style.left=a.style.bottom=a.style.right=""}return a},makeClipping:function(a){a=proto$(a);if(a._overflow){return a}a._overflow=a.style.overflow||"auto";if((Element.getStyle(a,"overflow")||"visible")!="hidden"){a.style.overflow="hidden"}return a},undoClipping:function(a){a=proto$(a);if(!a._overflow){return a}a.style.overflow=a._overflow=="auto"?"":a._overflow;a._overflow=null;return a}};Object.extend(Element.Methods,{childOf:Element.Methods.descendantOf});Element._attributeTranslations={};Element._attributeTranslations.names={colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",datetime:"dateTime",accesskey:"accessKey",tabindex:"tabIndex",enctype:"encType",maxlength:"maxLength",readonly:"readOnly",longdesc:"longDesc"};Element._attributeTranslations.values={_getAttr:function(a,b){return a.getAttribute(b,2)},_flag:function(a,b){return proto$(a).hasAttribute(b)?b:null},style:function(a){return a.style.cssText.toLowerCase()},title:function(a){var b=a.getAttributeNode("title");return b.specified?b.nodeValue:null}};Object.extend(Element._attributeTranslations.values,{href:Element._attributeTranslations.values._getAttr,src:Element._attributeTranslations.values._getAttr,disabled:Element._attributeTranslations.values._flag,checked:Element._attributeTranslations.values._flag,readonly:Element._attributeTranslations.values._flag,multiple:Element._attributeTranslations.values._flag});Element.Methods.Simulated={hasAttribute:function(b,c){var a=Element._attributeTranslations;c=a.names[c]||c;return proto$(b).getAttributeNode(c).specified}};if(document.all&&!window.opera){Element.Methods.update=function(c,b){c=proto$(c);b=typeof b=="undefined"?"":b.toString();var a=c.tagName.toUpperCase();if(["THEAD","TBODY","TR","TD"].include(a)){var d=document.createElement("div");switch(a){case"THEAD":case"TBODY":d.innerHTML="<table><tbody>"+b.stripScripts()+"</tbody></table>";depth=2;break;case"TR":d.innerHTML="<table><tbody><tr>"+b.stripScripts()+"</tr></tbody></table>";depth=3;break;case"TD":d.innerHTML="<table><tbody><tr><td>"+b.stripScripts()+"</td></tr></tbody></table>";depth=4}$A(c.childNodes).each(function(e){c.removeChild(e)});depth.times(function(){d=d.firstChild});$A(d.childNodes).each(function(e){c.appendChild(e)})}else{c.innerHTML=b.stripScripts()}setTimeout(function(){b.evalScripts()},10);return c}}Object.extend(Element,Element.Methods);var _nativeExtensions=false;if(/Konqueror|Safari|KHTML/.test(navigator.userAgent)){["","Form","Input","TextArea","Select"].each(function(b){var c="HTML"+b+"Element";if(window[c]){return}var a=window[c]={};a.prototype=document.createElement(b?b.toLowerCase():"div").__proto__})}Element.addMethods=function(a){Object.extend(Element.Methods,a||{});function b(f,d,c){c=c||false;var e=Element.extend.cache;for(var h in f){var g=f[h];if(!c||!(h in d)){d[h]=e.findOrStore(g)}}}if(typeof HTMLElement!="undefined"){b(Element.Methods,HTMLElement.prototype);b(Element.Methods.Simulated,HTMLElement.prototype,true);b(Form.Methods,HTMLFormElement.prototype);[HTMLInputElement,HTMLTextAreaElement,HTMLSelectElement].each(function(c){b(Form.Element.Methods,c.prototype)});_nativeExtensions=true}};var Toggle=new Object();Toggle.display=Element.toggle;Abstract.Insertion=function(a){this.adjacency=a};Abstract.Insertion.prototype={initialize:function(b,c){this.element=proto$(b);this.content=c.stripScripts();if(this.adjacency&&this.element.insertAdjacentHTML){try{this.element.insertAdjacentHTML(this.adjacency,this.content)}catch(d){var a=this.element.tagName.toUpperCase();if(["TBODY","TR"].include(a)){this.insertContent(this.contentFromAnonymousTable())}else{throw d}}}else{this.range=this.element.ownerDocument.createRange();if(this.initializeRange){this.initializeRange()}this.insertContent([this.range.createContextualFragment(this.content)])}setTimeout(function(){c.evalScripts()},10)},contentFromAnonymousTable:function(){var a=document.createElement("div");a.innerHTML="<table><tbody>"+this.content+"</tbody></table>";return $A(a.childNodes[0].childNodes[0].childNodes)}};var Insertion=new Object();Insertion.Before=Class.create();Insertion.Before.prototype=Object.extend(new Abstract.Insertion("beforeBegin"),{initializeRange:function(){this.range.setStartBefore(this.element)},insertContent:function(a){a.each((function(b){this.element.parentNode.insertBefore(b,this.element)}).bind(this))}});Insertion.Top=Class.create();Insertion.Top.prototype=Object.extend(new Abstract.Insertion("afterBegin"),{initializeRange:function(){this.range.selectNodeContents(this.element);this.range.collapse(true)},insertContent:function(a){a.reverse(false).each((function(b){this.element.insertBefore(b,this.element.firstChild)}).bind(this))}});Insertion.Bottom=Class.create();Insertion.Bottom.prototype=Object.extend(new Abstract.Insertion("beforeEnd"),{initializeRange:function(){this.range.selectNodeContents(this.element);this.range.collapse(this.element)},insertContent:function(a){a.each((function(b){this.element.appendChild(b)}).bind(this))}});Insertion.After=Class.create();Insertion.After.prototype=Object.extend(new Abstract.Insertion("afterEnd"),{initializeRange:function(){this.range.setStartAfter(this.element)},insertContent:function(a){a.each((function(b){this.element.parentNode.insertBefore(b,this.element.nextSibling)}).bind(this))}});Element.ClassNames=Class.create();Element.ClassNames.prototype={initialize:function(a){this.element=proto$(a)},_each:function(a){this.element.className.split(/\s+/).select(function(b){return b.length>0})._each(a)},set:function(a){this.element.className=a},add:function(a){if(this.include(a)){return}this.set($A(this).concat(a).join(" "))},remove:function(a){if(!this.include(a)){return}this.set($A(this).without(a).join(" "))},toString:function(){return $A(this).join(" ")}};Object.extend(Element.ClassNames.prototype,Enumerable);var Selector=Class.create();Selector.prototype={initialize:function(a){this.params={classNames:[]};this.expression=a.toString().strip();this.parseExpression();this.compileMatcher()},parseExpression:function(){function g(h){throw"Parse error in selector: "+h}if(this.expression==""){g("empty expression")}var f=this.params,e=this.expression,b,a,d,c;while(b=e.match(/^(.*)\[([a-z0-9_:-]+?)(?:([~\|!]?=)(?:"([^"]*)"|([^\]\s]*)))?\]$/i)){f.attributes=f.attributes||[];f.attributes.push({name:b[2],operator:b[3],value:b[4]||b[5]||""});e=b[1]}if(e=="*"){return this.params.wildcard=true}while(b=e.match(/^([^a-z0-9_-])?([a-z0-9_-]+)(.*)/i)){a=b[1],d=b[2],c=b[3];switch(a){case"#":f.id=d;break;case".":f.classNames.push(d);break;case"":case undefined:f.tagName=d.toUpperCase();break;default:g(e.inspect())}e=c}if(e.length>0){g(e.inspect())}},buildMatchExpression:function(){var e=this.params,d=[],c;if(e.wildcard){d.push("true")}if(c=e.id){d.push('element.readAttribute("id") == '+c.inspect())}if(c=e.tagName){d.push("element.tagName.toUpperCase() == "+c.inspect())}if((c=e.classNames).length>0){for(var a=0,b=c.length;a<b;a++){d.push("element.hasClassName("+c[a].inspect()+")")}}if(c=e.attributes){c.each(function(g){var h="element.readAttribute("+g.name.inspect()+")";var f=function(i){return h+" && "+h+".split("+i.inspect()+")"};switch(g.operator){case"=":d.push(h+" == "+g.value.inspect());break;case"~=":d.push(f(" ")+".include("+g.value.inspect()+")");break;case"|=":d.push(f("-")+".first().toUpperCase() == "+g.value.toUpperCase().inspect());break;case"!=":d.push(h+" != "+g.value.inspect());break;case"":case undefined:d.push("element.hasAttribute("+g.name.inspect()+")");break;default:throw"Unknown operator "+g.operator+" in selector"}})}return d.join(" && ")},compileMatcher:function(){this.match=new Function("element","if (!element.tagName) return false; 				      element = proto$(element); 				      return "+this.buildMatchExpression())},findElements:function(d){var c;if(c=proto$(this.params.id)){if(this.match(c)){if(!d||Element.childOf(c,d)){return[c]}}}d=(d||document).getElementsByTagName(this.params.tagName||"*");var b=[];for(var a=0,e=d.length;a<e;a++){if(this.match(c=d[a])){b.push(Element.extend(c))}}return b},toString:function(){return this.expression}};Object.extend(Selector,{matchElements:function(b,c){var a=new Selector(c);return b.select(a.match.bind(a)).map(Element.extend)},findElement:function(b,c,a){if(typeof c=="number"){a=c,c=false}return Selector.matchElements(b,c||"*")[a||0]},findChildElements:function(a,b){return b.map(function(c){return c.match(/[^\s"]+(?:"[^"]*"[^\s"]+)*/g).inject([null],function(e,f){var d=new Selector(f);return e.inject([],function(h,g){return h.concat(d.findElements(g||a))})})}).flatten()}});function $$(){return Selector.findChildElements(document,$A(arguments))}var Form={reset:function(a){proto$(a).reset();return a},serializeElements:function(c,a){var b=c.inject({},function(d,f){if(!f.disabled&&f.name){var e=f.name,g=proto$(f).getValue();if(g!=undefined){if(d[e]){if(d[e].constructor!=Array){d[e]=[d[e]]}d[e].push(g)}else{d[e]=g}}}return d});return a?b:Hash.toQueryString(b)}};Form.Methods={serialize:function(b,a){return Form.serializeElements(Form.getElements(b),a)},getElements:function(a){return $A(proto$(a).getElementsByTagName("*")).inject([],function(b,c){if(Form.Element.Serializers[c.tagName.toLowerCase()]){b.push(Element.extend(c))}return b})},getInputs:function(g,c,d){g=proto$(g);var a=g.getElementsByTagName("input");if(!c&&!d){return $A(a).map(Element.extend)}for(var e=0,h=[],f=a.length;e<f;e++){var b=a[e];if((c&&b.type!=c)||(d&&b.name!=d)){continue}h.push(Element.extend(b))}return h},disable:function(a){a=proto$(a);a.getElements().each(function(b){b.blur();b.disabled="true"});return a},enable:function(a){a=proto$(a);a.getElements().each(function(b){b.disabled=""});return a},findFirstElement:function(a){return proto$(a).getElements().find(function(b){return b.type!="hidden"&&!b.disabled&&["input","select","textarea"].include(b.tagName.toLowerCase())})},focusFirstElement:function(a){a=proto$(a);a.findFirstElement().activate();return a}};Object.extend(Form,Form.Methods);Form.Element={focus:function(a){proto$(a).focus();return a},select:function(a){proto$(a).select();return a}};Form.Element.Methods={serialize:function(a){a=proto$(a);if(!a.disabled&&a.name){var b=a.getValue();if(b!=undefined){var c={};c[a.name]=b;return Hash.toQueryString(c)}}return""},getValue:function(a){a=proto$(a);var b=a.tagName.toLowerCase();return Form.Element.Serializers[b](a)},clear:function(a){proto$(a).value="";return a},present:function(a){return proto$(a).value!=""},activate:function(a){a=proto$(a);a.focus();if(a.select&&(a.tagName.toLowerCase()!="input"||!["button","reset","submit"].include(a.type))){a.select()}return a},disable:function(a){a=proto$(a);a.disabled=true;return a},enable:function(a){a=proto$(a);a.blur();a.disabled=false;return a}};Object.extend(Form.Element,Form.Element.Methods);var Field=Form.Element;var $F=Form.Element.getValue;Form.Element.Serializers={input:function(a){switch(a.type.toLowerCase()){case"checkbox":case"radio":return Form.Element.Serializers.inputSelector(a);default:return Form.Element.Serializers.textarea(a)}},inputSelector:function(a){return a.checked?a.value:null},textarea:function(a){return a.value},select:function(a){return this[a.type=="select-one"?"selectOne":"selectMany"](a)},selectOne:function(b){var a=b.selectedIndex;return a>=0?this.optionValue(b.options[a]):null},selectMany:function(d){var a,e=d.length;if(!e){return null}for(var c=0,a=[];c<e;c++){var b=d.options[c];if(b.selected){a.push(this.optionValue(b))}}return a},optionValue:function(a){return Element.extend(a).hasAttribute("value")?a.value:a.text}};Abstract.TimedObserver=function(){};Abstract.TimedObserver.prototype={initialize:function(a,b,c){this.frequency=b;this.element=proto$(a);this.callback=c;this.lastValue=this.getValue();this.registerCallback()},registerCallback:function(){setInterval(this.onTimerEvent.bind(this),this.frequency*1000)},onTimerEvent:function(){var a=this.getValue();var b=("string"==typeof this.lastValue&&"string"==typeof a?this.lastValue!=a:String(this.lastValue)!=String(a));if(b){this.callback(this.element,a);this.lastValue=a}}};Form.Element.Observer=Class.create();Form.Element.Observer.prototype=Object.extend(new Abstract.TimedObserver(),{getValue:function(){return Form.Element.getValue(this.element)}});Form.Observer=Class.create();Form.Observer.prototype=Object.extend(new Abstract.TimedObserver(),{getValue:function(){return Form.serialize(this.element)}});Abstract.EventObserver=function(){};Abstract.EventObserver.prototype={initialize:function(a,b){this.element=proto$(a);this.callback=b;this.lastValue=this.getValue();if(this.element.tagName.toLowerCase()=="form"){this.registerFormCallbacks()}else{this.registerCallback(this.element)}},onElementEvent:function(){var a=this.getValue();if(this.lastValue!=a){this.callback(this.element,a);this.lastValue=a}},registerFormCallbacks:function(){Form.getElements(this.element).each(this.registerCallback.bind(this))},registerCallback:function(a){if(a.type){switch(a.type.toLowerCase()){case"checkbox":case"radio":Event.observe(a,"click",this.onElementEvent.bind(this));break;default:Event.observe(a,"change",this.onElementEvent.bind(this));break}}}};Form.Element.EventObserver=Class.create();Form.Element.EventObserver.prototype=Object.extend(new Abstract.EventObserver(),{getValue:function(){return Form.Element.getValue(this.element)}});Form.EventObserver=Class.create();Form.EventObserver.prototype=Object.extend(new Abstract.EventObserver(),{getValue:function(){return Form.serialize(this.element)}});if(!window.Event){var Event=new Object()}Object.extend(Event,{KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,KEY_HOME:36,KEY_END:35,KEY_PAGEUP:33,KEY_PAGEDOWN:34,element:function(a){return a.target||a.srcElement},isLeftClick:function(a){return(((a.which)&&(a.which==1))||((a.button)&&(a.button==1)))},pointerX:function(a){return a.pageX||(a.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft))},pointerY:function(a){return a.pageY||(a.clientY+(document.documentElement.scrollTop||document.body.scrollTop))},stop:function(a){if(a.preventDefault){a.preventDefault();a.stopPropagation()}else{a.returnValue=false;a.cancelBubble=true}},findElement:function(c,b){var a=Event.element(c);while(a.parentNode&&(!a.tagName||(a.tagName.toUpperCase()!=b.toUpperCase()))){a=a.parentNode}return a},observers:false,_observeAndCache:function(d,c,b,a){if(!this.observers){this.observers=[]}if(d.addEventListener){this.observers.push([d,c,b,a]);d.addEventListener(c,b,a)}else{if(d.attachEvent){this.observers.push([d,c,b,a]);d.attachEvent("on"+c,b)}}},unloadCache:function(){if(!Event.observers){return}for(var a=0,b=Event.observers.length;a<b;a++){Event.stopObserving.apply(this,Event.observers[a]);Event.observers[a][0]=null}Event.observers=false},observe:function(d,c,b,a){d=proto$(d);a=a||false;if(c=="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||d.attachEvent)){c="keydown"}Event._observeAndCache(d,c,b,a)},stopObserving:function(d,c,b,a){d=proto$(d);a=a||false;if(c=="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||d.detachEvent)){c="keydown"}if(d.removeEventListener){d.removeEventListener(c,b,a)}else{if(d.detachEvent){try{d.detachEvent("on"+c,b)}catch(f){}}}}});if(navigator.appVersion.match(/\bMSIE\b/)){Event.observe(window,"unload",Event.unloadCache,false)}var Position={includeScrollOffsets:false,prepare:function(){this.deltaX=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;this.deltaY=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},realOffset:function(b){var a=0,c=0;do{a+=b.scrollTop||0;c+=b.scrollLeft||0;b=b.parentNode}while(b);return[c,a]},cumulativeOffset:function(b){var a=0,c=0;do{a+=b.offsetTop||0;c+=b.offsetLeft||0;b=b.offsetParent}while(b);return[c,a]},positionedOffset:function(b){var a=0,d=0;do{a+=b.offsetTop||0;d+=b.offsetLeft||0;b=b.offsetParent;if(b){if(b.tagName=="BODY"){break}var c=Element.getStyle(b,"position");if(c=="relative"||c=="absolute"){break}}}while(b);return[d,a]},offsetParent:function(a){if(a.offsetParent){return a.offsetParent}if(a==document.body){return a}while((a=a.parentNode)&&a!=document.body){if(Element.getStyle(a,"position")!="static"){return a}}return document.body},within:function(b,a,c){if(this.includeScrollOffsets){return this.withinIncludingScrolloffsets(b,a,c)}this.xcomp=a;this.ycomp=c;this.offset=this.cumulativeOffset(b);return(c>=this.offset[1]&&c<this.offset[1]+b.offsetHeight&&a>=this.offset[0]&&a<this.offset[0]+b.offsetWidth)},withinIncludingScrolloffsets:function(b,a,d){var c=this.realOffset(b);this.xcomp=a+c[0]-this.deltaX;this.ycomp=d+c[1]-this.deltaY;this.offset=this.cumulativeOffset(b);return(this.ycomp>=this.offset[1]&&this.ycomp<this.offset[1]+b.offsetHeight&&this.xcomp>=this.offset[0]&&this.xcomp<this.offset[0]+b.offsetWidth)},overlap:function(b,a){if(!b){return 0}if(b=="vertical"){return((this.offset[1]+a.offsetHeight)-this.ycomp)/a.offsetHeight}if(b=="horizontal"){return((this.offset[0]+a.offsetWidth)-this.xcomp)/a.offsetWidth}},page:function(d){var a=0,c=0;var b=d;do{a+=b.offsetTop||0;c+=b.offsetLeft||0;if(b.offsetParent==document.body){if(Element.getStyle(b,"position")=="absolute"){break}}}while(b=b.offsetParent);b=d;do{if(!window.opera||b.tagName=="BODY"){a-=b.scrollTop||0;c-=b.scrollLeft||0}}while(b=b.parentNode);return[c,a]},clone:function(c,e){var a=Object.extend({setLeft:true,setTop:true,setWidth:true,setHeight:true,offsetTop:0,offsetLeft:0},arguments[2]||{});c=proto$(c);var d=Position.page(c);e=proto$(e);var f=[0,0];var b=null;if(Element.getStyle(e,"position")=="absolute"){b=Position.offsetParent(e);f=Position.page(b)}if(b==document.body){f[0]-=document.body.offsetLeft;f[1]-=document.body.offsetTop}if(a.setLeft){e.style.left=(d[0]-f[0]+a.offsetLeft)+"px"}if(a.setTop){e.style.top=(d[1]-f[1]+a.offsetTop)+"px"}if(a.setWidth){e.style.width=c.offsetWidth+"px"}if(a.setHeight){e.style.height=c.offsetHeight+"px"}},absolutize:function(b){b=proto$(b);if(b.style.position=="absolute"){return}Position.prepare();var d=Position.positionedOffset(b);var f=d[1];var e=d[0];var c=b.clientWidth;var a=b.clientHeight;b._originalLeft=e-parseFloat(b.style.left||0);b._originalTop=f-parseFloat(b.style.top||0);b._originalWidth=b.style.width;b._originalHeight=b.style.height;b.style.position="absolute";b.style.top=f+"px";b.style.left=e+"px";b.style.width=c+"px";b.style.height=a+"px"},relativize:function(a){a=proto$(a);if(a.style.position=="relative"){return}Position.prepare();a.style.position="relative";var c=parseFloat(a.style.top||0)-(a._originalTop||0);var b=parseFloat(a.style.left||0)-(a._originalLeft||0);a.style.top=c+"px";a.style.left=b+"px";a.style.height=a._originalHeight;a.style.width=a._originalWidth}};if(/Konqueror|Safari|KHTML/.test(navigator.userAgent)){Position.cumulativeOffset=function(b){var a=0,c=0;do{a+=b.offsetTop||0;c+=b.offsetLeft||0;if(b.offsetParent==document.body){if(Element.getStyle(b,"position")=="absolute"){break}}b=b.offsetParent}while(b);return[c,a]}}Element.addMethods()}}}}if(typeof BLK!=="undefined"){if(typeof BLK.envConfig!=="undefined"){if(typeof BLK.envConfig.application!=="undefined"){if(BLK.envConfig.application.indexOf("blk.us.")>=0){if(typeof(Control)=="undefined"){Control={}}Control.Modal=Class.create();Object.extend(Control.Modal,{loaded:false,loading:false,loadingTimeout:false,overlay:false,container:false,current:false,ie:false,effects:{containerFade:false,containerAppear:false,overlayFade:false,overlayAppear:false},targetRegexp:/#(.+)$/,imgRegexp:/\.(jpe?g|gif|png|tiff?)$/i,overlayStyles:{position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:9998},overlayIEStyles:{position:"absolute",top:0,left:0,zIndex:9998},disableHoverClose:false,load:function(){if(!Control.Modal.loaded){Control.Modal.loaded=true;Control.Modal.ie=!(typeof document.body.style.maxHeight!="undefined");Control.Modal.overlay=proto$(document.createElement("div"));Control.Modal.overlay.id="modal_overlay";Object.extend(Control.Modal.overlay.style,Control.Modal["overlay"+(Control.Modal.ie?"IE":"")+"Styles"]);Control.Modal.overlay.hide();Control.Modal.container=proto$(document.createElement("div"));Control.Modal.container.id="modal_container";Control.Modal.container.hide();Control.Modal.loading=proto$(document.createElement("div"));Control.Modal.loading.id="modal_loading";Control.Modal.loading.hide();var a=document.getElementsByTagName("body")[0];a.appendChild(Control.Modal.overlay);a.appendChild(Control.Modal.container);a.appendChild(Control.Modal.loading);Control.Modal.container.observe("mouseout",function(b){if(!Control.Modal.disableHoverClose&&Control.Modal.current&&Control.Modal.current.options.hover&&!Position.within(Control.Modal.container,Event.pointerX(b),Event.pointerY(b))){Control.Modal.close()}})}},open:function(c,b){b=b||{};if(!b.contents){b.contents=c}var a=new Control.Modal(false,b);a.open();return a},close:function(a){if(typeof(a)!="boolean"){a=false}if(Control.Modal.current){Control.Modal.current.close(a)}},attachEvents:function(){Event.observe(window,"load",Control.Modal.load);Event.observe(window,"unload",Event.unloadCache,false)},center:function(c){if(!c._absolutized){c.setStyle({position:"absolute"});c._absolutized=true}var d=c.getDimensions();Position.prepare();var b=(Position.deltaX+Math.floor((Control.Modal.getWindowWidth()-d.width)/2));var a=(Position.deltaY+((Control.Modal.getWindowHeight()>d.height)?Math.floor((Control.Modal.getWindowHeight()-d.height)/2):0));c.setStyle({top:((d.height<=Control.Modal.getDocumentHeight())?((a!=null&&a>0)?a:a)+"px":a+"px"),left:((d.width<=Control.Modal.getDocumentWidth())?((b!=null&&b>0)?b:"0")+"px":0)})},goToTop:function(c){if(!c._absolutized){c.setStyle({position:"absolute"});c._absolutized=true}var d=c.getDimensions();Position.prepare();var b=(Position.deltaX+Math.floor((Control.Modal.getWindowWidth()-d.width)/2));var a=0;c.setStyle({top:((d.height<=Control.Modal.getDocumentHeight())?((a!=null&&a>0)?a:"0")+"px":0),left:((d.width<=Control.Modal.getDocumentWidth())?((b!=null&&b>0)?b:"0")+"px":0)})},getWindowWidth:function(){return(self.innerWidth||document.documentElement.clientWidth||document.body.clientWidth||0)},getWindowHeight:function(){return(self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight||0)},getDocumentWidth:function(){return Math.min(document.body.scrollWidth,Control.Modal.getWindowWidth())},getDocumentHeight:function(){return Math.max(document.body.scrollHeight,Control.Modal.getWindowHeight())},onKeyDown:function(a){if(a.keyCode==Event.KEY_ESC){Control.Modal.close()}}});Object.extend(Control.Modal.prototype,{mode:"",html:false,href:"",element:false,src:false,imageLoaded:false,ajaxRequest:false,initialize:function(e,d){this.element=proto$(e);this.options={beforeOpen:Prototype.emptyFunction,afterOpen:Prototype.emptyFunction,beforeClose:Prototype.emptyFunction,afterClose:Prototype.emptyFunction,onSuccess:Prototype.emptyFunction,onFailure:Prototype.emptyFunction,onException:Prototype.emptyFunction,beforeImageLoad:Prototype.emptyFunction,afterImageLoad:Prototype.emptyFunction,autoOpenIfLinked:true,contents:false,loading:false,fade:false,fadeDuration:0.75,image:false,imageCloseOnClick:true,hover:false,iframe:false,iframeTemplate:new Template('<iframe src="#{href}" width="100%" height="100%" frameborder="0" id="#{id}"></iframe>'),evalScripts:true,requestOptions:{},overlayDisplay:true,overlayClassName:"",overlayCloseOnClick:true,containerClassName:"",opacity:0.3,zIndex:9998,width:null,height:null,offsetLeft:0,offsetTop:0,position:"absolute"};Object.extend(this.options,d||{});var f=false;var c=false;if(this.element){f=Control.Modal.targetRegexp.exec(this.element.href);c=Control.Modal.imgRegexp.exec(this.element.href)}if(this.options.position=="mouse"){this.options.hover=true}if(this.options.contents){this.mode="contents"}else{if(this.options.image||c){this.mode="image";this.src=this.element.href}else{if(f){this.mode="named";var a=proto$(f[1]);this.html=a.innerHTML;a.remove();this.href=f[1]}else{this.mode=(this.options.iframe)?"iframe":"ajax";this.href=this.element.href}}}if(this.element){if(this.options.hover){this.element.observe("mouseover",this.open.bind(this));this.element.observe("mouseout",function(g){if(!Position.within(Control.Modal.container,Event.pointerX(g),Event.pointerY(g))){this.close()}}.bindAsEventListener(this))}else{this.element.onclick=function(g){this.open();Event.stop(g);return false}.bindAsEventListener(this)}}var b=Control.Modal.targetRegexp.exec(window.location);this.position=function(g){if(this.options.position=="absolute"){Control.Modal.center(Control.Modal.container)}else{if(this.options.position=="top"){Control.Modal.goToTop(Control.Modal.container)}else{var h=(g&&this.options.position=="mouse"?[Event.pointerX(g),Event.pointerY(g)]:Position.cumulativeOffset(this.element));Control.Modal.container.setStyle({position:"absolute",top:h[1]+(typeof(this.options.offsetTop)=="function"?this.options.offsetTop():this.options.offsetTop)+"px",left:h[0]+(typeof(this.options.offsetLeft)=="function"?this.options.offsetLeft():this.options.offsetLeft)+"px"})}}if(Control.Modal.ie){Control.Modal.overlay.setStyle({height:Control.Modal.getDocumentHeight()+"px",width:Control.Modal.getDocumentWidth()+"px"})}}.bind(this);if(this.mode=="named"&&this.options.autoOpenIfLinked&&b&&b[1]&&b[1]==this.href){this.open()}},showLoadingIndicator:function(){if(this.options.loading){Control.Modal.loadingTimeout=window.setTimeout(function(){var a=proto$("modal_image");if(a){a.hide()}Control.Modal.loading.style.zIndex=this.options.zIndex+1;Control.Modal.loading.update('<img id="modal_loading" src="'+this.options.loading+'"/>');Control.Modal.loading.show();Control.Modal.center(Control.Modal.loading)}.bind(this),250)}},hideLoadingIndicator:function(){if(this.options.loading){if(Control.Modal.loadingTimeout){window.clearTimeout(Control.Modal.loadingTimeout)}var a=proto$("modal_image");if(a){a.show()}Control.Modal.loading.hide()}},open:function(c){if(!c&&this.notify("beforeOpen")===false){return}if(!Control.Modal.loaded){Control.Modal.load()}Control.Modal.close();if(!this.options.hover){Event.observe(proto$(document.getElementsByTagName("body")[0]),"keydown",Control.Modal.onKeyDown)}Control.Modal.current=this;if(!this.options.hover){Control.Modal.overlay.setStyle({zIndex:this.options.zIndex,opacity:this.options.opacity})}Control.Modal.container.setStyle({zIndex:this.options.zIndex+1,width:(this.options.width?(typeof(this.options.width)=="function"?this.options.width():this.options.width)+"px":null),height:(this.options.height?(typeof(this.options.height)=="function"?this.options.height():this.options.height)+"px":null)});if(Control.Modal.ie&&!this.options.hover){$A(document.getElementsByTagName("select")).each(function(d){d.style.visibility="hidden"})}Control.Modal.overlay.addClassName(this.options.overlayClassName);Control.Modal.container.addClassName(this.options.containerClassName);switch(this.mode){case"image":this.imageLoaded=false;this.notify("beforeImageLoad");this.showLoadingIndicator();var a=document.createElement("img");a.onload=function(d){this.hideLoadingIndicator();this.update([d]);if(this.options.imageCloseOnClick){proto$(d).observe("click",Control.Modal.close)}this.position();this.notify("afterImageLoad");d.onload=null}.bind(this,a);a.src=this.src;a.id="modal_image";break;case"ajax":this.notify("beforeLoad");var b={method:"post",onSuccess:function(d){this.hideLoadingIndicator();this.update(d.responseText);this.notify("onSuccess",d);this.ajaxRequest=false}.bind(this),onFailure:function(){this.notify("onFailure")}.bind(this),onException:function(){this.notify("onException")}.bind(this)};Object.extend(b,this.options.requestOptions);this.showLoadingIndicator();this.ajaxRequest=new Ajax.Request(this.href,b);break;case"iframe":this.update(this.options.iframeTemplate.evaluate({href:this.href,id:"modal_iframe"}));break;case"contents":this.update((typeof(this.options.contents)=="function"?this.options.contents():this.options.contents));break;case"named":this.update(this.html);break}if(!this.options.hover){if(this.options.overlayCloseOnClick&&this.options.overlayDisplay){Control.Modal.overlay.observe("click",Control.Modal.close)}if(this.options.overlayDisplay){if(this.options.fade){if(Control.Modal.effects.overlayFade){Control.Modal.effects.overlayFade.cancel()}Control.Modal.effects.overlayAppear=new Effect.Appear(Control.Modal.overlay,{queue:{position:"front",scope:"Control.Modal"},to:this.options.opacity,duration:this.options.fadeDuration/2})}else{Control.Modal.overlay.show()}}}if(this.options.position=="mouse"){this.mouseHoverListener=this.position.bindAsEventListener(this);this.element.observe("mousemove",this.mouseHoverListener)}this.notify("afterOpen")},update:function(a){if(typeof(a)=="string"){Control.Modal.container.update(a)}else{Control.Modal.container.update("");(a.each)?a.each(function(b){Control.Modal.container.appendChild(b)}):Control.Modal.container.appendChild(node)}if(this.options.fade){if(Control.Modal.effects.containerFade){Control.Modal.effects.containerFade.cancel()}Control.Modal.effects.containerAppear=new Effect.Appear(Control.Modal.container,{queue:{position:"end",scope:"Control.Modal"},to:1,duration:this.options.fadeDuration/2})}else{Control.Modal.container.show()}this.position();Event.observe(window,"resize",this.position,false);Event.observe(window,"scroll",this.position,false)},close:function(a){if(!a&&this.notify("beforeClose")===false){return}if(this.ajaxRequest){this.ajaxRequest.transport.abort()}this.hideLoadingIndicator();if(this.mode=="image"){var b=proto$("modal_image");if(this.options.imageCloseOnClick&&b){b.stopObserving("click",Control.Modal.close)}}if(Control.Modal.ie&&!this.options.hover){$A(document.getElementsByTagName("select")).each(function(c){c.style.visibility="visible"})}if(!this.options.hover){Event.stopObserving(window,"keyup",Control.Modal.onKeyDown)}Control.Modal.current=false;Event.stopObserving(window,"resize",this.position,false);Event.stopObserving(window,"scroll",this.position,false);if(!this.options.hover){if(this.options.overlayCloseOnClick&&this.options.overlayDisplay){Control.Modal.overlay.stopObserving("click",Control.Modal.close)}if(this.options.overlayDisplay){if(this.options.fade){if(Control.Modal.effects.overlayAppear){Control.Modal.effects.overlayAppear.cancel()}Control.Modal.effects.overlayFade=new Effect.Fade(Control.Modal.overlay,{queue:{position:"end",scope:"Control.Modal"},from:this.options.opacity,to:0,duration:this.options.fadeDuration/2})}else{Control.Modal.overlay.hide()}}}if(this.options.fade){if(Control.Modal.effects.containerAppear){Control.Modal.effects.containerAppear.cancel()}Control.Modal.effects.containerFade=new Effect.Fade(Control.Modal.container,{queue:{position:"front",scope:"Control.Modal"},from:1,to:0,duration:this.options.fadeDuration/2,afterFinish:function(){Control.Modal.container.update("");this.resetClassNameAndStyles()}.bind(this)})}else{Control.Modal.container.hide();Control.Modal.container.update("");this.resetClassNameAndStyles()}if(this.options.position=="mouse"){this.element.stopObserving("mousemove",this.mouseHoverListener)}this.notify("afterClose")},resetClassNameAndStyles:function(){Control.Modal.overlay.removeClassName(this.options.overlayClassName);Control.Modal.container.removeClassName(this.options.containerClassName);Control.Modal.container.setStyle({height:null,width:null,top:null,left:null})},notify:function(b){try{if(this.options[b]){return[this.options[b].apply(this.options[b],$A(arguments).slice(1))]}}catch(a){if(a!=$break){throw a}else{return false}}}});if(typeof(Object.Event)!="undefined"){Object.Event.extend(Control.Modal)}Control.Modal.attachEvents()}}}}if(typeof BLK==="undefined"||!BLK){var BLK={};BLK.EBIZ={};BLK.BRS={}}BLK.EBIZ.debugMode=false;BLK.BRS.debugMode=false;if(typeof EBIZ==="undefined"||!EBIZ){var EBIZ={}}EBIZ.thisSite="";EBIZ.thisFile="common.js";BLK.EBIZ.trace=function(a){if(!BLK.EBIZ.debugMode){return}if(typeof console!=="undefined"){if(typeof console.log!=="undefined"){console.log(a)}}else{if(typeof window.opera!=="undefined"){if(typeof window.opera.postError!=="undefined"){window.opera.postError(a)}}}};BLK.EBIZ.trace2=function(a){if(typeof console!=="undefined"){if(typeof console.log!=="undefined"){console.log(a)}}else{if(typeof window.opera!=="undefined"){if(typeof window.opera.postError!=="undefined"){window.opera.postError(a)}}}};function buildDynamicScriptTagWithJsContent(e){BLK.EBIZ.trace2("buildDynamicScriptTagWithJsContent. . .");var d=document.getElementsByTagName("head")[0];var a=document.createElement("script");var b=randomBetween(10001,99999);var c=randomBetween(10001,99999);var f=b+"_"+c;a.setAttribute("id",f);a.setAttribute("type","text/javascript");a.text=e;if(a.nextSibling===null){d.appendChild(a)}else{d.insertBefore(a,a.nextSibling)}}function buildDynamicScriptTagWithCallback(b,g,k,j){BLK.EBIZ.trace2("buildDynamicScriptTagWithCallback. . .");var e=document.getElementsByTagName("head")[0];var i=document.createElement("script");var h=randomBetween(10001,99999);var l=randomBetween(10001,99999);var d=h+"_"+l;var c="?requestId="+d;i.setAttribute("id",d);i.setAttribute("type","text/javascript");i.async=true;i.setAttribute("charset","UTF-8");var a=b+c+g;if(typeof i.onreadystatechange!=="undefined"){i.onreadystatechange=function(){if(i.readyState==="loaded"||i.readyState==="complete"){i.onreadystatechange=null;k("onreadystatechange",d)}}}else{i.onload=function(){k("onload",d)}}buildDynamicScriptTagWithCallback.src=a;i.src=a;i.setAttribute("src",a);if(typeof j==="undefined"){if(i.nextSibling===null){e.appendChild(i)}else{e.insertBefore(i,i.nextSibling)}}else{if(j===null||j===""){if(i.nextSibling===null){e.appendChild(i)}else{e.insertBefore(i,i.nextSibling)}}else{var f=document.getElementById(j);if(f){f.appendChild(i)}else{if(i.nextSibling===null){e.appendChild(i)}else{e.insertBefore(i,i.nextSibling)}}}}}buildDynamicScriptTagWithCallback.src="";function buildDynamicScriptTag(b,f){var e=document.getElementsByTagName("head")[0];var h=document.createElement("script");var g=randomBetween(10001,99999);var j=randomBetween(10001,99999);var c=g+"_"+j;var d="?requestId="+c;h.setAttribute("id",c);h.setAttribute("type","text/javascript");h.setAttribute("charset","UTF-8");var a=b+d+f;function i(k,l){BLK.EBIZ.trace("dynamic script tag loaded. . .origin: "+k+",id: "+l)}if(typeof h.onreadystatechange!=="undefined"){h.onreadystatechange=function(){if(h.readyState==="loaded"||h.readyState==="complete"){h.onreadystatechange=null;i("onreadystatechange",c)}}}else{h.onload=function(){i("onload",c)}}buildDynamicScriptTag.src=a;h.src=a;h.setAttribute("src",a);if(h.nextSibling===null){e.appendChild(h)}else{e.insertBefore(h,h.nextSibling)}}buildDynamicScriptTag.src="";function buildDynamicScriptTagOnLoad(b,f,i){var e=document.getElementsByTagName("head")[0];var h=document.createElement("script");var g=randomBetween(10001,99999);var j=randomBetween(10001,99999);var d=g+"_"+j;var c="?requestId="+d;h.setAttribute("id",d);h.setAttribute("type","text/javascript");var a=b+c+f;h.setAttribute("src",a);if(h.nextSibling===null){e.appendChild(h)}else{e.insertBefore(h,h.nextSibling)}return d}function loadConfigFiles(d){var c=0;var m=[];var b=location.hostname;var a="";if(BLK.envConfig!==undefined&&BLK.envSetting!==undefined){return m}var e=document.getElementsByTagName("script");var h=-1;var g="";var j=[];var k=null;var l=0;var f=0;for(l=0;l<e.length;l++){k=e[l];a=e[l].getAttribute("src");if(a===null||a===""){continue}a=a.toLowerCase();j=a.split("/");if(j[j.length-1].indexOf(EBIZ.thisFile)!==-1){h=a.indexOf(EBIZ.thisFile);g=a.substring(0,h);break}}if(g!==""){for(f=0;f<d.length;f++){c=buildDynamicScriptTagOnLoad(g+d[f],"",k);m[f]=c}}return m}loadConfigFiles(["envSetting.js","envConfig.js"]);BLK.EBIZ.writeTitle=function(){var k="BlackRock";var d="";var b="";var l="";var h="";var j="";var a="";var e=null;var n="";var i="";var g=" : ";var m="";var c="";try{h=trim(BLK.EBIZ.getUrlValue("appname"));BLK.EBIZ.trace2("writeTitle - appName: "+h);m=decodeURIComponent(trim(BLK.EBIZ.getUrlValue("pgtitle")));BLK.EBIZ.trace2("writeTitle - pgTitle: "+m);if(m===""&&h.toLowerCase()!=="wsod_profile"){BLK.EBIZ.trace2("writeTitle - do not write title. . .");return}BLK.EBIZ.trace2("writeTitle - do write title. . .");j="";if(h!==""){if(typeof BLK.envSetting!=="undefined"){if(typeof BLK.envSetting.appName!=="undefined"){if(typeof BLK.envSetting.appName[h]!=="undefined"){j=BLK.envSetting.appName[h]}}}}BLK.EBIZ.trace2("appname:*"+j+"*");a=BLK.EBIZ.getUrlValue("symbol");BLK.EBIZ.trace2("symbol:*"+a+"*");c=m;BLK.EBIZ.trace2("prefix:*"+c+"*");n="BlackRock";BLK.EBIZ.trace2("suffix:*"+n+"*");i="";if(typeof BLK.envSetting!=="undefined"){if(typeof BLK.envConfig!=="undefined"){if(typeof BLK.envConfig.application!=="undefined"){if(typeof BLK.envSetting.destination!=="undefined"){if(typeof BLK.envSetting.destination[BLK.envConfig.application]!=="undefined"){i=BLK.envSetting.destination[BLK.envConfig.application]}}}}}BLK.EBIZ.trace2("destination:*"+i+"*");k=(!c?"":(c+g))+(!a?"":(a+g))+(!j?"":(j+g))+(!i?"":(i+g))+n;BLK.EBIZ.trace2("title:*"+k+"*");document.title=k;BLK.EBIZ.trace2("document title:*"+document.title+"*")}catch(f){BLK.EBIZ.trace2("titleWrite exception-name: "+f.name+",message: "+f.message)}return k};BLK.EBIZ.loadYUIFiles=function(d,b,e,c){if(typeof YAHOO==="undefined"){BLK.EBIZ.trace("YAHOO object not defined. . .");return}if(typeof c==="undefined"){c=["animation","autocomplete","button","calendar","connection","containercore","container","datasource","datatable","dom","dragdrop","editor","element","event","get","json","logger","menu","profiler","profilerviewer","progressbar","selector","simpleeditor","tabview","treeview","yahoo"]}BLK.EBIZ.trace2("yui require:"+c);var a=new YAHOO.util.YUILoader({base:e,allowRollup:true,require:c,loadOptional:true,onSuccess:function(){BLK.EBIZ.trace("YUI files did load. . .");if(typeof d==="function"){d()}},onFailure:function(){BLK.EBIZ.trace("YUI files did not load. . .");if(typeof b==="function"){b()}},timeout:10000,combine:true});a.insert()};BLK.EBIZ.makeSureConfigFileIsLoaded=function(a){BLK.EBIZ.makeSureConfigFileIsLoaded.attemptCount++;BLK.EBIZ.trace("Attempt to load config file - attempt:"+BLK.EBIZ.makeSureConfigFileIsLoaded.attemptCount);if(BLK.EBIZ.makeSureConfigFileIsLoaded.attemptCount>BLK.EBIZ.makeSureConfigFileIsLoaded.maxNumberOfTimes){window.clearTimeout(BLK.EBIZ.makeSureConfigFileIsLoaded.timerId);BLK.EBIZ.trace("Config file not loaded. . .FAILURE");return}if(BLK.envConfig!==undefined&&BLK.envSetting!==undefined){BLK.EBIZ.trace("Config file loaded. . .SUCCESS");window.clearTimeout(BLK.EBIZ.makeSureConfigFileIsLoaded.timerId);BLK.EBIZ.makeSureConfigFileIsLoaded.configFileLoaded=true;if(typeof a==="function"){a()}}else{BLK.EBIZ.makeSureConfigFileIsLoaded.timerId=window.setTimeout(function(){BLK.EBIZ.makeSureConfigFileIsLoaded(a)},100)}};BLK.EBIZ.makeSureConfigFileIsLoaded.timerId=null;BLK.EBIZ.makeSureConfigFileIsLoaded.maxNumberOfTimes=256;BLK.EBIZ.makeSureConfigFileIsLoaded.attemptCount=0;BLK.EBIZ.makeSureConfigFileIsLoaded.configFileLoaded=false;BLK.EBIZ.getFirmId=function(){var a="";if(typeof userIdFirmIdObj==="object"){if(typeof userIdFirmIdObj.firmId!=="undefined"){a=userIdFirmIdObj.firmId}}return a};BLK.EBIZ.getUserId=function(){var a="";if(typeof userIdFirmIdObj==="object"){if(typeof userIdFirmIdObj.firmId!=="undefined"){a=userIdFirmIdObj.userId}}return a};BLK.EBIZ.isBlackRockCurrentFirm=function(){var b=BLK.EBIZ.getFirmId();var a=false;if(b==="99998"){a=true}return a};BLK.EBIZ.language="en";BLK.EBIZ.setLanguage=function(){var a=document.body;var b=a.getAttribute("lang");if(b===null){b="en";BLK.EBIZ.language=b;return}if(b===""){b="en";BLK.EBIZ.language=b;return}if(typeof BLK.envSetting==="undefined"){b="en";BLK.EBIZ.language=b;return}if(typeof BLK.envSetting.commonText==="undefined"){b="en";BLK.EBIZ.language=b;return}if(typeof BLK.envSetting.commonText.language==="undefined"){b="en";BLK.EBIZ.language=b;return}b=trim(b.toLowerCase());if(typeof BLK.envSetting.commonText.language[b]==="undefined"){b="en";BLK.EBIZ.language=b;return}BLK.EBIZ.language=b};BLK.EBIZ.getLanguage=function(){return BLK.EBIZ.language};var g_listeners=[];function setupEventListenersCleaner(){if(typeof window.attachEvent!=="undefined"){window.attachEvent("onunload",function(){var a=g_listeners.length;var b;for(b=a-1;b>=0;--b){g_listeners[b][0].detachEvent(g_listeners[b][1],g_listeners[b][2])}g_listeners=[]})}}setupEventListenersCleaner();function addLoadListener(b){if(typeof window.addEventListener!=="undefined"){window.addEventListener("load",b,false)}else{if(typeof document.addEventListener!=="undefined"){document.addEventListener("load",b,false)}else{if(typeof window.attachEvent!=="undefined"){window.attachEvent("onload",b);g_listeners[g_listeners.length]=[window,"onload",b]}else{var a=window.onload;if(typeof window.onload!=="function"){window.onload=b}else{window.onload=function(){a();b()}}}}}}function attachEventListener(e,c,d,b){if(typeof e.addEventListener!=="undefined"){e.addEventListener(c,d,b)}else{if(typeof e.attachEvent!=="undefined"){e.attachEvent("on"+c,d);g_listeners[g_listeners.length]=[e,"on"+c,d]}else{c="on"+c;if(typeof e[c]==="function"){var a=e[c];e[c]=function(){a();return d()}}else{e[c]=d}}}}function detachEventListener(d,b,c,a){if(typeof d.removeEventListener!=="undefined"){d.removeEventListener(b,c,a)}else{if(typeof d.detachEvent!=="undefined"){d.detachEvent("on"+b,c)}else{d["on"+b]=null}}}function stopDefaultAction(a){a.returnValue=false;if(typeof a.preventDefault!=="undefined"){a.preventDefault()}}function stopEvent(a){if(typeof a.stopPropagation!=="undefined"){a.stopPropagation()}else{a.cancelBubble=true}}function getEventTarget(b){var a=null;if(typeof b==="undefined"){b=window.event}if(typeof b.target!=="undefined"){a=b.target}else{a=b.srcElement}while(a.nodeType===3&&a.parentNode!==null){a=a.parentNode}return a}function triggerEvent(h,b,g,d){var f=true;var a=null;if(!h){BLK.EBIZ.trace2("triggerEvent - target is null. . .");return f}if(document.createEvent){try{a=document.createEvent("MouseEvents");a.initEvent(b,g,d);f=true;if(typeof h.dispatchEvent==="function"){f=!h.dispatchEvent(a)}}catch(c){f=true;window.alert(c.name+"|"+c.message)}}else{b="on"+b;f=true;if(document.createEventObject){var e=document.createEventObject();f=!h.fireEvent(b,e)}}return f}function retrieveComputedStyle(b,c){var a=null;if(typeof b.currentStyle!=="undefined"){a=b.currentStyle}else{a=document.defaultView.getComputedStyle(b,null)}return a[c]}function getElementsByClassName(h,g){if(h.getElementsByClassName){return h.getElementsByClassName(g)}var b=[];var f=new RegExp("(^| )"+g+"( |$)");var d=h.getElementsByTagName("*");var e=null;var c=0;for(c=0;d[c];c++){e=d[c];if(f.test(e.className)){b.push(e)}}return b}function getElementsByClassNameOld(h,g){var b=[];var f=new RegExp("(^| )"+g+"( |$)");var d=h.getElementsByTagName("*");var e=null;var c=0;for(c=0;d[c];c++){e=d[c];if(f.test(e.className)){b.push(e)}}return b}function getElementsByMultiTagName(d,e){var a=[];var f=null;var c=0;var b=0;for(c=0;c<e.length;c++){f=d.getElementsByTagName(e[c]);for(b=0;b<f.length;b++){a[a.length]=f[b]}}return a}function getElementsByAttribute(e,d){var a=[];var c=[];if(typeof document.all!=="undefined"){a=document.all}else{a=document.getElementsByTagName("*")}var b=0;for(b=0;b<a.length;b++){if(e==="class"){var f=new RegExp("(^| )"+d+"( |$)");if(f.test(a[b].className)){c[c.length]=a[b]}f=null}else{if(e==="for"){if(a[b].getAttribute("htmlFor"||a[b].getAttribute("for"))){if(a[b].htmlFor===d){c[c.length]=a[b]}}}else{if(a[b].getAttribute(e)===d){c[c.length]=a[b]}}}}a=null;return c}function findClass(b,a){return b.className.match(new RegExp("(^| )"+a+"( |$)"))}function addClass(b,a){if(!findClass(b,a)){b.className+=" "+a;return true}return false}function removeClass(c,a){if(findClass(c,a)){var b=new RegExp("(^| )"+a+"( |$)");c.className=c.className.replace(b," ")}return true}function changeClass(d,a,c){if(typeof a==="string"){removeClass(d,a);addClass(d,c);return}var b=0;for(b=a.length-1;b>=0;--b){removeClass(d,a[b])}addClass(d,c)}function changeClassSingle(c,a,b){removeClass(c,a);addClass(c,b)}function changeClassMultiple(d,c,b){var a=0;for(a=c.length-1;a>=0;--a){removeClass(d,c[a])}addClass(d,b)}function findClassMulti(f,c){var d=f.className;var b=0;var a;for(b=0,a=c.length;b<a;b++){var e=new RegExp("(^| )"+c[b]+"( |$)");if(e.test(d)){return true}}return false}function getScrollingPosition(){var a=[0,0];if(typeof window.pageYOffset!=="undefined"){a=[window.pageXOffset,window.pageYOffset]}else{if(typeof document.documentElement.scrollTop!=="undefined"){a=[document.documentElement.scrollLeft,document.documentElement.scrollTop]}else{if(typeof document.body.scrollTop!=="undefined"){a=[document.body.scrollLeft,document.body.scrollTop]}}}return a}function getCursorPosition(b){if(typeof b==="undefined"){b=window.event}var c=getScrollingPosition();var a=[0,0];if(typeof b.pageX!=="undefined"&&typeof b.x!=="undefined"){a[0]=b.pageX;a[1]=b.pageY}else{a[0]=b.clientX+c[0];a[1]=b.clientY+c[1]}return a}function getViewportSize(){var a=[0,0];if(typeof window.innerWidth!=="undefined"){a=[window.innerWidth,window.innerHeight]}else{if(typeof document.documentElement!=="undefined"&&typeof document.documentElement.clientWidth!=="undefined"&&document.documentElement.clientWidth!==0){a=[document.documentElement.clientWidth,document.documentElement.clientHeight]}else{a=[document.getElementsByTagName("body")[0].clientWidth,document.getElementsByTagName("body")[0].clientHeight]}}return a}function getPosition(c){var b=0;var a=0;while(c!==null){b+=c.offsetLeft;a+=c.offsetTop;c=c.offsetParent}return[b,a]}function getPageDimensions(){var a=document.getElementsByTagName("body")[0];var d=0;var b=0;var c=0;var f=0;var e=[0,0];if(typeof document.documentElement!=="undefined"&&typeof document.documentElement.scrollWidth!=="undefined"){e[0]=document.documentElement.scrollWidth;e[1]=document.documentElement.scrollHeight}d=a.offsetWidth;b=a.offsetHeight;c=a.scrollWidth;f=a.scrollHeight;if(d>e[0]){e[0]=d}if(b>e[1]){e[1]=b}if(c>e[0]){e[0]=c}if(f>e[1]){e[1]=f}return e}function collToArray(e){for(var d=0,c=[],b=e.length;d<b;d++){c[d]=e[d]}return c}function yieldToUI(b,a){setTimeout(function(){setTimeout(function(){b()},a)},a)}function compareDates(b,a){if(b<a){return -1}else{if(b===a){return 0}else{return 1}}}function compareNumbers(a,b){return a-b}function getInnerText(f){var g="";var a="";var h="";var e=false;var j=false;var b=0;var c=null;if(f.childNodes.length>0){b=f.childNodes.length;for(var d=0;d<b;++d){c=f.childNodes[d];if(c.nodeType===3){if(c.nodeValue!==""){j=true;a+=c.nodeValue}}else{if(c.nodeType===1){if(c.childNodes.length>0){if(c.firstChild.nodeType===3){e=true;g+=c.firstChild.nodeValue}}}}}}if(e){h=g}else{if(j){h=a}else{h=""}}return h}function getInternalText(e){var g=e.childNodes;var a="";var b=g.length;for(var c=0;c<b;c++){var f=g[c];if(f.nodeType===3){var d=/^\s*$/;if(!d.test(f.nodeValue)){a+=f.nodeValue}}else{a+=getInternalText(f)}}return a}function getInternalTextOld(d){var e=d.childNodes;var a="";for(var b=0;b<e.length;b++){if(e[b].nodeType===3){var c=/^\s*$/;if(!c.test(e[b].nodeValue)){a+=e[b].nodeValue}}else{a+=getInternalText(e[b])}}return a}function getNextSibling(b){var a=b.nextSibling;while(a&&a.nodeType!==1){a=a.nextSibling}return a}function getPreviousSibling(b){var a=b.previousSibling;while(a&&a.nodeType!==1){a=a.previousSibling}return a}function getParentNodeWithTagName(c,b){var a=c;while(a!==null){if(a.nodeName.toLowerCase()===b.toLowerCase()){break}a=a.parentNode}return a}function identifyBrowser(){var c=navigator.userAgent.toLowerCase();if(typeof navigator.vendor!=="undefined"&&navigator.vendor==="KDE"&&typeof window.sidebar!=="undefined"){return"kde"}else{if(typeof window.opera!=="undefined"){var a=parseFloat(c.replace(/.*opera[\/ ]([^ $]+).*/,"$1"));if(a>=7){return"opera7"}else{if(a>=5){return"opera5"}}return""}else{if(typeof document.all!=="undefined"){if(typeof document.getElementById!=="undefined"){var b=c.replace(/.*ms(ie[\/ ][^ $]+).*/,"$1").replace(/ /,"");if(typeof document.uniqueID!=="undefined"){if(b.indexOf("5.5")!==-1){return b.replace(/(.*5\.5).*/,"$1")}else{return b.replace(/(.*)\..*/,"$1")}}else{return"ie5mac"}}return""}else{if(typeof document.getElementById!=="undefined"){if(navigator.vendor.indexOf("Apple Computer, Inc.")!==-1){if(typeof window.XMLHttpRequest!=="undefined"){return"safari1.2"}return"safari1"}else{if(c.indexOf("gecko")!==-1){return"mozilla"}}}}}}return""}function identifyOS(){var a=navigator.userAgent.toLowerCase();if(a.indexOf("win")!==-1){return"win"}else{if(a.indexOf("mac")!==-1){return"mac"}else{return"unix"}}return""}function randomBetween(b,a){return b+Math.floor(Math.random()*(a-b+1))}function roundTo(c,b){var a="";a=((c*Math.pow(10,b))/Math.pow(10,b)).toFixed(b);return a}function readyForRegExp(a){var d="";var b="";var e="\\^$*+?.[]-{}()|";for(var c=0;c<a.length;++c){b=a.charAt(c);if(e.indexOf(b)!==-1){d+="\\"+b}else{d+=b}}return d}function trim(a){if(a===""||a===null){return""}else{return a.replace(/^\s+/,"").replace(/\s\s*$/,"")}}function getValueFromURL(a){var e="";var d=readyForRegExp(a);var b=trim(location.search);if(b===""){return""}var c=new RegExp("[\\?&]"+d+"=(\\w+)&?");e="";if(c.test(b)){e=RegExp.$1}return e}function printErrorCode(){var b=getCleanCookie("SITECORE_ERROR_CODE");var a=null;if(b!==""){a=document.getElementById("siteCoreErrorCode");if(a){a.innerHTML="Error Code: "+b}}}function setCookie(g,d,f,e){var b=new Date();var a="";if(f===0){a=""}else{b.setDate(b.getDate()+f);a=";expires="+b.toGMTString()}var c="";if(e===undefined){c=""}else{if(e===true){c=";secure"}else{c=""}}document.cookie=trim(g)+"="+escape(d)+a+c;b=null}function setCookieOld(e,b,d,c){var a=new Date();a.setDate(a.getDate()+d);if(c===undefined){document.cookie=trim(e)+"="+escape(b)+((d===null)?"":";expires="+a.toGMTString())}else{if(c===true){document.cookie=trim(e)+"="+escape(b)+((d===null)?"":";expires="+a.toGMTString()+";secure")}else{document.cookie=trim(e)+"="+escape(b)+((d===null)?"":";expires="+a.toGMTString())}}a=null}function setCookieWithPath(f,h,e,a,i){var d=new Date();var c="";if(e===0){c=""}else{d.setDate(d.getDate()+e);c=";expires="+d.toGMTString()}var b="";if(a===undefined){b=""}else{if(a===true){b=";secure"}else{b=""}}var g="";g=";path="+i;document.cookie=trim(f)+"="+escape(h)+c+b+g;d=null}function getCookie(a){var d=document.cookie.split(";");var e=false;var c=[];var g="";var f="";for(var b=0;b<d.length&&!e;b++){c=d[b].split("=");g=c[0];g=trim(g);f=c[1];if(g===a){e=true}}if(!e){f=""}return f}function getSubCookie(g,c){var k=document.cookie.split(";");for(var e=0;e<k.length;e++){var a=k[e].split("=");a[0]=a[0].replace(/^\s\s*/,"");if(a[0]===g){var b=a[1];b=unescape(b);var h=b.split("/");for(var d=0;d<h.length;d++){var f=h[d].split(":");if(f[0]===c){return f[1]}}}}return""}function getCleanCookie(c){var a=getCookie(c);var b=(typeof(a)==="undefined")?"":a;return b}function getIPFromCookie(h){var g="blk_clip";var b=g;if(typeof h!=="undefined"){b=h}var j=document.cookie.split("; ");var k=false;var a=[];var f="";var c="";function d(i){if(i===""||i===null){return""}else{return i.replace(/^\s+/,"").replace(/\s\s*$/,"")}}for(var e=0;e<j.length;e++){a=j[e].split("=");f=a[0];f=d(f);c=decodeURIComponent(a[1]);if(decodeURIComponent(f)===b){k=true;break}}if(!k){c=""}return c}function validContentId(a){var c;var b;if(a===""||a===null){return true}b=/^(\d{5}|\d{10})$/i;c=b.test(a);return c}function validInteger(a){var c;var b;if(a===""||a===null){return true}b=/^\d+$/i;c=b.test(a);return c}function validFloat(a){var c;var b;if(a===""||a===null){return true}b=/^\d+\.\d+$/i;c=b.test(a);return c}function validEmailAddress(a){var c;var b;if(a===""||a===null){return true}b=/^[^@]+@([a-z0-9\-]+\.)+[a-z]{2,4}$/i;c=b.test(a);return c}function validPhoneNumber(a){var c;var b;if(a===""||a===null){return true}b=/^((\d{3}-\d{3}-\d{4})|(\(\d{3}\)\s\d{3}-\d{4}))$/i;c=b.test(a);return c}function validSocialSecurityNumber(a){var c;var b;if(a===""||a===null){return true}b=/^\d{3}-\d{2}-\d{4}$/i;c=b.test(a);return c}function validZipCode(a){var c;var b;if(a===""||a===null){return true}b=/^\d{5}-\d{4}$/i;c=b.test(a);return c}function validDate(b){var c;var a;if(b===""||b===null){return true}a=Date.parse(b);c=true;if(isNaN(a)){c=false}return c}function purge(f){var c=f.attributes,e,b,g;if(c){b=c.length;for(e=0;e<b;e+=1){g=c[e].name;if(typeof f[g]==="function"){f[g]=null}}}c=f.childNodes;if(c){b=c.length;for(e=0;e<b;e+=1){purge(f.childNodes[e])}}}var g_xmlDoc=null;function loadXmlFile(f,c,b){var a=false;try{if(window.ActiveXObject){g_xmlDoc=new ActiveXObject("Microsoft.XMLDOM");g_xmlDoc.async=false;g_xmlDoc.load(f);c();a=true}else{if(document.implementation&&document.implementation.createDocument){g_xmlDoc=document.implementation.createDocument("","",null);if(typeof b==="undefined"){g_xmlDoc.async=false}else{if(typeof b==="boolean"){if(b){g_xmlDoc.async=true}else{g_xmlDoc.async=false}}}if(g_xmlDoc.async){g_xmlDoc.onload=c;g_xmlDoc.load(f)}else{g_xmlDoc.load(f);c()}a=true}else{BLK.EBIZ.trace("File load not supported.");g_xmlDoc=null;a=false}}}catch(d){if(typeof d.message==="undefined"){BLK.EBIZ.trace("Could not create XML document.")}else{BLK.EBIZ.trace(d.message)}a=false}return a}function locationReplaceIE5(a){this.iframeRef.setAttribute("src",a);return true}function createIframeRPC(b){var a=document.getElementsByTagName("body")[0];var c=document.createElement("iframe");c.setAttribute("id",b);a.appendChild(c);if(typeof c.document!=="undefined"&&typeof c.contentDocument==="undefined"&&typeof c.contentWindow==="undefined"){a.removeChild(c);var d='<iframe id="iframeRPC"></iframe>';a.innerHTML+=d;c=document.getElementById(b);c.contentWindow={};c.contentWindow.document={};c.contentWindow.document.location={};c.contentWindow.document.location.iframeRef=c;c.contentWindow.document.location.replace=locationReplaceIE5}c.style.position="absolute";c.style.left="-1500em";c.style.top="0";c.style.width="0";c.style.height="0";c.setAttribute("tabIndex","-1");a=null;c=null;return true}function executeIframeRPC(b,a){var c=document.getElementById(b);var d=null;if(typeof c.contentDocument!=="undefined"){d=c.contentDocument}else{if(typeof c.contentWindow!=="undefined"){d=c.contentWindow.document}else{c=null;return false}}d.location.replace(a);c=null;return true}function createIframeLayer(b,c){var a=document.createElement("iframe");a.tabIndex="-1";a.src="javascript:false;";a.className="iframeOverSelectElements";b.parentNode.appendChild(a);a.style.position="absolute";if(typeof c!=="undefined"){a.style.zIndex=c}a.style.border="none";a.style.left=b.offsetLeft+"px";a.style.top=b.offsetTop+"px";a.style.width=b.offsetWidth+"px";a.style.height=b.offsetHeight+"px"}function removeIframeLayer(b){var a=b.parentNode.getElementsByTagName("iframe");while(a.length>0){a[0].parentNode.removeChild(a[0])}}var g_xmlHttpReqObj=null;var g_ajaxCallbackFn=null;function ajaxResponse(){if(g_xmlHttpReqObj.readyState===4){if(g_xmlHttpReqObj.status===200||g_xmlHttpReqObj.status===304){if(typeof g_ajaxCallbackFn!=="undefined"){g_ajaxCallbackFn()}else{alert("Callback function not specified.")}}else{if(g_xmlHttpReqObj.status===401){alert("Access unauthorized.")}else{if(g_xmlHttpReqObj.status===403){alert("Access forbidden.")}else{if(g_xmlHttpReqObj.status===404){alert("Requested URL not found.")}else{alert("Request failed: "+g_xmlHttpReqObj.statusText)}}}}}}function getXmlHttpReqObj(){var a=null;try{a=new XMLHttpRequest()}catch(d){try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(c){try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){a=null}}}return a}function ajaxRequest(g,d,f){g_xmlHttpReqObj=getXmlHttpReqObj();if(g_xmlHttpReqObj===null){alert("Cannot complete request.");return false}g_xmlHttpReqObj.onreadystatechange=ajaxResponse;var e="requestId="+new Date().getTime();if(f.toLowerCase()==="get"){var a;if(d===""){a=g+"?"+e}else{a=g+"?"+e+d}try{g_xmlHttpReqObj.open("GET",a,true);g_xmlHttpReqObj.send(null)}catch(c){if(typeof c.message==="undefined"){window.alert(c)}else{window.alert(c.message)}}}else{if(d===""){d=e}else{d=e+d}try{g_xmlHttpReqObj.setRequestHeader("content-type","application/x-www-form-urlencoded");g_xmlHttpReqObj.open("POST",g,true);g_xmlHttpReqObj.send(d)}catch(b){if(typeof b.message==="undefined"){window.alert(b)}else{window.alert(b.message)}}}return true}if(typeof Ajax==="undefined"){var Ajax=function(c,h){var f=null;var e=null;var b=true;var g=this;var a=function(i,j){e=i;b=j};var d=function(){f=null;try{f=new XMLHttpRequest()}catch(k){try{f=new ActiveXObject("Msxml2.XMLHTTP")}catch(j){try{f=new ActiveXObject("Microsoft.XMLHTTP")}catch(i){f=null}}}return f};this.makeAjaxRequest=function(o,p,j){f=d();if(f===null){return false}f.onreadystatechange=this.getAjaxResponse;var q=randomBetween(10001,99999);var r=randomBetween(10001,99999);var m=q+"_"+r;var n="requestId="+m;if(j.toLowerCase()==="get"){var l;if(p===""){l=o+"?"+n}else{l=o+"?"+n+p}try{f.open("GET",l,true);f.send(null)}catch(k){if(typeof k.message==="undefined"){alert("Exception - Open/Send\n\nMethod: GET\nMessage: "+k)}else{alert("Exception - Open/Send\n\nMethod: GET\nName: "+k.name+"\nMessage: "+k.message)}return false}}else{if(p===""){p=n}else{p=n+p}try{f.open("POST",o,true);f.setRequestHeader("content-type","application/x-www-form-urlencoded");f.setRequestHeader("content-length",p.length);f.setRequestHeader("connection","close");f.send(p)}catch(i){if(typeof i.message==="undefined"){alert("Exception - Open/Send\n\nMethod: POST\nMessage: "+i)}else{alert("Exception - Open/Send\n\nMethod: POST\nName: "+i.name+"\nMessage: "+i.message)}return false}}return true};this.getAjaxResponse=function(){if(f.readyState===4){if(f.status===200||f.status===304){if(typeof e==="function"){if(b){e(f.responseXML)}else{e(f.responseText)}}else{alert("Callback function not specified.")}}else{if(f.status===301){alert("Moved permanently.")}else{if(f.status===307){alert("Temporary redirect.")}else{if(f.status===401){alert("Access unauthorized.")}else{if(f.status===403){alert("Access forbidden.")}else{if(f.status===404){alert("Requested URL not found.")}else{if(f.statusText===""||f.statusText===null){alert("Request failed.")}else{alert("Request failed: "+f.statusText)}}}}}}}}};a(c,h)}}if(typeof createCookie==="undefined"){var createCookie=function(c,d,e){var a="";if(e){var b=new Date();b.setTime(b.getTime()+(e*24*60*60*1000));a="; expires="+b.toGMTString()}else{a=""}document.cookie=c+"="+d+a+"; path=/"}}if(typeof readCookie==="undefined"){var readCookie=function(b){var e=b+"=";var a=document.cookie.split(";");var d=0;for(d=0;d<a.length;d++){var f=a[d];while(f.charAt(0)===" "){f=f.substring(1,f.length)}if(f.indexOf(e)===0){return f.substring(e.length,f.length)}}return null}}if(typeof eraseCookie==="undefined"){var eraseCookie=function(a){createCookie(a,"",-1)}}if(typeof get_cookie==="undefined"){var get_cookie=function(c){var d=document.cookie.indexOf(c+"=");var a=d+c.length+1;if((!d)&&(c!=document.cookie.substring(0,c.length))){return null}if(d==-1){return null}var b=document.cookie.indexOf(";",a);if(b==-1){b=document.cookie.length}return unescape(document.cookie.substring(a,b))}}if(typeof SetCookie==="undefined"){var SetCookie=function(f,d,a){var c=f+"="+d;var b=new Date();b.setDate(b.getDate()+a);var e=b.toGMTString();c+=";expires="+e;document.cookie=c}}if(typeof GetCookie==="undefined"){var GetCookie=function GetCookie(a){var d=document.cookie.split(";");var b=0;for(b=0;b<d.length;b++){var c=d[b].split("=");var f=Trim(c[0]);var e=c[1];if(f===a){return e}}return""}}if(typeof Trim==="undefined"){var Trim=function(a){if(a===""||a===null){return""}else{return a.replace(/^\s*/,"").replace(/\s*$/,"")}}}if(typeof fillAttributes==="undefined"){var fillAttributes=function(b,a){if(document.forms.frmEditContent){if(document.forms.frmEditContent["estudioId"]&&document.forms.frmEditContent["username"]){document.forms.frmEditContent["estudioId"].value=b;document.forms.frmEditContent["username"].value=a;document.forms.frmEditContent.submit()}}}}BLK.EBIZ.CheckAll={className:"checkAllGadget",setup:function(){var b=getElementsByClassName(document.body,this.className);var c=null;for(var a=0;a<b.length;a++){if(b[a].type!=="checkbox"){continue}if(b[a].name===null){continue}var d=b[a].name;b[a].onclick=function(e){return function(i){if(typeof i==="undefined"){i=window.event}var g=getEventTarget(i);var k=null;var h="";var f=0;if(this.checked){k=document.getElementsByTagName("input");for(f=0;f<k.length;f++){if(k[f]===this){continue}if(k[f].type.toLowerCase()!=="checkbox"){continue}if(k[f].name!==e){continue}h=k[f].getAttribute("disabled");if(h===true||h==="disabled"){continue}k[f].checked=true}}else{k=document.getElementsByTagName("input");for(f=0;f<k.length;f++){if(k[f]===this){continue}if(k[f].type.toLowerCase()!=="checkbox"){continue}if(k[f].name!==e){continue}h=k[f].getAttribute("disabled");if(h===true||h==="disabled"){continue}k[f].checked=false}}return true}}(d)}}};BLK.EBIZ.readyForFileName=function(c){var b;var a=/\\/g;b=c.replace(a,"\\\\");return b};BLK.EBIZ.FileUpload=function(){this.setup=function(){var f=getElementsByClassName(document.body,"fileUploadGadget");var d=0;var c=0;for(d=0;d<f.length;d++){var b=getElementsByClassName(f[d],"fileUploadGadgetFile");var e=getElementsByClassName(f[d],"fileUploadGadgetText");var a=getElementsByClassName(f[d],"fileUploadGadgetButton");if(!(b.length===1&&e.length===1&&a.length===1)){b=null;e=null;a=null;continue}var g=e[0];for(c=0;c<b.length;c++){b[c].onchange=(function(h){return function(i){if(typeof i==="undefined"){i=window.event}var j=getEventTarget(i);h.value=this.value;h.focus()}}(g))}b=null;e=null;a=null;g=null}f=null};this.setup()};BLK.EBIZ.FileUpload2=function(b){var c=this;var a="~";this.invalidate=function(){var e=getElementsByClassName(document.body,"fileUploadGadget");var d=0;for(d=0;d<e.length;d++){changeClassMultiple(e[d],["itemDefault","itemLoading","itemSuccess"],"itemError")}};this.reset=function(){var l=0;var h=0;var g=0;var e="";var p=null;var f=null;var n=null;var r=null;var o=getElementsByClassName(document.body,"fileUploadGadget");for(l=0;l<o.length;l++){changeClassMultiple(o[l],["itemError","itemLoading","itemSuccess"],"itemDefault");var m=getElementsByClassName(o[l],"fileUploadGadgetUploadDate");for(h=0;h<m.length;h++){m[h].innerHTML="NA"}var d=getElementsByClassName(o[l],"fileUploadGadgetBrowse");for(h=0;h<d.length;h++){d[h].value="";var q=document.getElementById(d[h].fileUploadGadgetFileNameId);q.innerHTML="NA"}f=o[l];n=getElementsByClassName(f,"file_input_div");for(g=0;g<n.length;g++){n[g].style.visibility="visible";changeClassMultiple(n[g],["buttonWhite","buttonBlue"],"buttonBlue")}r=getElementsByClassName(f,"file_input_button");for(g=0;g<r.length;g++){r[g].value="Upload Report"}}};this.setup=function(){var l=0;var k=0;var g="";var n=null;var m=getElementsByClassName(document.body,"fileUploadGadget");for(l=0;l<m.length;l++){changeClassMultiple(m[l],["itemError","itemLoading","itemSuccess"],"itemDefault");var h=getElementsByClassName(m[l],"fileUploadGadgetForm");var t=getElementsByClassName(m[l],"fileUploadGadgetDatum");var q=getElementsByClassName(m[l],"fileUploadGadgetFrame");var r=getElementsByClassName(m[l],"fileUploadGadgetFileName");var e=getElementsByClassName(m[l],"fileUploadGadgetAnalysisDate");var d=getElementsByClassName(m[l],"fileUploadGadgetUploadedDate");var s=getElementsByClassName(m[l],"fileUploadGadgetButton");var f=getElementsByClassName(m[l],"fileUploadGadgetBrowse");if(!(h.length===1&&q.length===1&&r.length===1&&e.length===1&&d.length===1&&s.length===1&&f.length===1)){window.alert("Error in file upload markup. . .");BLK.EBIZ.trace2("Error in file upload markup. . .");continue}for(k=0;k<f.length;k++){f[k].fileUploadGadgetFileNameId=r[0].id;var p=function(i){this.form.reset()};f[k].onclick=p;var o=(function(u,i,j){return function(I){if(typeof I==="undefined"){I=window.event}var y=getEventTarget(I);if(typeof i==="function"){i()}var D=document.getElementById(this.fileUploadGadgetFileNameId);D.innerHTML=this.value;BLK.EBIZ.trace2("on user select file name: "+this.value);var E=document.getElementById(u);var J=0;var H=0;var G=0;if(E){changeClassMultiple(E,["itemError","itemSuccess","itemDefault"],"itemLoading");var F=getElementsByClassName(E,"file_input_div");for(H=0;H<F.length;H++){F[H].style.visibility="hidden"}}var w="";var M="";var L="";var v=this.value;var C=getElementsByClassName(E,"fileUploadGadgetForm");if(C.length===1){w=C[0].action}else{window.alert("Server program not specified. . .")}var B=null;var x=null;var A=false;B=getElementsByClassName(E,"fileUploadGadgetDatum");for(J=0,A=false;J<B.length;J++){if(B[J].name==="fileName"){A=true;break}}if(A){x=B[J].parentNode;x.removeChild(B[J])}B=getElementsByClassName(E,"fileUploadGadgetDatum");for(J=0,A=false;J<B.length;J++){if(B[J].name==="id"){A=true;break}}if(A){x=B[J].parentNode;x.removeChild(B[J])}B=getElementsByClassName(E,"fileUploadGadgetDatum");for(J=0,A=false;J<B.length;J++){if(B[J].name==="callback"){A=true;break}}if(A){x=B[J].parentNode;x.removeChild(B[J])}var z=null;z=document.createElement("input");z.type="hidden";z.name="fileName";z.value=BLK.EBIZ.readyForFileName(this.value);z.className="fileUploadGadgetDatum";C[0].appendChild(z);z=document.createElement("input");z.type="hidden";z.name="id";z.value=u;z.className="fileUploadGadgetDatum";C[0].appendChild(z);z=document.createElement("input");z.type="hidden";z.name="callback";z.value="BLK.EBIZ.FileUpload2.callbackFxn";z.className="fileUploadGadgetDatum";C[0].appendChild(z);try{this.form.submit()}catch(K){window.alert("Exception on SubmitName: "+K.name+"\nMessage: "+K.message)}}}(m[l].id,BLK.EBIZ.FileUpload2.onUserSelectedFile,c));f[k].onchange=o}}};if(typeof b.onUploadSuccess==="function"){BLK.EBIZ.FileUpload2.onUploadSuccess=b.onUploadSuccess}if(typeof b.onUploadFailure==="function"){BLK.EBIZ.FileUpload2.onUploadFailure=b.onUploadFailure}if(typeof b.onUserSelectedFile==="function"){BLK.EBIZ.FileUpload2.onUserSelectedFile=b.onUserSelectedFile}this.setup()};BLK.EBIZ.FileUpload2.callbackFxn=function(p){var l=/~/g;var q=p.content.message;q=q.replace(l,"\n");q=q+"\n";var m=new Date();var n=m.toLocaleDateString();var d=0;var c=0;var b=0;var g=null;var a=null;var f=null;var e=null;var o=null;var h=null;if(p.content.result==="SUCCESS"){a=document.getElementById(p.content.id);if(a){changeClass(a,"itemLoading","itemSuccess");f=getElementsByClassName(a,"fileUploadGadgetUploadDate");for(c=0;c<f.length;c++){f[c].innerHTML=n}if(typeof BLK.EBIZ.FileUpload2.onUploadSuccess==="function"){BLK.EBIZ.FileUpload2.onUploadSuccess(p)}e=getElementsByClassName(a,"file_input_div");for(b=0;b<e.length;b++){e[b].style.visibility="visible";changeClassMultiple(e[b],["buttonBlue","buttonWhite"],"buttonWhite")}h=getElementsByClassName(a,"file_input_button");for(b=0;b<h.length;b++){h[b].value="Replace Report"}}else{window.alert("Report id not found. . .")}}else{a=document.getElementById(p.content.id);if(a){changeClass(a,"itemLoading","itemError");f=getElementsByClassName(a,"fileUploadGadgetUploadDate");for(c=0;c<f.length;c++){f[c].innerHTML=q}if(typeof BLK.EBIZ.FileUpload2.onUploadFailure==="function"){BLK.EBIZ.FileUpload2.onUploadFailure(p)}e=getElementsByClassName(a,"file_input_div");for(b=0;b<e.length;b++){e[b].style.visibility="visible";changeClassMultiple(e[b],["buttonWhite","buttonBlue"],"buttonBlue")}h=getElementsByClassName(a,"file_input_button");for(b=0;b<h.length;b++){h[b].value="Upload Report"}}else{window.alert("Report id not found. . .")}}};BLK.EBIZ.FileUpload2.onUploadSuccess=function(){};BLK.EBIZ.FileUpload2.onUploadFailure=function(){};BLK.EBIZ.FileUpload2.onUserSelectedFile=function(){};BLK.EBIZ.InformationBubble=function(u,y,t,l){if(typeof window[l]==="undefined"){window.alert("Data array does not exist. . .");return false}var w=y;if(w===""){window.alert("Subscriber name not given. . .");return false}if(typeof window[l][t]==="undefined"){window.alert("Array index out of bounds. . .");return false}var x=[];var p=[];var o="";var s="";var m="";var q;var n;x=window[l][t].split("|");q=document.createElement("div");q.id="subscribedToDocs";q.className="bubbleGadget subscribedToDocs";n="<div class='bubbleHeader'><h3>"+w+"</h3><h5>is already subscribed to the following document:</h5></div><div class='bubbleBody'><div class='tableGadget highlight alternate'><div class='tableGadgetHeader'><span class='tableGadgetCaption'></span></div><div class='tableGadgetBody'><table border='0' cellspacing='0' cellpadding='0' class='altRowsGrid rollOver'><thead><tr><th class='docNameCol'>Document</th><th class='dateCol'>Subscription Date</th></tr></thead><tbody>";for(var v=0;v<x.length;v++){p=x[v].split("~");o=p[0];s=p[1];n+="<tr><td>"+o+"</td><td class='right'>"+s+"</td></tr>"}n+="</tbody></table></div></div></div><div class='bubbleAction'><button class='buttonOK' title='Close. . .' onclick='BLK.EBIZ.InformationBubble.removeBubbles();'>Close</button></div>";q.innerHTML=n;document.body.appendChild(q);q.style.position="absolute";q.style.display="block";q.style.zIndex="999999";q.style.visibility="visible";var b=10;var g=25;var k=parseInt(q.offsetWidth,10);var f=parseInt(q.offsetHeight,10);var d=getViewportSize();var a=getScrollingPosition();var i=parseInt(u.offsetHeight,10);var c=parseInt(u.offsetWidth,10);var e=getPosition(u);var r=0;var h=0;q.style.visibility="hidden";if((k+b)>d[0]){h=(a[0]+parseInt((d[0]/2),10)-parseInt((q.offsetWidth/2),10))}else{if((e[0]+k)>(d[0]+a[0])){h=e[0]-((e[0]+k)-(d[0]+a[0]-g))}else{if(e[0]<a[0]){h=(a[0]+g+b)}else{h=(e[0]+b)}}}q.style.left=h+"px";if((f+b)>d[1]){r=(a[1]+parseInt((d[1]/2),10)-parseInt((q.offsetHeight/2),10))}else{if((e[1]+f+i)>(d[1]+a[1])){r=e[1]-((e[1]+f+i)-(d[1]+a[1]))}else{if((e[1]-f-i)<a[1]){r=(e[1]+i+b)}else{r=(e[1]-f-b)}}}q.style.top=r+"px";q.style.visibility="visible";if(typeof BLK.EBIZ.Table!=="undefined"){BLK.EBIZ.Table.setup2()}return false};BLK.EBIZ.InformationBubble.removeBubbles=function(){var b=getElementsByClassName(document.body,"bubbleGadget");var a=null;var c=0;for(c=0;c<b.length;c++){a=b[c].parentNode;a.removeChild(b[c])}};BLK.EBIZ.InformationBubble.removeBubblesOnBodyClick=function(c){if(typeof c==="undefined"){c=window.event}var a=getEventTarget(c);if(findClass(a,"infoBubbleLink")){return false}var b=a;var d=false;while(b!==null){if(findClass(b,"bubbleGadget")){d=true}b=b.parentNode}if(d){return false}BLK.EBIZ.InformationBubble.removeBubbles();return false};BLK.EBIZ.loadXmlFile=function(d,h,c){var b=false;var f=BLK.EBIZ.loadXmlFile;try{if(window.ActiveXObject){arguments.callee.xmlDoc=new ActiveXObject("Microsoft.XMLDOM");arguments.callee.xmlDoc.async=false;arguments.callee.xmlDoc.load(d);if(arguments.callee.xmlDoc.documentElement===null){throw {name:"Not found",message:"Document element not found."}}h();b=true}else{if(document.implementation&&document.implementation.createDocument){f.xmlDoc=document.implementation.createDocument("","",null);if(f.xmlDoc===null){throw {name:"Not implemented",message:"Could not create document."}}f.xmlDoc.async=false;if(f.xmlDoc.async){f.xmlDoc.onload=h;f.xmlDoc.load(d);b=true}else{try{f.xmlDoc.load(d);if(f.xmlDoc.documentElement===null){throw {name:"Not found",message:"Document element not found."}}h();b=true}catch(j){try{var a=new window.XMLHttpRequest();a.open("GET",d,false);a.send(null);f.xmlDoc=a.responseXML.documentElement;h();b=true}catch(i){window.status=i.message;b=false}}}}else{throw {name:"Not supported",message:"File load not supported."}}}}catch(g){if(typeof g.message==="undefined"){window.status="Could not create XML document."}else{window.status=g.message}f.xmlDoc=null;b=false}return b};BLK.EBIZ.loadXmlFile.xmlDoc=null;BLK.EBIZ.ModalDialog=function(){var a=this;this.configuration={width:600,height:400};this.setup=function(){var e=getElementsByClassName(document.body,"modalDialogGadget");var b=null;for(var d=0;d<e.length;d++){b=getElementsByClassName(e[d],"modalDialogGadgetTitle");for(var c=0;c<b.length;c++){b[c].onclick=function(f){return function(i){var h=false;if(typeof i==="undefined"){h=true;i=window.event}var g=getEventTarget(i);a.createDialog(f,h);return false}}(e[d])}}return true};this.createDialog=function(K,L){var D=this;var o=document.getElementsByTagName("body")[0];var k=document.getElementsByTagName("select");for(var J=0;J<k.length;J++){k[J].disabled="disabled"}var g=[0,0];var N=0;var n=0;var p=getPageDimensions();var m=getViewportSize();if(m[1]>p[1]){p[1]=m[1]}var E=document.createElement("div");E.onclick=function(i){if(typeof i==="undefined"){i=window.event}var q=getEventTarget(i);D.closeDialog();return false};E.onkeyup=function(q){if(typeof q==="undefined"){q=window.event}var R=getEventTarget(q);var i;if(q.keyCode){i=q.keyCode}else{i=q.which}if(i===27){D.closeDialog();return false}else{return true}};E.setAttribute("id","modalDialogGadgetDropSheet");E.style.position="absolute";E.style.left="0";E.style.top="0";E.style.width=p[0]+"px";E.style.height=p[1]+"px";o.appendChild(E);var M=null;var P=null;var w=null;var B=null;var A=null;var b=null;var H=null;var s=null;var r=null;var O=null;var c=null;var h;var l;var v;var C;var I;var z;var u;var d;var x;var f=99998;if(L){h=document.createElement("iframe");h.style.position="absolute";h.style.border="0";h.style.zIndex=f;h.style.backgroundColor="lime";h.style.opacity="1";h.style.filter="alpha(opacity=100)";h.style.filter="mask()";h.className="modalDialogGadgetIFrame"}l=document.createElement("div");l.className="modalDialogGadgetContainer";l.style.position="absolute";l.style.visibility="hidden";l.style.zIndex=f+1;C=document.createElement("div");C.className="modalDialogGadgetContainerHeader";d=document.createElement("div");d.className="modalDialogGadgetContainerHeaderLeft";s=document.createElement("span");s.className="modalDialogGadgetContainerHeaderTitle";w=document.createTextNode("Alert");s.appendChild(w);d.appendChild(s);C.appendChild(d);x=document.createElement("div");x.className="modalDialogGadgetContainerHeaderRight";b=document.createElement("input");b.setAttribute("type","button");b.className="modalDialogGadgetContainerHeaderCloseButton";b.setAttribute("value","X");b.title="Close Alert";b.onclick=function(i){if(typeof i==="undefined"){i=window.event}var q=getEventTarget(i);D.closeDialog();return false};x.appendChild(b);C.appendChild(x);u=document.createElement("div");u.style.clear="both";C.appendChild(u);v=document.createElement("div");v.className="modalDialogGadgetContainerBody";var y=getElementsByClassName(K,"modalDialogGadgetBody");var t="";for(var G=0;G<y.length;G++){t+=y[G].innerHTML}v.innerHTML=t;I=document.createElement("div");I.className="modalDialogGadgetContainerFooter";b=document.createElement("input");b.setAttribute("type","button");b.className="modalDialogGadgetContainerFooterCloseButton";b.setAttribute("value","Close Alert");b.title="Close Alert";b.onclick=function(i){if(typeof i==="undefined"){i=window.event}var q=getEventTarget(i);D.closeDialog();return false};I.appendChild(b);l.appendChild(C);l.appendChild(v);l.appendChild(I);o.appendChild(l);g=getScrollingPosition();m=getViewportSize();l.style.visibility="visible";var Q=parseInt(l.offsetWidth,10);var j=parseInt(l.offsetHeight,10);l.style.visibility="hidden";var e=g[0]+(m[0]/2)-(Q/2);var F=g[1]+(m[1]/2)-(j/2);l.style.left=e+"px";l.style.top=F+"px";if(L){h.style.top=F+"px";h.style.left=e+"px";h.style.width=Q+"px";h.style.height=j+"px";l.parentNode.insertBefore(h,l)}l.style.visibility="visible"};this.closeDialog=function(){var g=getElementsByClassName(document.body,"modalDialogGadgetContainer");var c=null;var e=0;for(e=0;e<g.length;e++){c=g[e].parentNode;c.removeChild(g[e])}var b=getElementsByClassName(document.body,"modalDialogGadgetIFrame");for(e=0;e<b.length;e++){c=b[e].parentNode;c.removeChild(b[e])}var f=document.getElementById("modalDialogGadgetDropSheet");f.parentNode.removeChild(f);var d=document.getElementsByTagName("select");for(e=0;e<d.length;e++){d[e].disabled=""}};this.setup()};BLK.EBIZ.ModalDialog3=function(a){var b=this;this.configuration={width:700,height:300,minWidth:128,minHeight:128,maxWidth:1024,maxHeight:768};this.setup=function(){var f=0;var e=0;var c=0;var h=null;var d=getElementsByClassName(document.body,"modalDialogLink");for(f=0;f<d.length;f++){if(d[f].nodeName.toLowerCase()!=="a"){continue}if(d[f].rel===""){continue}h=document.getElementById(d[f].rel);if(h===null){continue}if(h.nodeName.toLowerCase()!=="div"){continue}if(!findClass(h,"modalDialogDatum")){continue}d[f].onclick=(function(j,k,i){return function(q){var p=false;if(typeof q==="undefined"){p=true;q=window.event}var n=getEventTarget(q);if(typeof i==="function"){i()}var o=0;var m=0;var s=[];if(this.rev===""){o=-1;m=-1}else{s=this.rev.split(",");if(s.length===2){if(isNaN(parseInt(s[0],10))||isNaN(parseInt(s[1],10))){o=-1;m=-1}else{o=parseInt(s[0],10);m=parseInt(s[1],10);if(o<k.minWidth||m<k.minHeight){o=-1;m=-1}else{if(o>k.maxWidth||m>k.maxHeight){o=-1;m=-1}else{o=parseInt(s[0],10);m=parseInt(s[1],10)}}}}else{o=-1;m=-1}}var r=this.title;b.createDialog(j,p,o,m,r);return false}}(h,this.configuration,a))}var l=function(i){if(typeof i==="undefined"){i=window.event}try{var r=getElementsByClassName(document.body,"modalDialogGadgetContainer");var n=document.getElementById("modalDialogGadgetDropSheet");if(r.length<1){return false}if(n===null){return false}var t=r[0];var m=getPageDimensions();var p=getViewportSize();var o=getScrollingPosition();var v=t.offsetHeight;var s=t.offsetWidth;var k=o[0]+(p[0]/2)-(t.offsetWidth/2);var j=o[1]+(p[1]/2)-(t.offsetHeight/2);t.style.left=k+"px";t.style.top=j+"px";n.style.width=m[0]+"px";n.style.height=m[1]+"px"}catch(q){var u="ModalDialog3 - error: name="+q.name+",message="+q.message;BLK.EBIZ.trace2(u)}return true};var g=(typeof document.all!=="undefined"&&typeof window.opera==="undefined"&&navigator.vendor!=="KDE");if(g){document.body.onscroll=l;window.onscroll=l;document.body.onresize=l}else{window.onscroll=l;window.onresize=l}return true};this.createDialog=function(N,O,c,d,D){var I=this;var r=document.getElementsByTagName("body")[0];var m=findClass(N,"modalDialogGadgetShowTitle");var j=findClass(N,"modalDialogGadgetShowCloseButton");var P=findClass(N,"modalDialogGadgetShowFooter");var k=[0,0];var R=0;var q=0;var t=getPageDimensions();var p=getViewportSize();if(p[1]>t[1]){t[1]=p[1]}var C=99997;var J=document.createElement("div");J.onclick=function(V){if(typeof V==="undefined"){V=window.event}var W=getEventTarget(V);I.closeDialog();return false};J.onkeyup=function(W){if(typeof W==="undefined"){W=window.event}var X=getEventTarget(W);var V;if(W.keyCode){V=W.keyCode}else{V=W.which}if(V===27){I.closeDialog();return false}else{return true}};J.setAttribute("id","modalDialogGadgetDropSheet");J.style.position="absolute";J.style.left="0";J.style.top="0";J.style.width=t[0]+"px";J.style.height=t[1]+"px";J.style.zIndex=C;r.appendChild(J);var Q=null;var T=null;var z=null;var G=null;var F=null;var e=null;var s=null;var L=null;var v=null;var u=null;var S=null;var f=null;var l;var o;var y;var H;var M;var E;var x;var g;var A;var i=C+1;if(O){l=document.createElement("iframe");l.style.position="absolute";l.style.border="0";l.style.zIndex=i;l.style.backgroundColor="lime";l.style.opacity="1";l.style.filter="alpha(opacity=100)";l.style.filter="mask()";l.className="modalDialogGadgetIFrame"}o=document.createElement("div");o.className="modalDialogGadgetContainer";o.style.position="absolute";o.style.visibility="hidden";o.style.zIndex=C+2;if(N.title!==""){if(document.getElementById(N.title)!==null){o.id=N.title+"Container"}}if(c>0){o.style.width=c+"px"}if(m||j){H=document.createElement("div");H.className="modalDialogGadgetContainerHeader";if(N.title!==""){if(document.getElementById(N.title)!==null){H.id=N.title+"ContainerHeader"}}if(m){g=document.createElement("div");g.className="modalDialogGadgetContainerHeaderLeft";v=document.createElement("span");v.className="modalDialogGadgetContainerHeaderTitle";z=document.createTextNode(D);v.appendChild(z);g.appendChild(v);H.appendChild(g)}if(j){A=document.createElement("div");A.className="modalDialogGadgetContainerHeaderRight";T=document.createElement("a");T.href="#nogo";T.className="modalDialogGadgetContainerHeaderCloseButton";T.title="Close";T.onclick=function(V){if(typeof V==="undefined"){V=window.event}var W=getEventTarget(V);I.closeDialog();return false};A.appendChild(T);H.appendChild(A)}x=document.createElement("div");x.style.clear="both";H.appendChild(x)}y=document.createElement("div");y.className="modalDialogGadgetContainerBody";if(d>0){y.style.height=d+"px"}var B=N;var w="";w=N.innerHTML;if(N.title!==""){if(document.getElementById(N.title)!==null){y.id=N.title+"ContainerBody"}}y.innerHTML=w;if(P){M=document.createElement("div");M.className="modalDialogGadgetContainerFooter";if(N.title!==""){if(document.getElementById(N.title)!==null){M.id=N.title+"ContainerFooter"}}T=document.createElement("a");T.href="#nogo";z=document.createTextNode("Close");T.appendChild(z);T.className="modalDialogGadgetContainerFooterCloseButton";T.title="Close";T.onclick=function(V){if(typeof V==="undefined"){V=window.event}var W=getEventTarget(V);I.closeDialog();return false};M.appendChild(T)}if(m||j){o.appendChild(H)}o.appendChild(y);if(P){o.appendChild(M)}r.appendChild(o);k=getScrollingPosition();p=getViewportSize();o.style.visibility="visible";var U=parseInt(o.offsetWidth,10);var n=parseInt(o.offsetHeight,10);o.style.visibility="hidden";var h=k[0]+(p[0]/2)-(U/2);var K=k[1]+(p[1]/2)-(n/2);o.style.left=h+"px";o.style.top=K+"px";if(O){l.style.top=K+"px";l.style.left=h+"px";l.style.width=U+"px";l.style.height=n+"px";o.parentNode.insertBefore(l,o)}o.style.visibility="visible"};this.closeDialog=function(){BLK.EBIZ.trace2("ModalDialog3.closeDialog - begin. . .");var e=false;var d=false;var c=false;var h=false;var f=getElementsByClassName(document.body,"modalDialogGadgetContainer");var l=null;var j=0;for(j=0;j<f.length;j++){d=true;l=f[j].parentNode;if(l){l.removeChild(f[j]);e=true;BLK.EBIZ.trace2("ModalDialog3.closeDialog - modalDialogGadgetContainer removed. . .")}}var k=getElementsByClassName(document.body,"modalDialogGadgetIFrame");for(j=0;j<k.length;j++){h=true;l=k[j].parentNode;if(l){l.removeChild(k[j]);c=true;BLK.EBIZ.trace2("ModalDialog3.closeDialog - modalDialogGadgetIFrame removed. . .")}}var g=document.getElementById("modalDialogGadgetDropSheet");if(g){g.parentNode.removeChild(g);BLK.EBIZ.trace2("ModalDialog3.closeDialog - modalDialogGadgetDropSheet removed. . .")}BLK.EBIZ.trace2("ModalDialog3.closeDialog - end. . .")};this.setup()};BLK.EBIZ.openControlModalWindow=function(c,f,g){var a=document.getElementById(c);if(a===null){return false}window.scrollTo(0,0);if(window.parent){window.parent.scrollTo(0,0)}try{window.top.scrollTo(0,0)}catch(i){window.status=i.message}var e={iframe:true,width:f,height:g,overlayCloseOnClick:true,opacity:0.8,position:"absolute",afterOpen:function(){var p=null;var m=null;p=document.createElement("div");p.id="modal_close_wrapper";m=document.createElement("a");m.href="#nogo";m.title="Close";m.id="modal_close_button";m.appendChild(document.createTextNode("Close"));m.onclick=function(){Control.Modal.close()};p.appendChild(m);$("modal_container").insertBefore(p,$("modal_container").firstChild);var l=document.getElementById("modal_container");var n=document.getElementById("modal_close_wrapper");var o=document.getElementById("modal_iframe");if(n&&o&&l){o.height=l.clientHeight-o.offsetTop-((l.offsetHeight-l.clientHeight)*2)}}};var h=new Control.Modal(c,e);var d=parseInt(f,10);var j=parseInt(g,10);var k=600;var b=400;if(isNaN(d)){d=k}else{if(d<=0){d=k}}if(isNaN(j)){j=b}else{if(j<=0){j=b}}h.options.width=d;h.options.height=j;h.open();return false};BLK.EBIZ.openControlModalWindow2=function(g,b,e){var a=document.getElementById(g);if(a===null){return false}var f={};f.iframe=true;f.overlayCloseOnClick=true;f.opacity=0.8;f.position="absolute";if(typeof b!=="undefined"&&typeof e!=="undefined"){f.width=b;f.height=e}Object.extend(Control.Modal,{center:function(j){if(!j._absolutized){j.setStyle({position:"absolute"});j._absolutized=true}var k=j.getDimensions();Position.prepare();var i=(Position.deltaX+Math.floor((Control.Modal.getWindowWidth()-k.width)/2));var h=(Position.deltaY+((Control.Modal.getWindowHeight()>k.height)?Math.floor((Control.Modal.getWindowHeight()-k.height)/2):0));j.setStyle({top:((k.height<=Control.Modal.getDocumentHeight())?((h!=null&&h>0)?h:h)+"px":h+"px"),left:((k.width<=Control.Modal.getDocumentWidth())?((i!=null&&i>0)?i:"0")+"px":0)})}});var d=new Control.Modal(g,f);d.options.zIndex=99999;var c=document.getElementById("modal_container");if(c!==null){c.style.backgroundColor="transparent";c.style.image="none";c.style.border="none"}d.open();return false};BLK.EBIZ.modalWindowGadget={setupThis:function(c,b,a){BLK.EBIZ.openControlModalWindow2(c,b,a);return false},setupAll:function(){var b=getElementsByClassName(document.body,"modalWindowGadget");for(var a=0;a<b.length;a++){if(b[a].nodeName.toLowerCase()!=="a"){continue}b[a].onclick=function(c){if(typeof c==="undefined"){c=window.event}var d=getEventTarget(c);BLK.EBIZ.openControlModalWindow2(this.id,this.rel,this.rev);return false}}}};BLK.EBIZ.MoreInfo=function(a,c){var b=this;this.className="moreInfoGadget";this.classNameAll="moreInfoGadgetAll";this.expandText="Show. . .";this.collapseText="Hide. ..";if(arguments.length===2){if(typeof a==="string"&&typeof c==="string"){this.expandText=a;this.collapseText=c}}this.setup=function(){var j=getElementsByClassName(document.body,this.className);var h="";var e=null;var f=null;var g=0;var k=null;for(g=0;g<j.length;g++){h=j[g].getAttribute("rel");if(h===this.classNameAll){continue}e=document.getElementById(h);if(e===null){continue}e.style.display="none";var d=j[g].parentNode;f=document.createElement("a");f.href="#null";f.className="moreInfoGadgetCtrl moreInfoGadgetShow";f.title=this.expandText;f.setAttribute("rel",h);f.onclick=function(i){return function(l){if(typeof l==="undefined"){l=window.event}var q=getEventTarget(l);var n=document.getElementById(this.rel);var u=null;var r=null;var m=0;var s=0;var o=null;var t=null;var p=null;if(findClass(this,"moreInfoGadgetShow")){changeClass(this,"moreInfoGadgetShow","moreInfoGadgetHide");n.style.display="block";this.title=i.collapseText;u=getElementsByClassName(document.body,"moreInfoGadgetShow");m=0;for(g=0;g<u.length;g++){if(u[g].getAttribute("rel")==="moreInfoGadgetAll"){continue}m++}if(m===0){o=getElementsByClassName(document.body,"moreInfoGadgetCtrl");for(g=0;g<o.length;g++){if(o[g].getAttribute("rel")!=="moreInfoGadgetAll"){continue}changeClass(o[g],"moreInfoGadgetShow","moreInfoGadgetHide");o[g].title=i.collapseText;p=getNextSibling(o[g]);p.firstChild.nodeValue=i.collapseText}}}else{changeClass(this,"moreInfoGadgetHide","moreInfoGadgetShow");n.style.display="none";this.title=i.expandText;r=getElementsByClassName(document.body,"moreInfoGadgetHide");s=0;for(g=0;g<r.length;g++){if(r[g].getAttribute("rel")==="moreInfoGadgetAll"){continue}s++}if(s===0){o=getElementsByClassName(document.body,"moreInfoGadgetCtrl");for(g=0;g<o.length;g++){if(o[g].getAttribute("rel")!=="moreInfoGadgetAll"){continue}changeClass(o[g],"moreInfoGadgetHide","moreInfoGadgetShow");o[g].title=i.expandText;p=getNextSibling(o[g]);p.firstChild.nodeValue=i.expandText}}}return false}}(this);d.insertBefore(f,d.firstChild)}j=getElementsByClassName(document.body,this.className);h="";e=null;f=null;for(g=0;g<j.length;g++){h=j[g].getAttribute("rel");if(h!==this.classNameAll){continue}e=document.getElementById(h);if(e!==null){continue}while(j[g].childNodes.length>0){j[g].removeChild(j[g].childNodes[0])}k=document.createTextNode(this.expandText);j[g].appendChild(k);d=j[g].parentNode;f=document.createElement("a");f.href="#null";f.className="moreInfoGadgetCtrl moreInfoGadgetShow";f.title=this.expandText;f.setAttribute("rel",this.classNameAll);f.onclick=function(i){return function(l){if(typeof l==="undefined"){l=window.event}var s=getEventTarget(l);var m=document.getElementById(this.rel);var q=0;var u=null;var p=null;var t="";var r=null;var n=null;var o=null;if(findClass(this,"moreInfoGadgetShow")){changeClass(this,"moreInfoGadgetShow","moreInfoGadgetHide");this.title=i.collapseText;o=getNextSibling(this);while(o.childNodes.length>0){o.removeChild(o.childNodes[0])}u=document.createTextNode(i.collapseText);o.appendChild(u);p=getElementsByClassName(document.body,i.className);for(q=0;q<p.length;q++){t=p[q].getAttribute("rel");if(t===i.classNameAll){continue}r=document.getElementById(t);if(r===null){continue}r.style.display="block"}n=getElementsByClassName(document.body,"moreInfoGadgetCtrl");for(q=0;q<n.length;q++){if(n[q].getAttribute("rel")==="moreInfoGadgetAll"){continue}changeClass(n[q],"moreInfoGadgetShow","moreInfoGadgetHide");n[q].title=i.collapseText}}else{changeClass(this,"moreInfoGadgetHide","moreInfoGadgetShow");this.title=i.expandText;o=getNextSibling(this);while(o.childNodes.length>0){o.removeChild(o.childNodes[0])}u=document.createTextNode(i.expandText);o.appendChild(u);p=getElementsByClassName(document.body,i.className);for(q=0;q<p.length;q++){t=p[q].getAttribute("rel");if(t===i.classNameAll){continue}r=document.getElementById(t);if(r===null){continue}r.style.display="none"}n=getElementsByClassName(document.body,"moreInfoGadgetCtrl");for(q=0;q<n.length;q++){if(n[q].getAttribute("rel")==="moreInfoGadgetAll"){continue}changeClass(n[q],"moreInfoGadgetHide","moreInfoGadgetShow");n[q].title=i.expandText}}return false}}(this);d.insertBefore(f,d.firstChild)}};this.setup()};BLK.EBIZ.Table={idIndex:0,classType:"table",buildGadgetId:function(a){return this.classType+"_"+String(a)},setupThis:function(a){var c=true;var b=document.getElementById(a);if(b===null){return}if(c){c=this.setTableClassNames(a)}if(c){c=this.createShowHideEventHandlers(a)}if(c){this.createSortEventHandlers(a);this.createDeleteRowEventHandlers(a);this.sortInitial(a);this.setAlternatingRows(a);this.setRowHighlight(a);this.setRowSelection(a);this.tableHasRows(a);this.setTableScrollBars(a);this.calculateColumnSum(a)}},setup:function(){this.setup2()},setup2:function(){var c=0;var e=null;var d=0;var a="";var b=true;e=getElementsByClassName(document.body,"tableGadget");d=e.length;for(c=0;c<d;c++){b=true;this.idIndex++;if(e[c].id===""){a=this.buildGadgetId(this.idIndex);e[c].id=a}else{a=e[c].id}if(b){b=this.setTableClassNames(a)}if(b){b=this.createShowHideEventHandlers(a)}if(b){this.createSortEventHandlers(a);this.createDeleteRowEventHandlers(a);this.sortInitial(a);this.setAlternatingRows(a);this.setRowHighlight(a);this.setRowSelection(a);this.tableHasRows(a);this.setTableScrollBars(a);this.calculateColumnSum(a)}}},tableHasRows:function(l){var v=document.getElementById(l);if(v===null){return false}var a=v.getElementsByTagName("table");if(a.length===0){return false}var x=a[0];if(x===null){return false}var f=x.getElementsByTagName("thead");if(f.length===0){return false}var m=f[0];if(m===null){return false}var c=m.getElementsByTagName("tr");if(c.length===0){return false}var d=c[0].getElementsByTagName("th");var h=d.length;var n=null;var b=null;var k=null;var g=null;var o=null;var u=null;var s=null;var t=0;var r=0;var e=true;var w=true;var y=x.getElementsByTagName("tbody");if(y.length===0){u=x.getElementsByTagName("tfoot");if(u.length===0){n=null;b=null;k=null;g=null;o=null;n=document.createElement("tfoot");n.className="noDataInTableFooter";b=document.createElement("tr");g=document.createElement("th");g.setAttribute("colspan",h);g.colSpan=h;o=document.createTextNode(BLK.EBIZ.Table.tableEmptyMessage);g.appendChild(o);b.appendChild(g);n.appendChild(b);x.appendChild(n)}w=false;e=false}if(w){var p=y[0];if(p===null){return false}var q=p.getElementsByTagName("tr");if(q.length===0){u=x.getElementsByTagName("tfoot");if(u.length===0){n=null;b=null;k=null;g=null;o=null;n=document.createElement("tfoot");n.className="noDataInTableFooter";b=document.createElement("tr");g=document.createElement("th");g.setAttribute("colspan",h);g.colSpan=h;o=document.createTextNode(BLK.EBIZ.Table.tableEmptyMessage);g.appendChild(o);b.appendChild(g);n.appendChild(b);x.appendChild(n)}e=false}}if(e){u=x.getElementsByTagName("tfoot");for(t=0;t<u.length;t++){if(findClass(u[t],"noDataInTableFooter")){u[t].parentNode.removeChild(u[t])}}}n=null;b=null;k=null;g=null;o=null;u=null;s=null;t=0;r=0;return e},sortInitial:function(a){var d=null;var c=0;var e=this;var f=false;d=document.getElementById(a);if(d===null){return false}var b=getElementsByClassName(d,"sortInitial");var g=null;c=0;if(b.length>0){g=getElementsByClassName(b[c],"tableSort");if(g.length>0){triggerEvent(g[c],"click",true,true)}f=true}if(f){return true}b=getElementsByClassName(d,"sortInitialAsc");g=null;c=0;if(b.length>0){g=getElementsByClassName(b[c],"tableSort");if(g.length>0){triggerEvent(g[c],"click",true,true)}f=true}if(f){return true}b=getElementsByClassName(d,"sortInitialDesc");g=null;c=0;if(b.length>0){g=getElementsByClassName(b[c],"tableSort");if(g.length>0){triggerEvent(g[c],"click",true,true);triggerEvent(g[c],"click",true,true)}f=true}if(f){return true}return false},createDeleteRowEventHandlers:function(a){var e=false;var h=null;var b=null;var f=0;var j=null;var c=null;var g=this;var d=null;b=document.getElementById(a);if(b===null){return false}j=getElementsByClassName(b,"tableGadgetDeleteOneRow");for(f=0;f<j.length;f++){j[f].onclick=function(k){if(typeof k==="undefined"){k=window.event}var u=getEventTarget(k);var q=null;var w=null;var m=null;var t=null;var o=null;var x=false;var l=false;var s=false;var n=false;o=u;while(o!==null){if(!n){if(o.nodeName.toLowerCase()==="tr"){n=true;t=o}}if(!x){if(o.nodeName.toLowerCase()==="tbody"){x=true;w=o}}if(!l){if(o.nodeName.toLowerCase()==="table"){l=true;q=o}}if(!s){if(findClass(o,"tableGadget")){s=true;m=o}}o=o.parentNode}if(!(n&&x&&l&&s)){return false}q.deleteRow(t.rowIndex);var v=q.getElementsByTagName("tbody");var p=false;for(var r=0;r<v.length;r++){if(v[r].getElementsByTagName("tr").length>0){p=true}}if(!p){q.deleteTFoot()}g.createSortEventHandlers(m.id);g.setAlternatingRows(m.id);g.setRowHighlight(m.id);g.setRowSelection(m.id);g.tableHasRows(m.id);g.setTableScrollBars(m.id);g.calculateColumnSum(m.id);return false}}c=getElementsByClassName(b,"tableGadgetDeleteAllRows");for(f=0;f<c.length;f++){c[f].onclick=function(k){if(typeof k==="undefined"){k=window.event}var w=getEventTarget(k);var q=null;var y=null;var m=null;var u=null;var o=null;var z=false;var l=false;var t=false;var n=false;o=w;while(o!==null){if(!n){if(o.nodeName.toLowerCase()==="tr"){n=true;u=o}}if(!l){if(o.nodeName.toLowerCase()==="table"){l=true;q=o}}if(!t){if(findClass(o,"tableGadget")){t=true;m=o}}o=o.parentNode}if(!(n&&l&&t)){return}while(q.getElementsByTagName("tr").length>1){q.deleteRow(1)}var x=q.getElementsByTagName("tbody");var p=false;var v=null;var r=0;for(var s=0;s<x.length;s++){v=x[s].getElementsByTagName("tr");r=v.length;if(r>0){p=true}}if(!p){q.deleteTFoot()}g.createSortEventHandlers(m.id);g.setAlternatingRows(m.id);g.setRowHighlight(m.id);g.setRowSelection(m.id);g.tableHasRows(m.id);g.setTableScrollBars(m.id);g.calculateColumnSum(m.id)}}return true},tableIsEmpty:function(e){var n=e;var m=null;var g=null;var b=null;var k=null;var d=null;var o=false;var a=false;var j=false;var c=false;d=e;while(d!==null){if(!c){if(d.nodeName.toLowerCase()==="tr"){c=true;k=d}}if(!a){if(d.nodeName.toLowerCase()==="table"){a=true;g=d}}if(!j){if(findClass(d,"tableGadget")){j=true;b=d}}d=d.parentNode}if(!(c&&a&&j)){return false}var l=g.getElementsByTagName("tbody");var f=false;for(var h=0;h<l.length;h++){if(l[h].getElementsByTagName("tr").length>0){f=true}}if(f){return false}return true},deleteRow:function(e){var l=e;var g=null;var k=null;var b=null;var i=null;var d=null;var m=false;var a=false;var h=false;var c=false;var f=true;d=e;while(d!==null){if(!c){if(d.nodeName.toLowerCase()==="tr"){c=true;i=d}}if(!m){if(d.nodeName.toLowerCase()==="tbody"){m=true;k=d}}if(!a){if(d.nodeName.toLowerCase()==="table"){a=true;g=d}}if(!h){if(findClass(d,"tableGadget")){h=true;b=d}}d=d.parentNode}if(!(c&&m&&a&&h)){return}g.deleteRow(i.rowIndex);var j=k.getElementsByTagName("tr");if(j.length===0){g.deleteTFoot()}this.createSortEventHandlers(b.id);this.setAlternatingRows(b.id);this.setRowHighlight(b.id);this.setRowSelection(b.id);this.setTableScrollBars(b.id);this.calculateColumnSum(b.id)},deleteRows:function(e){var p=e;var o=null;var g=null;var b=null;var l=null;var d=null;var q=false;var a=false;var k=false;var c=false;d=e;while(d!==null){if(!c){if(d.nodeName.toLowerCase()==="tr"){c=true;l=d}}if(!a){if(d.nodeName.toLowerCase()==="table"){a=true;g=d}}if(!k){if(findClass(d,"tableGadget")){k=true;b=d}}d=d.parentNode}if(!(c&&a&&k)){return}while(g.getElementsByTagName("tr").length>1){g.deleteRow(1)}var n=g.getElementsByTagName("tbody");var f=false;var h=0;var m=null;for(var j=0;j<n.length;j++){m=n[j].getElementsByTagName("tr");h=m.length;if(h>0){f=true}}if(!f){g.deleteTFoot()}this.createSortEventHandlers(b.id);this.setAlternatingRows(b.id);this.setRowHighlight(b.id);this.setRowSelection(b.id);this.setTableScrollBars(b.id)},calculateColumnSum:function(a){var b=document.getElementById(a);if(b===null){return}var l=0;var g=0;var c="";var h=getElementsByClassName(b,"tableGadgetSummand");for(var e=0;e<h.length;e++){c=getInternalText(h[e]);if(isNaN(parseInt(c,10))){continue}l=parseInt(c,10);g+=l}var f=getElementsByClassName(b,"tableGadgetSum");var k=null;for(var d=0;d<f.length;d++){while(f[d].childNodes.length>0){f[d].removeChild(f[d].childNodes[0])}k=document.createTextNode(g+" KB");f[d].appendChild(k)}},setTableScrollBars:function(g){var f=this;var b=16;var l=16;var n=document.getElementById(g);if(n===null){return}var d=null;var m=0;var a=null;var o=0;var r=findClass(n,"float");var p=(typeof document.all!=="undefined"&&typeof window.opera==="undefined"&&navigator.vendor!=="KDE");if(!p){d=getElementsByClassName(n,"tableGadgetBody");for(m=0;m<d.length;m++){a=d[m].getElementsByTagName("table");o=0;if(a.length>0){a[0].style.width="100%"}d[m].style.overflow="auto"}}else{a=n.getElementsByTagName("table");o=0;var s=0;var c=0;var h=0;var i=0;var k=0;var q=0;var e=0;d=getElementsByClassName(n,"tableGadgetBody");for(m=0;m<d.length;m++){a=d[m].getElementsByTagName("table");o=0;if(a.length>0){a[0].style.width="100%"}d[m].style.overflow="auto";if(a.length>0){o=a[0].offsetWidth;s=a[0].offsetHeight}c=d[m].offsetWidth;h=d[m].clientWidth;i=d[m].offsetHeight;k=d[m].clientHeight;q=c-h;e=i-k;if(a.length>0){o=a[0].offsetWidth;s=a[0].offsetHeight}if(q>=b){if(e>=l){if(a.length>0){a[0].style.width=h+"px";d[m].style.overflow="hidden";d[m].style.overflow="scroll"}}else{if(a.length>0){a[0].style.width=h+"px";d[m].style.overflow="hidden";d[m].style.overflow="scroll"}}}else{if(e>=l){if(a.length>0){a[0].style.width=h+"px";d[m].style.overflow="hidden";d[m].style.overflow="auto"}}else{}}}}},setRowSelection:function(b){var j=null;var h=this;var l=0;var c=document.getElementById(b);if(c===null){return}if(!findClass(c,"select")){return}var e=c.getElementsByTagName("table");if(e.length===0){return}var d=e[0];if(d===null){return}var f=d.getElementsByTagName("tbody");if(f.length===0){return}var a=f[0];if(a===null){return}var k=a.getElementsByTagName("tr");if(k.length===0){return}j=function(i){h.clearRowSelection(b);addClass(this,"selected")};var m=k.length;for(var g=0;g<m;g++){l++;k[g].onclick=j}},clearRowSelection:function(b){var c=document.getElementById(b);if(c===null){return}if(!findClass(c,"select")){return}var e=c.getElementsByTagName("table");if(e.length===0){return}var d=e[0];if(d===null){return}var g=d.getElementsByTagName("tbody");if(g.length===0){return}var a=g[0];if(a===null){return}var h=a.getElementsByTagName("tr");if(h.length===0){return}var i=getElementsByClassName(a,"selected");for(var f=0;f<i.length;f++){removeClass(i[f],"selected")}},setRowHighlight:function(c){var k=null;var b=null;var h=0;var m=0;var j=this;var d=document.getElementById(c);if(d===null){return}if(!findClass(d,"highlight")){return}var f=d.getElementsByTagName("table");if(f.length===0){return}var e=f[0];if(e===null){return}var g=e.getElementsByTagName("tbody");if(g.length===0){return}var a=g[0];if(a===null){return}var l=a.getElementsByTagName("tr");if(l.length===0){return}k=function(o){if(typeof o==="undefined"){o=window.event}var i=getEventTarget(o);addClass(this,"highlight")};b=function(o){if(typeof o==="undefined"){o=window.event}var i=getEventTarget(o);removeClass(this,"highlight")};var n=l.length;for(h=0;h<n;h++){m++;l[h].onmouseover=k;l[h].onmouseout=b}k=null;b=null;d=null;h=0;m=0;e=null;a=null;l=null;j=null},setAlternatingRows:function(b){var j=this;var c=document.getElementById(b);if(c===null){return}if(!findClass(c,"alternate")){return}var e=c.getElementsByTagName("table");if(e.length===0){return}var d=e[0];if(d===null){return}var g=d.getElementsByTagName("tbody");if(g.length===0){return}var a=g[0];if(a===null){return}var l=a.getElementsByTagName("tr");if(l.length===0){return}j.clearRowSelection(b);var k=0;var m=l.length;var f=null;for(var h=0;h<m;h++){k++;f=l[h];if(k%2===0){changeClass(f,"odd","even")}else{changeClass(f,"even","odd")}}j=null;c=null;e=null;d=null;g=null;a=null;l=null;k=0;m=0;f=null},clearAlternatingRows:function(b){var c=document.getElementById(b);if(c===null){return}if(!findClass(c,"alternate")){return}var e=c.getElementsByTagName("table");if(e.length===0){return}var d=e[0];if(d===null){return}var g=d.getElementsByTagName("tbody");if(g.length===0){return}var a=g[0];if(a===null){return}var k=a.getElementsByTagName("tr");if(k.length===0){return}var j=0;var l=k.length;var f=null;for(var h=0;h<l;h++){f=k[h];removeClass(f,"odd");removeClass(f,"even");removeClass(f,"selected")}c=null;e=null;d=null;g=null;a=null;k=null;j=0;l=0;f=null},setTableClassNames:function(g){var u=null;var o="";var l=false;var v=null;var e="";var n=null;var f=this;var d=null;var k=null;var q=document.getElementById(g);if(q===null){return false}var s=getElementsByClassName(q,"tableGadgetCaption");if(s.length===0){return false}var j=getElementsByClassName(q,"tableGadgetHeader");if(j.length===0){return false}var c=getElementsByClassName(q,"tableGadgetBody");if(c.length===0){return false}var b=q.getElementsByTagName("table");if(b.length===0){return false}var t=b[0];if(t===null){return false}var r=q.getElementsByTagName("thead");if(r.length===0){return false}var h=r[0];if(h===null){return false}var m=h.getElementsByTagName("th");if(m.length===0){return false}for(var p=0;p<m.length;p++){if(findClass(m[p],"sort")||findClass(m[p],"sortInitial")||findClass(m[p],"sortInitialAsc")||findClass(m[p],"sortInitialDesc")){k=getElementsByClassName(m[p],"tableSort");if(k.length===0){e=m[p].innerHTML;m[p].innerHTML="";m[p].innerHTML="<a href='#null' class='tableSort tableSortOff' title='Click to sort. . .'>"+e+"</a>"}e=""}}u=null;o="";l=false;v=null;e="";n=null;f=this;d=null;q=null;s=null;j=null;c=null;b=null;t=null;k=null;r=null;h=null;m=null;return true},createShowHideEventHandlers:function(a){var g=null;var b=false;var f=null;var c=null;var e=this;var d=null;c=document.getElementById(a);if(c===null){return false}if(!findClass(c,"toggle")){return true}g=getElementsByClassName(c,"tableGadgetCaption");if(g.length===0){return false}f=function(m){if(typeof m==="undefined"){m=window.event}var i=getEventTarget(m);var l=null;var h=null;var n=null;var j=null;var k=null;n=document.getElementById(a);if(n===null){return false}g=getElementsByClassName(n,"tableGadgetCaption");if(g.length===0){return false}h=getElementsByClassName(n,"tableGadgetHeader");if(h.length===0){return false}l=getElementsByClassName(n,"tableGadgetBody");if(l.length===0){return false}if(findClass(g[0],"tableGadgetToggleShow")){changeClass(g[0],"tableGadgetToggleShow","tableGadgetToggleHide");changeClass(l[0],"tableGadgetBodyShow","tableGadgetBodyHide");changeClass(h[0],"tableGadgetHeaderShowBody","tableGadgetHeaderHideBody");g[0].title="Click to show table. . ."}else{if(findClass(g[0],"tableGadgetToggleHide")){changeClass(g[0],"tableGadgetToggleHide","tableGadgetToggleShow");changeClass(l[0],"tableGadgetBodyHide","tableGadgetBodyShow");changeClass(h[0],"tableGadgetHeaderHideBody","tableGadgetHeaderShowBody");g[0].title="Click to hide table. . ."}else{if(findClass(g[0],"tableGadgetToggleOff")){changeClass(g[0],"tableGadgetToggleHide","tableGadgetToggleOff");changeClass(l[0],"tableGadgetBodyHide","tableGadgetBodyShow");changeClass(h[0],"tableGadgetHeaderHideBody","tableGadgetHeaderShowBody")}else{window.alert("Unknown toggle state.")}}}return false};g[0].onclick=f;f=function(k){if(typeof k==="undefined"){k=window.event}var h=getEventTarget(k);var l=null;var i=null;var j=null;l=document.getElementById(a);if(l===null){return false}g=getElementsByClassName(l,"tableGadgetCaption");if(g.length===0){return false}j=getElementsByClassName(l,"tableGadgetBody");if(j.length===0){return false}h.style.cursor="pointer";return false};g[0].onmouseover=f;return true},createSortEventHandlers:function(b){var c=false;var h=null;var e=null;var d=0;var a=null;var g=this;var f=null;e=document.getElementById(b);if(e===null){return false}a=getElementsByClassName(e,"tableSort");if(a.length===0){return true}h=function(k){if(typeof k==="undefined"){k=window.event}var q=getEventTarget(k);var p=0;var j="";var s="";var o=null;var l=null;var m=null;var n=0;var r="";o=document.getElementById(b);if(o===null){return false}m=getElementsByClassName(o,"tableSort");if(m.length===0){return false}for(n=0;n<m.length;n++){if(this===m[n]){p=this.parentNode.cellIndex;continue}changeClass(m[n],["tableSortAsc","tableSortDesc"],"tableSortOff");m[n].title="Click to sort. . ."}r=this.innerHTML;if(findClass(this,"tableSortAsc")){changeClass(this,"tableSortAsc","tableSortDesc");s="DESC";this.title="Click to sort ascending. . ."}else{if(findClass(this,"tableSortDesc")){changeClass(this,"tableSortDesc","tableSortAsc");s="ASC";this.title="Click to sort descending. . ."}else{if(findClass(this,"tableSortOff")){changeClass(this,"tableSortOff","tableSortAsc");s="ASC";this.title="Click to sort descending. . ."}}}g.sortTable(b,s,r,p);p=0;j="";s="";o=null;q=null;l=null;m=null;n=0;r="";return false};for(d=0;d<a.length;d++){a[d].onclick=h}c=false;h=null;e=null;d=0;a=null;g=this;f=null;return true},sortTable:function(g,u,p,v){var r=null;var q=0;var o=0;var s=null;var f=null;var k="";var n=0;var a=null;var t=null;var x=null;var l=null;var h=null;var d="";var w=0;var e=this;var c=null;var b=0;r=document.getElementById(g);if(r===null){return}a=r.getElementsByTagName("table");if(a.length===0){return}t=a[0];if(t===null){return}x=t.getElementsByTagName("tbody");if(x.length===0){return}l=t.getElementsByTagName("tbody");if(l.length===0){return}var m=null;l=x[0];s=l.cloneNode(false);h=l.getElementsByTagName("tr");while(h.length>0){f=s.childNodes;d=getInternalText(h[0].getElementsByTagName("td")[v]);b=f.length;for(o=0;o<b;o++){k=getInternalText(f[o].getElementsByTagName("td")[v]);if(!isNaN(Date.parse(d))&&!isNaN(Date.parse(k))){w=Date.parse(d);n=Date.parse(k)}else{if(!isNaN(parseInt(d,10))&&!isNaN(parseInt(k,10))){w=parseInt(d,10);n=parseInt(k,10)}else{if(!isNaN(parseFloat(d))&&!isNaN(parseFloat(k))){w=parseFloat(d);n=parseFloat(k)}else{w=d;n=k}}}if(u==="DESC"){if(w>=n){break}}else{if(w<=n){break}}}if(o>=b){m=h[0];s.appendChild(m)}else{m=h[0];s.insertBefore(m,f[o])}}t.replaceChild(s,l);e.setAlternatingRows(g);e.setRowHighlight(g);e.setRowSelection(g);r=null;q=0;o=0;s=null;f=null;k="";n=0;t=null;l=null;h=null;d="";w=0;e=this;c=null;b=0}};BLK.EBIZ.Table.tableEmptyMessage="No data found.";var EBIZ_TABLE=BLK.EBIZ.Table;BLK.EBIZ.Tabs=function(){var a=this;this.EXPIRE_DAYS=90;this.setup=function(){var I="";var m=getElementsByClassName(document.body,"tabGadget");var A=null;var n=null;var R=null;var F="";var E="";var w="";var y="";var r=null;var N=false;var M=true;var L=false;var d=false;var s=false;var x=-1;var U=[];var u=-1;var v=[];var p=0;var b=-1;var z=null;var g=null;var t=null;for(var S=0;S<m.length;S++){N=true;if(findClass(m[S],"tabGadgetOff")){N=false}M=true;if(findClass(m[S],"tabGadgetOnMouseOver")){M=false}var H=getValueFromURL("tab");var T=null;var e=false;if(H===""){I="Tab gadget: query string tab name not specified. . .";BLK.EBIZ.trace(I);e=false;s=false}else{I="Tab gadget: query string tab name. . ."+H;s=true}L=false;U=[];if(findClass(m[S],"tabGadgetRandom")){L=true}d=false;if(findClass(m[S],"tabGadgetRemember")){d=true}if(s){d=false;L=false}else{if(d){L=false}}A=getElementsByClassName(m[S],"tabGadgetHeaderListLink");p=A.length;b=-1;z=null;g=null;t=null;E=m[S].getAttribute("id");if(E===null||E===""){E="";if(d){I="Tab gadget: id missing for tab "+(S+1);BLK.EBIZ.trace(I);d=false}}var o=true;w=unescape(getSubCookie("tabGadgetRemember",E));if(w==="undefined"||w===""||w===null){w="";o=false}var c=false;var K=true;var G=null;var l=null;var h=false;for(var Q=0;Q<A.length;Q++){var B=A[Q];var f=false;while(B!==null){if(findClass(B,"tabGadget")){f=true;break}B=B.parentNode}if(f){if(B!==m[S]){p--;continue}}if(!N){n=getElementsByClassName(A[Q],"tabGadgetBodyItem");for(var J=0;J<n.length;J++){n[J].style.display="block"}B=A[Q];f=false;while(B!==null){if(findClass(B,"tabGadgetHeaderList")){f=true;break}B=B.parentNode}if(f){B.style.display="none"}continue}F=A[Q].getAttribute("rel");if(F===null||F===""){F="";I="Tab gadget: rel missing for tab "+(S+1);BLK.EBIZ.trace(I);continue}if(K){G=A[Q];l=document.getElementById(G.rel);K=false}if(d){if(!o){if(!c){c=true;w=F}}}r=document.getElementById(F);if(r===null){I="Tab gadget: body missing for tab "+(S+1);BLK.EBIZ.trace(I);continue}B=A[Q];while(B!==null){if(findClass(B,"tabGadgetHeaderList")){f=true;break}B=B.parentNode}if(!f){I="Tab gadget: header list not well formed. . .";BLK.EBIZ.trace(I);continue}var D=B;B=A[Q];while(B!==null){if(findClass(B,"tabGadgetHeaderListItem")){f=true;break}B=B.parentNode}if(!f){I="Tab gadget: header list item not found. . .";BLK.EBIZ.trace(I);continue}var C=B;b++;if(s){if(F===H){addClass(C,"On");r.style.display="block";h=true}else{r.style.display="none";removeClass(C,"On")}}else{if(d){if(F===w){addClass(C,"On");r.style.display="block"}else{r.style.display="none";removeClass(C,"On")}}else{if(L){r.style.display="none";removeClass(C,"On");U[U.length]={item:C,link:A[Q],body:r}}else{if(findClass(C,"On")){r.style.display="block"}else{r.style.display="none"}}}}var P=(function(k,i,q,j){return function(X){if(typeof X==="undefined"){X=window.event}var ad=getEventTarget(X);var Z=null;var W=k;Z=ad;while(Z!==null){if(findClass(Z,"tabGadgetHeaderList")){f=true;break}Z=Z.parentNode}if(!f){I="Tab gadget: header list not well formed. . .";BLK.EBIZ.trace(I);return false}var ae=Z;var ah=ad.parentNode;Z=ad;while(Z!==null){if(findClass(Z,"tabGadgetHeaderListItem")){f=true;break}Z=Z.parentNode}if(!f){I="Cannot find tab gadget header list item. . .";BLK.EBIZ.trace(I);return false}ah=Z;var ak=getElementsByClassName(k,"tabGadgetHeaderListItem");for(var ac=0;ac<ak.length;ac++){Z=ak[ac];f=false;while(Z!==null){if(findClass(Z,"tabGadget")){f=true;break}Z=Z.parentNode}if(f){if(Z!==k){continue}}removeClass(ak[ac],"On")}addClass(ah,"On");var V=getElementsByClassName(W,"tabGadgetBodyItem");for(var aa=0;aa<V.length;aa++){Z=V[aa];f=false;while(Z!==null){if(findClass(Z,"tabGadget")){f=true;break}Z=Z.parentNode}if(f){if(Z!==k){continue}}V[aa].style.display="none"}i.style.display="block";if(q){var aj="";aj=ad.rel;var Y=k.id;var ag="";var ab="";var af="";var ai=null;var al="";if(aj!==""&&Y!==""){ag=unescape(getCookie("tabGadgetRemember"));af=Y+":"+aj;if(ag===""){setCookie("tabGadgetRemember",af,j)}else{if(ag.indexOf(Y,0)===-1){setCookie("tabGadgetRemember",ag+"/"+af,j)}else{ab=getSubCookie("tabGadgetRemember",Y);ai=new RegExp(Y+":"+ab);al=ag.replace(ai,af);setCookie("tabGadgetRemember",al,j)}}}}for(aa=0;aa<BLK.EBIZ.Tabs.eventHandlerQueue2.length;aa++){if(typeof BLK.EBIZ.Tabs.eventHandlerQueue2[aa]!=="function"){continue}BLK.EBIZ.Tabs.eventHandlerQueue2[aa]()}return false}})(m[S],r,d,this.EXPIRE_DAYS);var O=0;if(M){attachEventListener(A[Q],"click",P,false);for(O=0;O<BLK.EBIZ.Tabs.eventHandlerQueue.length;O++){if(typeof BLK.EBIZ.Tabs.eventHandlerQueue[O]!=="function"){continue}attachEventListener(A[Q],"click",BLK.EBIZ.Tabs.eventHandlerQueue[O],false)}}else{attachEventListener(A[Q],"mouseover",P,false);for(O=0;O<BLK.EBIZ.Tabs.eventHandlerQueue.length;O++){if(typeof BLK.EBIZ.Tabs.eventHandlerQueue[O]!=="function"){continue}attachEventListener(A[Q],"mouseover",BLK.EBIZ.Tabs.eventHandlerQueue[O],false)}}}if(s){if(!h){addClass(G.parentNode,"On");l.style.display="block"}}if(L){x=randomBetween(1,U.length)-1;z=U[x]["item"];g=U[x]["link"];t=U[x]["body"];addClass(z,"On");t.style.display="block"}}};this.setup()};BLK.EBIZ.Tabs.eventHandlerQueue=[];BLK.EBIZ.Tabs.eventHandlerQueue2=[];BLK.EBIZ.TextOverImage=function(){this.setup=function(){var c=getElementsByClassName(document.body,"textOverImageGadget");var f=null;var g=null;var h=null;var b=null;var a=null;var j=0;var d=0;var k=null;for(var e=0;e<c.length;e++){if(c[e].nodeName.toLowerCase()!=="div"){continue}f=getElementsByClassName(c[e],"textOverImageGadgetTextWrapper");g=getElementsByClassName(c[e],"textOverImageGadgetImageWrapper");h=getElementsByClassName(c[e],"textOverImageGadgetImage");if(f.length!==1){continue}if(g.length!==1){continue}if(h.length!==1){continue}j=h[0].offsetWidth;d=h[0].offsetHeight;c[e].style.width=j+"px";c[e].style.height=d+"px";a=document.createElement("div");a.className="textOverImageGadgetOverlay";a.style.width=j+"px";a.style.height=d+"px";f[0].parentNode.insertBefore(a,f[0]);f[0].style.width=j+"px";f[0].style.height=d+"px";g[0].style.width=j+"px";g[0].style.height=d+"px";k=function(i){return function(q){if(typeof q==="undefined"){q=window.event}var p=null;var n=null;if(typeof q.srcElement!=="undefined"){n=q.srcElement}else{if(typeof q.target!=="undefined"){n=q.target}else{window.status="Text over image: unknown target element. . ."}}var l=null;if(typeof q.relatedTarget!=="undefined"){l=q.relatedTarget}else{if(typeof q.fromElement!=="undefined"){l=q.fromElement}else{window.status="Text over image: unknown related target. . ."}}if(l!==null){p=l;while(p!==n&&!(p.nodeName.toLowerCase()==="body"||p.nodeName.toLowerCase()==="html")){p=p.parentNode}if(p===n){return false}}var m=getElementsByClassName(i,"textOverImageGadgetOverlay");var r=getElementsByClassName(i,"textOverImageGadgetTextWrapper");var o=getElementsByClassName(i,"textOverImageGadgetImageWrapper");m[0].style.display="block";r[0].style.display="block";return false}}(c[e]);c[e].onmouseover=k;k=function(i){return function(q){if(typeof q==="undefined"){q=window.event}var p=null;var n=null;if(typeof q.srcElement!=="undefined"){n=q.srcElement}else{if(typeof q.target!=="undefined"){n=q.target}else{window.status="Text over image: unknown target element. . ."}}var l=null;if(typeof q.relatedTarget!=="undefined"){l=q.relatedTarget}else{if(typeof q.toElement!=="undefined"){l=q.toElement}else{window.status="Text over image: unknown related target. . ."}}if(l!==null){p=l;var r=false;while(p!==null){if(findClass(p,"textOverImageGadget")){r=true;break}p=p.parentNode}if(r){return false}}var m=getElementsByClassName(i,"textOverImageGadgetOverlay");var s=getElementsByClassName(i,"textOverImageGadgetTextWrapper");var o=getElementsByClassName(i,"textOverImageGadgetImageWrapper");m[0].style.display="none";s[0].style.display="none";return false}}(c[e]);c[e].onmouseout=k}};this.setup()};function TextResize(e,d,b){var a=e;var c=d;var h=[TextResize.TEXT_SIZE.xSmall,TextResize.TEXT_SIZE.small,TextResize.TEXT_SIZE.medium,TextResize.TEXT_SIZE.large,TextResize.TEXT_SIZE.xLarge];var f=b;var g=this;this.decrease=function(){var j=document.getElementsByTagName("*");for(var k=0;k<j.length;k++){if(!this.findClass(j[k],"resize")){continue}this.changeClass(j[k],f,this.getPrevious(f))}f=this.getPrevious(f);this.setCookie(TextResize.COOKIE_NAME,f,TextResize.EXPIRE_DAYS)};this.getNext=function(k){var n=false;var l;for(var m=0;(m<h.length)&&!n;m++){if(k===h[m]){l=m+1;n=true}}return(l>=h.length)?h[h.length-1]:h[l]};this.getPrevious=function(k){var n=false;var l;for(var m=0;(m<h.length)&&!n;m++){if(k===h[m]){l=m-1;n=true}}return(l<0)?h[0]:h[l]};this.getTextSize=function(){return f};this.increase=function(){var j=document.getElementsByTagName("*");for(var k=0;k<j.length;k++){if(!this.findClass(j[k],"resize")){continue}this.changeClass(j[k],f,this.getNext(f))}f=this.getNext(f);this.setCookie(TextResize.COOKIE_NAME,f,TextResize.EXPIRE_DAYS)};this.setTextSize=function(l){var o=false;var n=0;f=h[Math.floor(h.length/2)];for(n=0;n<h.length&&!o;n++){if(l===h[n]){f=l;o=true}}var k=document.getElementsByTagName("*");for(n=0;n<k.length;n++){if(this.findClass(k[n],"noresize")){continue}if(!this.findClass(k[n],"resize")){continue}for(var m=0;m<h.length;m++){if(this.findClass(k[n],h[m])){this.removeClass(k[n],h[m]);break}}this.addClass(k[n],f)}};this.addClass=function(l,k){var j=new RegExp("(^| )"+k+"( |$)");var i=false;if(typeof l.className!=="undefined"){if(!j.test(l.className)){i=true;if(l.className===""){l.className=k}else{l.className+=" "+k}}}j=null;return i};this.changeClass=function(m,j,l){if(typeof j==="object"){for(var k=0;k<j.length;k++){this.removeClass(m,j[k])}}else{this.removeClass(m,j)}this.addClass(m,l)};this.findClass=function(l,k){var j=new RegExp("(^| )"+k+"( |$)");var i=false;if(typeof l.className!=="undefined"){if(j.test(l.className)){i=true}}j=null;return i};this.getCookie=function(j){var m=document.cookie.split(";");var n=false;var l=[];var p="";var o="";for(var k=0;k<m.length&&!n;k++){l=m[k].split("=");p=l[0];o=l[1];if(p===j){n=true}}return o};this.getTextSize=function(){var l=false;var k=this.getCookie(TextResize.COOKIE_NAME);if(k===""){this.setTextSize(f);this.setCookie(TextResize.COOKIE_NAME,f,TextResize.EXPIRE_DAYS)}else{l=false;for(var j=0;j<h.length;j++){if(h[j]===k){f=k;g.setTextSize(f);l=true;break}}if(!l){this.setTextSize(TextResize.TEXT_SIZE.medium)}}};this.initialize=function(){if(e===""||e===null){return false}a=e;if(d===""||d===null){return false}c=d;if(b===""||b===null){return false}var k=false;for(var j=0;j<h.length;j++){if(h[j]===b){k=true;break}}if(!k){return false}f=b;return true};this.removeClass=function(m,l){var j=m.className;var k=new RegExp("(^| )"+l+"( |$)");var i=false;if(typeof m.className!=="undefined"){if(k.test(m.className)){i=true;j=j.replace(k,"$1");j=j.replace(/ $/,"");m.className=j}}k=null;return i};this.setCookie=function(l,j,k){var i=new Date();i.setDate(i.getDate()+k);document.cookie=l+"="+escape(j)+((k===null)?"":";expires="+i.toGMTString());i=null};this.setupEventHandlers=function(){var j=document.getElementsByTagName("*");for(var k=0;k<j.length;k++){if(this.findClass(j[k],a)){j[k].onclick=function(i){g.decrease();return false}}if(this.findClass(j[k],c)){j[k].onclick=function(i){g.increase();return false}}}};this.setupResizableTags=function(){var k=document.getElementsByTagName("h1");var l=null;for(var j=0;j<k.length;j++){l=getNextSibling(k[j]);while(l){if(l.nodeType===1){if(l.nodeName.toLowerCase()!=="h1"){if(l.id!=="textResize"){if(!findClass(l,"noresize")){this.addClass(l,"resize")}}}}l=getNextSibling(l)}}};if(this.initialize()){this.setupResizableTags();this.setupEventHandlers();this.getTextSize()}}TextResize.TEXT_SIZE={xSmall:"xSmall",small:"small",medium:"medium",large:"large",xLarge:"xLarge"};TextResize.EXPIRE_DAYS=365;TextResize.COOKIE_NAME="ebizTextResize";function TreeControl(e,d){this.m_gadgetIdName=null;this.m_gadgetIdRef=null;this.m_showAll=false;this.m_toggle=false;this.m_byPage=false;this.m_manual=false;this.m_firstLast=false;this.m_textExpand=false;this.m_highlight=false;this.m_check=false;this.m_currentBehavior="";var c=this;var b=null;var a=null;this.setup=function(f,g){if(f===""||f===null){window.alert("Gadget name missing.");return}this.m_gadgetIdName=f;this.m_gadgetIdRef=document.getElementById(this.m_gadgetIdName);if(this.m_gadgetIdRef===null){window.alert("Gadget does not exist.");return}switch(g){case 1:this.m_showAll=true;this.m_toggle=false;this.m_byPage=false;this.m_manual=false;this.m_firstLast=false;this.m_textExpand=false;this.m_highlight=false;this.m_check=false;this.m_currentBehavior="showAll";break;case 2:this.m_showAll=false;this.m_toggle=false;this.m_byPage=false;this.m_manual=false;this.m_firstLast=false;this.m_textExpand=false;this.m_highlight=false;this.m_check=false;this.m_currentBehavior="collapseAll";break;case 3:this.m_showAll=false;this.m_toggle=true;this.m_byPage=false;this.m_manual=false;this.m_firstLast=false;this.m_textExpand=false;this.m_highlight=false;this.m_check=false;this.m_currentBehavior="toggle";break;case 4:this.m_showAll=false;this.m_toggle=true;this.m_byPage=true;this.m_manual=false;this.m_firstLast=false;this.m_textExpand=false;this.m_highlight=false;this.m_check=false;this.m_currentBehavior="byPage";break;case 5:this.m_showAll=false;this.m_toggle=true;this.m_byPage=false;this.m_manual=true;this.m_firstLast=false;this.m_textExpand=false;this.m_highlight=false;this.m_check=false;this.m_currentBehavior="manual";break;case 6:this.m_showAll=false;this.m_toggle=true;this.m_byPage=false;this.m_manual=false;this.m_firstLast=true;this.m_textExpand=false;this.m_highlight=false;this.m_check=false;this.m_currentBehavior="firstLast";break;case 7:this.m_showAll=false;this.m_toggle=true;this.m_byPage=false;this.m_manual=false;this.m_firstLast=false;this.m_textExpand=true;this.m_highlight=false;this.m_check=false;this.m_currentBehavior="textExpand";break;case 8:this.m_showAll=false;this.m_toggle=true;this.m_byPage=false;this.m_manual=false;this.m_firstLast=false;this.m_textExpand=true;this.m_highlight=true;this.m_check=false;this.m_currentBehavior="highlight";break;case 9:this.m_showAll=false;this.m_toggle=false;this.m_byPage=false;this.m_manual=false;this.m_firstLast=false;this.m_textExpand=true;this.m_highlight=false;this.m_check=true;this.m_currentBehavior="check";break;default:this.m_showAll=true;this.m_toggle=false;this.m_byPage=false;this.m_manual=false;this.m_firstLast=false;this.m_textExpand=false;this.m_highlight=false;this.m_check=false;this.m_currentBehavior="showAll";break}};this.highlight=function(){var h=document.getElementsByTagName("span");var f=null;for(var g=0;g<h.length;g++){if(findClass(h[g],"checked")){f=h[g].parentNode;addClass(f,"highlight")}else{if(findClass(h[g],"unchecked")){f=h[g].parentNode;removeClass(f,"highlight")}}}};this.searchTree=function(f){var g=false;window.alert("Search tree for: "+f);return g};this.initTree=function(u){var L;var k;var l;var m;var H;var G;var w;var o;var E;var g;var z;var F;var D;var v;var j;var I;var K;var C=0;I=u.getElementsByTagName("li");for(C=0;C<I.length;C++){E=I[C];j=E.getElementsByTagName("ul");if(j.length===0){K=E.getElementsByTagName("a");for(var B=0;B<K.length;B++){addClass(K[B],"hasNoSubtree");K[B].title=""}if(this.m_check){F=null;F=document.createElement("span");F.className="unchecked";F.setAttribute("class","unchecked");F.onclick=function(y){if(typeof y==="undefined"){y=window.event}var M=getEventTarget(y);var q=null;if(this.className.toLowerCase()==="unchecked"){for(G=0;G<c.beforeCheckArray.length;G++){if(typeof c.beforeCheckArray[G]==="function"){c.beforeCheckArray[G]()}}this.className="checked";this.title="Checked. . .";var i=null;var r=true;var x=null;var s=0;q=this.parentNode;while(q!==null&&r){if(q.nodeName.toLowerCase()==="li"){i=q;r=true;x=i.getElementsByTagName("span");for(s=0;s<x.length;s++){if(x[s]===this){continue}if(x[s].parentNode===i){continue}if(x[s].className.toLowerCase()==="unchecked"){r=false;break}}if(r){i.firstChild.nextSibling.className="checked"}}q=q.parentNode}i=this.parentNode;if(!findClass(i,"highlight")){addClass(i,"highlight")}c.highlight();for(G=0;G<c.afterCheckArray.length;G++){if(typeof c.afterCheckArray[G]==="function"){c.afterCheckArray[G]()}}}else{if(this.className.toLowerCase()==="checked"){for(G=0;G<c.beforeUncheckArray.length;G++){if(typeof c.beforeUncheckArray[G]==="function"){c.beforeUncheckArray[G]()}}this.className="unchecked";this.title="Unchecked. . .";q=this.parentNode;while(q!==null){if(q.nodeName.toLowerCase()==="li"){if(q.firstChild!==null){g=getNextSibling(q.firstChild);if(g!==null){if(g.nodeName.toLowerCase()==="span"){if(g!==this){D=g;if(D.className.toLowerCase()==="checked"){D.className="unchecked";D.title="Unchecked. . ."}else{if(D.className.toLowerCase()==="unchecked"){D.className="unchecked";D.title="Unchecked. . ."}}}}}}}q=q.parentNode}i=this.parentNode;if(findClass(i,"highlight")){removeClass(i,"highlight")}c.highlight();for(G=0;G<c.afterUncheckArray.length;G++){if(typeof c.afterUncheckArray[G]==="function"){c.afterUncheckArray[G]()}}}else{window.alert("Unknown check state. . .")}}return false};F.title="Unchecked. . .";E.insertBefore(F,E.firstChild);F=null}if(this.m_firstLast){if(getPreviousSibling(E)===null&&E.parentNode.id===this.m_gadgetIdName){addClass(E,"first")}else{if(getNextSibling(E)===null&&E.parentNode.id===this.m_gadgetIdName){addClass(E,"last")}}}F=null;F=document.createElement("span");addClass(F,"hasNoSubtree");F.title="";E.insertBefore(F,E.firstChild);F=null}else{m=function(q){if(typeof q==="undefined"){q=window.event}var Q=getEventTarget(q);var R;var O;var M;var y;var U;var W;var P;var x;var r;var N;var T;var V;if(findClass(this,"hasSubtreeShow")){changeClass(this,"hasSubtreeShow","hasSubtreeHide");this.title="Show. . .";for(O=0;O<c.beforeCloseArray.length;O++){if(typeof c.beforeCloseArray[O]==="function"){c.beforeCloseArray[O]()}}if(c.m_textExpand){K=this.parentNode.getElementsByTagName("a");for(V=0;V<K.length;V++){if(this.parentNode===K[V].parentNode){if(findClass(K[V],"hasSubtreeShow")){K[V].title="Show. . .";changeClass(K[V],"hasSubtreeShow","hasSubtreeHide")}}}}N=this.parentNode.getElementsByTagName("ul");for(O=0;O<N.length;O++){if(c.m_toggle){N[O].style.display="none";r=N[O].getElementsByTagName("span");for(M=0;M<r.length;M++){if(findClass(r[M],"hasSubtreeShow")){changeClass(r[M],"hasSubtreeShow","hasSubtreeHide");r[M].title="Show. . ."}}}if(c.m_showAll){N[O].style.display="none";r=N[O].getElementsByTagName("span");for(M=0;M<r.length;M++){if(findClass(r[M],"hasSubtreeHide")){changeClass(r[M],"hasSubtreeHide","hasSubtreeShow");r[M].title="Hide. . ."}}}else{N[O].style.display="none";r=N[O].getElementsByTagName("span");for(M=0;M<r.length;M++){if(findClass(r[M],"hasSubtreeShow")){changeClass(r[M],"hasSubtreeShow","hasSubtreeHide");r[M].title="Show. . ."}}}if(c.m_textExpand){K=N[O].getElementsByTagName("a");for(M=0;M<K.length;M++){if(findClass(K[M],"hasSubtreeShow")){changeClass(K[M],"hasSubtreeShow","hasSubtreeHide");K[M].title="Show. . ."}}}}for(O=0;O<c.afterCloseArray.length;O++){if(typeof c.afterCloseArray[O]==="function"){c.afterCloseArray[O]()}}}else{if(findClass(this,"hasSubtreeHide")){changeClass(this,"hasSubtreeHide","hasSubtreeShow");this.title="Hide. . .";for(O=0;O<c.beforeOpenArray.length;O++){if(typeof c.beforeOpenArray[O]==="function"){c.beforeOpenArray[O]()}}if(c.m_textExpand){K=this.parentNode.getElementsByTagName("a");for(V=0;V<K.length;V++){if(this.parentNode===K[V].parentNode){if(findClass(K[V],"hasSubtreeHide")){K[V].title="Hide. . .";changeClass(K[V],"hasSubtreeHide","hasSubtreeShow")}}}}N=this.parentNode.getElementsByTagName("ul");for(O=0;O<N.length;O++){if(c.m_toggle){N[O].style.display="block";r=N[O].getElementsByTagName("span");for(M=0;M<r.length;M++){if(findClass(r[M],"hasSubtreeShow")){changeClass(r[M],"hasSubtreeShow","hasSubtreeHide");r[M].title="Show. . ."}}}if(c.m_showAll){N[O].style.display="block";r=N[O].getElementsByTagName("span");for(M=0;M<r.length;M++){if(findClass(r[M],"hasSubtreeHide")){changeClass(r[M],"hasSubtreeHide","hasSubtreeShow");r[M].title="Hide. . ."}}}else{if(N[O].parentNode===this.parentNode){N[O].style.display="block";r=N[O].getElementsByTagName("span");for(M=0;M<r.length;M++){if(findClass(r[M],"hasSubtreeShow")){changeClass(r[M],"hasSubtreeShow","hasSubtreeHide");r[M].title="Show. . ."}}}else{N[O].style.display="none";r=N[O].getElementsByTagName("span");for(M=0;M<r.length;M++){if(findClass(r[M],"hasSubtreeShow")){changeClass(r[M],"hasSubtreeShow","hasSubtreeHide");r[M].title="Show. . ."}}}}if(c.m_textExpand){K=N[O].getElementsByTagName("a");for(M=0;M<K.length;M++){if(findClass(K[M],"hasSubtreeShow")){changeClass(K[M],"hasSubtreeShow","hasSubtreeHide");K[M].title="Show. . ."}}}}if(c.m_highlight){var s=getElementsByClassName(c.m_gadgetIdRef,"highlight");for(var S=0;S<s.length;S++){removeClass(s[S],"highlight")}addClass(this.parentNode,"highlight")}if(c.m_toggle){U=this.parentNode;U=getPreviousSibling(U);while(U!==null){if(U.nodeName.toLowerCase()==="li"){N=U.getElementsByTagName("ul");for(y=0;y<N.length;y++){N[y].style.display="none"}r=U.getElementsByTagName("span");for(y=0;y<r.length;y++){if(findClass(r[y],"checked")||findClass(r[y],"unchecked")){continue}if(findClass(r[y],"hasSubtreeShow")){changeClass(r[y],"hasSubtreeShow","hasSubtreeHide");r[y].title="Show. . ."}}if(c.m_textExpand){K=U.getElementsByTagName("a");for(y=0;y<K.length;y++){if(findClass(K[y],"checked")||findClass(K[y],"unchecked")){continue}if(findClass(K[y],"hasSubtreeShow")){changeClass(K[y],"hasSubtreeShow","hasSubtreeHide");K[y].title="Show. . ."}}}}U=getPreviousSibling(U)}U=this.parentNode;U=getNextSibling(U);while(U!==null){if(U.nodeName.toLowerCase()==="li"){N=U.getElementsByTagName("ul");for(y=0;y<N.length;y++){N[y].style.display="none"}r=U.getElementsByTagName("span");for(y=0;y<r.length;y++){if(findClass(r[y],"checked")||findClass(r[y],"unchecked")){continue}if(findClass(r[y],"hasSubtreeShow")){changeClass(r[y],"hasSubtreeShow","hasSubtreeHide");r[y].title="Show. . ."}}if(c.m_textExpand){K=U.getElementsByTagName("a");for(y=0;y<K.length;y++){if(findClass(K[y],"checked")||findClass(K[y],"unchecked")){continue}if(findClass(K[y],"hasSubtreeShow")){changeClass(K[y],"hasSubtreeShow","hasSubtreeHide");K[y].title="Show. . ."}}}}U=getNextSibling(U)}}for(O=0;O<c.afterOpenArray.length;O++){if(typeof c.afterOpenArray[O]==="function"){c.afterOpenArray[O]()}}}else{window.alert("Unknown tree state. . .")}}Q=null;R=null;U=null;W=null;P=null;x=null;r=null;N=null;return false};H=function(q){if(typeof q==="undefined"){q=window.event}var P=getEventTarget(q);var Q;var N;var y;var x;var R;var S;var O;var s;var r;var M;if(findClass(this,"hasSubtreeShow")){changeClass(this,"hasSubtreeShow","hasSubtreeHide");this.title="Show. . .";changeClass(this.parentNode.firstChild,"hasSubtreeShow","hasSubtreeHide");this.parentNode.firstChild.title="Show. . .";M=this.parentNode.getElementsByTagName("ul");for(N=0;N<M.length;N++){if(M[N].parentNode===this.parentNode){M[N].style.display="none";r=M[N].getElementsByTagName("span");for(y=0;y<r.length;y++){if(findClass(r[y],"hasSubtreeShow")){changeClass(r[y],"hasSubtreeShow","hasSubtreeHide");r[y].title="Show. . ."}}K=M[N].getElementsByTagName("a");for(y=0;y<K.length;y++){if(findClass(K[y],"hasSubtreeShow")){changeClass(K[y],"hasSubtreeShow","hasSubtreeHide");K[y].title="Show. . ."}}}}}else{if(findClass(this,"hasSubtreeHide")){changeClass(this,"hasSubtreeHide","hasSubtreeShow");this.title="Hide. . .";changeClass(this.parentNode.firstChild,"hasSubtreeHide","hasSubtreeShow");this.parentNode.firstChild.title="Hide. . .";M=this.parentNode.getElementsByTagName("ul");for(N=0;N<M.length;N++){if(M[N].parentNode===this.parentNode){M[N].style.display="block";r=M[N].getElementsByTagName("span");for(y=0;y<r.length;y++){if(findClass(r[y],"checked")||findClass(r[y],"unchecked")){continue}if(findClass(r[y],"hasSubtreeShow")){changeClass(r[y],"hasSubtreeShow","hasSubtreeHide");r[y].title="Show. . ."}}K=M[N].getElementsByTagName("a");for(y=0;y<K.length;y++){if(findClass(K[y],"checked")||findClass(K[y],"unchecked")){continue}if(findClass(K[y],"hasSubtreeShow")){changeClass(K[y],"hasSubtreeShow","hasSubtreeHide");K[y].title="Show. . ."}}}}if(c.m_highlight){R=this.parentNode;Q=document.getElementById(c.m_gadgetIdName).getElementsByTagName("li");for(N=0;N<Q.length;N++){removeClass(Q[N],"highlight")}if(R.parentNode.id!==c.m_gadgetIdName){addClass(R,"highlight")}}if(c.m_toggle){R=this.parentNode;R=getPreviousSibling(R);while(R!==null){if(R.nodeName.toLowerCase()==="li"){M=R.getElementsByTagName("ul");for(x=0;x<M.length;x++){M[x].style.display="none"}r=R.getElementsByTagName("span");for(x=0;x<r.length;x++){if(findClass(r[x],"checked")||findClass(r[x],"unchecked")){continue}if(findClass(r[x],"hasSubtreeShow")){changeClass(r[x],"hasSubtreeShow","hasSubtreeHide");r[x].title="Show. . ."}}K=R.getElementsByTagName("a");for(x=0;x<K.length;x++){if(findClass(K[x],"checked")||findClass(K[x],"unchecked")){continue}if(findClass(K[x],"hasSubtreeShow")){changeClass(K[x],"hasSubtreeShow","hasSubtreeHide");K[x].title="Show. . ."}}}R=getPreviousSibling(R)}R=this.parentNode;R=getNextSibling(R);while(R!==null){if(R.nodeName.toLowerCase()==="li"){M=R.getElementsByTagName("ul");for(x=0;x<M.length;x++){M[x].style.display="none"}r=R.getElementsByTagName("span");for(x=0;x<r.length;x++){if(findClass(r[x],"checked")||findClass(r[x],"unchecked")){continue}if(findClass(r[x],"hasSubtreeShow")){changeClass(r[x],"hasSubtreeShow","hasSubtreeHide");r[x].title="Show. . ."}}K=R.getElementsByTagName("a");for(x=0;x<K.length;x++){if(findClass(K[x],"checked")||findClass(K[x],"unchecked")){continue}if(findClass(K[x],"hasSubtreeShow")){changeClass(K[x],"hasSubtreeShow","hasSubtreeHide");K[x].title="Show. . ."}}}R=getNextSibling(R)}}}else{window.alert("Unknown state. . .")}}P=null;Q=null;R=null;S=null;O=null;s=null;r=null;M=null;return false};if(this.m_check){D=null;D=document.createElement("span");D.className="unchecked";D.setAttribute("class","unchecked");D.onclick=function(q){if(typeof q==="undefined"){q=window.event}var N=getEventTarget(q);var r=null;var x=0;var y=null;var M=this.parentNode;var R=null;var O=null;if(this.className.toLowerCase()==="unchecked"){for(x=0;x<c.beforeCheckArray.length;x++){if(typeof c.beforeCheckArray[x]==="function"){c.beforeCheckArray[x]()}}r=this.parentNode.getElementsByTagName("span");for(x=0;x<r.length;x++){if(r[x]===this){continue}if(!(r[x].className.toLowerCase()==="unchecked"||r[x].className.toLowerCase()==="checked")){continue}r[x].className="checked";r[x].title="Checked. . ."}this.className="checked";this.title="Checked. . .";var Q=null;var P=true;var s=0;M=this.parentNode;while(M!==null&&P){if(M.nodeName.toLowerCase()==="li"){Q=M;P=true;r=Q.getElementsByTagName("span");for(s=0;s<r.length;s++){if(r[s]===this){continue}if(r[s].parentNode===Q){continue}if(r[s].className.toLowerCase()==="unchecked"){P=false;break}}if(P){Q.firstChild.nextSibling.className="checked"}}M=M.parentNode}c.highlight();for(x=0;x<c.afterCheckArray.length;x++){if(typeof c.afterCheckArray[x]==="function"){c.afterCheckArray[x]()}}}else{if(this.className.toLowerCase()==="checked"){for(x=0;x<c.beforeUncheckArray.length;x++){if(typeof c.beforeUncheckArray[x]==="function"){c.beforeUncheckArray[x]()}}r=this.parentNode.getElementsByTagName("span");for(x=0;x<r.length;x++){if(r[x]===this){continue}if(!(r[x].className.toLowerCase()==="unchecked"||r[x].className.toLowerCase()==="checked")){continue}r[x].className="unchecked";r[x].title="Unchecked. . ."}this.className="unchecked";this.title="Unchecked";while(M!==null){if(M.nodeName.toLowerCase()==="li"){if(M.firstChild!==null){R=getNextSibling(M.firstChild);if(R!==null){if(R.nodeName.toLowerCase()==="span"){if(R!==this){y=R;if(y.className.toLowerCase()==="checked"||y.className.toLowerCase()==="unchecked"){y.className="unchecked";y.title="Unchecked. . ."}}}}}}M=M.parentNode}c.highlight();for(x=0;x<c.afterUncheckArray.length;x++){if(typeof c.afterUncheckArray[x]==="function"){c.afterUncheckArray[x]()}}}}return false};D.title="Unchecked. . .";E.insertBefore(D,E.firstChild);D=null}F=null;F=document.createElement("span");var A=0;if(this.m_toggle){addClass(F,"hasSubtreeHide");F.title="Show. . .";for(G=0;G<j.length;G++){j[G].style.display="none"}}else{if(this.m_showAll){addClass(F,"hasSubtreeShow");F.title="Hide. . .";for(G=0;G<j.length;G++){j[G].style.display="block"}}else{addClass(F,"hasSubtreeHide");F.title="Show. . .";for(G=0;G<j.length;G++){j[G].style.display="none"}}}if(this.m_textExpand){K=E.getElementsByTagName("a");for(A=0;A<K.length;A++){if(K[A].parentNode===E){addClass(K[A],"hasSubtreeHide");K[A].onclick=H;K[A].setAttribute("title","Show. . .");K[A].href="#nogo"}}}if(this.m_firstLast){if(getPreviousSibling(E)===null&&E.parentNode.id===this.m_gadgetIdName){addClass(E,"first")}else{if(getNextSibling(E)===null&&E.parentNode.id===this.m_gadgetIdName){addClass(E,"last")}}}F.onmouseover=function(i){this.style.cursor="pointer"};F.onmouseout=function(i){this.style.cursor="default"};F.onclick=m;E.insertBefore(F,E.firstChild);F=null}}if(this.m_manual){I=getElementsByClassName(this.m_gadgetIdRef,"on");for(C=0;C<I.length;C++){E=I[C];var f=null;var n=null;var t=0;if(E.nodeName.toLowerCase()==="li"){var J=E;while(J!==this.m_gadgetIdRef){if(J.parentNode.nodeName.toLowerCase()==="li"){addClass(J.parentNode,"on")}if(J.parentNode.nodeName.toLowerCase()==="ul"){J.parentNode.style.display="block";f=J.getElementsByTagName("span");for(t=0;t<f.length;t++){if(J!==f[t].parentNode){continue}if(findClass(f[t],"hasSubtreeHide")){changeClass(f[t],"hasSubtreeHide","hasSubtreeShow");f[t].title="Hide. . ."}}n=J.getElementsByTagName("a");for(t=0;t<n.length;t++){if(J!==n[t].parentNode){continue}if(findClass(n[t],"hasSubtreeHide")){changeClass(n[t],"hasSubtreeHide","hasSubtreeShow");n[t].title="Hide. . ."}}}J=J.parentNode}J=E;t=0;j=J.getElementsByTagName("ul");if(j.length>0){j[0].style.display="block"}J=E;f=J.getElementsByTagName("span");for(t=0;t<f.length;t++){if(J!==f[t].parentNode){continue}if(findClass(f[t],"hasSubtreeHide")){changeClass(f[t],"hasSubtreeHide","hasSubtreeShow");f[t].title="Hide. . ."}}J=E;n=J.getElementsByTagName("a");for(t=0;t<n.length;t++){if(J!==n[t].parentNode){continue}if(findClass(n[t],"hasSubtreeHide")){changeClass(n[t],"hasSubtreeHide","hasSubtreeShow");n[t].title="Hide. . ."}}}}}if(this.m_byPage){k=document.getElementsByTagName("body");if(k[0].id!==null){z=k[0].id;var h=getElementsByClassName(this.m_gadgetIdRef,z);for(var p=0;p<h.length;p++){if(h[p].nodeName.toLowerCase()==="li"){J=h[p];while(J!==this.m_gadgetIdRef){if(J.parentNode.nodeName.toLowerCase()==="ul"){J.parentNode.style.display="block";f=J.getElementsByTagName("span");for(t=0;t<f.length;t++){if(J!==f[t].parentNode){continue}if(findClass(f[t],"hasSubtreeHide")){changeClass(f[t],"hasSubtreeHide","hasSubtreeShow");f[t].title="Hide. . ."}}n=J.getElementsByTagName("a");for(t=0;t<n.length;t++){if(J!==n[t].parentNode){continue}if(findClass(n[t],"hasSubtreeHide")){changeClass(n[t],"hasSubtreeHide","hasSubtreeShow");n[t].title="Hide. . ."}}}J=J.parentNode}J=h[p];t=0;j=J.getElementsByTagName("ul");if(j.length>0){j[0].style.display="block"}J=h[p];f=J.getElementsByTagName("span");for(t=0;t<f.length;t++){if(J!==f[t].parentNode){continue}if(findClass(f[t],"hasSubtreeHide")){changeClass(f[t],"hasSubtreeHide","hasSubtreeShow");f[t].title="Hide. . ."}}J=h[p];n=J.getElementsByTagName("a");for(t=0;t<n.length;t++){if(J!==n[t].parentNode){continue}if(findClass(n[t],"hasSubtreeHide")){changeClass(n[t],"hasSubtreeHide","hasSubtreeShow");n[t].title="Hide. . ."}}}}}}L=null;k=null;G=null;o=null;z=null;F=null;v=null;j=null};this.beforeOpenArray=[];this.EnrollBeforeOpen=function(f){this.beforeOpenArray[this.beforeOpenArray.length]=f};this.afterOpenArray=[];this.EnrollAfterOpen=function(f){this.afterOpenArray[this.afterOpenArray.length]=f};this.beforeCloseArray=[];this.EnrollBeforeClose=function(f){this.beforeCloseArray[this.beforeCloseArray.length]=f};this.afterCloseArray=[];this.EnrollAfterClose=function(f){this.afterCloseArray[this.afterCloseArray.length]=f};this.beforeCheckArray=[];this.EnrollBeforeCheck=function(f){this.beforeCheckArray[this.beforeCheckArray.length]=f};this.afterCheckArray=[];this.EnrollAfterCheck=function(f){this.afterCheckArray[this.afterCheckArray.length]=f};this.beforeUncheckArray=[];this.EnrollBeforeUncheck=function(f){this.beforeUncheckArray[this.beforeUncheckArray.length]=f};this.afterUncheckArray=[];this.EnrollAfterUncheck=function(f){this.afterUncheckArray[this.afterUncheckArray.length]=f};this.initialize=function(){if(document.getElementById(e)!==null){this.setup(e,d);this.initTree(this.m_gadgetIdRef)}};this.initialize()}TreeControl.BEHAVIOR={showAll:1,collapseAll:2,toggle:3,byPage:4,manual:5,firstLast:6,textExpand:7,highlight:8,check:9};TreeControl.ARRAY=[];BLK.EBIZ.popupMenu={idIndex:0,classType:"popupMenu",MAX_Z_INDEX:999999,buildGadgetId:function(a){return this.classType+"_"+String(a)},setup:function(){this.positionFirstItem();this.buildPopupMenu();this.setZIndex()},setZIndex:function(){var a=0;var b=null;b=getElementsByClassName(document.body,"menuGadget");for(a=0;a<b.length;a++){b[a].style.zIndex=b.length-(a*5)+9999}},setZIndexTest:function(){var f=0;var d=0;var c=0;var a=null;var e;var m;var h=this.MAX_Z_INDEX;var l;var g;var b=null;a=getElementsByClassName(document.body,"menuGadget");h=this.MAX_Z_INDEX+1;for(f=0;f<a.length;f++){b=a[f].parentNode;while(b!==document.body){if(b.style){l=parseInt(b.style.zIndex,10);g=isNaN(l)?0:l;if(g===0){b.style.zIndex=h;h++}}b=b.parentNode}}h=this.MAX_Z_INDEX;for(f=0;f<a.length;f++){a[f].style.zIndex=h;h--;e=a[f].getElementsByTagName("ul");for(d=0;d<e.length;d++){e[d].style.zIndex=h;h--;m=e[d].getElementsByTagName("li");for(c=0;c<m.length;c++){m[c].style.zIndex=h;h--}}}},positionFirstItem:function(){var d=0;var c=0;var e=getElementsByClassName(document.body,"popupMenuGadget");var b=null;var f=null;for(d=0;d<e.length;d++){f=e[d];b=getElementsByClassName(f,"popupMenuGadgetFirst");if(b.length===0){BLK.EBIZ.trace("popupMenu.positionFirstItem - first not specified. . .");continue}if(b.length>1){BLK.EBIZ.trace("popupMenu.positionFirstItem - first over-specified. . .");continue}var a=f.getElementsByTagName("li");if(a.length<=0){BLK.EBIZ.trace("popupMenu.positionFirstItem - no items. . .");continue}for(c=0;c<b.length;c++){if(b[c]===a[0]){BLK.EBIZ.trace("popupMenu.positionFirstItem - first already first. . .");continue}BLK.EBIZ.trace("popupMenu.positionFirstItem - first re-position. . .");f.insertBefore(b[c],f.firstChild)}}},buildPopupMenu:function(){var u=null;var v=null;var o=null;var b=null;var s=0;var l=null;var q=0;var p=0;var c=null;var g=null;var f=null;var t=null;var m="";var d=false;var r=null;var n=null;var h=null;var e=null;t=getElementsByClassName(document.body,"popupMenuGadget");var w=false;for(s=0;s<t.length;s++){w=false;if(findClass(t[s],"popupMenuGadgetOnMouseover")){w=true}this.idIndex++;m=this.buildGadgetId(this.idIndex);o=document.createElement("div");o.id=m;if(w){o.className="menuGadget popupMenuGadget popupMenuGadgetOnMouseover"}else{o.className="menuGadget popupMenuGadget"}h=document.createElement("ul");h.className="popupMenuHeader";g=document.createElement("li");g.className="popupMenuWrapper";v=t[s].getElementsByTagName("a");if(v.length===0){BLK.EBIZ.trace2("popupMenu.buildPopupMenu - menu gadget list not found. . .");continue}u=document.createElement("a");u.href=v[0].href;u.className="popupMenuLink";n=document.createTextNode(v[0].firstChild.nodeValue);u.appendChild(n);g.appendChild(u);e=document.createElement("ul");e.className="popupMenuBody hide";for(p=1;p<v.length;p++){f=document.createElement("li");u=document.createElement("a");u.href=v[p].href;if(v[p].target!==""){u.target=v[p].target}if(typeof v[p].onclick==="function"){u.onclick=v[p].onclick}if(v[p].title!==""){u.title=v[p].title}n=document.createTextNode(v[p].firstChild.nodeValue);u.appendChild(n);f.appendChild(u);e.appendChild(f)}g.appendChild(e);h.appendChild(g);o.appendChild(h);t[s].parentNode.replaceChild(o,t[s]);this.createPopupEventHandlers(m)}},createPopupEventHandlers:function(f){var d=null;var b=null;var c=false;var g=null;var a=null;var k=null;var h=null;var j=null;var l=null;var e=null;a=document.getElementById(f);if(a===null){BLK.EBIZ.trace2("popupMenu.createPopupEventHandlers - invalid menu id. . .");return false}k=getElementsByClassName(a,"popupMenuHeader");if(k.length===0){BLK.EBIZ.trace2("popupMenu.createPopupEventHandlers - menu header not found. . .");return false}e=getElementsByClassName(a,"popupMenuWrapper");if(e.length===0){BLK.EBIZ.trace2("popupMenu.createPopupEventHandlers - menu wrapper not found. . .");return false}h=getElementsByClassName(a,"popupMenuLink");if(h.length===0){BLK.EBIZ.trace2("popupMenu.createPopupEventHandlers - menu link not found. . .");return false}d=getElementsByClassName(a,"popupMenuBody");if(d.length===0){BLK.EBIZ.trace2("popupMenu.createPopupEventHandlers - menu body not found. . .");return false}var i=false;if(findClass(a,"popupMenuGadgetOnMouseover")){i=true}g=function(r){var n=null;var p=null;var o=null;var q=false;if(typeof r==="undefined"){r=window.event;q=true}if(typeof r.target!=="undefined"){o=r.target}else{o=r.srcElement}p=document.getElementById(f);if(p!==null){n=getElementsByClassName(p,"popupMenuBody");if(n.length!==0){var s=p.style.zIndex;var m="999999";p.style.zIndex=m;k[0].style.zIndex=m-1;e[0].style.zIndex=m-2;n[0].style.zIndex=m-3;if(findClass(n[0],"hide")){changeClass(n[0],"hide","show")}p.style.zIndex=s;k[0].style.zIndex=s;e[0].style.zIndex=s;n[0].style.zIndex=s}}return false};if(i){e[0].onmouseover=g}else{e[0].onclick=g}g=function(q){var m=null;var o=null;var n=null;var p=false;if(typeof q==="undefined"){q=window.event;p=true}if(typeof q.target!=="undefined"){n=q.target}else{n=q.srcElement}o=document.getElementById(f);if(o!==null){m=getElementsByClassName(o,"popupMenuBody");if(m.length!==0){if(findClass(m[0],"show")){changeClass(m[0],"show","hide")}}}return false};if(i){e[0].onmouseout=g}l=document.getElementsByTagName("body")[0];l=document;g=function(m){var q=null;var u=false;var n=null;var p=null;var s=null;var t=false;try{if(typeof m==="undefined"){m=window.event;t=true}if(typeof m.target!=="undefined"){s=m.target}else{s=m.srcElement}n=document.getElementById(f);if(n!==null){p=s;u=false;while(p.parentNode!==null){if(p===n){u=true;break}p=p.parentNode}if(!u){q=getElementsByClassName(n,"popupMenuBody");if(q.length!==0){if(findClass(q[0],"show")){changeClass(q[0],"show","hide")}}}}}catch(r){var o="Exception caught:\n";o+=r.message;window.alert(o)}};l.onclick=g;c=true;return c}};BLK.EBIZ.popupMenu2={idIndex:0,classType:"popupMenu2",buildGadgetId:function(a){return this.classType+"_"+String(a)},setup:function(){BLK.EBIZ.trace2("popupMenu2.setup. . .");this.positionFirstItem();this.buildPopupMenu();this.setZIndex()},setZIndex:function(){BLK.EBIZ.trace2("popupMenu2.setZIndex. . .");var a=0;var b=null;b=getElementsByClassName(document.body,"menuGadget");for(a=0;a<b.length;a++){b[a].style.zIndex=b.length-(a*5)+9999}},positionFirstItem:function(){BLK.EBIZ.trace2("popupMenu2.positionFirstItem. . .");var d=0;var c=0;var e=getElementsByClassName(document.body,"popupMenuGadget");var b=null;var f=null;for(d=0;d<e.length;d++){f=e[d];b=getElementsByClassName(f,"popupMenuGadgetFirst");if(b.length===0){BLK.EBIZ.trace("popupMenu2.positionFirstItem - first not specified. . .");continue}if(b.length>1){BLK.EBIZ.trace("popupMenu2.positionFirstItem - first over-specified. . .");continue}var a=f.getElementsByTagName("li");if(a.length<=0){BLK.EBIZ.trace("popupMenu2.positionFirstItem - no items. . .");continue}for(c=0;c<b.length;c++){if(b[c]===a[0]){BLK.EBIZ.trace("popupMenu2.positionFirstItem - first already first. . .");continue}BLK.EBIZ.trace("popupMenu2.positionFirstItem - first re-position. . .");f.insertBefore(b[c],f.firstChild)}}},buildPopupMenu:function(){BLK.EBIZ.trace2("popupMenu2.buildPopupMenu. . .");var u=null;var v=null;var o=null;var b=null;var s=0;var l=null;var q=0;var p=0;var c=null;var g=null;var f=null;var t=null;var m="";var d=false;var r=null;var n=null;var h=null;var e=null;t=getElementsByClassName(document.body,"popupMenuGadget");var w=false;for(s=0;s<t.length;s++){w=false;if(findClass(t[s],"popupMenuGadgetOnMouseover")){w=true}this.idIndex++;if(t[s].id===""){m=this.buildGadgetId(this.idIndex)}else{m=t[s].id}o=document.createElement("div");o.id=m;if(w){o.className="menuGadget popupMenuGadget popupMenuGadgetOnMouseover"}else{o.className="menuGadget popupMenuGadget popupMenuGadgetOnClick"}h=document.createElement("ul");h.className="popupMenuHeader";g=document.createElement("li");g.className="popupMenuWrapper";v=t[s].getElementsByTagName("a");if(v.length===0){BLK.EBIZ.trace2("popupMenu2.buildPopupMenu - menu gadget list not found. . .");continue}u=document.createElement("a");u.href=v[0].href;u.className="popupMenuLink";n=document.createTextNode(v[0].firstChild.nodeValue);u.appendChild(n);g.appendChild(u);e=document.createElement("ul");e.className="popupMenuBody hide";for(p=1;p<v.length;p++){f=document.createElement("li");u=document.createElement("a");u.href=v[p].href;if(v[p].target!==""){u.target=v[p].target}if(typeof v[p].onclick==="function"){u.onclick=v[p].onclick}if(v[p].title!==""){u.title=v[p].title}n=document.createTextNode(v[p].firstChild.nodeValue);u.appendChild(n);f.appendChild(u);e.appendChild(f)}g.appendChild(e);h.appendChild(g);o.appendChild(h);t[s].parentNode.replaceChild(o,t[s]);this.createPopupEventHandlers(m)}},createPopupEventHandlers:function(f){var d=null;var b=null;var c=false;var g=null;var a=null;var k=null;var h=null;var j=null;var l=null;var e=null;a=document.getElementById(f);if(a===null){BLK.EBIZ.trace2("popupMenu2.createPopupEventHandlers - invalid menu id. . .");return false}k=getElementsByClassName(a,"popupMenuHeader");if(k.length===0){BLK.EBIZ.trace2("popupMenu2.createPopupEventHandlers - menu header not found. . .");return false}e=getElementsByClassName(a,"popupMenuWrapper");if(e.length===0){BLK.EBIZ.trace2("popupMenu2.createPopupEventHandlers - menu wrapper not found. . .");return false}h=getElementsByClassName(a,"popupMenuLink");if(h.length===0){BLK.EBIZ.trace2("popupMenu2.createPopupEventHandlers - menu link not found. . .");return false}d=getElementsByClassName(a,"popupMenuBody");if(d.length===0){BLK.EBIZ.trace2("popupMenu2.createPopupEventHandlers - menu body not found. . .");return false}var i=false;if(findClass(a,"popupMenuGadgetOnMouseover")){i=true}g=function(y){var n=null;var z=null;var s=null;var F=false;var p="";var u;var x;var w;var t;if(typeof y==="undefined"){y=window.event;F=true}if(typeof y.target!=="undefined"){s=y.target}else{s=y.srcElement}z=document.getElementById(f);if(z!==null){n=getElementsByClassName(z,"popupMenuBody");if(n.length!==0){var r=z.style.zIndex;var v="999999";z.style.zIndex=v;p="l/t=("+z.offsetLeft+","+z.offsetTop+"),w/h=("+z.offsetWidth+","+z.offsetHeight+")";k[0].style.zIndex=v-1;e[0].style.zIndex=v-2;n[0].style.zIndex=v-3;x=z.offsetTop+z.offsetHeight;u=z.offsetLeft;if(findClass(n[0],"hide")){changeClass(n[0],"hide","showDown");var G=getPosition(n[0]);var m=getScrollingPosition();var o=getViewportSize();var q=getPageDimensions();var E=0;var D=0;var C=0;var B=0;var A=0;E=G[1];D=parseInt(n[0].offsetHeight,10);B=o[1];A=m[1];C=E+D-B-A;changeClass(n[0],"showDown","hide");if(C>0){changeClass(n[0],"hide","showUp")}else{changeClass(n[0],"hide","showDown")}p="position=["+G[0]+","+G[1]+"]\nsize=["+n[0].offsetWidth+","+n[0].offsetHeight+"]\nscrolling position=["+m[0]+","+m[1]+"]\nviewport size=["+o[0]+","+o[1]+"]\npage dimensions=["+q[0]+","+q[1]+"]"}z.style.zIndex=r;k[0].style.zIndex=r;e[0].style.zIndex=r;n[0].style.zIndex=r}}return false};if(i){e[0].onmouseover=g}else{e[0].onclick=g}g=function(q){var m=null;var o=null;var n=null;var p=false;if(typeof q==="undefined"){q=window.event;p=true}if(typeof q.target!=="undefined"){n=q.target}else{n=q.srcElement}o=document.getElementById(f);if(o!==null){m=getElementsByClassName(o,"popupMenuBody");if(m.length!==0){if(findClass(m[0],"show")){changeClass(m[0],"show","hide")}if(findClass(m[0],"showUp")){changeClass(m[0],"showUp","hide")}if(findClass(m[0],"showDown")){changeClass(m[0],"showDown","hide")}}}return false};if(i){e[0].onmouseout=g}l=document.getElementsByTagName("body")[0];l=document;g=function(m){var q=null;var u=false;var n=null;var p=null;var s=null;var t=false;try{if(typeof m==="undefined"){m=window.event;t=true}if(typeof m.target!=="undefined"){s=m.target}else{s=m.srcElement}n=document.getElementById(f);if(n!==null){p=s;u=false;while(p.parentNode!==null){if(p===n){u=true;break}p=p.parentNode}if(!u){q=getElementsByClassName(n,"popupMenuBody");if(q.length!==0){if(findClass(q[0],"show")){changeClass(q[0],"show","hide")}if(findClass(q[0],"showUp")){changeClass(q[0],"showUp","hide")}if(findClass(q[0],"showDown")){changeClass(q[0],"showDown","hide")}}}}}catch(r){var o="Exception caught:\n";o+=r.message;window.alert(o)}};l.onclick=g;c=true;return c}};BLK.EBIZ.myPicks={idIndex:0,classType:"myPicksGadget",buildGadgetId:function(a){return this.classType+"_"+String(a)},setup:function(){this.buildMyPicks()},buildMyPicks:function(){var b=null;var d="";var e=false;b=getElementsByClassName(document.body,"myPicksGadget");var a=false;for(var c=0;c<b.length;c++){if(b[c].nodeName.toLowerCase()!=="a"){window.status="My picks tag not of correct type.";continue}this.createPopupEventHandlers(b[c])}},createPopupEventHandlers:function(c){var a=null;var b=false;var d=null;c.onclick=function(i){var e=null;var f=null;var h=false;if(typeof i==="undefined"){i=window.event;h=true}if(typeof i.target!=="undefined"){f=i.target}else{f=i.srcElement}var j=this.rel;if(j===""){window.alert("My picks content not specified.");window.status="My picks content not specified.";return false}var g=document.getElementById(j);if(g===null){window.alert("My picks content not found.");window.status="My picks content not found.";return false}if(findClass(this,"myPicksExpanded")){changeClass(this,"myPicksExpanded","myPicksCollapsed")}else{if(findClass(this,"myPicksCollapsed")){changeClass(this,"myPicksCollapsed","myPicksExpanded")}else{changeClass(this,"myPicksExpanded","myPicksCollapsed")}}if(findClass(g,"myPicksExpanded")){changeClass(g,"myPicksExpanded","myPicksCollapsed")}else{if(findClass(g,"myPicksCollapsed")){changeClass(g,"myPicksCollapsed","myPicksExpanded")}else{changeClass(g,"myPicksExpanded","myPicksCollapsed")}}return false};b=true;return b}};BLK.EBIZ.hideShow={idIndex:0,classType:"hideShowGadget",expireDays:90,buildGadgetId:function(a){return this.classType+"_"+String(a)},setup:function(){this.buildMyPicks()},setup2:function(a){this.expireDays=a;this.buildMyPicks()},buildMyPicks:function(){var m=this;var h=null;var d=0;var q=null;var l="";var a=false;var f="";var o="";var p={};h=getElementsByClassName(document.body,"hideShowGadget");d=h.length;var n=false;for(var k=0;k<d;k++){q=h[k];var e="other";if(q.nodeName.toLowerCase()==="a"){e="a"}else{if(q.nodeName.toLowerCase()==="input"){if(q.type.toLowerCase()==="checkbox"){e="checkbox"}else{if(q.type.toLowerCase()==="radio"){e="radio"}else{e="other"}}}else{e="other"}}if(e==="other"){window.status="Hide/Show tag not of correct type.";continue}var g="";if(e==="a"){g=q.rel}else{g=q.title}if(g===""){window.alert("Hide/Show content not specified.");window.status="Hide/Show content not specified.";continue}var b=document.getElementById(g);if(b===null){window.alert("Hide/Show content not found.");window.status="Hide/Show content not found.";continue}var c="";if(findClass(q,"hideShowExpanded")){if(e==="a"){removeClass(b,"hideShowExpanded");addClass(b,"hideShowCollapsed");c="hideShowExpanded"}else{if(e==="checkbox"){q.checked=true;changeClass(b,"hideShowCollapsed","hideShowExpanded");c="hideShowExpanded"}else{if(e==="radio"){if(q.checked===true){changeClass(b,"hideShowCollapsed","hideShowExpanded");c="hideShowExpanded"}}}}}else{if(findClass(q,"hideShowCollapsed")){if(e==="a"){removeClass(b,"hideShowExpanded");addClass(b,"hideShowCollapsed");c="hideShowCollapsed"}else{if(e==="checkbox"){q.checked=false;changeClass(b,"hideShowExpanded","hideShowCollapsed");c="hideShowCollapsed"}else{if(e==="radio"){if(q.checked===true){changeClass(b,"hideShowExpanded","hideShowCollapsed");c="hideShowCollapsed"}}}}}else{if(e==="a"){BLK.EBIZ.trace("neither expanded nor collapsed. . .")}else{if(e==="checkbox"){q.checked=false}else{if(e==="radio"){q.checked=false}}}changeClass(q,"hideShowExpanded","hideShowCollapsed");changeClass(b,"hideShowExpanded","hideShowCollapsed");c="hideShowCollapsed"}}var j="";if(q.nodeName.toLowerCase()==="a"&&findClass(q,"hideShowRemember")){o=unescape(getCookie("hideShowRemember"));if(o===""){f=q.id+":"+c;setCookie("hideShowRemember",f,this.expireDays)}else{if(o.indexOf(q.id,0)===-1){f=q.id+":"+c;setCookie("hideShowRemember",o+"/"+f,this.expireDays)}else{j=getSubCookie("hideShowRemember",q.id);p=new RegExp(g+":"+j);c=j;changeClass(q,["hideShowExpanded","hideShowCollapsed"],c);changeClass(b,["hideShowExpanded","hideShowCollapsed"],c)}}}this.createHideShowEventHandlers(q)}},createHideShowEventHandlers:function(c){var d=this;var a=null;var b=false;var e=null;e=(function(f){return function(g){var p=this;var t={};var n=null;var s=false;if(typeof g==="undefined"){g=window.event;s=true}var q=getEventTarget(g);if(typeof this.nodeName==="undefined"){p=q}else{p=this}var m="";var l="other";if(p.nodeName.toLowerCase()==="a"){m=p.rel;l="a"}else{if(p.nodeName.toLowerCase()==="input"){if(p.type.toLowerCase()==="checkbox"){m=p.title;l="checkbox"}else{if(p.type.toLowerCase()==="radio"){m=p.title;l="radio"}else{m="";l="other"}}}else{m="";l="other"}}if(m===""){window.alert("Hide/Show content not specified.");window.status="Hide/Show content not specified.";return false}var i=document.getElementById(m);if(i===null){window.alert("Hide/Show content not found.");window.status="Hide/Show content not found.";return false}var h=c.id;var k="";var r="";var o="";var u="";var j="";if(l==="radio"){if(findClass(p,"hideShowExpanded")){changeClass(p,"hideShowCollapsed","hideShowExpanded");changeClass(i,"hideShowCollapsed","hideShowExpanded");k=h+":hideShowExpanded";j="hideShowExpanded"}else{if(findClass(p,"hideShowCollapsed")){changeClass(p,"hideShowExpanded","hideShowCollapsed");changeClass(i,"hideShowExpanded","hideShowCollapsed");k=h+":hideShowCollapsed";j="hideShowCollapsed"}else{changeClass(p,"hideShowCollapsed","hideShowExpanded");changeClass(i,"hideShowCollapsed","hideShowExpanded");k=h+":hideShowExpanded";j="hideShowExpanded"}}}else{if(findClass(p,"hideShowExpanded")){changeClass(p,"hideShowExpanded","hideShowCollapsed");changeClass(i,"hideShowExpanded","hideShowCollapsed");k=h+":hideShowCollapsed";j="hideShowCollapsed"}else{if(findClass(p,"hideShowCollapsed")){changeClass(p,"hideShowCollapsed","hideShowExpanded");changeClass(i,"hideShowCollapsed","hideShowExpanded");k=h+":hideShowExpanded";j="hideShowExpanded"}else{changeClass(p,"hideShowExpanded","hideShowCollapsed");changeClass(i,"hideShowExpanded","hideShowCollapsed");k=h+":hideShowCollapsed";j="hideShowCollapsed"}}}if(p.nodeName.toLowerCase()==="a"){if(findClass(p,"hideShowRemember")){r=unescape(getCookie("hideShowRemember"));if(r===""){k=h+":"+j;setCookie("hideShowRemember",k,f.expireDays)}else{if(r.indexOf(h,0)===-1){k=h+":"+j;setCookie("hideShowRemember",r+"/"+k,f.expireDays)}else{o=getSubCookie("hideShowRemember",h);t=new RegExp(h+":"+o);k=h+":"+j;u=r.replace(t,k);setCookie("hideShowRemember",u,f.expireDays)}}}}if(l==="a"){return false}else{return true}}})(d);attachEventListener(c,"click",e,false);b=true;return b}};BLK.setConfigData=function(){var a=false;if(typeof BLK.envConfig==="undefined"){a=false;return a}if(typeof BLK.envSetting==="undefined"){a=false;return a}var b=0;for(b=0;b<BLK.setConfigData.fxnArray.length;b++){BLK.setConfigData.fxnArray[b]()}a=true;return a};BLK.setConfigData.fxnArray=[];BLK.BRS.login=function(e){var a=document.getElementById(e);if(a===null){window.alert("Login selection list not found. . .");return false}var b=a.selectedIndex;var c=a.options[b].value;if(c===""){window.alert("Please select an item from the login selection list. . .");a.focus();return false}var d=window.open(c,"loginWin","status=1,scrollbars=1,resizable=1,titlebar=1");if(d){d.resizeTo(screen.availWidth,screen.availHeight)}return false};BLK.EBIZ.EditButtons=function(c,a,d){var b=this;this.numberOfArguments=arguments.length;this.showEditButton=true;this.editButtonCookieNameDefault="editButtonGadget";this.editButtonCookieName="editButtonGadget";this.numberOfDaysToExpireDefault=1;this.numberOfDaysToExpire=1;this.functionKeyMap={F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123};this.functionKeyDefault="F10";this.functionKey="F10";this.initialize=function(g,e,h){if(this.numberOfArguments!==3&&this.numberOfArguments!==0){this.functionKey=this.functionKeyDefault;this.numberOfDaysToExpire=this.numberOfDaysToExpireDefault;this.editButtonCookieName=this.editButtonCookieNameDefault;return}if(g===undefined||e===undefined||h===undefined){this.functionKey=this.functionKeyDefault;this.numberOfDaysToExpire=this.numberOfDaysToExpireDefault;this.editButtonCookieName=this.editButtonCookieNameDefault;return}g=trim(g);if(g===""){this.functionKey=this.functionKeyDefault;this.numberOfDaysToExpire=this.numberOfDaysToExpireDefault;this.editButtonCookieName=this.editButtonCookieNameDefault;return}if(this.functionKeyMap[e]===undefined){this.functionKey=this.functionKeyDefault;this.numberOfDaysToExpire=this.numberOfDaysToExpireDefault;this.editButtonCookieName=this.editButtonCookieNameDefault;return}var f=!isNaN(h);if(!(h===null||f)){this.functionKey=this.functionKeyDefault;this.numberOfDaysToExpire=this.numberOfDaysToExpireDefault;this.editButtonCookieName=this.editButtonCookieNameDefault;return}this.editButtonCookieName=g;this.functionKey=e;this.numberOfDaysToExpire=h};this.setup=function(){var j="";j=GetCookie("BAPPPERM");if(j===""){this.showEditButton=false;return false}j=getCookie(this.editButtonCookieName);if(j===""){this.showEditButton=true}else{if(j==="show"){this.showEditButton=true}else{this.showEditButton=false}}var g=getElementsByClassName(document.body,"vbWrapper");var h=null;var f=0;var e="hide";for(f=0;f<g.length;f++){if(this.showEditButton){g[f].style.display="block";e="show"}else{g[f].style.display="none";e="hide"}setCookie(this.editButtonCookieName,e,this.numberOfDaysToExpire)}h=function(){var k=getElementsByClassName(document.body,"vbWrapper");var l=0;if(b.showEditButton){for(l=0;l<k.length;l++){k[l].style.display="none"}}else{for(l=0;l<k.length;l++){k[l].style.display="block"}}b.showEditButton=!b.showEditButton;setCookie(b.editButtonCookieName,(b.showEditButton?"show":"hide"),b.numberOfDaysToExpire)};this.stopEditKey.fxnArray[this.stopEditKey.fxnArray.length]=h;document.onkeydown=this.stopEditKey;return true};this.stopEditKey=function(g){if(typeof g==="undefined"){g=window.event}var f;if(typeof g.which!=="undefined"){f=g.which}else{f=g.keyCode}var h=b.functionKeyMap[b.functionKey];if(h==="undefined"){h=b.functionKeyMap[b.functionKey]}if(f===h){if(g.ctrlKey&&g.altKey){for(var e=0;e<b.stopEditKey.fxnArray.length;e++){b.stopEditKey.fxnArray[e]()}return false}else{return true}}else{return true}return true};this.stopEditKey.fxnArray=[];this.initialize(c,a,d);this.setup()};BLK.EBIZ.getUrlValue=function(d,h){if(typeof d==="undefined"){return""}var a=function(j){if(j===""||j===null){return""}else{return j.replace(/^\s*/,"").replace(/\s*$/,"")}};var b=function(j){var m="";var k="";var n="\\^$*+?.[]-{}()|";for(var l=0;l<j.length;l++){k=j.charAt(l);if(n.indexOf(k)!==-1){m+="\\"+k}else{m+=k}}return m};var c=b(d);if(typeof h==="undefined"){h=""}var i=a(location.search);if(i===""){return h}var e="";var f=null;var g=false;if(c.toLowerCase()==="symbol"){if(i.indexOf("symbol")===-1){return h}f=new RegExp("[&?]symbol=(\\w{3}|\\w{5})(&|\\b)","i")}else{if(c.toLowerCase()==="appurl"){if(i.indexOf("appurl")===-1){return h}f=new RegExp("[&?]appurl=(.+)","i")}else{if(c.toLowerCase()==="blkifrmurl"){if(i.indexOf("blkifrmurl")===-1){return h}f=new RegExp("[&?]blkifrmurl=(.+)","i")}else{if(c.toLowerCase()==="pgtitle"){if(i.indexOf("pgtitle")===-1){return h}f=new RegExp("[?&]pgtitle=(.+?)(?=&\\w+=|$)","i")}else{f=new RegExp("[&?]"+c+"=(.+?)(&|\\b)","i")}}}}e="";if(f.test(i)){e=RegExp.$1}else{e=h}return e};BLK.EBIZ.SearchGadget2=function(c,b,f,d,e,a){var g=this;this.defaultPrompt="Enter a search value.";this.userPrompt="";this.searchGadgetId="";this.resetGadgetId="";this.startGadgetId="";this.keyCodes={shift:16,ctrl:17,alt:18,pause:19,pageUp:33,pageDown:34,end:35,home:36,arrowLeft:37,arrowUp:38,arrowRight:39,arrowDown:40,insert:45,"delete":46};var i=function(k){if(typeof k==="undefined"){k=window.event}var l=getEventTarget(k);var j;if(typeof k.which!=="undefined"){j=k.which}else{j=k.keyCode}var m=findClass(this,"searchGadgetOnEveryKey");if(m){if(this.value.length===1){g.whenUserEntersText()}if(!(j===g.keyCodes.shift||j===g.keyCodes.ctrl||j===g.keyCodes.alt||j===g.keyCodes.pause||j===g.keyCodes.pageUp||j===g.keyCodes.pageDown||j===g.keyCodes.end||j===g.keyCodes.home||j===g.keyCodes.arrowLeft||j===g.keyCodes.arrowUp||j===g.keyCodes.arrowRight||j===g.keyCodes.arrowDown||j===g.keyCodes.insert)){i.searchFxn(this.value)}}else{if(j===13){if(!(this.value===g.userPrompt||this.value===g.defaultPrompt)){i.searchFxn(this.value)}}}};var h=function(k){if(typeof k==="undefined"){k=window.event}var j;if(typeof k.which!=="undefined"){j=k.which}else{j=k.keyCode}h.key=j;if(j===13){return false}else{if(j===8){return true}else{return true}}};h.key=0;this.setupResetEventHandler=function(j,l,k){l.onclick=(function(n,o,m){return function(){n();o.value=m}}(k,j,g.userPrompt))};this.setupStartEventHandler=function(k,l,j){l.onclick=(function(m,n){return function(){if(!(k.value===g.userPrompt||k.value===g.defaultPrompt)){m(k.value)}}}(j,k))};this.setupSearchEventHandler=function(k,j){var l=this;var m=null;k.onkeypress=h;i.searchFxn=j;k.onkeyup=i;m=function(n){if(typeof n==="undefined"){n=window.event}var o=getEventTarget(n);if(this.value===l.userPrompt){this.value=""}else{if(this.value===""){this.value=l.userPrompt}}return false};k.onclick=m;m=function(n){if(typeof n==="undefined"){n=window.event}var o=getEventTarget(n);if(this.value===""){this.value=l.userPrompt}return false};k.onblur=m};this.functionQueue=[];this.enrollFunction=function(j){this.functionQueue[this.functionQueue.length]=j};this.runFunction=function(){var j=0;for(j=0;j<this.functionQueue.length;j++){if(typeof this.functionQueue[j]!=="function"){continue}this.functionQueue[j]()}};this.clear=function(){var j=document.getElementById(g.searchGadgetId);if(j===null){window.status="Search gadget NOT found. . .";return}j.value=g.userPrompt};this.whenUserClicksClear=function(){};this.whenUserEntersText=function(){};this.setup=function(m,p,j,r,o,n){var q=document.getElementById(m);if(q===null){window.status="Search gadget NOT found. . .";return}var k=document.getElementById(r);if(k===null){window.status="Reset gadget NOT found. . .";return}var l=document.getElementById(n);if(l===null){window.status="Start gadget NOT found. . .";return}if(typeof p!=="function"){window.status="Search function not provided. . .";return}if(typeof o!=="function"){window.status="Reset function not provided. . .";return}if(j===""){this.userPrompt=this.defaultPrompt;q.value=this.defaultPrompt}else{this.userPrompt=j;q.value=j}this.searchGadgetId=m;this.resetGadgetId=r;this.startGadgetId=n;this.setupSearchEventHandler(q,p);this.setupResetEventHandler(q,k,o);this.setupStartEventHandler(q,l,p)};this.setup(c,b,f,d,e,a)};BLK.EBIZ.SearchGadget=function(h,c,b,g,d){var f=this;this.defaultPrompt="Enter a search value.";this.userPrompt="";this.searchGadgetId="";this.resetGadgetId="";this.keyCodes={shift:16,ctrl:17,alt:18,pause:19,pageUp:33,pageDown:34,end:35,home:36,arrowLeft:37,arrowUp:38,arrowRight:39,arrowDown:40,insert:45,"delete":46};var e=function(j){if(typeof j==="undefined"){j=window.event}var k=getEventTarget(j);var i;if(typeof j.which!=="undefined"){i=j.which}else{i=j.keyCode}var l=findClass(this,"searchGadgetOnEveryKey");if(l){if(this.value.length===1){f.whenUserEntersText()}if(!(i===f.keyCodes.shift||i===f.keyCodes.ctrl||i===f.keyCodes.alt||i===f.keyCodes.pause||i===f.keyCodes.pageUp||i===f.keyCodes.pageDown||i===f.keyCodes.end||i===f.keyCodes.home||i===f.keyCodes.arrowLeft||i===f.keyCodes.arrowUp||i===f.keyCodes.arrowRight||i===f.keyCodes.arrowDown||i===f.keyCodes.insert)){e.searchFxn(this.value)}}else{if(i===13){e.searchFxn(this.value)}}};var a=function(j){if(typeof j==="undefined"){j=window.event}var i;if(typeof j.which!=="undefined"){i=j.which}else{i=j.keyCode}a.key=i;if(i===13){return false}else{if(i===8){return true}else{return true}}};a.key=0;this.setupResetEventHandler=function(i,k,j){k.onclick=(function(m,n,l){return function(){m();n.value=l}}(j,i,f.userPrompt))};this.setupSearchEventHandler=function(j,i){var k=this;var l=null;j.onkeypress=a;e.searchFxn=i;j.onkeyup=e;l=function(m){if(typeof m==="undefined"){m=window.event}var n=getEventTarget(m);if(this.value===k.userPrompt){this.value=""}else{if(this.value===""){this.value=k.userPrompt}}return false};j.onclick=l;l=function(m){if(typeof m==="undefined"){m=window.event}var n=getEventTarget(m);if(this.value===""){this.value=k.userPrompt}return false};j.onblur=l};this.functionQueue=[];this.enrollFunction=function(i){this.functionQueue[this.functionQueue.length]=i};this.runFunction=function(){var j=0;for(j=0;j<this.functionQueue.length;j++){if(typeof this.functionQueue[j]!=="function"){continue}this.functionQueue[j]()}};this.clear=function(){var i=document.getElementById(f.searchGadgetId);if(i===null){window.status="Search gadget NOT found. . .";return}i.value=f.userPrompt};this.whenUserClicksClear=function(){};this.whenUserEntersText=function(){};this.setup=function(l,k,n,j,o){var i=document.getElementById(l);if(i===null){window.status="Search gadget NOT found. . .";return}var m=document.getElementById(j);if(m===null){window.status="Reset gadget NOT found. . .";return}if(typeof k!=="function"){window.status="Search function not provided. . .";return}if(typeof o!=="function"){window.status="Reset function not provided. . .";return}if(n===""){this.userPrompt=this.defaultPrompt;i.value=this.defaultPrompt}else{this.userPrompt=n;i.value=n}this.searchGadgetId=l;this.resetGadgetId=j;this.setupSearchEventHandler(i,k);this.setupResetEventHandler(i,m,o)};this.setup(h,c,b,g,d)};BLK.EBIZ.CheckboxGadget=function(b,a){var c=this;this.gadgetId="";this.setup=function(j,d){var f=document.getElementById(j);if(f===null){window.status="Check box gadget NOT found. . .";return}if(typeof d!=="function"){window.status="User function not provided. . .";return}this.gadgetId=j;this.toggleHandler.userFxn=d;this.itemHandler.userFxn=d;this.turnGivenItemsOn.userFxn=d;var e=0;var h=getElementsByClassName(f,"checkboxGadgetItem");for(e=0;e<h.length;e++){h[e].onclick=this.itemHandler;if(findClass(h[e],"checkboxGadgetItemOn")){h[e].title="Hide. . .";addClass(h[e].parentNode,"checkboxGadgetItemOn")}else{if(findClass(h[e].parentNode,"checkboxGadgetItemOn")){h[e].title="Hide. . .";addClass(h[e],"checkboxGadgetItemOn")}else{h[e].title="Show. . ."}}}var g=getElementsByClassName(f,"checkboxGadgetToggle");for(e=0;e<g.length;e++){g[e].onclick=this.toggleHandler}};this.toggleHandler=function(h){if(typeof h==="undefined"){h=window.event}var l=getEventTarget(h);var f=null;var g=this;var j=false;while(g!==null){if(findClass(g,"checkboxGadget")){j=true;f=g;break}g=g.parentNode}if(!j){window.alert("check box gadget not found. . .");return false}var d=[];var k=null;var e=0;if(findClass(this,"checkboxGadgetToggleOn")){changeClass(this,"checkboxGadgetToggleOn","checkboxGadgetToggleOff");k=getElementsByClassName(f,"checkboxGadgetItem");for(e=0;e<k.length;e++){changeClass(k[e],"checkboxGadgetItemOn","checkboxGadgetItemOff");k[e].title="Show. . ."}d=[]}else{changeClass(this,"checkboxGadgetToggleOff","checkboxGadgetToggleOn");k=getElementsByClassName(f,"checkboxGadgetItem");for(e=0;e<k.length;e++){changeClass(k[e],"checkboxGadgetItemOff","checkboxGadgetItemOn");k[e].title="Hide. . .";d[d.length]=getInternalText(k[e])}}c.toggleHandler.userFxn(d);return false};this.turnAllItemsOn=function(){var e=document.getElementById(c.gadgetId);if(e===null){window.status="Check box gadget NOT found. . .";return}var f=getElementsByClassName(e,"checkboxGadgetItem");for(var d=0;d<f.length;d++){f[d].title="Hide. . .";removeClass(f[d],"checkboxGadgetItemOff");addClass(f[d],"checkboxGadgetItemOn");removeClass(f[d].parentNode,"checkboxGadgetItemOff");addClass(f[d].parentNode,"checkboxGadgetItemOn")}};this.turnAllItemsOff=function(){var e=document.getElementById(c.gadgetId);if(e===null){window.status="Check box gadget NOT found. . .";return}var f=getElementsByClassName(e,"checkboxGadgetItem");for(var d=0;d<f.length;d++){f[d].title="Show. . .";removeClass(f[d],"checkboxGadgetItemOn");addClass(f[d],"checkboxGadgetItemOff");removeClass(f[d].parentNode,"checkboxGadgetItemOn");addClass(f[d].parentNode,"checkboxGadgetItemOff")}};this.turnGivenItemsOn=function(d){var k=document.getElementById(c.gadgetId);if(k===null){window.status="Check box gadget NOT found. . .";return}var g=false;var l=getElementsByClassName(k,"checkboxGadgetItem");var e="";for(var h=0;h<l.length;h++){e=getInternalText(l[h]);g=false;for(var f=0;f<d.length;f++){if(e===d[f]){g=true}}if(g){l[h].title="Hide. . .";removeClass(l[h],"checkboxGadgetItemOff");addClass(l[h],"checkboxGadgetItemOn");removeClass(l[h].parentNode,"checkboxGadgetItemOff");addClass(l[h].parentNode,"checkboxGadgetItemOn")}else{l[h].title="Show. . .";removeClass(l[h],"checkboxGadgetItemOn");addClass(l[h],"checkboxGadgetItemOff");removeClass(l[h].parentNode,"checkboxGadgetItemOn");addClass(l[h].parentNode,"checkboxGadgetItemOff")}}c.turnGivenItemsOn.userFxn(d)};this.itemHandler=function(e){if(typeof e==="undefined"){e=window.event}var n=getEventTarget(e);var f=null;var h=this;var o=false;while(h!==null){if(findClass(h,"checkboxGadget")){o=true;f=h;break}h=h.parentNode}if(!o){window.alert("check box gadget not found. . .");return false}if(findClass(this,"checkboxGadgetItemOn")){changeClass(this,"checkboxGadgetItemOn","checkboxGadgetItemOff");changeClass(this.parentNode,"checkboxGadgetItemOn","checkboxGadgetItemOff");this.title="Show. . ."}else{changeClass(this,"checkboxGadgetItemOff","checkboxGadgetItemOn");changeClass(this.parentNode,"checkboxGadgetItemOff","checkboxGadgetItemOn");this.title="Hide. . ."}var m=true;var d=true;var g=[];var j=getElementsByClassName(f,"checkboxGadgetItem");var l=0;for(l=0;l<j.length;l++){if(findClass(j[l],"checkboxGadgetItemOff")){m=false}if(findClass(j[l],"checkboxGadgetItemOn")){d=false;g[g.length]=getInternalText(j[l])}}var k=getElementsByClassName(f,"checkboxGadgetToggle");for(l=0;l<k.length;l++){if(m){changeClass(k[l],"checkboxGadgetToggleOff","checkboxGadgetToggleOn")}else{changeClass(k[l],"checkboxGadgetToggleOn","checkboxGadgetToggleOff")}}c.toggleHandler.userFxn(g);c.runFunction();return false};this.functionQueue=[];this.enrollFunction=function(d){this.functionQueue[this.functionQueue.length]=d};this.runFunction=function(){for(var d=0;d<this.functionQueue.length;d++){if(typeof this.functionQueue[d]!=="function"){continue}this.functionQueue[d]()}};this.provideUserDataFxn=function(){var d=[];var f=document.getElementById(b);if(f===null){window.status="Check box gadget NOT found. . .";return d}var g=getElementsByClassName(f,"checkboxGadgetItem");for(var e=0;e<g.length;e++){if(g[e].nodeName.toLowerCase()!=="a"){continue}if(findClass(g[e],"checkboxGadgetItemOn")){d[d.length]=getInternalText(g[e])}}return d};this.setup(b,a)};BLK.EBIZ.RadioButtonGadget=function(b,a,c){var d=this;this.gadgetId="";this.initalSelection=[];this.setup=function(l,f,k){if(typeof k!=="undefined"){BLK.EBIZ.RadioButtonGadget.prompt=k}var h=document.getElementById(l);if(h===null){window.status="Radio button gadget NOT found. . .";return}if(typeof f!=="function"){window.status="User function not provided. . .";return}this.gadgetId=l;this.itemHandler.userFxn=f;this.turnGivenItemOn.userFxn=f;var j=false;this.initialSelection=[];var e=getElementsByClassName(h,"radioButtonGadgetLink");for(var g=0;g<e.length;g++){e[g].onclick=this.itemHandler;if(findClass(e[g],"radioButtonGadgetLinkOn")){if(!j){changeClass(e[g].parentNode,"radioButtonGadgetItemOff","radioButtonGadgetItemOn");e[g].title="";this.initialSelection[this.initialSelection.length]=getInternalText(e[g]);j=true}else{changeClass(e[g],"radioButtonGadgetLinkOn","radioButtonGadgetLinkOff");changeClass(e[g].parentNode,"radioButtonGadgetItemOn","radioButtonGadgetItemOff");e[g].title=BLK.EBIZ.RadioButtonGadget.prompt}}else{if(findClass(e[g].parentNode,"radioButtonGadgetItemOn")){if(!j){changeClass(e[g],"radioButtonGadgetLinkOff","radioButtonGadgetLinkOn");e[g].title="";this.initialSelection[this.initialSelection.length]=getInternalText(e[g]);j=true}else{changeClass(e[g],"radioButtonGadgetLinkOn","radioButtonGadgetLinkOff");changeClass(e[g].parentNode,"radioButtonGadgetItemOn","radioButtonGadgetItemOff");e[g].title=BLK.EBIZ.RadioButtonGadget.prompt}}else{changeClass(e[g],"radioButtonGadgetLinkOn","radioButtonGadgetLinkOff");changeClass(e[g].parentNode,"radioButtonGadgetItemOn","radioButtonGadgetItemOff");e[g].title=BLK.EBIZ.RadioButtonGadget.prompt}}}};this.turnAllItemsOff=function(){var g=document.getElementById(d.gadgetId);if(g===null){window.status="Radio button gadget NOT found. . .";return}var e=getElementsByClassName(g,"radioButtonGadgetLink");for(var f=0;f<e.length;f++){e[f].title="Select Category";removeClass(e[f],"radioButtonGadgetLinkOn");addClass(e[f],"radioButtonGadgetLinkOff");removeClass(e[f].parentNode,"radioButtonGadgetItemOn");addClass(e[f].parentNode,"radioButtonGadgetItemOff")}};this.selectCategoryAll=function(){d.turnGivenItemOn(["All"])};this.turnGivenItemOn=function(e){var m=document.getElementById(d.gadgetId);if(m===null){window.status="Radio button gadget NOT found. . .";return}var k=false;var h=getElementsByClassName(m,"radioButtonGadgetLink");var f="";var n=false;for(var l=0;l<h.length;l++){f=getInternalText(h[l]);k=false;for(var g=0;g<e.length;g++){if(f.toLowerCase()===e[g].toLowerCase()){k=true}}if(k){if(!n){h[l].title="";removeClass(h[l],"radioButtonGadgetLinkOff");addClass(h[l],"radioButtonGadgetLinkOn");removeClass(h[l].parentNode,"radioButtonGadgetItemOff");addClass(h[l].parentNode,"radioButtonGadgetItemOn");n=true}else{h[l].title="Select Category";removeClass(h[l],"radioButtonGadgetLinkOn");addClass(h[l],"radioButtonGadgetLinkOff");removeClass(h[l].parentNode,"radioButtonGadgetItemOn");addClass(h[l].parentNode,"radioButtonGadgetItemOff")}}else{h[l].title="Select Category";removeClass(h[l],"radioButtonGadgetLinkOn");addClass(h[l],"radioButtonGadgetLinkOff");removeClass(h[l].parentNode,"radioButtonGadgetItemOn");addClass(h[l].parentNode,"radioButtonGadgetItemOff")}}};this.itemHandler=function(k){if(typeof k==="undefined"){k=window.event}var m=getEventTarget(k);var h=null;var j=this;var l=false;while(j!==null){if(findClass(j,"radioButtonGadget")){l=true;h=j;break}j=j.parentNode}if(!l){window.alert("radio button gadget not found. . .");return false}var e=[];var f=getElementsByClassName(h,"radioButtonGadgetLink");var g=0;for(g=0;g<f.length;g++){changeClass(f[g],"radioButtonGadgetLinkOn","radioButtonGadgetLinkOff");changeClass(f[g].parentNode,"radioButtonGadgetItemOn","radioButtonGadgetItemOff");f[g].title=BLK.EBIZ.RadioButtonGadget.prompt}changeClass(this,"radioButtonGadgetLinkOff","radioButtonGadgetLinkOn");changeClass(this.parentNode,"radioButtonGadgetItemOff","radioButtonGadgetItemOn");this.title="";e[0]=getInternalText(this);d.runFunctionAfter();arguments.callee.userFxn(e);return false};this.functionQueueBefore=[];this.enrollFunctionBefore=function(e){this.functionQueueBefore[this.functionQueueBefore.length]=e};this.runFunctionBefore=function(){for(var e=0;e<this.functionQueueBefore.length;e++){if(typeof this.functionQueueBefore[e]!=="function"){continue}this.functionQueueBefore[e]()}};this.functionQueueAfter=[];this.enrollFunctionAfter=function(e){this.functionQueueAfter[this.functionQueueAfter.length]=e};this.runFunctionAfter=function(){for(var e=0;e<this.functionQueueAfter.length;e++){if(typeof this.functionQueueAfter[e]!=="function"){continue}this.functionQueueAfter[e]()}};this.reset=function(){this.turnGivenItemOn(this.initialSelection)};this.provideUserDataFxn=function(){var e=[];var h=document.getElementById(b);if(h===null){window.status="Radio button gadget NOT found. . .";return e}var f=getElementsByClassName(h,"radioButtonGadgetLink");for(var g=0;g<f.length;g++){if(f[g].nodeName.toLowerCase()!=="a"){continue}if(findClass(f[g],"radioButtonGadgetLinkOn")){e[e.length]=getInternalText(f[g])}}return e};this.setup(b,a,c)};BLK.EBIZ.RadioButtonGadget.prompt="";BLK.EBIZ.messageGadget=function(b,e,d){var a=document.getElementById(b);if(a===null){if(e!==""){window.alert(e)}return}if(a.nodeName.toLowerCase()!=="div"){if(e!==""){window.alert(e)}return}if(!findClass(a,"messageGadget")){if(e!==""){window.alert(e)}return}if(typeof BLK.EBIZ.messageGadget.type[d]==="undefined"){if(e!==""){window.alert(e)}return}a.innerHTML="";if(e!==""){a.innerHTML=e}for(var c in BLK.EBIZ.messageGadget.type){removeClass(a,BLK.EBIZ.messageGadget.type[c])}addClass(a,BLK.EBIZ.messageGadget.type[d])};BLK.EBIZ.messageGadget.type={alert:"messageGadgetAlert",information:"messageGadgetInformation",error:"messageGadgetError",off:"messageGadgetOff"};function showDataInWindow(q,t,o,m){var k=document.getElementById(q);if(k===null){window.status="Data not found.";return}var d=k.innerHTML;var h=null;var f="status=1,scrollbar=1,resizable=0";var l=0;var a=0;if(typeof o==="undefined"||typeof m==="undefined"){h=window.open("","dw",f)}else{if(typeof o==="number"&&typeof m==="number"){if(o>0&&m>0){l=Math.round((screen.height-m)/2);a=Math.round((screen.width-o)/2);h=window.open("","dw","top="+l+",left="+a+",width="+o+",height="+m+","+f)}else{h=window.open("","dw",f)}}else{h=window.open("","dw",f)}}var b=document.getElementsByTagName("link");var p=document.getElementsByTagName("script");var n=document.getElementsByTagName("meta");var s="";var g="";var e="";var j="<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'><html xmlns='http://www.w3.org/1999/xhtml' lang='en' xml-lang='en' dir='ltr'><head><title>"+t+"</title>";var r=0;for(r=0;r<n.length;r++){e+="<meta ";if(n[r].content!==""){e+="content='"+n[r].content+"' "}if(n[r].httpEquiv!==""){e+="http-equiv='"+n[r].httpEquiv+"' "}if(n[r].name!==""){e+="name='"+n[r].name+"' "}if(n[r].scheme!==""){e+="scheme='"+n[r].scheme+"' "}e+="/>"}for(r=0;r<b.length;r++){s+="<link href='"+b[r].href+"' rel='stylesheet' type='text/css' media='screen' />"}var c="";for(r=0;r<p.length;r++){if(p[r].src!==""){c=p[r].src;c=c.toLowerCase();if(c.indexOf("envsetting")>=0){continue}if(c.indexOf("envconfig")>=0){continue}g+="<script src='"+p[r].src+"' type='text/javascript'><\/script>"}else{if(p[r].innerHTML!==""){g+="<script type='text/javascript'>"+p[r].innerHTML+"<\/script>"}}}j+=e+s+g+"</head><body><div id='firmInfoPopup'>";j+=d+"</div></body></html>";h.document.write(j);h.document.title=t;h.document.close();h.document.title=t;h.focus()}function showDataInWindow2(r,s,n,l){if(r===""){window.status="Data not found.";return}var d=r;var h=null;var f="status=1,scrollbar=1,resizable=0";var k=0;var a=0;if(typeof n==="undefined"||typeof l==="undefined"){h=window.open("","dw",f)}else{if(typeof n==="number"&&typeof l==="number"){if(n>0&&l>0){k=Math.round((screen.height-l)/2);a=Math.round((screen.width-n)/2);h=window.open("","dw","top="+k+",left="+a+",width="+n+",height="+l+","+f)}else{h=window.open("","dw",f)}}else{h=window.open("","dw",f)}}var b=document.getElementsByTagName("link");var o=document.getElementsByTagName("script");var m=document.getElementsByTagName("meta");var q="";var g="";var e="";var j="<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'><html xmlns='http://www.w3.org/1999/xhtml' lang='en' xml-lang='en' dir='ltr'><head><title>"+s+"</title>";var p=0;for(p=0;p<m.length;p++){e+="<meta ";if(m[p].content!==""){e+="content='"+m[p].content+"' "}if(m[p].httpEquiv!==""){e+="http-equiv='"+m[p].httpEquiv+"' "}if(m[p].name!==""){e+="name='"+m[p].name+"' "}if(m[p].scheme!==""){e+="scheme='"+m[p].scheme+"' "}e+="/>"}for(p=0;p<b.length;p++){q+="<link href='"+b[p].href+"' rel='stylesheet' type='text/css' media='screen' />"}var c="";for(p=0;p<o.length;p++){if(o[p].src!==""){c=o[p].src;c=c.toLowerCase();if(c.indexOf("envsetting")>=0){continue}if(c.indexOf("envconfig")>=0){continue}g+="<script src='"+o[p].src+"' type='text/javascript'><\/script>"}else{if(o[p].innerHTML!==""){g+="<script type='text/javascript'>"+o[p].innerHTML+"<\/script>"}}}j+=e+q+g+"</head><body><div id='firmInfoPopup'>";j+=d+"</div></body></html>";h.document.write(j);h.document.title=s;h.document.close();h.document.title=s;h.focus()}var LitModule=function(){var a=LitModule;a.className="";a.useAjax=false;a.debugMode=true;a.venue="";a.environment="";a.application="";a.locked=true;a.anonymous=true;a.destinationUrl="";a.friendlyIdentifier="";a.portal="";a.noPortal="";a.search="";a.document="";a.image="";a.service="";a.subscribe="";a.app="";a.emailText="";a.emailTarget="";a.emailURL="";a.emailData={};a.subscribeText="";a.subscribeTarget="";a.subscribeURL="";a.subscribeData={};a.viewPDFText="";a.viewPDFTarget="";a.viewPDFURL="";a.viewPDFData={};a.orderText="";a.orderTarget="";a.orderURL="";a.orderData={};a.errorName="";a.errorMessage="";a.errorDescription="";a.buildURL=function(g,f,b,d,e){var c="";BLK.EBIZ.trace("build URL to be implemented. . .");return c};a.buildImage=function(d){BLK.EBIZ.trace("LitModule.buildImage. . .");var b=null;var c=null;b=document.createElement("a");b.href=a.document+d.content_id+"&venue="+a.venue;b.target="_blank";b.className="lgThumb";c=document.createElement("img");c.src=a.image+d.content_id+"_lg.jpg";c.alt=d.doc_name+" ("+d.content_id+")";c.title=d.doc_name+" ("+d.content_id+")";b.appendChild(c);return b};a.buildDownloadAndPrint=function(c){BLK.EBIZ.trace("LitModule.buildDownloadAndPrint. . .");var b=null;var d=null;b=document.createElement("a");b.href=a.document+c.content_id+"&venue="+a.venue;b.target=a.viewPDFTarget;b.className="iconPDF";d=document.createTextNode(a.viewPDFText);b.appendChild(d);b.title=c.doc_name+" ("+c.content_id+")";return b};a.readyForEmail=function(b){var d="";var c="";c=b;c=c.replace(/\u0027/gi,"'");c=c.replace(/\u0022/gi,'"');c=c.replace(/\u2014/gi,"--");c=c.replace(/\u2122/gi,"TM");c=c.replace(/\u00ae/gi,"Reg");c=c.replace(/\u00a9/gi,"Copr");c=c.replace(/\u2013/gi,"-");c=c.replace(/\u00a0/gi," ");c=encodeURIComponent(c);d=c;return d};a.buildEmail=function(i){var k=null;var h="";var l=null;var d="";var j="";var c="";var m="";var b="";var f="";var g="";k=document.createElement("a");if((typeof a.emailData.message==="undefined")||(typeof a.emailData.filler==="undefined")||(typeof a.emailData.subject==="undefined")||(typeof a.emailData.link==="undefined")){if(a.emailTarget==="_self"){k.href=a.emailURL+i.content_id;k.target="_self"}else{k.href="#nogo";var e=(function(n){return function(o){var p=window.open(n,"emailWin","width=640,height=480,toolbar=1,status=1,resizable=1,status=1,scrollbars=1");if(p){p.focus()}return false}}(a.emailURL+i.content_id));k.onclick=e}}else{d=a.emailURL;j="?subject="+a.emailData.subject+" - "+encodeURIComponent(i.doc_name);g="&body="+a.readyForEmail(i.doc_name+"\n"+a.emailData.filler+"\n"+a.emailData.message+"\n\n"+encodeURI(a.emailData.link)+i.content_id+"\n"+a.emailData.filler+"\n");k.href=d+j+g;k.target="_self"}k.className="iconEmail";l=document.createTextNode(a.emailText);k.appendChild(l);k.title=i.doc_name+" ("+i.content_id+")";return k};a.buildSubscribe=function(e){var c=null;var i=null;var h="";var d="";var g=0;var b=0;c=document.createElement("a");i=document.createTextNode(a.subscribeText);c.appendChild(i);c.target=a.subscribeTarget;c.title=e.doc_name+" ("+e.content_id+")";c.href=a.subscribeURL+e.content_id;if(a.subscribeTarget==="_window"){g=a.subscribeData.width;b=a.subscribeData.height;d=a.subscribeURL+e.content_id;var f=(function(k,j,l){return function(n){if(typeof n==="undefined"){n=window.event}var m=getEventTarget(n);var o=window.open(k,"subscribeWin","width="+j+",height="+l+",toolbar=1,status=1,resizable=1,status=1,scrollbars=1");if(o){o.focus()}return false}}(d,g,b));c.onclick=f}c.className="iconSubscribe";return c};a.buildAddToCart=function(e){var c=null;var b=null;var d=null;var h=null;var g="";var i="";var f=parseInt(e.max_quantity,10);if(isNaN(f)){f=1}if(f<=0){f=1}b=document.createElement("div");b.className="callOutLitOrder";d=document.createElement("input");d.type="text";d.className="orderBox";d.title="Maximum quantity: "+f;d.setAttribute("disabled","disabled");d.style.visibility="hidden";b.appendChild(d);c=document.createElement("a");g=a.venue;i=e.content_id;c.href=a.orderURL+e.content_id;c.rel=f;c.rev=e.content_id;c.title=e.doc_name+" ("+e.content_id+")";c.className="callOutLitAddToCart";h=document.createTextNode(a.orderText);c.appendChild(h);b.appendChild(c);return b};a.buildLitModuleBasic=function(d){BLK.EBIZ.trace("LitModule.buildLitModuleBasic. . .");var g=null;var h=null;var f=null;var e=null;var c=null;var b=null;f=document.getElementById(d.content_id);if(f===null){BLK.EBIZ.trace("LitModule.buildLitModuleBasic: module placeholder not found.");return}f.innerHTML="";g=document.createElement("div");g.className="callOutLitTitle";h=document.createTextNode(d.doc_name);g.appendChild(h);f.appendChild(g);e=document.createElement("div");e.className="callOutLitLg";c=a.buildDownloadAndPrint(d);e.appendChild(c);if(d.email==="Y"){c=a.buildEmail(d);if(c!==null){e.appendChild(c)}}if(d.subscribe==="Y"){c=a.buildSubscribe(d);if(c!==null){e.appendChild(c)}}f.appendChild(e);if(d.orderable==="Y"){b=a.buildAddToCart(d);if(b!==null){f.appendChild(b)}}};a.buildLitModuleLG=function(d){BLK.EBIZ.trace("LitModule.buildLitModuleLG. . .");var g=null;var h=null;var f=null;var e=null;var c=null;var b=null;f=document.getElementById(d.content_id);if(f===null){BLK.EBIZ.trace("LitModule.buildLitModuleLG: module placeholder not found.");return}f.innerHTML="";g=document.createElement("div");g.className="callOutLitTitle";h=document.createTextNode(d.doc_name);g.appendChild(h);f.appendChild(g);e=document.createElement("div");e.className="callOutLitLg";c=a.buildImage(d);e.appendChild(c);c=a.buildDownloadAndPrint(d);e.appendChild(c);if(d.email==="Y"){c=a.buildEmail(d);if(c!==null){e.appendChild(c)}}if(d.subscribe==="Y"){c=a.buildSubscribe(d);if(c!==null){e.appendChild(c)}}f.appendChild(e);if(d.orderable==="Y"){b=a.buildAddToCart(d);if(b!==null){f.appendChild(b)}}};a.buildLitModuleTabular=function(j){BLK.EBIZ.trace("LitModule.buildLitModuleTabular. . .");var e=null;var p=null;var m=null;var o=null;var n=null;var d=null;var r=null;var q=null;var c=null;var f=null;var k=null;var i=null;var h=null;var b=null;var g=0;var l="";m=document.getElementById(j.content_id);if(m===null){BLK.EBIZ.trace("LitModule.buildLitModuleTabular: module placeholder not found.");return}l=m.innerHTML;m.innerHTML="";r=document.createElement("table");r.setAttribute("border","1");r.style.width="48%";r.style.margin="0 auto";q=document.createElement("caption");q.style.textAlign="center";q.style.margin="0 auto";p=document.createTextNode(j.doc_name);q.appendChild(p);r.appendChild(q);h=document.createElement("tbody");n=a.buildImage(j);k=document.createElement("tr");f=document.createElement("td");f.setAttribute("rowspan","2");f.rowSpan="2";f.style.textAlign="center";f.appendChild(n);k.appendChild(f);f=document.createElement("td");f.innerHTML=l;k.appendChild(f);h.appendChild(k);n=a.buildDownloadAndPrint(j);k=document.createElement("tr");f=document.createElement("td");b=document.createElement("div");b.appendChild(n);f.appendChild(b);k.appendChild(f);if(j.email==="Y"){n=a.buildEmail(j);if(n!==null){b=document.createElement("div");b.appendChild(n);f.appendChild(b)}}if(j.subscribe==="Y"){n=a.buildSubscribe(j);if(n!==null){b=document.createElement("div");b.appendChild(n);f.appendChild(b)}}if(j.orderable==="Y"){d=a.buildAddToCart(j);if(d!==null){f.appendChild(d)}}k.appendChild(f);h.appendChild(k);r.appendChild(h);m.appendChild(r)};a.buildModalWindow=function(b){BLK.EBIZ.trace("LitModule.buildModalWindow. . .");BLK.EBIZ.trace("build modal window to be implemented. . .");var d=null;var c=null;if(b.email==="Y"){BLK.EBIZ.trace("LitModule.buildModalWindow for email. . .")}if(b.subscribe==="Y"){BLK.EBIZ.trace("LitModule.buildModalWindow for subscribe. . .")}};a.litModuleTypes={basic:{id:"litModuleBasic",fxn:a.buildLitModuleBasic},large:{id:"litModuleLG",fxn:a.buildLitModuleLG},tabular:{id:"litModuleTabular",fxn:a.buildLitModuleTabular}};a.venues=[];a.buildVenuesArray=function(){var b=BLK.envSetting[a.environment]["litModule"]["venue"];var c;for(c in b){if(b.hasOwnProperty(c)){a.venues[a.venues.length]=c}}};a.urlTypes=["SUBSCRIPTION","MANAGESUBSCRIPTION","EMAIL","ORDER"];a.createLitModule=function(k){var Q=null;var l="";var K=null;var s="";var h=null;var b=null;var o=null;var H=null;var d="";var n="";var j={};var B=null;var p=null;var u="";var R=[];var x=null;var F=null;var I="";var M=null;var C=this;var N="";var E="";var g="";var A="";var m="";var y="";var v="";var z="";var t=null;var q=null;var G=null;var c=null;var e=null;var P=null;var w=null;var D=null;var O=null;var J=0;var r="";if(k===""){BLK.EBIZ.trace("LitModule.createLitModule - one or more documents not found. . .");return}R=k.split("~");j={content_id:R[0],doc_name:R[1],email:R[2],subscribe:R[3],orderable:R[4],max_quantity:R[5],share_class:R[6],dist_audience:R[7],nasd_link:R[8],pub_date:R[9]};if(j.content_id===""){BLK.EBIZ.trace("LitModule.createLitModule - missing content id:  "+j.content_id);return}if(j.content_id===null){BLK.EBIZ.trace("LitModule.createLitModule - invalid content id:  "+j.content_id);return}H=document.getElementById(j.content_id);if(H===null){BLK.EBIZ.trace("LitModule.createLitModule - literature module placeholder not found.");return}BLK.EBIZ.trace("LitModule.createLitModule - class name: "+LitModule.className+"||content id: "+R[0]);var f=false;var L="";for(L in C.litModuleTypes){if(findClass(H,C.litModuleTypes[L]["id"])){f=true;break}}if(f){n=C.litModuleTypes[L]["id"];changeClass(H,n+"WithoutData",n+"WithData");C.litModuleTypes[L]["fxn"](j)}else{n=C.litModuleTypes.basic;changeClass(H,n+"WithoutData",n+"WithData");C.litModuleTypes[n]["fxn"](j)}C.buildModalWindow(j)};a.readEnvironment=function(){var b=false;try{if((typeof BLK.envConfig.venue==="undefined")||(trim(BLK.envConfig.venue)==="")){a.errorName="BAD_VENUE";a.errorMessage="Venue not defined.";a.errorDescription="Please specify the venue.";b=false;return b}if((typeof BLK.envConfig.environment==="undefined")||(trim(BLK.envConfig.environment)==="")){a.errorName="BAD_ENVIRONMENT";a.errorMessage="Environment not defined.";a.errorDescription="Please specify the environment.";b=false;return b}if((typeof BLK.envConfig.application==="undefined")||(trim(BLK.envConfig.application)==="")){a.errorName="BAD_APPLICATION";a.errorMessage="Application not defined.";a.errorDescription="Please specify the application.";b=false;return b}a.venue=BLK.envConfig.venue;a.environment=BLK.envConfig.environment;a.application=BLK.envConfig.application;if(typeof BLK.envSetting[a.environment].litModule.friendlyIdentifier==="undefined"){a.errorName="BAD_FRIENDLY_IDENTIFIER";a.errorMessage="Friendly identifier not defined.";a.errorDescription="Please specify the friendly identifier.";b=false;return b}a.friendlyIdentifier=BLK.envSetting[a.environment].litModule.friendlyIdentifier;if(typeof BLK.envSetting.destinationUrl==="undefined"){a.errorName="BAD_DESTINATION_URL";a.errorMessage="Destination URL not defined.";a.errorDescription="Please specify the destination URL.";b=false;return b}if((typeof BLK.envSetting.destinationUrl[a.application]==="undefined")||(trim(BLK.envSetting.destinationUrl[a.application])==="")){a.errorName="BAD_APPLICATION_OF_DESTINATION_URL";a.errorMessage="Application of destination URL not defined.";a.errorDescription="Please specify application of the destination URL.";b=false;return b}a.destinationUrl=BLK.envSetting.destinationUrl[a.application];if(findClass(document.body,"locked")){BLK.EBIZ.trace2("LitModule.readEnvironment. . .locked - anonymous");a.anonymous=true;a.locked=true}else{BLK.EBIZ.trace2("LitModule.readEnvironment. . .not locked - authenticated");a.anonymous=false;a.locked=false}a.portal=BLK.envSetting[a.environment].litModule.portal;a.noPortal=BLK.envSetting[a.environment].litModule.noPortal;a.search=BLK.envSetting[a.environment].litModule.search;a.document=BLK.envSetting[a.environment].litModule.document;a.image=BLK.envSetting[a.environment].litModule.image;a.service=BLK.envSetting[a.environment].litModule.service;a.subscribe=BLK.envSetting[a.environment].litModule.subscribe;a.app=BLK.envSetting[a.environment].litModule.app;a.venue=a.venue.toUpperCase();if(typeof BLK.envSetting[a.environment].litModule.venue[a.venue]==="undefined"){a.errorName="INVALID_VENUE";a.errorMessage="Venue in HTML does not match venue in configuration file.";a.errorDescription="Please specify the correct venue.";b=false;return b}var d=/FP_TBD/;a.emailText=BLK.envSetting[a.environment].litModule.venue[a.venue].link_type.email.text;a.emailTarget=BLK.envSetting[a.environment].litModule.venue[a.venue].link_type.email.target;a.emailURL=BLK.envSetting[a.environment].litModule.venue[a.venue].link_type.email.url;a.emailURL=a.emailURL.replace(d,a.venue);a.emailData=BLK.envSetting[a.environment].litModule.venue[a.venue].link_type.email.data;a.subscribeText=BLK.envSetting[a.environment].litModule.venue[a.venue].link_type.subscribe.text;a.subscribeTarget=BLK.envSetting[a.environment].litModule.venue[a.venue].link_type.subscribe.target;a.subscribeURL=BLK.envSetting[a.environment].litModule.venue[a.venue].link_type.subscribe.url;a.subscribeURL=a.subscribeURL.replace(d,a.venue);a.subscribeData=BLK.envSetting[a.environment].litModule.venue[a.venue].link_type.subscribe.data;a.viewPDFText=BLK.envSetting[a.environment].litModule.venue[a.venue].link_type.view_pdf.text;a.viewPDFTarget=BLK.envSetting[a.environment].litModule.venue[a.venue].link_type.view_pdf.target;a.viewPDFURL=BLK.envSetting[a.environment].litModule.venue[a.venue].link_type.view_pdf.url;a.viewPDFURL=a.viewPDFURL.replace(d,a.venue);a.viewPDFData=BLK.envSetting[a.environment].litModule.venue[a.venue].link_type.view_pdf.data;a.orderText=BLK.envSetting[a.environment].litModule.venue[a.venue].link_type.order.text;a.orderTarget=BLK.envSetting[a.environment].litModule.venue[a.venue].link_type.order.target;a.orderURL=a.friendlyIdentifier+a.destinationUrl+BLK.envSetting[a.environment].litModule.venue[a.venue].link_type.order.url;a.orderURL=a.orderURL.replace(d,a.venue);a.orderData=BLK.envSetting[a.environment].litModule.venue[a.venue].link_type.order.data;a.buildVenuesArray();b=true}catch(c){b=false;a.errorName=c.name;a.errorMessage=c.message;a.errorDescription="Error occurred when reading environment or\nenvironment specifier inconsistent with name of configuration file. . ."}return b};a.getContentModuleUrl=function(){return a.search};a.getLitModuleDataUsingAjax=function(){var n;var h;var d;var j;var k;var l;var m;var o;var q;var e;var f;var p;var c;var b;c=a.getContentModuleUrl();for(b in a.litModuleTypes){if(a.litModuleTypes.hasOwnProperty(b)){q=getElementsByClassName(document.body,a.litModuleTypes[b]["id"]);if(q.length===0){continue}for(j=0;j<q.length;j++){addClass(q[j],a.litModuleTypes[b]["id"]+"WithoutData");d=q[j].id;if(d===""||d===null){continue}h="&contentId="+d;l=g_xmlHttpReqArray.length;g_xmlHttpReqArray[l]=new Ajax(a.createLitModule,false);try{g_xmlHttpReqArray[l].makeAjaxRequest(c,h,"GET")}catch(g){BLK.EBIZ.trace("LitModule.getLitModuleDataUsingAjax - Exception caught - Name: "+g.name+",Message: "+g.message)}}q=null}}};a.getLitModuleDataUsingScriptTags=function(){var m;var g;var d;var h;var j;var k;var l;var n;var p;var e;var f;var o;var c;var b;c=this.getContentModuleUrl();for(b in a.litModuleTypes){if(a.litModuleTypes.hasOwnProperty(b)){p=getElementsByClassName(document.body,a.litModuleTypes[b]["id"]);if(p.length===0){continue}for(h=0;h<p.length;h++){addClass(p[h],a.litModuleTypes[b]["id"]+"WithoutData");d=p[h].id;if(d===""||d===null){continue}g="&contentId="+d;buildDynamicScriptTag(c,g)}}}};a.setup=function(){var b=a.readEnvironment();if(b){if(a.useAjax){a.getLitModuleDataUsingAjax()}else{a.getLitModuleDataUsingScriptTags()}}else{BLK.EBIZ.trace2("LitModule.setup - exception: "+a.errorMessage)}};a.setup()};BLK.EBIZ.litListModule=function(){var a=BLK.EBIZ.litListModule};BLK.EBIZ.litListModule.debugWin=null;BLK.EBIZ.litListModule.debugMode=false;BLK.EBIZ.litListModule.message="We are experiencing a problem. We could not find any data and we are working to resolve this problem.";BLK.EBIZ.litListModule.portal="";BLK.EBIZ.litListModule.noPortal="";BLK.EBIZ.litListModule.search="";BLK.EBIZ.litListModule.document="";BLK.EBIZ.litListModule.image="";BLK.EBIZ.litListModule.service="";BLK.EBIZ.litListModule.subscribe="";BLK.EBIZ.litListModule.apply="";BLK.EBIZ.litListModule.chartTitle="";BLK.EBIZ.litListModule.LEVEL={local:"local",dev:"dev",test:"test",tst:"tst",tstwww:"tstwww",uat:"uat",prod:"prod",bfmwww:"bfmwww",err:"err",blk:"blk"};BLK.EBIZ.litListModule.SERVER_PROGRAM="unknown";BLK.EBIZ.litListModule.DISPLAY_TYPES={litListModuleSmall:BLK.EBIZ.litListModule.buildSmall,litListModuleLarge:BLK.EBIZ.litListModule.buildLarge};BLK.EBIZ.litListModule.parameters={litListModuleType:"DocType",litListModuleProd:"ProdGroup",litListModuleRange:"range",litListModuleKeyword:"Keyword",litListModuleBeginDate:"beginDate",litListModuleEndDate:"endDate",litListModuleOrderBy:"orderBy"};BLK.EBIZ.litListModule.PROD_GROUP={closed_end_funds:"10",money_markets:"25",mutual_funds:"29",separately_managed_accounts:"10053",variable_annuities:"36",liquidity_funds:"10000011"};BLK.EBIZ.litListModule.DOC_TYPE={ad_article_reprint:"1",advisor_fact_sheet:"2",brochure:"5",client_fact_sheet:"6",client_reference_education:"7",fp_reference_tools:"10",forms:"9",fund_analysis:"11",market_commentary:"14",newsletter:"17",performance_update:"20",policies:"21",presentation:"22",press_release:"23",product_commentary:"111",product_profile:"86",prospecting_material:"25",prospectus:"26",proxy_statement:"27",sai:"98",sales_idea:"30",sample_portfolio:"31",shareholder_letters:"109",shareholder_report:"32",special_report:"112",tax_information:"34",training_literature:"35",white_paper:"68",public_policy_viewpoints:"154",public_policy_letter:"155",xbrl:"156"};BLK.EBIZ.litListModule.create=function(myJSONtext){BLK.EBIZ.litListModule.create.counter++;var that=BLK.EBIZ.litListModule;var prompt="";try{that.runCode();that.setURIs();BLK.EBIZ.trace("BLK.EBIZ.litListModule.create. . .before JSON:"+BLK.EBIZ.litListModule.create.counter);var myJSONobj=eval("("+myJSONtext+")");BLK.EBIZ.trace("BLK.EBIZ.litListModule.create. . .after JSON :"+BLK.EBIZ.litListModule.create.counter);var idName="";var idRef=null;var type="";idName=myJSONobj.Header["ID"];idRef=document.getElementById(idName);if(idRef===null){prompt="Lit List Module: '"+idName+"' reference not found. . .";BLK.EBIZ.trace(prompt);return}type=idRef.className;if(findClass(idRef,"litListModuleSmall")){that.buildSmall(myJSONobj)}else{if(findClass(idRef,"litListModuleLarge")){that.buildLarge(myJSONobj)}else{prompt="Lit List Module: unknown type. . ."+idName+"||"+type;BLK.EBIZ.trace(prompt)}}}catch(ex){BLK.EBIZ.trace2("BLK.EBIZ.litListModule.create - name"+ex.name+",message: "+ex.message)}};BLK.EBIZ.litListModule.create.counter=0;BLK.EBIZ.litListModule.site="";BLK.EBIZ.litListModule.getSite=function(){var b=BLK.EBIZ.litListModule;var a="";if(typeof EBIZ.thisSite!=="undefined"){a=EBIZ.thisSite}BLK.EBIZ.trace("this site: "+a);return a};BLK.EBIZ.litListModule.getData=function(){var o=BLK.EBIZ.litListModule;var A=0;var z=0;var G="";var h="";var I="";var y="";var b="";var x="";var l=null;var c=false;var w="";var s="";o.runCode();var v=o.getSite();var C="UNKNOWN";if(v==="FP"){var d="open";var g=o.getValue(d);var f="objID";var q=o.getValue(f);var F=o.mapObjId(q,false);C=F.venueId;var a=F.pageId}var n="";var m="";var E="";if(v==="PUBLIC"){C=o.getPublicVenueId()}if(v==="FAIC"){C=o.getFaicVenueId()}var t=false;var e=false;var D=false;var u=false;var r="";var B=getElementsByClassName(document.body,"litListModuleSmall");for(A=0;A<B.length;A++){G="&id="+B[A].id;c=false;l=B[A].getElementsByTagName("input");if(l.length===0){B[A].innerHTML="<span class='litListModuleMessage'>"+o.message+"</span>";continue}t=false;e=false;u=false;for(z=0;z<l.length;z++){if(l[z].type!=="hidden"){continue}h=l[z].className;b=l[z].value;if(typeof BLK.EBIZ.litListModule.parameters[h]==="undefined"){continue}I=BLK.EBIZ.litListModule.parameters[h];if(I===BLK.EBIZ.litListModule.parameters.litListModuleType){y=BLK.EBIZ.litListModule.DOC_TYPE[b];e=true}else{if(I===BLK.EBIZ.litListModule.parameters.litListModuleProd){y=BLK.EBIZ.litListModule.PROD_GROUP[b];t=true}else{if(I===BLK.EBIZ.litListModule.parameters.litListModuleKeyword){y=b;D=true}else{if(I===BLK.EBIZ.litListModule.parameters.litListModuleOrderBy){y=b;u=true}else{y=b}}}}if(typeof y==="undefined"){continue}x="&"+I+"="+encodeURIComponent(y);G+=x;c=true}if(!u){G+="&orderBy=dateDESC"}G+="&Venue="+C;if(c){if(e||t||D){o.setURIs();buildDynamicScriptTag(BLK.EBIZ.litListModule.SERVER_PROGRAM,G);if(o.debugMode){var k=buildDynamicScriptTag.src;if(typeof o.debugWin==="undefined"||o.debugWin===null||o.debugWin.closed){o.debugWin=window.open("","dbgWin","resizable=1")}if(typeof o.debugWin!=="undefined"){r=o.debugWin.document.body.innerHTML;o.debugWin.document.body.innerHTML=r+"<div>"+k+"</div>";o.debugWin.document.close()}}}else{B[A].innerHTML="<span class='litListModuleMessage'>"+o.message+"</span>"}}else{B[A].innerHTML="<span class='litListModuleMessage'>"+o.message+"</span>"}}var p=getElementsByClassName(document.body,"litListModuleLarge");for(A=0;A<p.length;A++){G="&id="+p[A].id;c=false;l=p[A].getElementsByTagName("input");if(l.length===0){p[A].innerHTML="<span class='litListModuleMessage'>"+o.message+"</span>";continue}t=false;e=false;u=false;for(z=0;z<l.length;z++){if(l[z].type!=="hidden"){continue}h=l[z].className;b=l[z].value;if(typeof BLK.EBIZ.litListModule.parameters[h]==="undefined"){continue}I=BLK.EBIZ.litListModule.parameters[h];if(I===BLK.EBIZ.litListModule.parameters.litListModuleType){y=BLK.EBIZ.litListModule.DOC_TYPE[b];e=true}else{if(I===BLK.EBIZ.litListModule.parameters.litListModuleProd){y=BLK.EBIZ.litListModule.PROD_GROUP[b];t=true}else{if(I===BLK.EBIZ.litListModule.parameters.litListModuleKeyword){y=b;D=true}else{if(I===BLK.EBIZ.litListModule.parameters.litListModuleOrderBy){y=b;u=true}else{y=b}}}}if(typeof y==="undefined"){continue}x="&"+I+"="+encodeURIComponent(y);G+=x;c=true}if(!u){G+="&orderBy=dateDESC"}G+="&Venue="+C;if(c){if(e||t||D){o.setURIs();buildDynamicScriptTag(BLK.EBIZ.litListModule.SERVER_PROGRAM,G);if(o.debugMode){var H=buildDynamicScriptTag.src;if(typeof o.debugWin==="undefined"||o.debugWin===null||o.debugWin.closed){o.debugWin=window.open("","dbgWin","resizable=1")}if(typeof o.debugWin!=="undefined"){r=o.debugWin.document.body.innerHTML;o.debugWin.document.body.innerHTML=r+"<div>"+H+"</div>";o.debugWin.document.close()}}}else{B[A].innerHTML="<span class='litListModuleMessage'>"+o.message+"</span>"}}else{p[A].innerHTML="<span class='litListModuleMessage'>"+o.message+"</span>"}}};BLK.EBIZ.litListModule.buildSmall=function(o){try{var m=BLK.EBIZ.litListModule;var t;var s;var A;var E;var r;var z;var H;var q;var j;var w="";var v=m.getSite();var C="UNKNOWN";if(v==="FP"){var c="open";var e=m.getValue(c);var f="objID";var n=m.getValue(f);var G=m.mapObjId(n,false);C=G.venueId;var b=G.pageId}var l="";var k="";var F="";if(v==="PUBLIC"){C=m.getPublicVenueId()}if(v==="FAIC"){C=m.getFaicVenueId()}q=document.getElementById(o.Header["ID"]);if(q===null){w="Lit List Module: id not valid. . .:"+o.Header["ID"];BLK.EBIZ.trace(w);return}t=document.createElement("ul");var p=false;var u=o.Header["ColDef"]["date"]["ColOrder"];var D=o.Header["ColDef"]["title"]["ColOrder"];var d=o.Header["ColDef"]["filename"]["ColOrder"];var x=o.Header["ColDef"]["approvedFor"]["ColOrder"];var g=o.Header["ColDef"]["fileExt"]["ColOrder"];for(var y=0;y<o.Content.length;y++){p=true;s=document.createElement("li");E=document.createElement("a");r=document.createTextNode(o.Content[y][D][0]);E.appendChild(r);E.href=m.document+o.Content[y][d][0]+"&venue="+C;E.target="_blank";j=o.Content[y][g][0];j=j.toLowerCase();switch(j){case"pdf":s.className="icon_pdf";break;case"xls":s.className="icon_xls";break;case"doc":s.className="icon_word";break;case"ppt":s.className="icon_ppt";break;case"zip":s.className="icon_zip";break;default:s.className="icon_arrow";break}s.appendChild(E);z=document.createElement("span");r=document.createTextNode(" - "+o.Content[y][u][0]);z.appendChild(r);s.appendChild(z);t.appendChild(s)}if(p){q.innerHTML="";q.appendChild(t)}else{q.innerHTML="<span class='litListModuleMessage'>"+m.message+"</span>"}}catch(B){BLK.EBIZ.trace2("BLK.EBIZ.litListModule.buildSmall exception - name: "+B.name+",message: "+B.message)}};BLK.EBIZ.litListModule.buildLarge=function(o){try{var B=BLK.EBIZ.litListModule;var G;var q;var t;var C;var K;var c;var d;var M;var u;var l;var m;var x;var I;var D="";var f=B.getSite();var v="UNKNOWN";if(f==="FP"){var g="open";var w=B.getValue(g);var y="objID";var p=B.getValue(y);var n=B.mapObjId(p,false);v=n.venueId;var k=n.pageId}var s="";var z="";if(f==="PUBLIC"){v=B.getPublicVenueId()}if(f==="FAIC"){v=B.getFaicVenueId()}m=document.getElementById(o.Header["ID"]);if(m===null){D="Lit List Module: id not valid. . .:"+o.Header["ID"];BLK.EBIZ.trace(D);return}if(m.title!==""){x=m.title}else{x="Documents"}var h;var r;var A;var b;h=document.createElement("div");h.className="tableGadget highlight alternate select";r=document.createElement("div");r.className="tableGadgetHeader";A=document.createElement("span");A.className="tableGadgetCaption";r.appendChild(A);h.appendChild(r);b=document.createElement("div");b.className="tableGadgetBody";q=document.createElement("table");t=document.createElement("thead");K=document.createElement("tr");c=document.createElement("th");c.className="sort sortableHeader";u=document.createTextNode("Date");c.appendChild(u);K.appendChild(c);c=document.createElement("th");u=document.createTextNode(x);c.appendChild(u);K.appendChild(c);t.appendChild(K);q.appendChild(t);C=document.createElement("tbody");var j=false;var J=o.Header["ColDef"]["date"]["ColOrder"];var H=o.Header["ColDef"]["title"]["ColOrder"];var E=o.Header["ColDef"]["filename"]["ColOrder"];var e=o.Header["ColDef"]["approvedFor"]["ColOrder"];var L=o.Header["ColDef"]["fileExt"]["ColOrder"];for(var F=0;F<o.Content.length;F++){j=true;K=document.createElement("tr");d=document.createElement("td");u=document.createTextNode(o.Content[F][J][0]);d.appendChild(u);K.appendChild(d);d=document.createElement("td");M=document.createElement("a");u=document.createTextNode(o.Content[F][H][0]);M.appendChild(u);M.href=B.document+o.Content[F][E][0]+"&venue="+v;M.target="_blank";I=o.Content[F][L][0];I=I.toLowerCase();switch(I){case"pdf":M.className="icon_pdf";break;case"xls":M.className="icon_xls";break;case"doc":M.className="icon_word";break;case"ppt":M.className="icon_ppt";break;case"zip":M.className="icon_zip";break;default:M.className="icon_arrow";break}d.appendChild(M);K.appendChild(d);C.appendChild(K)}q.appendChild(C);b.appendChild(q);h.appendChild(b);if(j){m.innerHTML="";m.appendChild(h);if(typeof BLK.EBIZ.Table!=="undefined"){BLK.EBIZ.Table.setup2()}}else{m.innerHTML="<span class='litListModuleMessage'>"+B.message+"</span>"}}catch(I){BLK.EBIZ.trace2("BLK.EBIZ.litListModule.buildLarge exception - name: "+I.name+",message: "+I.message)}};BLK.EBIZ.litListModule.setCurrentLevel=function(){var b=BLK.EBIZ.litListModule;b.currentLevel=b.getEnvironment();var a="";if(b.currentLevel===BLK.EBIZ.litListModule.LEVEL.err){a="Lit List Module: error in current level. . .";BLK.EBIZ.trace(a)}};BLK.EBIZ.litListModule.setURIs=function(){var b=BLK.EBIZ.litListModule;b.currentLevel=b.getEnvironment();var a="";if(b.currentLevel===BLK.EBIZ.litListModule.LEVEL.err){a="Lit List Module: error in level when setting URIs. . .";BLK.EBIZ.trace(a);return}b.portal=BLK.envSetting[b.currentLevel]["litListModule"]["portal"];b.noPortal=BLK.envSetting[b.currentLevel]["litListModule"]["noPortal"];b.search=BLK.envSetting[b.currentLevel]["litListModule"]["search"];b.document=BLK.envSetting[b.currentLevel]["litListModule"]["document"];b.image=BLK.envSetting[b.currentLevel]["litListModule"]["image"];b.service=BLK.envSetting[b.currentLevel]["litListModule"]["service"];b.subscribe=BLK.envSetting[b.currentLevel]["litListModule"]["subscribe"];b.app=BLK.envSetting[b.currentLevel]["litListModule"]["app"];b.dataFilePath=BLK.envSetting[b.currentLevel]["dataFilePath"];b.SERVER_PROGRAM=BLK.envSetting[b.currentLevel]["litListModule"]["serverProgram"];b=null};BLK.EBIZ.litListModule.runCode=function(){var a="";BLK.EBIZ.litListModule.runCode.attemptCount++;if(BLK.EBIZ.litListModule.runCode.dataSet===true){window.clearTimeout(BLK.EBIZ.litListModule.runCode.timerId);return}if(BLK.EBIZ.litListModule.runCode.attemptCount>BLK.EBIZ.litListModule.runCode.maxNumberOfTimes){window.clearTimeout(BLK.EBIZ.litListModule.runCode.timerId);a="Lit List Module: code timeout error. . .";BLK.EBIZ.trace(a);return}var b=BLK.EBIZ.litListModule.getEnvironment()==="err"?false:true;if(b){window.clearTimeout(BLK.EBIZ.litListModule.runCode.timerId);BLK.EBIZ.litListModule.runCode.dataSet=true;BLK.EBIZ.litListModule.setURIs()}else{BLK.EBIZ.litListModule.runCode.timerId=window.setTimeout(function(){BLK.EBIZ.litListModule.runCode()},100)}};BLK.EBIZ.litListModule.runCode.timerId=null;BLK.EBIZ.litListModule.runCode.maxNumberOfTimes=400;BLK.EBIZ.litListModule.runCode.attemptCount=0;BLK.EBIZ.litListModule.runCode.dataSet=false;BLK.EBIZ.litListModule.getEnvironment=function(){var c=BLK.EBIZ.litListModule;var b=c.LEVEL.err;var a="";if(typeof BLK==="undefined"){if(c.debugMode){a="Lit List Module: BLK namespace undefined. . .";BLK.EBIZ.trace(a)}return BLK.EBIZ.litListModule.LEVEL.err}if(typeof BLK.envConfig==="undefined"){if(c.debugMode){a="BLK.envConfig item undefined. . .";BLK.EBIZ.trace(a)}return BLK.EBIZ.litListModule.LEVEL.err}if(typeof BLK.envConfig.environment==="undefined"){if(c.debugMode){a="BLK.envConfig.environment undefined. . .";BLK.EBIZ.trace(a)}return BLK.EBIZ.litListModule.LEVEL.err}if(c.LEVEL[BLK.envConfig.environment]==="undefined"){if(c.debugMode){a="Promotion level undefined. . .";BLK.EBIZ.trace(a)}return BLK.EBIZ.litListModule.LEVEL.err}b=c.LEVEL[BLK.envConfig.environment];c.currentLevel=b;return b};BLK.EBIZ.litListModule.mapObjId=function(c,a){if(typeof a==="undefined"){a=false}if(typeof a!=="boolean"){a=false}var d={};var b="FP_GENERIC";if(typeof BLK!=="undefined"){if(typeof BLK.envConfig!=="undefined"){if(typeof BLK.envConfig.venue!=="undefined"){b=BLK.envConfig.venue}}}switch(c){case"203":if(a){d={venueId:b,pageId:"8030"}}else{d={venueId:b,pageId:"274"}}break;case"206":if(a){d={venueId:b,pageId:"232"}}else{d={venueId:b,pageId:"233"}}break;case"207":if(a){d={venueId:b,pageId:"340"}}else{d={venueId:b,pageId:"237"}}break;default:if(a){d={venueId:b,pageId:"232"}}else{d={venueId:b,pageId:"233"}}break}return d};BLK.EBIZ.litListModule.getValue=function(a){var e="";var d=readyForRegExp(a);var b=trim(location.search);if(b===""){return""}var c=new RegExp("[\\?&]"+d+"=(\\w+)&?");e="";if(c.test(b)){e=RegExp.$1}return e};BLK.EBIZ.litListModule.getPublicVenueId=function(){var a="pub_ind";if(typeof BLK!=="undefined"){if(typeof BLK.envConfig!=="undefined"){if(typeof BLK.envConfig.venue!=="undefined"){a=BLK.envConfig.venue}}}return a};BLK.EBIZ.litListModule.getPublicVenueIdOld=function(){var a="";var b=BLK.EBIZ.getUrlValue("cmty").toLowerCase();if(b==="ind"){a="PUB_IND"}else{if(b==="inst"){a="PUB_INS"}else{if(b==="brs"){a="PUB_INS"}else{if(b==="ant"){a="PUB_INS"}else{a="PUB_IND"}}}}return a};BLK.EBIZ.litListModule.getFaicVenueId=function(){var a="";var b=BLK.EBIZ.getUrlValue("cmty").toLowerCase();if(b==="off"){a="FP_MLOFSHR"}else{a="FP_ML"}return a};BLK.EBIZ.litListModule.buildUrl=function(p,d,o,a,l){var g=BLK.EBIZ.litListModule;var h="open";g.runCode();var q=g.getValue(h);var n="objID";var j=g.getValue(n);if(j===""){return""}var k=g.mapObjId(j,false);var f=k.venueId;if(f===""){return""}var m=k.pageId;if(m===""){return""}var e=escape(window.location.href);var c;if(o===true){if(g.currentLevel===g.LEVEL.prod){c=g.portal;c+="&open="+q+"&objID="+j+"&PageID="+m;if(l){c+="&appname=estudioSearch"}c+="&appurl="+g.app}else{c=g.portal;c+="&open="+q+"&objID="+j+"&PageID="+m;if(l){c+="&appname=estudioSearch"}c+="&appurl="+g.app}}else{if(g.currentLevel===g.LEVEL.prod){c=g.portal}else{c=g.portal}}var i=false;var b="";switch(p){case"SUBSCRIPTION":i=true;if(f.toUpperCase()==="FP_GENERIC"){b="?ServiceName=SUBSCRIPTION&Venue="+f+"&ContentID="+d+"&fromsearch=2"}else{b="?type=subscription&ServiceName=SUBSCRIPTION&Venue="+f+"&ContentID="+d}break;case"MANAGESUBSCRIPTION":i=true;b="?ServiceName=MANAGESUBSCRIPTION&Venue="+f+"&ContentID="+d;break;case"EMAIL":i=true;b="?type=email&ServiceName=EMAIL&Venue="+f+"&ContentID="+d;break;case"ORDER":i=true;b="?ServiceName=FPSearch&ContentID="+d+"&Venue="+f;break;default:i=false;break}if(!i){window.status="Unknown common service type.";return""}if(a){c+=b+"&rurl="+e+"&title="+g.chartTitle}else{c+=b}g=null;return c};function wsodLoader(){BLK.EBIZ.trace2("wsodLoader. . .");var a=document.getElementById("wsod_suggest");if(a){if(typeof wsod_init==="function"){wsod_init();return true}return false}else{return false}}BLK.EBIZ.emailPrintGadget={emailBody:"You may find this information from BlackRock to be of interest.  Click on the link below to access the web page.\n\n",setup:function(){this.buildEmailLinks();this.buildPrintLinks()},readyForEmail:function(a){var c="";var b="";b=a;b=b.replace(/\u0027/gi,"'");b=b.replace(/\u0022/gi,'"');b=b.replace(/\u2014/gi,"--");b=b.replace(/\u2122/gi,"TM");b=b.replace(/\u00ae/gi,"Reg");b=b.replace(/\u00a9/gi,"Copr");b=b.replace(/\u2013/gi,"-");b=b.replace(/\u00a0/gi," ");b=encodeURIComponent(b);c=b;return c},buildEmailLinks:function(){var c=this;var d=getElementsByClassName(document.body,"iconEmail");var b=0;for(b=0;b<d.length;b++){if(d[b].nodeName.toLowerCase()!=="a"){continue}var a=function(e){if(typeof e==="undefined"){e=window.event}var f=getEventTarget(e);window.location="mailto:?Subject="+c.readyForEmail(document.title)+"&Body="+c.readyForEmail(c.emailBody)+encodeURI(window.location.href);stopDefaultAction(e);return false};attachEventListener(d[b],"click",a,false)}},buildPrintLinks:function(){var b=this;var d=getElementsByClassName(document.body,"iconPrint");var a=0;for(a=0;a<d.length;a++){if(d[a].nodeName.toLowerCase()!=="a"){continue}var c=function(e){if(typeof e==="undefined"){e=window.event}var f=getEventTarget(e);window.print();stopDefaultAction(e);return false};attachEventListener(d[a],"click",c,false)}}};BLK.EBIZ.RefreshIFrameGadget=function(a){this.MINIMUM_INTERVAL=1000*30;this.DEFAULT_INTERVAL=1000*60;this.interval=this.DEFAULT_INTERVAL;this.setup=function(){if(isNaN(parseInt(a,10))){this.interval=this.DEFAULT_INTERVAL}else{this.interval=parseInt(a,10);if(this.interval<this.MINIMUM_INTERVAL){this.interval=this.DEFAULT_INTERVAL}}var b=getElementsByClassName(document.body,"refreshIFrameGadget");var d=null;var c=0;for(c=0;c<b.length;c++){d=b[c];var e=function(){try{BLK.EBIZ.trace2("refresh "+arguments.callee.refreshIFrameGadgetSrc);BLK.EBIZ.trace2("before: "+arguments.callee.refreshIFrameGadgetSrc);var g=arguments.callee.refreshIFrameGadgetRef;BLK.EBIZ.trace2("after : "+g.src);g.src=arguments.callee.refreshIFrameGadgetSrc}catch(f){BLK.EBIZ.trace2("Exception - name: "+f.name+", message: "+f.message)}};d.timerFxn=e;d.timerFxn.refreshIFrameGadgetRef=d;d.timerFxn.refreshIFrameGadgetSrc=d.src;d.timerId=window.setInterval(d.timerFxn,this.interval)}};this.setup()};BLK.EBIZ.serverPolling={callback:function(a){if(typeof BLK.EBIZ.serverPolling.extCallbackFxn!=="function"){BLK.EBIZ.trace2("ext callback fxn not valid. . .");return}BLK.EBIZ.serverPolling.extCallbackFxn(a)},start:function(b,c,a){BLK.EBIZ.serverPolling.stop();if(isNaN(b)){BLK.EBIZ.trace2("Server polling bad interval. . .");return}if(b<BLK.EBIZ.serverPolling.MIN_INTERVAL){BLK.EBIZ.trace2("Server polling invalid interval. . .");return}if(isNaN(c)){BLK.EBIZ.trace2("Server polling bad count. . .");return}if(c<BLK.EBIZ.serverPolling.MIN_COUNT){BLK.EBIZ.trace2("Server polling invalid count. . .");return}if(typeof a!=="function"){BLK.EBIZ.trace2("Server polling bad callback function. . .");return}BLK.EBIZ.serverPolling.interval=b;BLK.EBIZ.serverPolling.count=c;BLK.EBIZ.serverPolling.extCallbackFxn=a;BLK.EBIZ.serverPolling.timerId=window.setInterval(function(){BLK.EBIZ.serverPolling.setup()},BLK.EBIZ.serverPolling.interval)},restart:function(){window.clearInterval(BLK.EBIZ.serverPolling.timerId);BLK.EBIZ.serverPolling.currentCount=0;BLK.EBIZ.serverPolling.timerId=window.setInterval(function(){BLK.EBIZ.serverPolling.setup()},BLK.EBIZ.serverPolling.interval)},stop:function(){window.clearInterval(BLK.EBIZ.serverPolling.timerId);BLK.EBIZ.serverPolling.currentCount=0;BLK.EBIZ.serverPolling.action=""},setup:function(){BLK.EBIZ.serverPolling.currentCount++;BLK.EBIZ.trace2("current count: "+String(BLK.EBIZ.serverPolling.currentCount)+",interval: "+String(BLK.EBIZ.serverPolling.interval)+",count: "+String(BLK.EBIZ.serverPolling.count));if(BLK.EBIZ.serverPolling.currentCount>BLK.EBIZ.serverPolling.count){BLK.EBIZ.trace2("Maximum count ("+String(BLK.EBIZ.serverPolling.count)+") exceeded. . .");BLK.EBIZ.serverPolling.stop();return}var m=getElementsByClassName(document.body,"serverPollingGadget");var f=null;var q=null;var d=getElementsByClassName(document.body,"serverPollingGadgetItem");var p=null;var l=null;var c="";var n="";var k=0;var h=0;var b="&idList=";var g="";var e="";var a="GET";if(m.length!==1){BLK.EBIZ.trace2("Invalid server polling gadget. . .");return}f=getElementsByClassName(m[0],"serverPollingGadgetServerProgram");if(f.length!==1){BLK.EBIZ.trace2("Invalid server polling gadget server program. . .");return}c=f[0].name;if(c!=="url"){BLK.EBIZ.trace2("Invalid url specification. . .");return}n=f[0].value;if(n===""){BLK.EBIZ.trace2("Missing url specification. . .");return}g=n;BLK.EBIZ.serverPolling.serverProgram=g;BLK.EBIZ.trace2("server program: "+BLK.EBIZ.serverPolling.serverProgram);q=getElementsByClassName(m[0],"serverPollingGadgetAction");if(q.length!==1){BLK.EBIZ.trace2("Invalid server polling gadget action. . .");return}c=q[0].name;if(c!=="url"){BLK.EBIZ.trace2("Invalid url specification. . .");return}n=q[0].value;if(n===""){BLK.EBIZ.trace2("Missing url specification. . .");return}e=n;BLK.EBIZ.serverPolling.action=e;BLK.EBIZ.trace2("action: "+BLK.EBIZ.serverPolling.action);d=getElementsByClassName(document.body,"serverPollingGadgetItem");if(d.length<1){BLK.EBIZ.trace2("No server polling gadget item found - stop polling. . .");BLK.EBIZ.serverPolling.stop();return}for(k=0;k<d.length;k++){p=getElementsByClassName(d[k],"serverPollingGadgetUpdateText");if(p.length!==1){BLK.EBIZ.trace2("Invalid server polling gadget update text. . .");continue}l=getElementsByClassName(d[k],"serverPollingGadgetDatum");if(l.length<1){BLK.EBIZ.trace2("Invalid server polling gadget datum. . .");continue}b+="";for(h=0;h<l.length;h++){c=l[h].name;n=l[h].value;b+=n+","}b=b.substr(0,b.length-1);b+="~"}b=b.substr(0,b.length-1);var o=new Ajax(BLK.EBIZ.serverPolling.callback,false);o.makeAjaxRequest(g,b,a)}};BLK.EBIZ.serverPolling.count=0;BLK.EBIZ.serverPolling.MIN_COUNT=2;BLK.EBIZ.serverPolling.currentCount=0;BLK.EBIZ.serverPolling.interval=0;BLK.EBIZ.serverPolling.MIN_INTERVAL=5000;BLK.EBIZ.serverPolling.timerId=null;BLK.EBIZ.serverPolling.serverProgram="";BLK.EBIZ.serverPolling.action="";BLK.EBIZ.serverPolling.extCallbackFxn=function(){};BLK.EBIZ.textFieldGadget={setup:function(c){var f=0;var e=function(){};var b=function(){};var j=function(){};var k=function(){};var h=true;var g=true;if(arguments.length===1){BLK.EBIZ.trace2("arguments.length OK");if(typeof c==="object"){BLK.EBIZ.trace2("config object OK");if(typeof c.onEnter==="function"){BLK.EBIZ.trace2("config.onEnter OK");e=c.onEnter}if(typeof c.onChange==="function"){BLK.EBIZ.trace2("config.onChange OK");b=c.onChange}if(typeof c.onFocus==="function"){BLK.EBIZ.trace2("config.onFocus OK");j=c.onFocus}if(typeof c.onBlur==="function"){BLK.EBIZ.trace2("config.onBlur OK");k=c.onBlur}if(typeof c.allowFormSubmit==="boolean"){BLK.EBIZ.trace2("config.allowFormSubmit OK");h=c.allowFormSubmit}if(typeof c.hideTextOnFocus==="boolean"){BLK.EBIZ.trace2("config.hideTextOnFocus OK");g=c.hideTextOnFocus}}}var a=getElementsByClassName(document.body,"textFieldGadget");var d=null;for(f=0;f<a.length;f++){d=a[f];if(d.nodeName.toLowerCase()!=="input"){continue}if(d.type.toLowerCase()!=="text"){continue}if(g){d.onfocus=(function(i){return function(m){if(typeof m==="undefined"){m=window.event}var l=getEventTarget(m);if(this.value.toLowerCase()===this.defaultValue.toLowerCase()){this.value=""}i()}}(j));d.onblur=(function(i,l){return function(n){if(typeof n==="undefined"){n=window.event}var m=getEventTarget(n);if(trim(m.value)===""){m.value=m.defaultValue}else{if(m.value.toLowerCase()!==m.defaultValue.toLowerCase()){i()}}l()}}(b,k))}else{d.onblur=(function(i,l){return function(n){if(typeof n==="undefined"){n=window.event}var m=getEventTarget(n);if(trim(m.value)===""){m.value=m.defaultValue}else{if(m.value.toLowerCase()!==m.defaultValue.toLowerCase()){i()}}l()}}(b,k))}d.onkeypress=(function(l,i){return function(n){if(typeof n==="undefined"){n=window.event}var m;if(typeof n.which!=="undefined"){m=n.which}else{m=n.keyCode}if(m===13){l();return i}else{return true}}}(e,h))}}};BLK.EBIZ.onDOMReady=function(a){var b=function(){if(!BLK.EBIZ.onDOMReady.alreadyRun){BLK.EBIZ.onDOMReady.alreadyRun=true;a()}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",b,false)}else{if(document.attachEvent){(function(){try{document.documentElement.doScroll("left")}catch(c){window.setTimeout(arguments.callee,1);return}b()}())}else{addLoadListener(b)}}};BLK.EBIZ.onDOMReady.alreadyRun=false;BLK.EBIZ.MegaMenuGadget=function(b){var a=this;this.findPos=function(d){var e=0;var c=0;if(d.offsetParent){do{e+=d.offsetLeft;c+=d.offsetTop;d=d.offsetParent}while(d.offsetParent)}return[e,c]};this.setup=function(){var c=document.getElementById(b);if(!c){BLK.EBIZ.trace2("Element "+b+" not found. . .");return}this.startList(b)};this.startList=function(g){function c(k){var l=/MSIE 6/i.test(navigator.userAgent);var j=0;if(l===true){var h=document.getElementsByTagName("select");for(j=0;j<h.length;j++){if(h[j].options){h[j].style.visibility=k}}}}if(document.getElementById){var f=document.getElementById(g);var d=0;var e=null;for(d=0;d<f.childNodes.length;d++){e=f.childNodes[d];if(e.nodeName.toLowerCase()==="li"){e.firstTime=true;e.maxHeight=0;e.onmouseover=(function(h){return function(w){if(typeof w==="undefined"){w=window.event}var p=this;var m=getEventTarget(w);addClass(p,"over");var j=0;var A=0;var k=0;var o=0;var v=p;var q=false;while(v!==null){if(findClass(v,"navDropdown")){q=true;break}v=v.parentNode}if(q){j=v.offsetWidth}var B=[];var l=getElementsByClassName(p,"navList");if(l.length>0){B=h.findPos(l[0]);if((l[0].parentNode.parentNode.offsetLeft+l[0].offsetWidth)>j){A=(l[0].parentNode.parentNode.offsetLeft+l[0].offsetWidth)-j;A=-1*A;l[0].style.left=String(A)+"px"}else{A=0;l[0].style.left=String(A)+"px"}}var z=getElementsByClassName(p,"navPanel");if(z.length>0){if(this.firstTime){this.maxHeight=z[0].clientHeight;this.firstTime=false}var y=getElementsByClassName(z[0],"navColumn");var r=[];var u=0;var s=0;var x=0;for(x=0;x<y.length;x++){r[r.length]=y[x].clientHeight}u=0;for(x=0;x<r.length;x++){if(r[x]>u){u=r[x]}}for(x=0;x<y.length;x++){y[x].style.height=String(u)+"px"}r=[];u=0;s=0;s=0;for(x=0;x<y.length;x++){s+=y[x].offsetWidth}z[0].style.width=String(s)+"px";var n;if(z[0].offsetWidth>j){n=((z[0].offsetWidth-j)/2)}else{n=0}B=h.findPos(z[0]);if((z[0].parentNode.offsetLeft+z[0].offsetWidth)>j){A=(z[0].parentNode.offsetLeft+z[0].offsetWidth)-j;A=-1*A;z[0].style.left=String(A+n)+"px"}else{var t=/MSIE/i.test(navigator.userAgent);if(t===true){A=-3}else{A=0}z[0].style.left=String(A)+"px"}c("hidden")}}}(this));e.onmouseout=function(i){if(typeof i==="undefined"){i=window.event}var h=null;h=getEventTarget(i);h=this;removeClass(h,"over");c("visible")}}}}};this.setup()};var NTPT_IMGSRC="http://pt000190.unica.com/ntpagetag.gif";var NTPT_FLDS=new Object();NTPT_FLDS.lc=true;NTPT_FLDS.rf=true;NTPT_FLDS.rs=true;NTPT_FLDS.cd=true;NTPT_FLDS.ln=true;NTPT_FLDS.tz=true;NTPT_FLDS.jv=true;NTPT_FLDS.ck=true;var NTPT_MAXTAGWAIT=1;var NTPT_HTTPSIMGSRC="https://pt000190.unica.com/ntpagetag.gif";var NTPT_GLBLREFTOP=false;var NTPT_SET_IDCOOKIE=true;var NTPT_IDCOOKIE_NAME="UnicaNIOID";var NTPT_IDCOOKIE_DOMAIN=".blackrock.com";var NTPT_GLBLEXTRA="";var NTPT_PGEXTRA="";var NTPT_GLBLCOOKIES=[];var cms_pn="";var cms_cc1="";var cms_cc2="";var cms_cc3="";var cms_cc4="";var cms_lang="";var cms_rti="";var cms_rtt="";var cms_env="";var cms_country="";var cms_site="";var ntptAddPair=null;var ntptDropPair=null;var ntptEventTag=null;var ntptLinkTag=null;var ntptSubmitTag=null;function unicaWrapper(){BLK.EBIZ.trace2("contact Unica server on PAGELOAD. . .");function OOOO000(OO0O00,O0O0O,O000OOO,OO0O00O){var O00O0="";O00O0=OO0O00+"\x3d"+escape(O0O0O)+"\x3b";if(OO0O00O){O00O0+="\x20\x64\x6f\x6d\x61\x69\x6e\x3d"+OO0O00O+"\x3b"}if(O000OOO>(7525+435-7960)){var OOO00O=new Date();OOO00O.setTime(OOO00O.getTime()+(O000OOO*(2470+2102-3572)));O00O0+="\x20\x65\x78\x70\x69\x72\x65\x73\x3d"+OOO00O.toGMTString()+"\x3b"}O00O0+="\x20\x70\x61\x74\x68\x3d\x2f";document.cookie=O00O0}function OOOO00(OO0O00){var O0O0O0O=OO0O00+"\x3d";if(document.cookie.length>(5679+0-5679)){var OO0000;OO0000=document.cookie.indexOf(O0O0O0O);if(OO0000!=-(262+5772-6033)){var OOO000;OO0000+=O0O0O0O.length;OOO000=document.cookie.indexOf("\x3b",OO0000);if(OOO000==-(4764+4910-9673)){OOO000=document.cookie.length}return unescape(document.cookie.substring(OO0000,OOO000))}else{return null}}}function O00000O(O0OO0){var OO000O="";for(OO00O in O0OO0){if((typeof(O0OO0[OO00O])=="\x73\x74\x72\x69\x6e\x67")&&(O0OO0[OO00O]!="")){if(OO000O!=""){OO000O+="\x3b"}OO000O+=OO00O+"\x3d"+O0OO0[OO00O]}}return OO000O}var O00OOO=["\x41","\x42","\x43","\x44","\x45","\x46","\x47","\x48","\x49","\x4a","\x4b","\x4c","\x4d","\x4e","\x4f","\x50","\x51","\x52","\x53","\x54","\x55","\x56","\x57","\x58","\x59","\x5a","\x61","\x62","\x63","\x64","\x65","\x66","\x67","\x68","\x69","\x6a","\x6b","\x6c","\x6d","\x6e","\x6f","\x70","\x71","\x72","\x73","\x74","\x75","\x76","\x77","\x78","\x79","\x7a","\x30","\x31","\x32","\x33","\x34","\x35","\x36","\x37","\x38","\x39"];function OOOOOO0(O00000){if(O00000<(65+9084-9087)){return O00OOO[O00000]}else{return(OOOOOO0(Math.floor(O00000/(4451+644-5033)))+O00OOO[O00000%(7260+1570-8768)])}}function O0O000O(){var OO0OO0O="";var OOOOO00=new Date();for(OOO0O0O=(5040+769-5809);OOO0O0O<(623+3070-3682);OOO0O0O++){OO0OO0O+=O00OOO[Math.round(Math.random()*(2914+1003-3856))]}return(OO0OO0O+"\x2d"+OOOOOO0(OOOOO00.getTime()))}function OO0OO(O0O0000,OOO0O00){return(eval("\x74\x79\x70\x65\x6f\x66\x20"+O0O0000+"\x20\x21\x3d\x20\x22\x75\x6e\x64\x65\x66\x69\x6e\x65\x64\x22")?eval(O0O0000):OOO0O00)}function OO0O000(O00OOO0,O0O000){return(O00OOO0+(((O00OOO0=="")||((O0O000=="")||(O0O000.substring((7625+2039-9664),(5186+4474-9659))=="\x26")))?"":"\x26")+O0O000)}function O000O00(){var O0O00O=new Date();return(O0O00O.getTime()+"\x2e"+Math.floor(Math.random()*(3801+1573-4374)))}function O00OO(OO0O00,OO0OO00){OOO00[OO0O00]=OO0OO00.toString()}function O0OO0O0(OO0O00){OOO00[OO0O00]=""}function OOO0000(O000O){var O0OO0O="",OO00O,O0O0O;OO00OO(OO0OO("\x4e\x54\x50\x54\x5f\x47\x4c\x42\x4c\x45\x58\x54\x52\x41",""));if(!LnkLck){OO00OO(OO0OO("\x4e\x54\x50\x54\x5f\x50\x47\x45\x58\x54\x52\x41",""))}OO00OO(O000O);for(OO00O in OOO00){O0O0O=OOO00[OO00O];if(typeof(O0O0O)=="\x73\x74\x72\x69\x6e\x67"){if(O0O0O&&(O0O0O!="")){O0OO0O=OO0O000(O0OO0O,(OO00O+"\x3d"+(self.encodeURIComponent?encodeURIComponent(O0O0O):escape(O0O0O))))}}}return O0OO0O}function O000000(){var OO00O;OOOOO0.OOO00=new Array();for(OO00O in OOO00){OOOOO0.OOO00[OO00O]=OOO00[OO00O]}}function OOO00OO(){var OO00O;OOO00=new Array();for(OO00O in OOOOO0.OOO00){OOO00[OO00O]=OOOOO0.OOO00[OO00O]}}function OO0O0OO(O00O00,O0OOOO0,O000OO){if(OOOO0[O00O00]!=null){var O000O0=new Function(O0OOOO0);OOOO0[O00O00].onload=O000O0;OOOO0[O00O00].onerror=O000O0;OOOO0[O00O00].onabort=O000O0}setTimeout(O0OOOO0,(O000OO*(1523+3206-3729)))}function O0O00O0(O0OOOO,OO0O0O){if(O0OOOO==""){return}O0000=((O0000+(4882+1405-6286))%OOOO0.length);if(OOOO0[O0000]==null){OOOO0[O0000]=new Image((4101+4276-8376),(4616+715-5330))}OOOO0[O0000].src=O0OOOO+"\x3f"+OO0O0O}function OOOOO0O(O000O){var O0OOOO;var OO0O0O;if((O00O00O!="")&&(document.location.protocol=="\x68\x74\x74\x70\x73\x3a")){O0OOOO=O00O00O}else{O0OOOO=O0000OO}OO0O0O=OOO0000(O000O);O0O00O0(O0OOOO,OO0O0O);OOO00OO()}function OO00OO(O000O){var OO00O0;var O00O0O;if(!O000O){return}O000O=O000O.toString();if(O000O==""){return}OO00O0=O000O.split("\x26");for(O00O0O=(220+1230-1450);O00O0O<OO00O0.length;O00O0O++){var OOO0O0=OO00O0[O00O0O].split("\x3d");if(OOO0O0.length==(2109+4370-6477)){O00OO(OOO0O0[(4672+5137-9809)],(self.decodeURIComponent?decodeURIComponent(OOO0O0[(2685+3816-6500)]):unescape(OOO0O0[(3471+2979-6449)])))}}}function O0O0OO(O000O){O00OO("\x65\x74\x73",O000O00());OOOOO0O(O000O);return true}function O00OO0O(OOOOO,O000O,O000OO){var O0OOO;if(!OOOOO||!OOOOO.href){return true}if(LnkLck){return false}LnkLck=OOOOO;if(OO000.lc){O00OO("\x6c\x63",OOOOO.href)}if(OO000.rf){if(!O0OO000||!top||!top.document){O00OO("\x72\x66",document.location)}}O0O0OO(O000O);if(O000OO){O0OOO=O000OO}else{O0OOO=NTPT_MAXTAGWAIT}if(O0OOO>(1625+6874-8499)){var OOOOOO;if(OOOOO.click){OOOOO.tmpclck=OOOOO.onclick;OOOOO.onclick=null;OOOOOO="\x69\x66\x20\x28\x20\x4c\x6e\x6b\x4c\x63\x6b\x20\x29\x20\x7b\x20\x4c\x6e\x6b\x4c\x63\x6b\x2e\x63\x6c\x69\x63\x6b\x28\x29\x3b\x20\x4c\x6e\x6b\x4c\x63\x6b\x2e\x6f\x6e\x63\x6c\x69\x63\x6b\x20\x3d\x20\x4c\x6e\x6b\x4c\x63\x6b\x2e\x74\x6d\x70\x63\x6c\x63\x6b\x3b\x20\x4c\x6e\x6b\x4c\x63\x6b\x20\x3d\x20\x6e\x75\x6c\x6c\x3b\x20\x7d"}else{OOOOOO="\x69\x66\x20\x28\x20\x4c\x6e\x6b\x4c\x63\x6b\x20\x29\x20\x7b\x20\x77\x69\x6e\x64\x6f\x77\x2e\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x2e\x68\x72\x65\x66\x20\x3d\x20\x22"+OOOOO.href+"\x22\x3b\x20\x4c\x6e\x6b\x4c\x63\x6b\x20\x3d\x20\x6e\x75\x6c\x6c\x3b\x20\x7d"}OO0O0OO(O0000,OOOOOO,O0OOO);return false}LnkLck=null;return true}function O000OO0(OO0OOO,O000O,O000OO){var O0OOO;if(!OO0OOO||!OO0OOO.submit){return true}if(FrmLck){return false}FrmLck=OO0OOO;O0O0OO(O000O);if(O000OO){O0OOO=O000OO}else{O0OOO=NTPT_MAXTAGWAIT}if(O0OOO>(5271+4406-9677)){OO0OOO.tmpsbmt=OO0OOO.onsubmit;OO0OOO.onsubmit=null;OO0O0OO(O0000,"\x69\x66\x20\x28\x20\x46\x72\x6d\x4c\x63\x6b\x20\x29\x20\x7b\x20\x46\x72\x6d\x4c\x63\x6b\x2e\x73\x75\x62\x6d\x69\x74\x28\x29\x3b\x20\x46\x72\x6d\x4c\x63\x6b\x2e\x6f\x6e\x73\x75\x62\x6d\x69\x74\x20\x3d\x20\x46\x72\x6d\x4c\x63\x6b\x2e\x74\x6d\x70\x73\x62\x6d\x74\x3b\x20\x46\x72\x6d\x4c\x63\x6b\x20\x3d\x20\x6e\x75\x6c\x6c\x3b\x20\x7d",O0OOO);return false}FrmLck=null;return true}var O0000OO=NTPT_IMGSRC;var OO000=NTPT_FLDS;var O00OO0=OO0OO("\x4e\x54\x50\x54\x5f\x47\x4c\x42\x4c\x43\x4f\x4f\x4b\x49\x45\x53",null);var OOOO0O=OO0OO("\x4e\x54\x50\x54\x5f\x50\x47\x43\x4f\x4f\x4b\x49\x45\x53",null);var OOO00O0=OO0OO("\x4e\x54\x50\x54\x5f\x53\x45\x54\x5f\x49\x44\x43\x4f\x4f\x4b\x49\x45",false);var OO0OO0=OO0OO("\x4e\x54\x50\x54\x5f\x49\x44\x43\x4f\x4f\x4b\x49\x45\x5f\x4e\x41\x4d\x45","\x53\x61\x6e\x65\x49\x44");var OO00O00=OO0OO("\x4e\x54\x50\x54\x5f\x49\x44\x43\x4f\x4f\x4b\x49\x45\x5f\x44\x4f\x4d\x41\x49\x4e",null);var OO0OOOO=OO0OO("\x4e\x54\x50\x54\x5f\x49\x44\x43\x4f\x4f\x4b\x49\x45\x5f\x45\x58\x50\x49\x52\x45",155520000);var O00O00O=OO0OO("\x4e\x54\x50\x54\x5f\x48\x54\x54\x50\x53\x49\x4d\x47\x53\x52\x43","");var O0OO000=OO0OO("\x4e\x54\x50\x54\x5f\x50\x47\x52\x45\x46\x54\x4f\x50",OO0OO("\x4e\x54\x50\x54\x5f\x47\x4c\x42\x4c\x52\x45\x46\x54\x4f\x50",false));var OO00000=OO0OO("\x4e\x54\x50\x54\x5f\x4e\x4f\x49\x4e\x49\x54\x49\x41\x4c\x54\x41\x47",false);ntptAddPair=O00OO;ntptDropPair=O0OO0O0;ntptEventTag=O0O0OO;ntptLinkTag=O00OO0O;ntptSubmitTag=O000OO0;var OOO00=new Array();var OOOOO0=new Object();var OOOO0=Array((791+3540-4321));var O0000;for(O0000=(5508+3590-9098);O0000<OOOO0.length;O0000++){OOOO0[O0000]=null}var LnkLck=null;var FrmLck=null;O00OO("\x6a\x73","\x31");O00OO("\x74\x73",O000O00());if(OO000.lc){O00OO("\x6c\x63",document.location)}if(OO000.rf){var OOO0OO;if(O0OO000&&top&&top.document){OOO0OO=top.document.referrer}else{OOO0OO=document.referrer}O00OO("\x72\x66",OOO0OO)}if(self.screen){if(OO000.rs){O00OO("\x72\x73",self.screen.width+"\x78"+self.screen.height)}if(OO000.cd){O00OO("\x63\x64",self.screen.colorDepth)}}if(OO000.ln){var OOO0O;if(navigator.language){OOO0O=navigator.language}else{if(navigator.userLanguage){OOO0O=navigator.userLanguage}else{OOO0O=""}}if(OOO0O.length>(1122+2203-3323)){OOO0O=OOO0O.substring((3653+3555-7208),(390+8395-8783))}OOO0O=OOO0O.toLowerCase();O00OO("\x6c\x6e",OOO0O)}if(OO000.tz){var OO0O0;var O0O00O=new Date();var O0O00=O0O00O.getTimezoneOffset();var O0OO00;OO0O0="\x47\x4d\x54";if(O0O00!=(4628+4348-8976)){if(O0O00>(1907+6772-8679)){OO0O0+="\x20\x2d"}else{OO0O0+="\x20\x2b"}O0O00=Math.abs(O0O00);O0OO00=Math.floor(O0O00/(2168+3391-5499));O0O00-=O0OO00*(3131+4046-7117);if(O0OO00<(5094+969-6053)){OO0O0+="\x30"}OO0O0+=O0OO00+"\x3a";if(O0O00<(2977+208-3175)){OO0O0+="\x30"}OO0O0+=O0O00}O00OO("\x74\x7a",OO0O0)}if(OO000.jv){var O0000O;if(navigator.javaEnabled()){O0000O="\x31"}else{O0000O="\x30"}O00OO("\x6a\x76",O0000O)}var O0OO0=new Array();var O00O0OO=false;if(OO000.ck){var O0O0O0;var O00O0,O0OOO0;if(O00OO0){for(O0O0O0=(2170+7306-9476);O0O0O0<O00OO0.length;O0O0O0++){O0OO0[O00OO0[O0O0O0]]=""}}if(OOOO0O){for(O0O0O0=(6954+931-7885);O0O0O0<OOOO0O.length;O0O0O0++){O0OO0[OOOO0O[O0O0O0]]=""}}for(OO00O in O0OO0){O00O0=OOOO00(OO00O);if(O00O0){O0OO0[OO00O]=O00O0}}if(OOO00O0){O00O0=OOOO00(OO0OO0);if(O00O0){O0OO0[OO0OO0]=O00O0;O00O0OO=true}}O0OOO0=O00000O(O0OO0);if(O0OOO0!=""){O00OO("\x63\x6b",O0OOO0)}}O000000();if(!OO00000){OOOOO0O("")}if(OOO00O0&&!O00O0OO){var O00O0=OOOO00(OO0OO0);if(!O00O0){O00O0=O0O000O();OOOO000(OO0OO0,O00O0,OO0OOOO,OO00O00);if(OO000.ck&&OOOO00(OO0OO0)){O0OO0[OO0OO0]=O00O0;var O0OOO0=O00000O(O0OO0);if(O0OOO0!=""){O00OO("\x63\x6b",O0OOO0);O000000()}}}}}BLK.EBIZ.webAnalytics={CONTAINER_OFFSET:0,FILTER_OFFSET:1,DATA_SOURCE_OFFSET:2,delegator:function(d,a,c,f){var e=function(t,r,p,y){var g=t.nodeName;var h="";var B="";if(g.toLowerCase()==="a"){B=getInternalText(t)}B=trim(B);NTPT_GLBLEXTRA="";NTPT_PGEXTRA="";var o=getCleanCookie("SITECORE_usertype");if((!o||0===o.length)){o="II"}NTPT_PGEXTRA+="usertype="+encodeURIComponent(o);BLK.EBIZ.trace2("unica link handler - usertype: "+o);var u=trim(getCookie("SITECORE_status"));if(u===""){u="anonymous"}NTPT_PGEXTRA+="&status="+encodeURIComponent(u);BLK.EBIZ.trace2("unica link handler - status: "+u);var k="";var j="";var q="99998";var w=false;if(typeof typeof BLK.envSetting!=="undefined"){if(typeof BLK.envSetting.tracking!=="undefined"){if(typeof BLK.envSetting.tracking.firmId!=="undefined"){k=BLK.envSetting.tracking.firmId;if(k===q){w=true}NTPT_GLBLEXTRA+="&FIRMID="+encodeURIComponent(k)}if(typeof BLK.envSetting.tracking.userId!=="undefined"){j=BLK.envSetting.tracking.userId;NTPT_GLBLEXTRA+="&un="+encodeURIComponent(j)}}}var s="";var x=false;var n="";var v=false;var A="";var l=false;var m="";var z=false;if(typeof BLK.envConfig!=="undefined"){if(typeof BLK.envConfig.environment!=="undefined"){l=true;A=BLK.envConfig.environment;if(typeof BLK.envSetting!=="undefined"){if(typeof BLK.envSetting[A]!=="undefined"){if(typeof BLK.envSetting[A].unica!=="undefined"){if(typeof BLK.envSetting[A].unica.env!=="undefined"){z=true;m=BLK.envSetting[A].unica.env}if(typeof BLK.envSetting[A].unica.site!=="undefined"){if(typeof BLK.envConfig.application!=="undefined"){v=true;n=BLK.envConfig.application;if(typeof BLK.envSetting[A].unica.site[n]!=="undefined"){x=true;s=BLK.envSetting[A].unica.site[n]}else{if(typeof BLK.envSetting[A].unica.site.defaultSite!=="undefined"){x=true;s=BLK.envSetting[A].unica.site.defaultSite}}}else{if(typeof BLK.envSetting[A].unica.site.defaultSite!=="undefined"){x=true;s=BLK.envSetting[A].unica.site.defaultSite}}}}}}}}if(z){NTPT_GLBLEXTRA+="&env="+encodeURIComponent(m);BLK.EBIZ.trace2("unica link handler - env: "+m)}if(x){NTPT_GLBLEXTRA+="&site="+encodeURIComponent(s);BLK.EBIZ.trace2("unica link handler - site: "+s)}NTPT_GLBLEXTRA=NTPT_GLBLEXTRA.toLowerCase();NTPT_PGEXTRA=NTPT_PGEXTRA.toLowerCase();if(typeof y==="function"){h=y.call(t,r)}else{h=y+"||"+B}h=h.toLowerCase();var i=false;p=p.toLowerCase();if(p==="link"){BLK.EBIZ.trace2("contact Unica server on LINK CLICK. . .");i=ntptEventTag("pv=0&ev=link&linkname="+encodeURIComponent(h))}else{if(p==="download"){BLK.EBIZ.trace2("contact Unica server on DOWNLOAD. . .");i=ntptEventTag("ev=filedownload&filename="+encodeURIComponent(h))}else{BLK.EBIZ.trace2("contact Unica server on UNKNOWN EVENT - default to LINK CLICK. . .");i=ntptEventTag("pv=0&ev=link&linkname="+encodeURIComponent(h))}}return i};var b=({jQuery:function(){jQuery(a).delegate(c,"click",{ev:d,ds:f},function(g){e.call(this,g.currentTarget,g.liveFired,g.data.ev,g.data.ds)})},YAHOO:function(){YAHOO.util.Event.delegate(YAHOO.util.Selector.query(a),"click",function(j,h,g,i){e.call(this,h,g,i.ev,i.ds)},c,{ev:d,ds:f})},RUI:function(){BLK.EBIZ.trace("RUI")}})[this.config.require]||false;if(b){b.call(this)}},setupDelegators:function(c,e){var f;var b;for(f in c){if(c.hasOwnProperty(f)){b=c[f];var a=b[this.CONTAINER_OFFSET];var d=b[this.FILTER_OFFSET];var g=b[this.DATA_SOURCE_OFFSET];this.delegator(e,a,d,g)}}},init:function(){if(typeof BLK.EBIZ.webAnalytics==="undefined"){BLK.EBIZ.trace("BLK.EBIZ.webAnalytics not defined. . .");return}if(typeof BLK.EBIZ.webAnalytics.config==="undefined"){BLK.EBIZ.trace("BLK.EBIZ.webAnalytics.config not defined. . .");return}this.analyticsData=BLK.EBIZ.webAnalytics.config;if(typeof this.analyticsData["link-tracking"]!=="undefined"){this.setupDelegators(this.analyticsData["link-tracking"],"link")}if(typeof this.analyticsData["download-tracking"]!=="undefined"){this.setupDelegators(this.analyticsData["download-tracking"],"download")}if(typeof this.analyticsData["page-tracking"]!=="undefined"){this.setupDelegators(this.analyticsData["page-tracking"],"pageload")}}};
