var httpURL="";function updateMood(){window.open("/mytlnet/updatemood.php","updatemood","left="+(document.body.clientWidth/3)+",top="+(document.body.clientHeight/3)+",width=340,height=210,location=no,menubar=no,status=no,toolbar=no,resizable=no,scrollbars=no")}function toggleShowQuote(a){toggleHidden("showQuoteRest_"+a,"showQuoteLink_"+a,"Show nested quote +","Hide nested quote -")}function getSpoilerHeader(b,a){showPre="+ Show ";showPost=" +";hidePre="- Hide ";hidePost=" -";truncatedTitle=truncateText(b,40);b=(b.length>0)?" ["+truncatedTitle+"]":"";return a?showPre+"Spoiler"+b+showPost:hidePre+"Spoiler"+b+hidePost}function toggleShowSpoiler(c,a,b){spoilerDiv=document.getElementById("spoiler_"+b);if(c.innerHTML.match("^\\+")){c.innerHTML=getSpoilerHeader(a,false);spoilerDiv.style.display="";spoilerDiv.style.visibility="visible"}else{c.innerHTML=getSpoilerHeader(a,true);spoilerDiv.style.display="none";spoilerDiv.style.visibility="hidden"}}function toggleShowMoreEvents(){toggleHidden("span_more_events","link_show_more_events","More","Less")}function toggleHidden(b,c,a,d){span=document.getElementById(b);link=document.getElementById(c);if(span.style.display!="none"){span.style.display="none";link.innerHTML=a}else{span.style.display="";link.innerHTML=d}}function resize_images(){var e=document.getElementsByTagName("img");var c;for(c=0;c<e.length;c++){var a=e[c];var b=a.className.split(" ");var d=590;if(b[0]=="ie-image"){if(b[1]=="img-quoted"){d=542}if(a.width>d){a.style.border="1px solid yellow";a.width=d;a.onclick=function(){window.open(this.src)}}a.style.position="static";a.style.visibility="visible"}else{if(b[0]=="css-image"){var d=parseInt(a.style.maxWidth);if(a.width>=d){a.style.border="1px solid yellow";a.onclick=function(){window.open(this.src)}}}}}}function getHTTPObject(){if(typeof XMLHttpRequest!="undefined"){return new XMLHttpRequest()}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(a){try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(a){}}return false}function getElement(c){var d,e;if(typeof(document.selection)!="undefined"&&!window.opera){var a=document.selection.createRange();var b=a.duplicate();b.moveToElementText(c);b.setEndPoint("EndToEnd",a);c.selectionStart=b.text.length-a.text.length;c.selectionEnd=c.selectionStart+a.text.length}return c}function getUserSelection(a){var a=getElement(a);var b=a.value.substring(a.selectionStart,a.selectionEnd);return b}function setUserSelection(a,b){var a=getElement(a);a.value=a.value.substring(0,a.selectionStart)+b+a.value.substring(a.selectionEnd)}function addUBB_selected(b,a){var e=document.getElementById(b);var c=e.scrollTop;var d=e.scrollLeft;var f=getUserSelection(e);if(f.length==0){e.value=e.value+"["+a+"][/"+a+"]"}else{setUserSelection(e,"["+a+"]"+f+"[/"+a+"]")}e.scrollTop=c;e.scrollLeft=d}function _tlpdize(f,h,g){var m=document.getElementById(f);var b=m.scrollTop;var d=m.scrollLeft;var c=getUserSelection(m);var l;if(c.length==0){l=m.value}else{l=c}var k=getHTTPObject();var a="/tlpd/tlpdize.php";var e="text="+encodeURIComponent(l.replace(/\+/g,"@_PLUS_CHARACTER_#"));if(g!=null){e+="&mode="+g}if(h){e+="&undo=1"}var j=m.style.backgroundColor;m.style.backgroundColor="#ccc";k.open("POST",a,true);k.setRequestHeader("Content-type","application/x-www-form-urlencoded");k.setRequestHeader("Content-length",e.length);k.setRequestHeader("Connection","close");k.onreadystatechange=function(){if(k.readyState==4&&k.status==200){if(c.length==0){m.value=k.responseText}else{setUserSelection(m,k.responseText)}m.style.backgroundColor=j;m.scrollTop=b;m.scrollLeft=d}};k.send(e)}function tlpdize(a){_tlpdize(a,false,"tlpd")}function tsldize(a){_tlpdize(a,false,"tsld")}function untlpdize(a){_tlpdize(a,true,null)}function truncateText(a,b){if(a.length>b){return a.substring(0,b-2)+".."}return a}function setTZCountDown(e,d){var b=new Date();b.setTime(d);var c=new Date();c.setTime(e);var a=new Date(0);a.setMilliseconds(b-c);return Math.floor(a.valueOf()/1000)}function displayTZCountDown(c,f){if(c<0){if(document.getElementById(f).innerHTML=="&nbsp;"){document.getElementById(f).innerHTML="00:00:00"}else{document.getElementById(f).innerHTML="&nbsp;"}setTimeout("displayTZCountDown("+(c-1)+",'"+f+"');",700)}else{var b=c%60;if(b<10){b="0"+b}var e=(c-b)/60;var d=e%60;if(d<10){d="0"+d}e=(e-d)/60;var a=e%24;if(a<10){a="0"+a}var g=(e-a)/24;if(g<1){document.getElementById(f).innerHTML=a+":"+d+":"+b}else{document.getElementById(f).innerHTML=g+" day"+(g==1?"":"s")+", "+a+" hours, "+d+" mins, "+b+" secs"}setTimeout("displayTZCountDown("+(c-1)+",'"+f+"');",999)}}var httpo;function RateBlog(b,c){var d=confirm("Rate this blog post a "+c+"?");if(d){var a=navigator.appName;if(a=="Microsoft Internet Explorer"){httpo=new ActiveXObject("Microsoft.XMLHTTP")}else{httpo=new XMLHttpRequest()}httpo.open("get","http://www.teamliquid.net/blogs/rateblog.php?postid="+b+"&rating="+c);httpo.onreadystatechange=HandleResults;httpo.send(null);document.getElementById("star1-"+b).src="http://www.teamliquid.net/blogs/images/graystarSmall.gif";document.getElementById("star2-"+b).src="http://www.teamliquid.net/blogs/images/graystarSmall.gif";document.getElementById("star3-"+b).src="http://www.teamliquid.net/blogs/images/graystarSmall.gif";document.getElementById("star4-"+b).src="http://www.teamliquid.net/blogs/images/graystarSmall.gif";document.getElementById("star5-"+b).src="http://www.teamliquid.net/blogs/images/graystarSmall.gif";for(i=1;i<=c;i++){document.getElementById("star"+i+"-"+b).src="http://www.teamliquid.net/blogs/images/blackstar.gif"}}}function HandleResults(){if(httpo.readystate==4){}}function sidebarClick(a,d){var c=0;var b=$(a);if(b.attr("alt")=="E"){b.attr("alt","Collapse");b.attr("src","http://www.teamliquid.net/mirror/layout/sb_expand.png")}else{c=1;b.attr("alt","E");b.attr("src","http://www.teamliquid.net/mirror/layout/sb_collapse.png")}$("#sidebar"+d).toggle();$.get("/mytlnet/savesidebar.php?fid="+d+"&hide="+c,function(e){})}function toggleShowSpoiler2(b,c){var a=$(b).children("span");if($(a[0]).text()=="+ Show"){$("#spoiler_"+c).show();$(a[0]).text("- Hide");$(a[1]).text(" -")}else{$("#spoiler_"+c).hide();$(a[0]).text("+ Show");$(a[1]).text(" +")}return false}(function(c){c.fn._hover=c.fn.hover;c.fn.hover=function(f,e,d){if(d){this.bind("hoverstart",f)}if(e){this.bind("hoverend",d?d:e)}return !f?this.trigger("hover"):this.bind("hover",d?e:f)};var b=c.event.special.hover={delay:100,speed:100,setup:function(d){d=c.extend({speed:b.speed,delay:b.delay,hovered:0},d||{});c.event.add(this,"mouseenter mouseleave",a,d)},teardown:function(){c.event.remove(this,"mouseenter mouseleave",a)}};function a(d){var f=d.data||d;switch(d.type){case"mouseenter":f.dist2=0;f.event=d;d.type="hoverstart";if(c.event.handle.call(this,d)!==false){f.elem=this;c.event.add(this,"mousemove",a,f);f.timer=setTimeout(e,f.delay)}break;case"mousemove":f.dist2+=Math.pow(d.pageX-f.event.pageX,2)+Math.pow(d.pageY-f.event.pageY,2);f.event=d;break;case"mouseleave":clearTimeout(f.timer);if(f.hovered){d.type="hoverend";c.event.handle.call(this,d);f.hovered--}else{c.event.remove(f.elem,"mousemove",a)}break;default:if(f.dist2<=Math.pow(f.speed*(f.delay/1000),2)){c.event.remove(f.elem,"mousemove",a);f.hovered++;f.event.type="hover";if(c.event.handle.call(f.elem,f.event)===false){f.hovered--}}else{f.timer=setTimeout(e,f.delay)}f.dist2=0;break}function e(){a(f)}}})(jQuery);(function(b){b.fn.superfish=function(l){var g=b.fn.superfish,k=g.c,f=b(['<span class="',k.arrowClass,'"> &#187;</span>'].join("")),j=function(){var c=b(this),m=d(c);clearTimeout(m.sfTimer);c.showSuperfishUl().siblings().hideSuperfishUl()},e=function(){var c=b(this),n=d(c),m=g.op;clearTimeout(n.sfTimer);n.sfTimer=setTimeout(function(){m.retainPath=(b.inArray(c[0],m.$path)>-1);c.hideSuperfishUl();if(m.$path.length&&c.parents(["li.",m.hoverClass].join("")).length<1){j.call(m.$path)}},m.delay)},d=function(c){var m=c.parents(["ul.",k.menuClass,":first"].join(""))[0];g.op=g.o[m.serial];return m},h=function(c){c.addClass(k.anchorClass).append(f.clone())};return this.each(function(){var c=this.serial=g.o.length;var n=b.extend({},g.defaults,l);n.$path=b("li."+n.pathClass,this).slice(0,n.pathLevels).each(function(){b(this).addClass([n.hoverClass,k.bcClass].join(" ")).filter("li:has(ul)").removeClass(n.pathClass)});g.o[c]=g.op=n;b("li:has(ul)",this)[(b.fn.hoverIntent&&!n.disableHI)?"hoverIntent":"hover"](j,e).each(function(){if(n.autoArrows){h(b(">a:first-child",this))}}).not("."+k.bcClass).hideSuperfishUl();var m=b("a",this);m.each(function(o){var p=m.eq(o).parents("li");m.eq(o).focus(function(){j.call(p)}).blur(function(){e.call(p)})});n.onInit.call(this)}).each(function(){var c=[k.menuClass];if(g.op.dropShadows&&!(b.browser.msie&&b.browser.version<7)){c.push(k.shadowClass)}b(this).addClass(c.join(" "))})};var a=b.fn.superfish;a.o=[];a.op={};a.IE7fix=function(){var c=a.op;if(b.browser.msie&&b.browser.version>6&&c.dropShadows&&c.animation.opacity!=undefined){this.toggleClass(a.c.shadowClass+"-off")}};a.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};a.defaults={hoverClass:"sfHover",pathClass:"overideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},speed:"fast",autoArrows:false,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};b.fn.extend({hideSuperfishUl:function(){var e=a.op,d=(e.retainPath===true)?e.$path:"";e.retainPath=false;var c=b(["li.",e.hoverClass].join(""),this).add(this).not(d).removeClass(e.hoverClass).find(">ul").hide().css("visibility","hidden");e.onHide.call(c);return this},showSuperfishUl:function(){var e=a.op,d=a.c.shadowClass+"-off",c=this.addClass(e.hoverClass).find(">ul:hidden").css("visibility","visible");a.IE7fix.call(c);e.onBeforeShow.call(c);c.animate(e.animation,e.speed,function(){a.IE7fix.call(c);e.onShow.call(c)});return this}})})(jQuery);function resize_images2(){$("div.imgdiv").each(function(c){var b=$(this).attr("clientWidth");var d=$(this).attr("scrollWidth");var a=$(this).attr("scrollHeight");if(b<d&&$(this).parent().attr("href")==null){b-=2;$(this).children().attr("width",b);$(this).children().css("border","1px solid yellow");$(this).children().bind("click",function(g){var f=window.open(this.src,"_blank","location=0,status=0,scrollbars=0,width="+(d+16)+",height="+(a+72));f.moveTo(g.screenX-(d/2),g.screenY-(a/2))})}})}(function(f){var a,k,c,h,e,b;var d={menuStyle:{listStyle:"none",padding:"1px",margin:"0px",backgroundColor:"#fff",border:"1px solid #999",width:"150px"},itemStyle:{margin:"0px",color:"#000",display:"block",cursor:"default",padding:"3px",border:"1px solid #fff",backgroundColor:"transparent"},itemHoverStyle:{border:"1px solid #0a246a",backgroundColor:"#b6bdd2"},eventPosX:"pageX",eventPosY:"pageY",shadow:true,onContextMenu:null,onShowMenu:null};f.fn.contextMenu=function(n,m){if(!a){a=f('<div id="jqContextMenu"></div>').hide().css({position:"absolute",zIndex:"500"}).appendTo("body").bind("click",function(o){o.stopPropagation()})}if(!k){k=f("<div></div>").css({backgroundColor:"#000",position:"absolute",opacity:0.2,zIndex:499}).appendTo("body").hide()}e=e||[];e.push({id:n,menuStyle:f.extend({},d.menuStyle,m.menuStyle||{}),itemStyle:f.extend({},d.itemStyle,m.itemStyle||{}),itemHoverStyle:f.extend({},d.itemHoverStyle,m.itemHoverStyle||{}),bindings:m.bindings||{},shadow:m.shadow||m.shadow===false?m.shadow:d.shadow,onContextMenu:m.onContextMenu||d.onContextMenu,onShowMenu:m.onShowMenu||d.onShowMenu,eventPosX:m.eventPosX||d.eventPosX,eventPosY:m.eventPosY||d.eventPosY});var l=e.length-1;f(this).bind("contextmenu",function(p){var o=(!!e[l].onContextMenu)?e[l].onContextMenu(p):true;if(o){j(l,this,p,m)}return false});return this};function j(n,m,o,l){var p=e[n];h=f("#"+p.id).find("ul:first").clone(true);h.css(p.menuStyle).find("li").css(p.itemStyle)._hover(function(){f(this).css(p.itemHoverStyle)},function(){f(this).css(p.itemStyle)}).find("img").css({verticalAlign:"middle",paddingRight:"2px"});a.html(h);if(!!p.onShowMenu){a=p.onShowMenu(o,a)}f.each(p.bindings,function(r,q){f("#"+r,a).bind("click",function(s){g();q(m,b)})});a.css({left:o[p.eventPosX],top:o[p.eventPosY]}).show();if(p.shadow){k.css({width:a.width(),height:a.height(),left:o.pageX+2,top:o.pageY+2}).show()}f(document).one("click",g)}function g(){a.hide();k.hide()}f.contextMenu={defaults:function(l){f.each(l,function(m,n){if(typeof n=="object"&&d[m]){f.extend(d[m],n)}else{d[m]=n}})}}})(jQuery);$(function(){$("div.contextMenu").hide()});
