function lazycor(n){var h=document.getElementById(n);if(!h){return};var d=h.getElementsByTagName("img");if(!d){return};rlf(d,function(o){var p=o.parentNode;if(!p||p.tagName.toLowerCase()!='a'||p.href!=window.location.href){return};if(o.getAttribute("altsrc")){o.src=o.getAttribute("altsrc");o.setAttribute("altsrc",null)};o.style.cursor='default';p.href='#'})}
function setimg(obj,src){if(obj.tagName.toLowerCase()=="img"){obj.src=obj.getAttribute(src);return true}}
function initaltimg(){var d=document.getElementsByTagName("img");for(var i=0;i<d.length;i++){var o=d.item(i);if(!o.getAttribute("altsrc")){continue};o.setAttribute("normalsrc",o.src);preload(o);o.onmouseout=function(){setimg(this,"normalsrc")};o.onmouseover=function(){setimg(this,"altsrc")}}}
function preload(o){if(o&&typeof(o)=='object'){if(o.getAttribute&&o.getAttribute("altsrc")){arguments.callee(o.getAttribute("altsrc"));return};for(var p in o){arguments.callee(o[p])}}else{(new Image).src=o}}
function linit(){rlf(['lcnt','rcnt'],lazycor);initaltimg();rlf(['sfact','fbsend'],bgcinit);for(var i=0;i<lrun.length;i++){lrun[i]()}}
function rlf(a,f){for(var i=0;i<a.length;i++){f(a[i])}}
function bgcinit(n){var o=document.getElementById(n);if(!o){return};preload(o);o.onmouseout=function(){this.style.backgroundImage='url('+this.getAttribute('normalsrc')+')';return true};o.onmouseover=function(){this.style.backgroundImage='url('+this.getAttribute('altsrc')+')';return true}}
if(!window.onload){window.onload=linit}
lrun.push(function(){if(!mnttl||mnttl.length==0){return;};for(var i=0;i<mnttl.length;i++){var k=mnttl[i],o=document.getElementById('i_'+k);if(!o){continue};var t=document.getElementById('t_'+k);if(!t){continue};o.otrg=t;var b=getmap(o);t.style.left=(b.l+2*b.w/3)+'px';t.style.top=(-130+b.t+b.h/2)+'px';o.onmouseover=function(){if(mnttl.last){mnttl.last.style.display='none'};mnttl.last=this.otrg;mnttl.last.style.display='block'};t.onmouseover=function(){this.style.display='block'};t.onmouseout=function(){this.style.display='none'};o.onmouseout=function(){this.otrg.style.display='none'}}});
function getmap(o){if(!o){return{l:0,t:0,w:0,h:0}};var l=o.offsetLeft,t=o.offsetTop;for(var p=o.offsetParent;p;p=p.offsetParent){l+=p.offsetLeft-p.scrollLeft;t+=p.offsetTop-p.scrollTop};return{l:l,t:t,w:o.offsetWidth,h:o.offsetHeight}}
