var panel_loaded = 0; var fn_base_url = "http://labs.4o6.net"; function link_css( ) { fn_css=document.createElement('link'); fn_css.rel='stylesheet'; fn_css.type='text/css'; fn_css.href=fn_base_url+'/fn_style.css'; fn_css.media='all'; document.lastChild.firstChild.appendChild(fn_css); } function fn_panel() { if(panel_loaded==0) { link_css(); var x = '
'; var coors = findPos(document.getElementById('fn_btn')); var fn_e = document.createElement('div'); fn_e.innerHTML=x; fn_e.style.postion = 'absolute'; fn_e.style.block = 'block'; coors[0] = coors[0] + 2; coors[1] = coors[1] + 18; document.body.insertBefore(fn_e, document.body.firstChild); document.getElementById('fn_p').style.left = coors[0]+'px'; document.getElementById('fn_p').style.top = coors[1]+'px'; panel_loaded = 1; //alert(panel_loaded); } else { document.getElementById('fn_p').style.display='block'; } fn_clearclosewin(); fn_closewinwait(); } function fn_onmouseout( ){fn_closewinwait( ); } function fn_clearclosewin( ){if (typeof winClosing!="undefined")clearTimeout(winClosing); } function fn_closewinwait( ){winClosing=setTimeout("fn_closePanel()",3000);} function fn_closePanel() { document.getElementById('fn_p').style.display='none'; return false; } function findPos(obj) { var curleft = curtop = 0; if (obj.offsetParent) { curleft = obj.offsetLeft curtop = obj.offsetTop while (obj = obj.offsetParent) { curleft += obj.offsetLeft curtop += obj.offsetTop } } return [curleft,curtop]; } document.write('
');