ToggleBlock.prototype.cName="toggle";ToggleBlock.prototype.cOpen="opened";ToggleBlock.prototype.cClose="closed";ToggleBlock.prototype.cHide="invis";function ToggleBlock(b,f,h,g,e){this.elem=typeof b=="string"?document.getElementById(b):b;this.comps=null;this.set=set;this.toggle=toggle;this.toggleElement=g?g:toggleLi;this.toggleComponents=e?e:toggleComponents;if(this.elem){this.elem.tabIndex=0;this.elem.onmousedown=function(i){evPrevDeft(i)}}if(f){this.comps=[];if(!(f instanceof Array)){f=[f]}for(var c=0,a=f.length;c<a;c++){var d=typeof f[c]=="string"?document.getElementById(f[c]):f[c];if(d){this.comps.push(d)}}}if(h!=undefined){this.set(h)}}function set(a){return this.toggle(null,a)}function toggle(b,d){var a=false;var c=new RegExp("\\b"+this.cName+"\\b","g");var e=b?(b.target?b.target:(b.srcElement?b.srcElement:null)):null;switch(e){default:while((e!=this.elem)&&!a){a=(e.className.search(c)!=-1);e=e.parentNode}if(!a){break}case this.elem:a=selectEnter(b);if(!a){break}case null:a=(this.toggleElement?this.toggleElement(d):true)&(this.toggleComponents?this.toggleComponents(d):true);a=evStop(b);break}return a}function toggleLi(b){var a=false;if(this.elem&&(this.elem.nodeName=="LI")){if(b!=undefined){setClass(this.elem,this.cClose,!b);setClass(this.elem,this.cOpen,b)}else{toggleClass(this.elem,this.cClose);toggleClass(this.elem,this.cOpen)}a=true}return a}function toggleComponents(d){var a=true;if(this.comps){for(var c=0,b=this.comps.length;c<b;c++){a&=((d!=undefined?setClass(this.comps[c],this.cHide,!d):toggleClass(this.comps[c],this.cHide))!=null)}}return a}ButtonBlock.prototype=new ToggleBlock;ButtonBlock.prototype.showTxt="Show";ButtonBlock.prototype.hideTxt="Hide";function ButtonBlock(e,a,c,f,d,b){this.caption=e;this.base=ToggleBlock;this.base(a,c,f,d?d:toggleButton,b)}function toggleButton(b){var a=false;switch(this.elem.nodeName){case"BUTTON":if(b!=undefined?b:(this.elem.innerHTML==this.showTxt+" "+this.caption)){this.elem.innerHTML=this.hideTxt+" "+this.caption}else{this.elem.innerHTML=this.showTxt+" "+this.caption}a=true;break;case"INPUT":if(b!=undefined?b:(this.elem.value==this.showTxt+" "+this.caption)){this.elem.value=this.hideTxt+" "+this.caption}else{this.elem.value=this.showTxt+" "+this.caption}a=true;break}return a}SlideShow.prototype.pauseTxt="Paused";SlideShow.prototype.runTxt="Running";SlideShow.prototype.intervals=[];SlideShow.prototype.loads=[];function SlideShow(c,g,d,a,j,b){var f=URLClean(d?d:document.URL);this.srcURL=f.indexOf("/")!=-1?f.substring(0,f.lastIndexOf("/")+1):f;this.img=typeof c=="string"?document.getElementById(c):c;this.img.tabIndex=0;this.peek;this.pics=g;this.next=sNext;this.click=sClick;this.show=sShow;if(j){this.order=[];for(var e=0,h=this.pics.length;e<h;e++){this.order.splice(Math.randN(this.order.length),0,e)}this.repBlock=b?b:this.pics.length<3?this.pics.length-1:Math.round(this.pics.length/3)}if(!this.img.src||(this.img.src==this.srcURL)||(this.img.src==URLClean(document.URL))){this.next()}if(a){this.intrvl=a;this.start=slideStart;this.stop=slideStop;this.start()}}function sClick(b){var a=null;var c=b?(b.target?b.target:(b.srcElement?b.srcElement:null)):this.img;if((c==this.img)&&selectEnter(b)){if(this.intrvl){if(this.intIndex==undefined){this.start()}else{this.stop()}}else{this.next()}a=evStop(b)}else{a=true}}function slideStart(){this.intIndex=SlideShow.prototype.intervals.length;SlideShow.prototype.intervals.push(this);this.intTimer=setInterval("SlideShow.prototype.intervals["+this.intIndex+"].next()",this.intrvl);this.img.title=this.runTxt+": "+this.img.src}function slideStop(){this.img.title=this.pauseTxt+": "+this.img.src;clearInterval(this.intTimer);SlideShow.prototype.intervals[this.intIndex]=undefined;this.intIndex=undefined;while(SlideShow.prototype.intervals.length&&!SlideShow.prototype.intervals[SlideShow.prototype.intervals.length-1]){SlideShow.prototype.intervals.pop()}}function sNext(c){var a=null;if(this.order){a=this.order.shift();var b=this.repBlock+Math.randN(this.order.length-this.repBlock);this.order.splice(b,0,a)}else{a=0;if(this.img.src&&(this.img.src!=this.srcURL)&&(this.img.src!=URLClean(document.URL))){var f=URLRel(URLClean(this.img.src),this.srcURL);for(var e=0,d=this.pics.length;(e<d)&&!a;e++){if(f==URLRel(URLClean(this.pics[e]),this.srcURL)){a=(e+1)%this.pics.length}}}}this.peek=new Image();ldsIndex=SlideShow.prototype.loads.length;SlideShow.prototype.loads.push(this);this.peek.onload=new Function("anEvent","sShow.apply( SlideShow.prototype.loads["+ldsIndex+"], ["+ldsIndex+"] );");this.peek.src=this.pics[a];return a}function sShow(d){this.img.src=this.peek.src;if(this.intrvl){this.img.title=(this.intIndex!=undefined?this.runTxt:this.pauseTxt)+": "+this.img.src}try{var b,m,a,k,c,i,g,j,h,l;b=this.peek.naturalWidth?this.peek.naturalWidth:this.peek.width?this.peek.width:this.img.width;m=this.peek.naturalHeight?this.peek.naturalHeight:this.peek.height?this.peek.height:this.img.height;a=b/m;try{k=parseInt(this.img.parentNode.currentStyle.width,10);if(isNaN(k)){throw ("NaN")}}catch(f){k=this.img.parentNode.clientWidth?this.img.parentNode.clientWidth:this.img.parentNode.width}try{c=parseInt(this.img.parentNode.currentStyle.height,10);if(isNaN(c)){throw ("NaN")}}catch(f){c=this.img.parentNode.clientHeight?this.img.parentNode.clientHeight:this.img.parentNode.height}i=k/c;if(i>a){j=c;g=Math.round(j*a)}else{g=k;j=Math.round(g/a)}h=Math.max(Math.round((k-g)/2),0);l=Math.max(Math.round((c-j)/2),0);this.img.style.width=g+"px";this.img.style.height=j+"px";this.img.style.marginLeft=h+"px";this.img.style.marginTop=l+"px"}catch(f){}SlideShow.prototype.loads[d]=undefined;while(SlideShow.prototype.loads.length&&!SlideShow.prototype.loads[SlideShow.prototype.loads.length-1]){SlideShow.prototype.loads.pop()}}var __br=(function(){var b=[["Chrome(?:\\s|/)*([0-9]+)","Ch"],["Version(?:\\s|/)*([0-9]+)(?:[0-9./()]|\\s*)+Mobile(?:[0-9A-Z./)]|\\s*)+Safari","Sm"],["Version(?:\\s|/)*([0-9]+)(?:[0-9./()]|\\s*)+Safari","Sa"],["Safari(?:\\s|/)*([0-9]+)","Sa"],["KDE(?:\\s|/)*([0-9]+)","Ko"],["Konqueror(?:\\s|/)*([0-9]+)","Ko"],["KHTML(?:\\s|/)*([0-9]+)","KH"],["AppleWebKit(?:\\s|/)*([0-9]+)","WK"],["Firefox(?:\\s|/)*([0-9]+)","FF"],["rv:([0-9]+)(?:[0-9./)]|\\s*)+Gecko","Ge"],["Opera.*\\s+Version(?:\\s|/)*([0-9]+)","Op"],["Opera(?:\\s|/)*([0-9]+)","Op"],["MSIE(?:\\s|/)*([0-9]+)","IE"],["iCab(?:\\s|/)*([0-9]+)","iC"],["Camino(?:\\s|/)*([0-9]+)","Ca"],["OmniWeb(?:\\s|/)*([0-9]+)","OW"],["Netscape(?:\\s|/)*([0-4]+)","NS"],["Mozilla(?:\\s|/)*([0-4]+)","Mo"]];var a=false;for(var d=0,c=b.length;(d<c)&&!a;d++){a=navigator.userAgent.match(new RegExp(b[d][0],"i"));if(a){try{a={n:b[d][1],v:parseInt(a[1],10)}}catch(f){a={n:b[d][1],v:a[1]}}}}return a?a:{n:"XX",v:0}})();var __dt=(function(c){var b,d,a;if(c){b=c.publicId;d=c.systemId;a=/XHTML/.test(b)}else{b="-//W3C//DTD HTML 4.01 Transitional//EN";d="http://www.w3.org/TR/html4/loose.dtd";a=false}return{d:'<!DOCTYPE html PUBLIC "'+b+'"'+(d?' "'+d+'"':"")+">",x:a}})(document.doctype);function toggleClass(b,d){var g=typeof b=="string"?document.getElementById(b):b;var c=null;try{var a=new RegExp("\\b"+d+"\\b","g");c=g.className;c=c.search(a)==-1?c+" "+d:c.replace(a,"").replace(/\s+/g," ").trim();g.className=c}catch(f){}return c}function setClass(b,d,h){var g=typeof b=="string"?document.getElementById(b):b;var c=null;try{var a=new RegExp("\\b"+d+"\\b","g");c=g.className.replace(a,"").replace(/\s+/g," ").trim();if(h){c+=" "+d}g.className=c}catch(f){}return c}function setShowHide(b,a){return setClass(b,"invis",!a)}function findStyles(d,g){function f(m,o){var l=[];try{var p=o.cssRules?o.cssRules:o.rules?o.rules:[];for(var i=0,k=p.length;i<k;i++){if(p[i].selectorText){for(var q=0,j=m.length;q<j;q++){if(p[i].selectorText.match(typeof m[q]=="string"?new RegExp(m[q]):m[q])){l.push(p[i])}}}else{l=l.concat(f(m,p[i]))}}}catch(n){}return l}var a=d?(d instanceof Array?d:[d]):[];var h=g?(g instanceof Array?g:[g]):document.styleSheets?document.styleSheets:[];var c=[];if(a.length&&h.length){for(var e=0,b=h.length;e<b;e++){c=c.concat(f(a,h[e]))}}return c}function TreeWalk(c,h){var g=typeof c=="string"?document.getElementById(c):c;var f=h instanceof Array?h:[h];var a=[];var b;if(g){if(g.tagName){for(var e=0,d=f.length;e<d;e++){if(g.tagName.match(typeof f[e]=="string"?new RegExp(f[e],"i"):f[e])){a.push(g)}}}b=g.childNodes;for(e=0,d=b.length;e<d;e++){a=a.concat(TreeWalk(b[e],f))}}return a}function printNode(a,e){var k=__dt.x?" />":">";var f=e.slice(0,3).join(" - ");var j="";var h,b;for(var d=0,g=Math.min(6,e.length);d<g;d++){j+="<h"+(d+1)+">"+e[d]+"</h"+(d+1)+">"}if(document.styleSheets&&document.styleSheets.length){h=document.styleSheets[0].href}b=typeof a=="string"?document.getElementById(a):a;var c=open();c.document.open();c.document.write(__dt.d+"<html><head><title>"+f+"</title>"+(h?'<link rel="stylesheet" type="text/css" href="'+h+'"'+k:"")+"</head><body onload='print();close();'>"+j+b.innerHTML+"</body></html>");c.document.close()}function selectEnter(b){var a=true;if(b&&((b.type=="keypress")||(b.type=="keydown")||(b.type=="keyup"))){switch(b.which?b.which:b.keyCode){case 32:a=(__br.n!="IE");break;case 13:a=true;break;default:a=false;break}}return a}function evPrevDeft(a){if(a){if(a.preventDefault){a.preventDefault()}else{if(a.returnValue!=undefined){a.returnValue=false}}}}function evStopProp(a){if(a){if(a.stopPropagation){a.stopPropagation()}else{if(a.cancelBubble!=undefined){a.cancelBubble=true}}}}function evStop(a){evPrevDeft(a);evStopProp(a);return false}function URLLocal(b,j,a){var f=["^file://","^http://localhost[/:]","^http://127.[0-9]+.[0-9]+.[0-9]+[/:]","^http://169.254.[0-9]+.[0-9]+[/:]","^http://192.168.[0-9]+.[0-9]+[/:]","^http://172.([0-9]+).[0-9]+.[0-9]+[/:]","^http://0?10.[0-9]+.[0-9]+.[0-9]+[/:]"];var c=URLClean(b,false);var k=false;for(var d=0,h=a?f.length:j?4:3;(d<h)&&!k;d++){k=(c.match(new RegExp(f[d],"i")));if(d==5){try{k=parseInt(k[1],10);if((k<16)||(k>31)){throw"False"}}catch(g){k=null}}}return k?true:false}function URLClean(e,d){var a=e;var c=new RegExp("[\\?#]","g");var b=a.replace("%20"," ").replace(c,"\x01").indexOf("\x01");a=b!=-1?a.substring(0,b):a;c=new RegExp("\\\\","g");a=a.replace(c,"/");if(a.substr(0,9).search("file://[A-Za-z]:")==0){a=a.substr(0,7)+"/"+a.substr(7)}else{if(a.substr(0,2).search("[A-Za-z]:")==0){a="file:///"+a}}if(d&&(a.substr(0,7)=="http://")&&(a.substr(0,11)!="http://www.")&&!URLLocal(a)){a=a.substr(0,7)+"www."+a.substr(7)}return a}function URLRel(e,c){var a=URLClean(e);var f=URLClean(c);if(a.substr(0,2)!="./"){var b=a.indexOf(f);if(b>=0){a="./"+a.substring(b+f.length)}else{for(var d=f.indexOf("/");(f.substr(0,d)==a.substr(0,d))&&(d<f.length);d=f.indexOf("/")){f=f.substr(d+1);a=a.substr(d+1)}for(d=f.indexOf("/");d>=0;d=f.indexOf("/")){f=f.substr(d+1);a="../"+a}a="./"+a}}return a}function compValues(c,b,d){var a;if(c!=undefined){if(b!=undefined){if(d){a=d(c,b)}else{a=c<b?-1:c>b?1:0}}else{a=1}}else{if(b!=undefined){a=-1}else{a=0}}return a}function arrPushNew(a,e,f){for(var c=0,b=a.length,d=false;(c<b)&&!d;c++){d=compValues(a[c],e,f)==0}if(!d){a.push(e)}return a}function arrDelAll(a,b,d){for(var c=a.length-1;c>=0;c--){if(compValues(a[c],b,d)==0){a.splice(c,1)}}return a}function arrDelDups(a,d){for(var c=a.length-1;c>=0;c--){for(var b=c-1;b>=0;b--){if(compValues(a[c],a[b],d)==0){a.splice(c,1)}}}return a}Math.randN=function(a){return this.floor((a+1)*this.random())};String.prototype.trim=function(){return this.replace(/(^\s+)|(\s+$)/g,"")};

