function gEI(i){return document.getElementById(i)}
function gPC(el,name){while(el !=null && el.parentNode != null && !CN(el,name)){el=el.parentNode;}if(el !=null && el.parentNode != null)return el;else return false;}
function gEC(el,class_name,tag_name){var all_obj,ret_obj=new Array(),j=0;if(tag_name==null||tag_name=="")tag_name="div";all_obj=el.getElementsByTagName(tag_name);for(var i=0;i<all_obj.length;i++){  if(CN(all_obj[i],class_name)){   ret_obj[j]=all_obj[i];   j++;}}if(ret_obj.length>0)return ret_obj; else return false;}
function CN(el,name){var i,list;if(el.className){list=el.className.split(" ");for(var i=0;i<list.length;i++)if(list[i]==name)return true}return false}
function rCN(el,name,c){var i,j,curList,newList;if(el.className=="")return;newList=new Array();curList=el.className.split(" ");j=0;for(var i=0; i < curList.length;i++)if(curList[i]!=name)newList[i-j]=curList[i];else j++;if(c!=1)el.className=newList.join(" ");else return newList.join(" ")}
function aCN(el,name){if((el.className=="")||(el.className==" "))el.className=name;else el.className += " "+name}
function aV(el, type, fce){if(el.addEventListener){el.addEventListener(type, fce, false);return true;}else if(el.attachEvent){var r=el.attachEvent('on'+type, fce);return r;}else return false;}
function rV(el, type, fce) {if (el.removeEventListener){el.removeEventListener(type, fce, false);return true;}else if(el.detachEvent){var r = el.detachEvent('on'+type, fce);return r;}else return false;}
function gE(e){return(window.event && window.event.srcElement)?window.event.srcElement:(e && e.target)?e.target:false}
function gM(e){var e=e||window.event;var d=(document.documentElement&&document.documentElement.scrollTop!=null)?document.documentElement:document.body;return {x:(e.pageX||e.clientX+d.scrollLeft),y:(e.pageY||e.clientY+d.scrollTop)}}
function gS(o,prop){if(self.getComputedStyle)return eval('self.getComputedStyle(o,null).'+prop);if(o.currentStyle)return eval('o.currentStyle.'+prop)}
function gW() {if (window.innerWidth) return {'x':window.innerWidth-20,'y':window.innerHeight-15};else if (document.documentElement.clientHeight) {return {'x':document.documentElement.clientWidth,'y':document.documentElement.clientHeight};}else if (document.body.clientWidth) {return {'x':document.body.clientWidth,'y':document.body.clientHeight}}}
function gSr(){var t=(document.documentElement.scrollTop)?document.documentElement.scrollTop:document.body.scrollTop;var l=(document.documentElement.scrollLeft)?document.documentElement.scrollLeft:document.body.scrollLeft;return {'x':l,'y':t}}



var tooltips={
className:'tooltip',
showDelay:100,
animateInterval:30,
border:'1px solid #000000',
fontSize:'0.9em',
backgroundColor:'#fefee2',
shadowColor:'black',
bubbleClassName:'tooltipBubble',
textColor:'#000000',
padding:'5px 10px 5px 10px',
maxWidth:300,
isTop:true,
timer:null,amimateTimer:null,lastTooltip:null,
init:function(){var a=gEC(document,tooltips.className,'*');for(var i=0;a[i];i++){if(a[i].title!=''){aV(a[i],'mouseover',tooltips.delayShow);aV(a[i],'mousemove',tooltips.delayShow);aV(a[i],'mouseout',tooltips.hide);a[i].tooltip=a[i].title;a[i].title='';}}},
delayShow:function(e){if(tooltips.lastTooltip!=null)return true;var el=gPC(gE(e),tooltips.className);var mousePosition=gM(e);tooltips.clearTimer();var f=function(){tooltips.show(el,mousePosition)};tooltips.timer=window.setTimeout(f,tooltips.showDelay);},
clearTimer:function(){if(tooltips.timer!=null){window.clearTimeout(tooltips.timer);tooltips.timer=null;}},
show:function(el,mousePosition){var a=document.createElement('div');var b=document.createElement('div');var t=document.createTextNode(el.tooltip);a.appendChild(b);b.appendChild(t);document.body.appendChild(a);tooltips.lastTooltip=a;a.style.cssText='min-height:1px;_height:1px;position:absolute';b.style.cssText='';a.style.opacity='0';a.style.filter='alpha(opacity=0)';b.className=tooltips.bubbleClassName;b.style.border=''+tooltips.border;b.style.backgroundColor=tooltips.backgroundColor;b.style.color=tooltips.textColor;b.style.padding=tooltips.padding;b.style.fontSize=tooltips.fontSize;b.style.lineHeighte="1.2em";b.style.zIndex='2';a.style.zIndex=2000;a.style.paddingTop='6px';a.style.paddingBottom='6px';a.style.paddingRight='2px';a.style.left='0px';var width=a.offsetWidth;a.style.left=mousePosition.x-20+'px';a.style.top=mousePosition.y+24+"px";a.style.width=((width>tooltips.maxWidth)?tooltips.maxWidth:width)+'px';var wind=gW();var scroll=gSr();var size={x:a.offsetWidth,y:a.offsetHeight};var position={x:a.offsetLeft,y:a.offsetTop};tooltips.isTop=(position.y+size.y-scroll.y<wind.y);var dart=document.createElement('div');dart.style.cssText='position:absolute;margin-left:15px;z-index:3';dart.style.opacity='1';dart.style.filter='alpha(opacity=100)';for(var i=6,j=0;i>-1;i--,j++){var line=document.createElement('div');line.style.cssText='positon:absolute;overflow:hidden;height:1px;width:'+((tooltips.isTop?j:i)*2)+'px;margin-left:'+(tooltips.isTop?i:j)+'px;top:'+6+'px;border-left:'+tooltips.border+';border-right:'+tooltips.border+';background:'+tooltips.backgroundColor;dart.appendChild(line);}a.appendChild(dart);if(size.x+position.x-scroll.x>wind.x){var div=(size.x+position.x-scroll.x)-wind.x;a.style.left=position.x-div+"px";dart.style.left=((35+div<size.x)?div-5:size.x-35)+"px";}if(tooltips.isTop){dart.style.top="0px";}else{a.style.top=mousePosition.y-a.offsetHeight-10+'px';dart.style.top=a.offsetHeight-7+'px';}tooltips.animate();a.appendChild(tooltips.shadow(1,b.offsetHeight-1,8,b.offsetWidth,0.3));a.appendChild(tooltips.shadow(b.offsetWidth-1,1,b.offsetHeight+6,1,0.3));a.appendChild(tooltips.shadow(1,b.offsetHeight-1,9,b.offsetWidth+1,0.1));a.appendChild(tooltips.shadow(b.offsetWidth-1,1,b.offsetHeight+7,2,0.1));},
animate:function(){var f=function(){var a=tooltips.lastTooltip;if(a==null){tooltips.clearAnimateTimer();return true;}var b=parseFloat(gS(a,'opacity'));if(b<1){b=b+0.1;a.style.opacity=b;a.style.filter='alpha(opacity='+(b*100)+')';}else tooltips.clearAnimateTimer();};tooltips.animateTimer=window.setInterval(f,tooltips.animateInterval);},
shadow:function(width,height,top,left,opacity){var a=document.createElement('div');a.style.cssText='position:absolute;overflow:hidden;top:'+top+'px;left:'+left+'px;z-index:1;width:'+width+'px;height:'+height+'px';a.style.opacity=opacity;a.style.background=tooltips.shadowColor;a.style.filter='alpha(opacity='+(opacity*100)+')';return a;},
clearAnimateTimer:function(){if(tooltips.animateTimer!=null){window.clearInterval(tooltips.animateTimer);tooltips.animateTimer=null;}},
hide:function(){tooltips.clearTimer();if(tooltips.lastTooltip!=null){document.body.removeChild(tooltips.lastTooltip);tooltips.lastTooltip=null;}}
}
aV(window,'load',tooltips.init);

function miniwindow(el){window.open(el.href,'_blank','width=500,height=500,resizable=1,status=0,menubar=0,scrollbars=1');return false}

function Flash(){this.movie="";this.img="";this.width="";this.height="";this.alt="";this.bgcolor="transparent";this.ver=7;this.link="";this.tracker="";this.ie=((navigator.userAgent.toLowerCase().indexOf("opera")==-1)&&navigator.appName=="Microsoft Internet Explorer")?true:false;this.className="";this.id="";this.urlparam="url";this.target="_blank";this.install=false;this.flashvars=null}
Flash.prototype.iF=function(i){if(!this.ie)return true;try{var a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + i);return true}catch(e){return false}}
Flash.prototype.write=function(m,w,h,a,b){var o=this.HTML(m,w,h,a,b);document.write(o)}
Flash.prototype.param=function(n,v){return '<param name="'+n+'" value="'+v+'" />';}
Flash.prototype.writeBanner=function(i,w,h,l,t,b){this.preBanner(i,null,w,h,l,t,b);var lnk=(this.link==null||this.link=="")?false:true;this.movie=this.img.slice(0,this.img.lastIndexOf('.'))+".swf"+((lnk)?"?"+this.urlparam+"="+escape(this.link):"");this.write();}
Flash.prototype.writeBannerAlt=function(i,m,w,h,l,t,b){this.preBanner(i,m,w,h,l,t,b);var lnk=(this.link==null||this.link=="")?false:true;if(m!=null&&m!='')this.movie=m+((lnk)?"?"+this.urlparam+"="+escape(this.link):"");this.write();}
Flash.prototype.preBanner=function(i,m,w,h,l,t,b){if(i!=null&&i!="")this.img=i;if(l!=null&&l!="")this.link=l;if(t!=null&&t!="")this.tracker=t;if(w!=null&&w!="")this.width=w;if(h!=null&&h!="")this.height=h;if(b!=null&&b!="")this.bgcolor=b;var lnk=(this.link==null||this.link=="")?false:true;if(lnk&&(this.tracker!=null&&this.tracker!=""))this.link=this.tracker+escape(this.link);var a='<img src="'+this.img+'" width="'+this.width+'" height="'+this.height+'" alt="" border="0" class="'+this.className+'" />';this.alt=((!lnk)?a:'<a href="'+this.link+'" target="'+this.target+'">'+a+'</a>');}
Flash.prototype.HTML=function(m,w,h,a,b){if(m!=null&&m!="")this.movie=m;if(w!=null&&w!="")this.width=w;if(h!=null&&h!="")this.height=h;if(a!=null&&a!="")this.alt=a;if(b!=null&&b!="")this.bgcolor=b;var ci=(this.ie)?' classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"':'';var p=(this.ie&&this.install)?' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+this.ver+',0,0,0"':'';var o;var z=this.iF(this.ver);var z1=this.iF(1);if (this.movie!=null&&this.movie!=""&&(this.install||(z1&&z)||(!z1&&!z)))o='<object type="application/x-shockwave-flash" data="'+this.movie+'" width="'+this.width+'" height="'+this.height+'"'+ci+p+' id="'+this.id+'" class="'+this.className+'" >'+this.param("movie",this.movie)+((this.flashvars!=null)?this.param("flashvars",this.flashvars):"")+this.param("quality","high")+this.param("menu","false")+((this.bgcolor=="transparent")?this.param("wmode","transparent"):this.param("bgcolor",this.bgcolor))+this.alt+'</object>';else o=this.alt;return o}
Flash.prototype.writeTo=function(id,m,w,h,a,b){var el=document.getElementById(id);if(el)el.innerHTML=this.HTML(m,w,h,a,b)}

