var stramm, streams = {limev: '',                         mips: '',                         twitch: '',                         castamp: '',                         speedrun: ''}, fetcher, fetcher_fn; (function($) { //CUFON         Cufon.replace('h2')('h3')('h4');         Cufon.now();   //TWITTER         $(".tweet").tweet({                 username: "Capicoli", //ADD YOUR TWITTER ACCOUNT                 count: 1         });   //STREAM SWITCHER         stramm = function(a) {                 var chat;                 if ((chat = $("#cell3 > object")) && streams.speedrun != a) {                         $("#cell2").append(chat.remove());                 }                 if (streams.speedrun == a) {                         $("#cell3").append($("#cell2 > object").remove());                 }                 chat = $("td > object");                 if (streams.veemi === a || streams.twitch === a) {                         chat.length && (chat.attr("height","508px"),(chat[0].lastElementChild.height = "508px"));                 } else {                         chat.length && (chat.attr("height","480px"),(chat[0].lastElementChild.height = "480px"));                 }                 $("#cell1").html(a);         };   //DEFAULT STREAM //SET DEFAULT STREAM IN THE STREAM CHANNEL EDITOR         stramm(streams[mainstream]);   //SNOW         $("#snowset1").bind('click', function(){                 localStorage.setItem("snow", "1");                 $("body")[0].style.animationPlayState = "running";                 $("body").addClass("snow");         });         $("#snowset2").bind('click', function(){                 localStorage.setItem("snow", "2");                 $("body")[0].style.animationPlayState = "paused";                 $("body").addClass("snow");         });         $("#snowset3").bind('click', function(){                 localStorage.setItem("snow", "3");                 $("body")[0].style.animationPlayState = "paused";                 $("body").removeClass("snow");         });   //REMEMBER SNOW SETTINGS         if ($("head > link[href*='snow.css']").length) {                 $("#snowset"+localStorage.getItem("snow"))[0].click();         }   //NO SUPPORT FOR IE AND OLD FF         if ($.browser.msie && parseInt($.browser.version, 10) < 10) { //              $("body").html("");                 alert("Your browser is too old! Please update to a newer browser!\nIf you still wish to use IE, then use IE10");         } else if ($.browser.firefox && parseInt($.browser.version, 10) < 4) { //              $("body").html("");                 alert("Your browser is too old! Please update to a newer browser!");         }   //ANNOUNCMENTS FETCHER         fetcher_fn = function(){                 var x = new XMLHttpRequest(), announcment = document.querySelector("#announcment");                 x.open('GET', 'announcments.txt', true);                 x.setRequestHeader("Cache-Control", "no-cache");                 x.onreadystatechange = function(){                         if(x.readyState == 4) {                                 if(x.status == 200 || x.status == 304) {                                         var text = x.responseText, links = [];                                         announcment.lastElementChild.innerHTML = "";                                         if (text != "" && text.indexOf("*") != 0) {                                                 announcment.hidden = false;                                                 text = text.split("\n").forEach(function(a){                                                         if (a != "" && a.indexOf("http") === 0) {                                                                 links.push(a.replace(/^(http:\/\/\S+)/i, "$1"));                                                         }                                                         return;                                                 });                                                 announcment.lastElementChild.innerHTML = links.join("
");                                         } else {                                                 announcment.hidden = true;                                         }                                 }                         }                 };                 x.send();         };         fetcher_fn();         fetcher = setInterval(fetcher_fn, 10000);   }(jQuery));