var xb={evtHash:[],ieGetUniqueID:function(_elem){if(_elem===window){return'theWindow'}else if(_elem===document){return'theDocument'}else{return _elem.uniqueID}},addEvent:function(_elem,_evtName,_fn,_useCapture){if(typeof _elem.addEventListener!='undefined'){if(_evtName=='mouseenter'){_elem.addEventListener('mouseover',xb.mouseEnter(_fn),_useCapture)}else if(_evtName=='mouseleave'){_elem.addEventListener('mouseout',xb.mouseEnter(_fn),_useCapture)}else{_elem.addEventListener(_evtName,_fn,_useCapture)}}else if(typeof _elem.attachEvent!='undefined'){var key='{FNKEY::obj_'+xb.ieGetUniqueID(_elem)+'::evt_'+_evtName+'::fn_'+_fn+'}';var f=xb.evtHash[key];if(typeof f!='undefined'){return}f=function(){_fn.call(_elem)};xb.evtHash[key]=f;_elem.attachEvent('on'+_evtName,f);window.attachEvent('onunload',function(){_elem.detachEvent('on'+_evtName,f)});key=null}else{_elem['on'+_evtName]=_fn}},removeEvent:function(_elem,_evtName,_fn,_useCapture){if(typeof _elem.removeEventListener!='undefined'){_elem.removeEventListener(_evtName,_fn,_useCapture)}else if(typeof _elem.detachEvent!='undefined'){var key='{FNKEY::obj_'+xb.ieGetUniqueID(_elem)+'::evt'+_evtName+'::fn_'+_fn+'}';var f=xb.evtHash[key];if(typeof f!='undefined'){_elem.detachEvent('on'+_evtName,f);delete xb.evtHash[key]}key=null}},mouseEnter:function(_pFn){return function(_evt){var relTarget=_evt.relatedTarget;if(this==relTarget||xb.isAChildOf(this,relTarget)){return}_pFn.call(this,_evt)}},isAChildOf:function(_parent,_child){if(_parent==_child){return false};while(_child&&_child!=_parent){_child=_child.parentNode}return _child==_parent}};function getElementsByClassName(oElm,strTagName,strClassName){var arrElements=(strTagName=="*"&&oElm.all)?oElm.all:oElm.getElementsByTagName(strTagName);var arrReturnElements=new Array();strClassName=strClassName.replace(/-/g,"\-");var oRegExp=new RegExp("(^|\s)"+strClassName+"(\s|$)");var oElement;for(var i=0;i<arrElements.length;i++){oElement=arrElements[i];if(oRegExp.test(oElement.className)){arrReturnElements.push(oElement)}}return(arrReturnElements)}function setBrowserOpacity(op,lyr){if(olNs4||!op)return;if(olIe4&&typeof lyr.filters!='undefined'){lyr.style.filter='Alpha(Opacity='+op+')';lyr.filters.alpha.enabled=true}else{var sOp=(typeof(lyr.style.opacity)!='undefined')?'opacity':(typeof(lyr.style.KhtmlOpacity)!='undefined'?'KhtmlOpacity':(typeof(lyr.style.MozOpacity)!='undefined'?'MozOpacity':''));if(sOp)eval('lyr.style.'+sOp+'=op/100')}}function getBrowserOpacity(lyr){if(olNs4)return;if(olIe4&&typeof lyr.filters!='undefined'){return lyr.filters.alpha.opacity}else{var sOp=(typeof(lyr.style.opacity)!='undefined')?'opacity':(typeof(lyr.style.KhtmlOpacity)!='undefined'?'KhtmlOpacity':(typeof(lyr.style.MozOpacity)!='undefined'?'MozOpacity':''));if(sOp)return 100*parseFloat(eval('lyr.style.'+sOp+''))}}function curry(fn,scope){var scope=scope||window;var args=[];for(var i=2,len=arguments.length;i<len;++i){args.push(arguments[i])};return function(){fn.apply(scope,args)}}function buttonLoad(){if(arguments.callee.done)return;arguments.callee.done=true;var containerdivs=getElementsByClassName(document,"div","buttonContainer");var underlinediv;var width;for(var x=0;x<containerdivs.length;x++){underlinediv=containerdivs[x].getElementsByTagName('b')[0];width=containerdivs[x].getElementsByTagName('span')[0].offsetWidth+16;underlinediv.style.width=width+'px';underlinediv.id='u'+x;xb.addEvent(containerdivs[x],'mouseenter',curry(buttonf,null,underlinediv),false);xb.addEvent(containerdivs[x],'mouseleave',curry(buttonb,null,underlinediv),false);xb.addEvent(containerdivs[x],'mouseenter',curry(function(){return function(id){id.style.cursor='pointer'}}(containerdivs[x]),null,containerdivs[x]),false);xb.addEvent(containerdivs[x],'mouseleave',curry(function(){return function(id){id.style.cursor='default'}}(containerdivs[x]),null,containerdivs[x]),false);underlinediv.style.display='block';setBrowserOpacity(0.0001,underlinediv);started[underlinediv.id]=false;stopped[underlinediv.id]=false}var containerdivs=getElementsByClassName(document,"div","buttonContainerSmall");for(var x=0;x<containerdivs.length;x++){underlinediv=containerdivs[x].getElementsByTagName('b')[0];width=containerdivs[x].getElementsByTagName('span')[0].offsetWidth+10;underlinediv.style.width=width+'px';underlinediv.id='u'+x;xb.addEvent(containerdivs[x],'mouseenter',curry(buttonf,null,underlinediv),false);xb.addEvent(containerdivs[x],'mouseleave',curry(buttonb,null,underlinediv),false);xb.addEvent(containerdivs[x],'mouseenter',curry(function(){return function(id){id.style.cursor='pointer'}}(containerdivs[x]),null,containerdivs[x]),false);xb.addEvent(containerdivs[x],'mouseleave',curry(function(){return function(id){id.style.cursor='default'}}(containerdivs[x]),null,containerdivs[x]),false);underlinediv.style.display='block';setBrowserOpacity(0.0001,underlinediv);started[underlinediv.id]=false;stopped[underlinediv.id]=false}}function buttonf(id){if(started[id.id]==false&&stopped[id.id]==false){started[id.id]=true;var q=(Math.floor(getBrowserOpacity(id)));if(stopped[id.id]==false){var a=setInterval(function(){q=q+10;setBrowserOpacity(q,id);if(q>100)clearInterval(a);else if(stopped[id.id]){clearInterval(a);setTimeout(function(){started[id.id]=false},800);return}},20)}setTimeout(function(){started[id.id]=false},200)}}function buttonb(id){if(stopped[id.id]==false){stopped[id.id]=true;var q=(Math.floor(getBrowserOpacity(id)));var b=setInterval(function(){q=q-10;setBrowserOpacity(q,id);if(q<-10)clearInterval(b)},50);setTimeout(function(){stopped[id.id]=false},500)}}var started=new Array();var stopped=new Array();var olNs4=(navigator.appName=='Netscape'&&parseInt(navigator.appVersion)==4);var olIe4=(document.all)?true:false;
