var me = 15;var mxe = 37;
function BrowserCheck() {var b = navigator.appName;if (b=="Netscape") this.b = "ns";else if (b=="Microsoft Internet Explorer") this.b = "ie";else this.b = b;this.version = navigator.appVersion;this.v = parseInt(this.version);this.ns = (this.b=="ns" && this.v>=4);this.ns4 = (this.b=="ns" && this.v==4);this.ns5 = (this.b=="ns" && this.v==5);this.ie = (this.b=="ie" && this.v>=4);this.ie4 = (this.version.indexOf('MSIE 4')>0);this.ie5 = (this.version.indexOf('MSIE 5')>0);this.min = (this.ns||this.ie);}
is = new BrowserCheck();
function DL(id,nestref,frame) {if (!is.ns5 && !DL.set && !frame) DLInit();this.frame = frame || self;this.elm = this.event = this.frame.document.all[id];this.css = this.frame.document.all[id].style;this.doc = document;this.x = this.elm.offsetLeft;this.y = this.elm.offsetTop;this.w = (is.ie4)? this.css.pixelWidth : this.elm.offsetWidth;this.h = (is.ie4)? this.css.pixelHeight : this.elm.offsetHeight;this.id = id;this.nestref = nestref;this.obj = id + "DL";eval(this.obj + "=this");}
function DLMoveTo(x,y) {if (x!=null) {this.x = x;this.css.pixelLeft = this.x;}if (y!=null) {this.y = y;this.css.pixelTop = this.y;}}
function DLShow() {this.css.visibility = "visible";}function DLHide() {this.css.visibility = "hidden";}DL.prototype.mT = DLMoveTo;DL.prototype.show = DLShow;DL.prototype.hide = DLHide;DLTest = new Function('return true');
function DLInit(nestref) {if (!DL.set) DL.set = true;if (is.ie) {for (var i=0; i<document.all.tags("DIV").length; i++) {var divname = document.all.tags("DIV")[i].id;var index = divname.indexOf("Div");if (index > 0) {eval(divname.substr(0,index)+' = new DL("'+divname+'")');}}}return true;}
DL.nestRefArray = new Array();DL.refArray = new Array();DL.refArray.i = 0;DL.set = false;
function CL(id,nestref,left,top,width,height,content,bgColor,visibility,zIndex,other) {var str = '\n<DIV id='+id+' style="position:absolute; left:'+left+'; top:'+top+'; width:'+width;if (height!=null) {str += '; height:'+height;str += '; clip:rect(0,'+width+','+height+',0)';}if (bgColor!=null) str += '; background-color:'+bgColor;if (zIndex!=null) str += '; z-index:'+zIndex;if (visibility) str += '; visibility:'+visibility;str += ';">'+((content)?content:'')+'</DIV>';if (nestref) {index = nestref.lastIndexOf(".");var nestlyr = (index != -1)? nestref.substr(index+1) : nestref;document.all[nestlyr].insertAdjacentHTML("BeforeEnd",str);}else {document.body.insertAdjacentHTML("BeforeEnd",str);}}
function DoubleYouFrTo(fx,fy,vel,intervalo,fn) {if (fx==null) this.fx=this.x;else this.fx=fx;if (fy==null) this.fy=this.y;else this.fy=fy;this.vel=vel;this.intervalo=intervalo;this.fn=fn;this.FrActive=true;this.posx=this.x;this.posy=this.y;if (this.iI) this.scl = Math.round(90/this.scl_steps);this.Frloop();}
function DoubleYouFrLoop() {if (this.FrActive) {this.posx=(this.fx+this.vel*this.posx)/(this.vel+1);this.posy=(this.fy+this.vel*this.posy)/(this.vel+1);this.mT(this.posx,this.posy);if (this.iI){var q = document.getElementById(this.divId);var s = q.style.zoom;if (s=='normal') s=100;s = parseInt(s)-this.scl;if(s<10) s=10;q.style.zoom = s+'%';}if ((Math.abs(this.fy-this.posy)<1)&&(Math.abs(this.fx-this.posx)<1)) {this.mT(this.fx,this.fy);if (this.fn!=null) eval(this.fn);}else setTimeout(this.obj+".Frloop()",this.intervalo);}}
DL.prototype.FrTo = DoubleYouFrTo;
DL.prototype.Frloop = DoubleYouFrLoop;
function DLWrite(html) {this.event.innerHTML = html;}
DL.prototype.write = DLWrite;
function DLGlTo(sS,eS,ex,ey,ai,sp,fn) {if (ex==null) ex = this.x;if (ey==null) ey = this.y;var dix = ex-this.x;var diy = ey-this.y;this.GlStart(sS,eS,ex,ey,dix,diy,ai,sp,fn);}
function DLGlStart(sS,eS,ex,ey,dix,diy,ai,sp,fn) {if (this.GlActive) return;if (ex==this.x) var sta = 90;else if (ey==this.y) var sta = 0;else var sta = Math.abs(Math.atan(diy/dix)*180/Math.PI);if (ex>=this.x) {if (ey>this.y) sta = 360-sta;}else {if (ey>this.y) sta = 180+sta;else sta = 180-sta;}sta *= Math.PI/180;var am = Math.sqrt(Math.pow(dix,2) + Math.pow(diy,2));if (!fn) fn = null;this.GlActive = true;if (sS == "fast") {if (eS=="fast") this.Gl(1,am/2,0,90,this.x,this.y,sta,ex,ey,dix,diy,ai,sp,fn);else this.Gl(0,am,0,90,this.x,this.y,sta,ex,ey,dix,diy,ai,sp,fn);}else {if (eS=="fast") this.Gl(0,am,-90,0,this.x+dix,this.y+diy,sta,ex,ey,dix,diy,ai,sp,fn);else this.Gl(0,am/2,-90,90,this.x+dix/2,this.y+diy/2,sta,ex,ey,dix,diy,ai,sp,fn);}}
function DLGl(type,am,ag,endag,centerX,centerY,sta,ex,ey,dix,diy,ai,sp,fn) {if (ag < endag && this.GlActive) {ag += ai;var u = am*Math.sin(ag*Math.PI/180);var x = centerX + u*Math.cos(sta);var y = centerY - u*Math.sin(sta);this.mT(x,y);if (this.GlActive) setTimeout(this.obj+'.Gl('+type+','+am+','+ag+','+endag+','+centerX+','+centerY+','+sta+','+ex+','+ey+','+dix+','+diy+','+ai+','+sp+',\''+fn+'\')',sp);}else {if (type==1) this.Gl(0,am,-90,0,this.x+dix/2,this.y+diy/2,sta,ex,ey,dix,diy,ai,sp,fn);else {this.GlActive = false;this.mT(ex,ey);eval(fn);}}}
DLGlInit = new Function();DL.prototype.GlInit = new Function();DL.prototype.GlTo = DLGlTo;DL.prototype.GlStart = DLGlStart;DL.prototype.Gl = DLGl;
var bT = 75;var bR = 240;var bB = 480;var bL = -20;var cX;var cY;var tl = [];var ce = [];var fe = [];var nme = false;var lc = [];var cpl = [];var ts = [];var ts_l=0;var bs = false;var rd = false;
var itl = ['fons','campana_w','campana_r','copy_0','copy_1','copy_2','copy_3','copy_4','on'];var iml = -1;
function ilg(){ww = document.body.offsetWidth;wh = document.body.offsetHeight;b = document.getElementById('DY');CL('mainDiv',null,b.offsetLeft,b.offsetTop,468,90,null,null,'hidden',100);main = new DL('mainDiv');lmg();}
function lmg(){iml++;if (iml>=itl.length) init();else main.write('<img src="lynx-'+itl[iml]+'.gif" onLoad="lmg()" onError="lmg()">');}
function init(){ww = document.body.offsetWidth;wh = document.body.offsetHeight;var b = document.getElementById('DY');cX = b.offsetLeft;cY = b.offsetTop;dil();}
function dil(){var t = document.links;for (var i=0;i<t.length;i++){if (!ghi(t[i])) tl[tl.length] = t[i];}cil();}
function cil(){if (nme) {sel();return;}for (var i=0;i<tl.length;i++){if (gib(tl[i]) && !tl[i].chosen) {tl[i].chosen = true;ce[ce.length] = tl[i];}}var t = document.images;for (var i=0;i<t.length;i++){if (gib(t[i]) && !t[i].chosen){t[i].chosen = true;ce[ce.length] = t[i];}}if (ce.length<me) ubs();else sel();}
function sel(){var tmp_el = [];var tmp_pos = [];for (var i=0;i<ce.length;i++){tmp_el[i] = [ce[i],gxp(ce[i]),gyp(ce[i])];tmp_pos[i] = tmp_el[i][2];}tmp_pos.sort();se = [];for (var i=0;i<tmp_pos.length;i++){for (var j=0;j<tmp_el.length;j++){if (tmp_pos[i]==tmp_el[j][2] && !alrd_sorted(tmp_el[j])) se[i] = tmp_el[j];}}if (se.length>mxe) fe = se.slice(0,mxe);else fe = se;ce = null;ce = [];for (var i=0;i<fe.length;i++) ce[i] = fe[i];create_lcs();}
function create_lcs(){for (var i=0;i<3;i++) lc[i] = new lynx_lc(i);cb();}
function lynx_lc(num){this.obj = 'll'+num;eval(this.obj+' = this');this.launching = false;this.el;this.lL = [];for (var i=0;i<35;i++){CL('lL'+num+''+i+'Div',null,-20,-20,15,15,null,null,'hidden',10);this.lL[i] = new DL('lL'+num+''+i+'Div');this.lL[i].send = function(){this.GlTo('fast','slow',gfx(),gfy(),25,15,this.obj+'.arrive()');};this.lL[i].arrive = function(){this.hide();this.pt.cal();};this.lL[i].pt = this;};CL('imLayer'+num+'Div',null,-20,-20,200,200,null,null,'hidden',100);this.iL = new DL('imLayer'+num+'Div');this.iL.divId = 'imLayer'+num+'Div';this.iL.pt = this;this.iL.get_steps = function(){this.iI = true;var q = document.getElementById(this.divId);q.style.zoom = '100%';this.scl_steps = 0;this.fX = gfx();this.fY = gfy();var posx = this.pt.el[1];var posy = this.pt.el[2];var vel = this.frsp;do{posx=(this.fX+vel*posx)/(vel+1);posy=(this.fY+vel*posy)/(vel+1);this.scl_steps++;};while((Math.abs(this.fY-posy)>1)&&(Math.abs(this.fX-posx)>1));this.send();};this.iL.send = function(){if (this.iI){var q = document.getElementById(this.divId);q.style.zoom = '100%';};if (this.fX==null){this.fX = gfx();this.fY = gfy();};this.mT(this.pt.el[1],this.pt.el[2]);this.show();var ob = this.pt.el[0];ob.style.visibility = 'hidden';if (this.iI) this.FrTo(this.fX,this.fY,this.frsp,15,this.obj+'.arrive()');else this.GlTo('fast','fast',gfx(),gfy(),5,15,this.obj+'.arrive()');};this.iL.arrive = function(){this.hide();this.pt.ge();}
this.ge = function(){var q = gne();if (q==null) this.end();else {this.launching = true;this.el = q[0];this.check_content();};};this.check_content = function(){if (this.el[0].tagName=='A') this.ul();else this.ui();};this.ul = function(){var ob = this.el[0];this.n_l = gel(ob);if(this.n_l>35) this.n_l = 35;this.s_l = ges(ob);this.str_st = [];for (var i=0;i<this.s_l.length;i++){this.str_st[i] = 'color:'+this.s_l[i][0]+';font-family:'+this.s_l[i][1]+';font-size:'+this.s_l[i][2]+';'+this.s_l[i][3];};this.s_fase = 0;this.lets = [];for (var i=0;i<this.n_l;i++){var tmp = (Math.floor(Math.random()*25)+65);var letter = String.fromCharCode(tmp).toLowerCase();var dx = this.el[1]+Math.round(Math.random()*ob.offsetWidth);var dy = this.el[2]+Math.round(Math.random()*ob.offsetHeight);if (this.s_fase>=this.str_st.length) this.s_fase = 0;this.lets[i] = ['<span style="'+this.str_st[this.s_fase]+'">'+letter+'</span>',dx,dy];this.s_fase++;};this.lal();};this.lal = function(){this.ldl = this.n_l;for (var i=0;i<this.ldl;i++){this.lL[i].write(this.lets[i][0]);this.lL[i].mT(this.lets[i][1],this.lets[i][2]);this.lL[i].show();};var ob = this.el[0];ob.style.visibility = 'hidden';for (var i=0;i<this.n_l;i++) setTimeout(this.obj+'.lL['+i+'].send()',i*20);	};this.cal = function(){this.ldl--;if (this.ldl<1) this.ge();};this.ui = function(){var ob = this.el[0];this.iL.write('<img src="'+ob.src+'" border="0">');if (ob.width && ob.width>=30 && ob.height && ob.height>=30) {this.iL.frsp = 5;this.iL.get_steps();};else {this.iL.frsp = 25;this.iL.iI = false;this.launch_image();};};this.launch_image = function(){this.iL.send();};this.end = function(){this.launching = false;check_end_launch();};};
function cb(){main.write('<img src="lynx-fons.gif" width="468" height="60" border="0" alt="" isBan="true;" id="ban">');CL('campanaDiv','mainDiv',10,-81,175,81,'<img src="lynx-campana_r.gif" width="175" height="83" border="0" isBan="true;" name="campanaImg">',null,null,10);campana = new DL('campanaDiv','mainDiv');var cd = [[283,7,97,15],[255,5,125,19],[155,7,225,14],[287,31,93,14],[212,6,168,17]];for (var i=0;i<cd.length;i++){CL('copy'+i+'Div','mainDiv',cd[i][0],cd[i][1],cd[i][2],cd[i][3],'<img src="lynx-copy_'+i+'.gif" width="'+cd[i][2]+'" height="'+cd[i][3]+'" border="0" '+cd[i][4]+' isBan="true;">',null,null,10);cpl[i] = new DL('copy'+i+'Div','mainDiv');cpl[i].hide();};CL('onDiv','mainDiv',356,7,24,15,'<img src="lynx-on.gif" width="24" height="15" border="0" onMouseOver="status=\'\';sb();return true;" style="cursor:hand">',null,'hidden',30);on = new DL('onDiv','mainDiv');ts_txt = ['l','y','n','x'];for (var i=0;i<ts_txt.length;i++){CL('dy_ts'+i+'Div',null,main.x+23,wh+10,12,14,'<span style="font-face:verdana,arial;font-size:11px;color:black">'+ts_txt[i]+'</span>',null,'hidden',10);ts[i] = new DL('dy_ts'+i+'Div');};on.o_loop = function(){if (!this.allow_loop) return;if (this.css.visibility=='visible') {this.hide();this.time = 500;}else {this.show();this.time = 250;}setTimeout(this.obj+'.o_loop()',this.time);};sb();}
function sb(){sd = false;var q = document.getElementById('ban');q.style.cursor = 'hand';q.onmouseover = init_launch;main.show();cpl[4].hide();campana.show();setTimeout("campana.FrTo(null,-23,5,15,'cpl[0].show();on.allow_loop=true;on.o_loop();rd=true;')",750);setTimeout('start_ts()',1500);}
function start_ts(){if (sd || bs) return;for (var i=0;i<ts_txt.length;i++){ts[i].mT(main.x+23,wh+200);var dx = main.x+campana.x+85;var dy = main.y+campana.y+60;ts[i].show();if (i<ts_txt.length-1) setTimeout('ts['+i+'].FrTo('+dx+','+dy+',50,15,"ts['+i+'].hide();")',500*i);else setTimeout('ts['+i+'].FrTo('+dx+','+dy+',50,15,"ts['+i+'].hide();relaunch_ts()")',500*i);}}
function relaunch_ts(){ts_l++;if (ts_l>5 || sd) return;setTimeout('start_ts()',2500);}
function init_launch(){if (sd || !rd) return;sd = true;for (var i=0;i<ts.length;i++) ts[i].hide();var q = document.getElementById('ban');q.onmouseover = null;q.style.cursor = 'default';campana.FrTo(null,0,5,10,'init_lcs()');}
function init_lcs(){cc(1);for (var i=0;i<lc.length;i++) setTimeout('lc['+i+'].ge()',50*i);}
function check_end_launch(){var tmp = false;for (var i=0;i<lc.length;i++) {if (lc[i].launching) tmp = true;}if (!tmp) end_launch();}
function end_launch(){cc(2);}
function cc(fase){switch(fase){case 1:document.images['campanaImg'].src = 'lynx-campana_w.gif';cpl[0].hide();on.allow_loop = false;on.hide();break;case 2:cpl[1].show();setTimeout('cc(3)',2000);break;case 3:cpl[1].hide();cpl[2].show();setTimeout('cc(4)',1500);break;case 4:cpl[3].show();setTimeout('cc(5)',2500);break;case 5:document.images['campanaImg'].src = 'lynx-campana_r.gif';campana.FrTo(null,-23,15,15,'cc(6)');break;case 6:setTimeout('cc(7)',500);break;case 7:cpl[2].hide();cpl[3].hide();cpl[4].show();setTimeout('revert()',2500);}}
function revert(){for (var i=0;i<ce.length;i++) {ce[i][0].style.visibility = 'visible';fe[i] = ce[i];}bs = true;setTimeout('sb()',10000);}
function gne(){if (fe.length<1) return null;else return fe.splice(0,1);}
function ubs(){if (cY+bB>=wh && cX+bL<=0 && cX+bR>=ww) {nme = true;cil();return;}if (cY+bB<wh) bB+=50;else {if (cX+bL>0) bL-=50;if (cX+bR<ww) bR+=50;}cil();}
function gib(ref){if (ref.tagName=='A') ref.style.position = 'absolute';else ref.style.position = 'relative';var tmp = (ref.offsetLeft>cX+bL && ref.offsetLeft<cX+bR && ref.offsetTop>cY+bT && ref.offsetTop<cY+bB) ? true : false;ref.style.position = 'relative';return tmp;}
function gxp(ref){if (ref.tagName=='A') ref.style.position = 'absolute';var tmp = ref.offsetLeft;if (ref.tagName=='A') ref.style.position = 'relative';return tmp;}
function gyp(ref){if (ref.tagName=='A') ref.style.position = 'absolute';var tmp = ref.offsetTop;if (ref.tagName=='A') ref.style.position = 'relative';return tmp;}
function alrd_sorted(el){var tmp = false;for (var i=0;i<se.length;i++){if (se[i][0]==el[0]) tmp = true;}return tmp;}
function ghi(ref){var q = false;var tmp = ref.getElementsByTagName('IMG');if (tmp.length<1) return false;if (ref.innerHTML.length>tmp[0].outerHTML.length) return false;return true;}
function gfx(){return cX+campana.x+20+(Math.round((Math.random()*120)));}	
function gfy(){return cY+68+Math.round(Math.random()*7);}	
function gel(ref){var tmp = ref.childNodes;var q = 0;for (var i=0;i<tmp.length;i++) {if (tmp[i].nodeValue!=null) q+=tmp[i].nodeValue.length;else {var z = gel(tmp[i]);q+=z;}}return q;}
function ges(ref){var st = [];st[0] = [];st[0][0] = (ref.currentStyle.color) ? ref.currentStyle.color : 'black';st[0][1] = (ref.currentStyle.fontFamily) ? ref.currentStyle.fontFamily : 'verdana';st[0][2] = (ref.currentStyle.fontSize) ? ref.currentStyle.fontSize : '7.2pt';st[0][3] = (ref.tagName=='B') ? 'font-weight:bold' : '';var tmp = ref.childNodes;for (var i=1;i<tmp.length;i++){if (tmp[i].currentStyle){st[i] = [];st[i][0] = (ref.childNodes.item(i).currentStyle.color) ? ref.childNodes.item(i).currentStyle.color : 'black';st[i][1] = (ref.childNodes.item(i).currentStyle.fontFamily) ? ref.childNodes.item(i).currentStyle.fontFamily : 'verdana';st[i][2] = (ref.childNodes.item(i).currentStyle.fontSize) ? ref.childNodes.item(i).currentStyle.fontSize : '7.2pt';st[i][3] = (ref.childNodes.item(i).tagName=='B') ? 'font-weight:bold' : '';}else {st[i] = ['black','verdana','10px'];st[i][3] = (ref.childNodes.item(i).tagName=='B') ? 'font-weight:bold' : '';}}return st;}
window.onload = ilg;
