// Settings var _slideSpeed = 30; var _initialSlidePos1 = 0; var _initialSlidePos2 = 520; var _slideStopPos = 15; //******************* var _direction = 1; var _direction0 = 1; var inProgress = false; var underTrans = new Array(2); function init() { //{{{ // Wrap up DOM load if (arguments.callee.done) return; arguments.callee.done = true; if (_timer) { clearInterval(_timer); _timer = null; } // Cycle through phpbb tabs if(window.phpbb != null) { window.phpbbActiveTab = window.phpbb[0]; setTabActive(window.phpbb[0], "p"); for(var i = 1; i < window.phpbb.length; i++) { setTabInactive(window.phpbb[i], "p"); } //window.onunload = function() { window.phpbb = null; } } // Cycle through phpbb3 tabs if(window.phpbb3 != null) { window.phpbb3ActiveTab = window.phpbb3[0]; setTabActive(window.phpbb3[0], "p3"); for(var i = 1; i < window.phpbb3.length; i++) { setTabInactive(window.phpbb3[i], "p3"); } //window.onunload = function() { window.phpbb = null; } } // Cycle through ipb tabs //alert(window.ipb); if(window.ipb != null) { window.ipbActiveTab = window.ipb[0]; setTabActive(window.ipb[0], "i"); //alert(window.ipb.length); for(var i = 1; i < window.ipb.length; i++) { //alert(window.ipb[i]); setTabInactive(window.ipb[i], "i"); } //window.onunload = function() { window.ipb = null; } } setIntroHeight(); document.getElementById("content").style.height = "0px"; document.getElementById("content").style.display = "none"; document.getElementById("intro").onmouseover = expandIntro; document.getElementById("intro").onmouseout = collapseIntro; document.getElementById("intro").onmouseleave = collapseIntro; updateStats(); setInterval(updateStats, 2000); var flags = getElementsByClass("lang", document.getElementById("flags")); for(var i = 0; i < flags.length; i++) { flags[i].onmouseover = switchFlag; flags[i].onmouseout = switchFlag; } news = getElementsByClass("newsitem"); news[0].style.display = "block"; if(navigator.appName == "Microsoft Internet Explorer") news[0].style.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=0)"; else news[0].style.opacity = "1.0"; for(i = 1; i < news.length; i++) { news[i].style.display = "none"; if(navigator.appName == "Microsoft Internet Explorer") news[i].style.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=75)"; else news[i].style.opacity = "0.0"; } if(news.length > 1) document.getElementById("news-next").onclick = nextNewsClick; newsticker = setInterval(nextNews, 10000); //}}} } /* for Mozilla */ if (document.addEventListener) { document.addEventListener("DOMContentLoaded", init, false); } /* for Internet Explorer */ /*@cc_on @*/ /*@if (@_win32) document.write("