function addBeforeUnLoad(_1){if(window.addEventListener){window.addEventListener("beforeunload",_1,false);}else{if(window.attachEvent){window.attachEvent("beforeunload",_1);}}};function addOnUnLoad(_2){if(window.addEventListener){window.addEventListener("unload",_2,false);}else{if(window.attachEvent){window.attachEvent("unload",_2);}}};function addOnLoad(_3){if(window.addEventListener){window.addEventListener("load",_3,false);}else{if(window.attachEvent){window.attachEvent("onload",_3);}}};function stripslashes(_4){return (_4+"").replace(/\\(.?)/g,function(s,n1){switch(n1){case "\\":return "\\";case "0":return "\x00";case "":return "";default:return n1;}});};function random_string(_5){if(_5==undefined){_5=10;}chars="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";char_len=chars.length;rand_string="";for(x=0;x<_5;x++){i=Math.floor(Math.random()*char_len);rand_string+=chars.charAt(i);}return rand_string;};var comic_data=new Array();comic_data["enabled"]="no";comic_data["top_image"]="http://images.oneddl.com/images/j6g4qrckfd6yeixnraue.png";comic_data["top_banner"]="http://images.oneddl.com/images/nodppgglykqh5t8th8n.png";comic_data["link_text"]="Comic Roundup";comic_data["link"]="http://www.oneddl.com/tag/comic-roundup/";comic_data["nfo_text"]="iNFO";comic_data["nfo_link"]="javascript:alert('No iNFO');";comic_data["comments"]="";function get_comic_data(){var _6;try{_6=new XMLHttpRequest();}catch(e){try{_6=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{_6=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){return false;}}}_6.onreadystatechange=function(){if(_6.readyState==4){var _7=_6.responseXML;var _8=_7.getElementsByTagName("comic")[0];try{var _9=_8.getElementsByTagName("data");}catch(e){}for(var i=0;i<_9.length;i++){try{comic_data["enabled"]=_9[i].getElementsByTagName("enabled")[0].firstChild.nodeValue;if(comic_data["enabled"]=="yes"){try{comic_data["top_image"]=stripslashes(_9[i].getElementsByTagName("top_image")[0].firstChild.nodeValue);}catch(e){}try{comic_data["top_banner"]=stripslashes(_9[i].getElementsByTagName("top_banner")[0].firstChild.nodeValue);}catch(e){}try{comic_data["link_text"]=stripslashes(_9[i].getElementsByTagName("link_text")[0].firstChild.nodeValue);}catch(e){}try{comic_data["link"]=stripslashes(_9[i].getElementsByTagName("link")[0].firstChild.nodeValue);}catch(e){}try{comic_data["nfo_text"]=stripslashes(_9[i].getElementsByTagName("nfo_text")[0].firstChild.nodeValue);}catch(e){}try{comic_data["nfo_link"]=stripslashes(_9[i].getElementsByTagName("nfo_link")[0].firstChild.nodeValue);}catch(e){}try{comic_data["comments"]=stripslashes(_9[i].getElementsByTagName("comments")[0].firstChild.nodeValue);}catch(e){}createDiv();}}catch(e){}}}};_6.open("GET","/comic_roundup.xml?rnd="+random_string(),true);_6.send(null);};addOnLoad(get_comic_data);var comic_roundup_mouse=false;var comic_roundup_over_mouse=false;function createDiv(){var _a=document.getElementsByTagName("body")[0];var _b=document.createElement("img");_b.src=comic_data["top_image"];_b.alt="Comic Roundup";_b.border=0;var _c=document.createElement("div");_c.style.position="fixed";_c.style.height="120px";_c.style.width="120px";_c.style.top="0px";_c.style.left="0px";_c.style.zIndex="1000";_c.id="comic_roundup";_c.style.opacity="0.70";_c.appendChild(_b);_a.appendChild(_c);var _d=document.createElement("div");_d.style.position="fixed";_d.style.display="none";_d.style.top="30px";_d.style.left="70px";_d.style.zIndex="1005";_d.style.textAlign="center";_d.style.padding="5px";_d.style.backgroundColor="transparent";_d.id="comic_roundup_over";_d.style.opacity="1.0";_d.innerHTML="<a href=\""+comic_data["link"]+"\"><img border=0 src=\""+comic_data["top_banner"]+"\"></a><div style=\"background-color: #FFFCDF; width: 300px; left: 90px; top: 125px; position: absolute; border: 1px dotted black; padding: 10px;\"><a href=\""+comic_data["link"]+"\"><strong>"+comic_data["link_text"]+"</strong></a><br><br><a target=\"_blank\" href=\""+comic_data["nfo_link"]+"\">"+comic_data["nfo_text"]+"</a><br>"+comic_data["comments"]+"</div>";_a.appendChild(_d);document.getElementById("comic_roundup").onclick=function(){document.location=comic_data["link"];return false;};document.getElementById("comic_roundup").onmousemove=function(){comic_roundup_mouse=true;document.getElementById("comic_roundup_over").style.display="block";return false;};document.getElementById("comic_roundup").onmouseout=function(){comic_roundup_mouse=false;setTimeout("check_if_over()",1000);};document.getElementById("comic_roundup_over").onmousemove=function(){comic_roundup_over_mouse=true;document.getElementById("comic_roundup_over").style.display="block";return false;};document.getElementById("comic_roundup_over").onmouseout=function(){comic_roundup_over_mouse=false;setTimeout("check_if_over()",1000);};};function check_if_over(){if(!comic_roundup_mouse&&!comic_roundup_over_mouse){document.getElementById("comic_roundup_over").style.display="none";return false;}};
