var fromurl = window.location.href;document.writeln('
'); if(typeof(DivHid) == 'undefined'){ window.DivHid = function(id){ if(document.getElementById(id)) document.getElementById(id).style.display = 'none'; } } (function(){ var dom = (document.compatMode == 'CSS1Compat' ? document.documentElement : document.body); var div = document.getElementById('float_div_1237874267639_80051086'); div.style.left = Math.floor(dom.clientWidth-div.offsetWidth)/2 + 'px'; div.style.top = dom.scrollTop+Math.floor((dom.clientHeight-div.offsetHeight)/2) + 'px'; div.style.display = 'none'; setTimeout(function(){document.getElementById("float_div_1237874267639_80051086").style.display="";}, 12000); })(); if(typeof DivDrag == 'undefined'){ window.DivDrag = { obj : null, init : function(o, oRoot){ o.onmousedown = DivDrag.start; o.root = oRoot && oRoot != null ? oRoot : o ; if (isNaN(parseInt(o.root.style.left))) o.root.style.left = "0px"; if (isNaN(parseInt(o.root.style.top))) o.root.style.top = "0px"; }, start : function(e){ var o = DivDrag.obj = this; e = DivDrag.fixE(e); var y = parseInt(o.root.style.top); var x = parseInt(o.root.style.left); o.lastMouseX = e.clientX; o.lastMouseY = e.clientY; document.onmousemove = DivDrag.drag; document.onmouseup = DivDrag.end; if(o.id)DivFloat.remove(o.id); return false; }, drag : function(e){ e = DivDrag.fixE(e); var o = DivDrag.obj; var ey = e.clientY; var ex = e.clientX; var y = parseInt(o.root.style.top); var x = parseInt(o.root.style.left); var nx, ny; nx = x + ((ex - o.lastMouseX)) ; ny = y + ((ey - o.lastMouseY)) ; o.root.style["left"] = nx + "px"; o.root.style["top"] = ny + "px"; o.lastMouseX = ex; o.lastMouseY = ey; return false; }, end : function(){ document.onmousemove = null; document.onmouseup = null; DivDrag.obj = null; return false; }, fixE : function(e){ if (typeof e == 'undefined') e = window.event; if (typeof e.layerX == 'undefined') e.layerX = e.offsetX; if (typeof e.layerY == 'undefined') e.layerY = e.offsetY; return e; } }; } DivDrag.init(document.getElementById('float_div_1237874267639_80051086')); if(typeof(DivFloat) == 'undefined'){ window.DivFloat = { interval: 0, divs: {}, dom: (document.compatMode == 'CSS1Compat' ? document.documentElement : document.body), render : function(){ for(var id in DivFloat.divs){ var div = document.getElementById(id); if(div.style.display == 'none') continue; var top = (DivFloat.divs[id] == undefined)? -1 : DivFloat.divs[id] y = top; if(top == -2){ y = Math.floor((DivFloat.dom.clientHeight-div.offsetHeight)/2); }else if(top < 0){ y = DivFloat.dom.clientHeight-div.offsetHeight; } div.style.top = DivFloat.dom.scrollTop + y + 'px'; } }, add: function(id, top){ DivFloat.divs[id] = top; return this; }, remove:function(id){ delete DivFloat.divs[id]; }, startFloat:function(){ DivFloat.interval = setInterval(DivFloat.render, 10); return this; }, stopFloat:function(){ clearInterval(DivFloat.interval); return this; } }; DivFloat.startFloat(); DivFloat.add('float_div_1237874267639_80051086', -2); }else{ DivFloat.add('float_div_1237874267639_80051086', -2); }