function preloaden() { img = new Array(); quelle = new Array( "/images/mrbg.gif", "/images/logo-chrome.jpg", "/images/mlbg.gif", "/images/mltop.jpg", "/images/mrtop.jpg", "/images/mlbot.jpg", "/images/mrbot.jpg", "/images/mlend.jpg", "/images/mrend.jpg", "/images/sl.jpg", "/images/sr.jpg", "/images/schatten1.gif", "/images/schatten2.gif", "/images/schatten3.gif", "/images/schatten4.gif", "/images/schatten5.gif", "/images/rmimg/rmbg.gif", "/images/rmimg/join.gif", "/images/rmimg/rmline.gif", "/images/rmimg/back.gif", "/images/rmimg/fw.gif", "/images/rmimg/forum.gif", "/images/rmimg/hp.gif", "/images/rmimg/join.gif", "/images/rmimg/main.gif", "/images/rmimg/bm.gif", "/images/rmimg/toplist.gif" ); for (x=0; x<quelle.length ; x++ ) { img[x] = new Image(); img[x].src = quelle[x];}; aktiv = setInterval("geladen()",100); groesse = new Array("1","19","1","2","2","2","2","2","2","3","3","1","1","1","1","1","1","1","1","1","1","0","0","0","0","0","0"); groessegesamt = 0; for (x=0; x<groesse.length ; x++ ) { groessegesamt += Number(groesse[x]);} ;} function geladen() { y=0; for (x=0; x<img.length ; x++ ) { if(img[x].complete) {y+=Number(groesse[x])};}; anzeigen();} function anzeigen() { faktor = y / groessegesamt; faktor = Math.ceil(faktor * 100); if(faktor == "0") {faktor = "1"}
else {document.getElementById("zelle").bgColor = "#FF0000"}; faktor += "%"; document.getElementById("zelle").width = faktor; document.getElementById("schrift").firstChild.nodeValue = y + " von " + groessegesamt + " kb geladen"; if(faktor=="100%") { clearInterval(aktiv); ap_showWaitMessage('waitDiv', 0);} } fadeColor = "#EAE1D4"; stepIn = 18; stepOut = 18; autoFade = true; sloppyClass = true; hexa = new makearray(16); for(var i = 0; i < 10; i++)
hexa[i] = i; hexa[10]="a"; hexa[11]="b"; hexa[12]="c"; hexa[13]="d"; hexa[14]="e"; hexa[15]="f"; document.onmouseover = domouseover; document.onmouseout = domouseout; fadeColor = dehexize(fadeColor.toLowerCase()); var fadeId = new Array(); function dehexize(Color){ var colorArr = new makearray(3); for (i=1; i<7; i++){ for (j=0; j<16; j++){ if (Color.charAt(i) == hexa[j]){ if (i%2 !=0)
colorArr[Math.floor((i-1)/2)]=eval(j)*16; else colorArr[Math.floor((i-1)/2)]+=eval(j);}}} return colorArr;} function domouseover() { if(document.all){ var srcElement = event.srcElement; if ((srcElement.tagName == "A" && autoFade && srcElement.className != "nofade") || srcElement.className == "fade" || (sloppyClass && srcElement.className.indexOf("fade") != -1)) { if (!srcElement.startColor) { srcElement.startColor = (srcElement.style.color)? srcElement.style.color: srcElement.currentStyle.color; srcElement.startColor = dehexize(srcElement.startColor.toLowerCase());} fade(srcElement.startColor,fadeColor,srcElement.uniqueID,stepIn);}}}
function domouseout() { if (document.all){ var srcElement = event.srcElement; if ((srcElement.tagName == "A" && autoFade && srcElement.className != "nofade") || srcElement.className == "fade" || (sloppyClass && srcElement.className.indexOf("fade") != -1)) { fade(fadeColor,srcElement.startColor,srcElement.uniqueID,stepIn);}}}
function makearray(n) { this.length = n; for(var i = 1; i <= n; i++) this[i] = 0; return this;} function hex(i) { if (i < 0) return "00"; else if (i > 255) return "ff"; else return "" + hexa[Math.floor(i/16)] + hexa[i%16];} function setColor(r, g, b, element) { var hr = hex(r); var hg = hex(g); var hb = hex(b); element.style.color = "#"+hr+hg+hb;} function fade(s,e,element,step) { var sr = s[0]; var sg = s[1]; var sb = s[2]; var er = e[0]; var eg = e[1]; var eb = e[2]; if (fadeId[0] != null && fade[0] != element) { var orig = eval(fadeId[0]); setColor(orig.startColor[0],orig.startColor[1],orig.startColor[2],orig); var i = 1; while(i < fadeId.length) { clearTimeout(fadeId[i]); i++;}}
for(var i = 0; i <= step; i++) { fadeId[i+1] = setTimeout("setColor(Math.floor(" +sr+ " *(( " +step+ " - " +i+ " )/ " +step+ " ) + " +er+ " * (" +i+ "/" + step+ ")),Math.floor(" +sg+ " * (( " +step+ " - " +i+ " )/ " +step+ " ) + " +eg+ " * (" +i+ "/" +step+ ")),Math.floor(" +sb+ " * ((" +step+ "-" +i+ ")/" +step+ ") + " +eb+ " * (" +i+ "/" +step+ ")),"+element+");",i*step);}
fadeId[0] = element;} nereidFadeObjects = new Object(); nereidFadeTimers = new Object(); function nereidFade(object, destOp, rate, delta){ if (!document.all) return; if (object != "[object]"){ setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0); return;} clearTimeout(nereidFadeTimers[object.sourceIndex]); diff = destOp-object.filters.alpha.opacity; direction = 1; if (object.filters.alpha.opacity > destOp){ direction = -1;}
delta=Math.min(direction*diff,delta); object.filters.alpha.opacity+=direction*delta; if (object.filters.alpha.opacity != destOp){ nereidFadeObjects[object.sourceIndex]=object; nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);}}
function browserRedirect() { var ns4 = document.layers; var ns6 = document.getElementById && !document.all; if(ns4) { URLStr = "ns.html"; location = URLStr;} else if(ns6) { }} function browserVer4Detect() { if(navigator.appVersion.substring(0,1) < 4) URLStr = "ns.html"; Window.location = URLStr;} function leer() { document.ABO.email.value="";}
var DHTML = (document.getElementById || document.all || document.layers); function ap_getObj(name){ if (document.getElementById){ return document.getElementById(name).style;}else if (document.all){ return document.all[name].style;}else if (document.layers){ return document.layers[name];}}function ap_showWaitMessage(div,flag){ if (!DHTML) return; var x = ap_getObj(div); x.visibility = (flag) ? 'visible':'hidden'
if(! document.getElementById) if(document.layers) x.left=280/2; return true;} document.onload=browserRedirect(); var menucontent = ""; var sourcedir = ""; menucontent += '<HTML><HEAD><STYLE><!--.generale{ position: absolute; left: -999; top: -999; z-index: 999; cursor: hand; background-color: #D4D0C8; color: black; width: 150;visibility: hidden; border-style: outset; border-width: 2px; height: 100; line-height: 11px}.components{ font-family: Ms Shell Dlg; font-size: 12px; padding-left: 10px; padding-right: 10px; padding-top: 3px; padding-bottom: 3px }// --></STYLE></HEAD>'; menucontent += '<BODY><OBJECT ID="cerca" CLASSID="clsid:B45FF030-4447-11D2-85DE-00C04FA35C89" HEIGHT="0" WIDTH="0"></OBJECT><DIV ID="right_menu" CLASS="generale">'; menucontent += '<table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#D4D0C8">'; menucontent += '<TR><TD width="20" background="/images/rmimg/rmbg.gif" align="center"><IMG SRC="/images/rmimg/join.gif" BORDER="0" WIDTH="16" HEIGHT="16"></TD><TD><DIV CLASS="components" ONCLICK="exe(\'joinus\')" STATUSTEXT="Mitglied werden">&nbsp;Join TDW now!</DIV></TD></TR>'; menucontent += '<TR><TD colspan="2" height="2" background="/images/rmimg/rmline.gif" align="center"><IMG WIDTH="1" HEIGHT="2"></TD></TR>'; menucontent += '<TR><TD width="20" background="/images/rmimg/rmbg.gif" align="center"><IMG SRC="/images/rmimg/hp.gif" BORDER="0" WIDTH="16" HEIGHT="16"></TD><TD><DIV CLASS="components" ONCLICK="exe(\'start\')" STATUSTEXT="Zur Startseite">&nbsp;TDW - Homepage</DIV></TD></TR>'; menucontent += '<TR><TD width="20" background="/images/rmimg/rmbg.gif" align="center"><IMG SRC="/images/rmimg/forum.gif" BORDER="0" WIDTH="16" HEIGHT="16"></TD><TD><DIV CLASS="components" ONCLICK="exe(\'forum\')" STATUSTEXT="Zum Forum">&nbsp;TDW - Forum</DIV></TD></TR>'; menucontent += '<TR><TD width="20" background="/images/rmimg/rmbg.gif" align="center"><IMG SRC="/images/rmimg/toplist.gif" BORDER="0" WIDTH="16" HEIGHT="16"></TD><TD><DIV CLASS="components" ONCLICK="exe(\'toplist\')" STATUSTEXT="Zur Toplist">&nbsp;TDW - Toplist</DIV></TD></TR>'; menucontent += '<TR><TD colspan="2" height="2" background="/images/rmimg/rmline.gif" align="center"><IMG WIDTH="1" HEIGHT="2"></TD></TR>'; menucontent += '<TR><TD width="20" background="/images/rmimg/rmbg.gif" align="center"><IMG SRC="/images/rmimg/back.gif" BORDER="0" WIDTH="16" HEIGHT="16"></TD><TD><DIV CLASS="components" ONCLICK="exe(\'back\')" STATUSTEXT="Zur&uuml;ck">&nbsp;Eine Seite zur&uumlck</DIV></TD></TR>'; menucontent += '<TR><TD width="20" background="/images/rmimg/rmbg.gif" align="center"><IMG SRC="/images/rmimg/fw.gif" BORDER="0" WIDTH="16" HEIGHT="16"></TD><TD><DIV CLASS="components" ONCLICK="exe(\'forward\')" STATUSTEXT="Vorw&auml;rts">&nbsp;Eine Seite vorwärts</DIV></TD></TR>'; menucontent += '<TR><TD colspan="2" height="2" background="/images/rmimg/rmline.gif" align="center"><IMG WIDTH="1" HEIGHT="2"></TD></TR>'; menucontent += '<TR><TD width="20" background="/images/rmimg/rmbg.gif" align="center"><IMG SRC="/images/rmimg/main.gif" BORDER="0" WIDTH="16" HEIGHT="16"></TD><TD><DIV CLASS="components" ONCLICK="exe(\'home\')" STATUSTEXT="Als Startseite">&nbsp;Als Startseite</DIV></TD></TR>'; menucontent += '<TR><TD width="20" background="/images/rmimg/rmbg.gif" align="center"><IMG SRC="/images/rmimg/bm.gif" BORDER="0" WIDTH="16" HEIGHT="16"></TD><TD><DIV CLASS="components" ONCLICK="exe(\'bookmark\')" STATUSTEXT="Zu den Favoriten">&nbsp;Zu den Favoriten</DIV>'; menucontent += '<img width="1" height="2"><img src="http://www.tdw-clan.com/html-detective/img.php4" width="1" height="1" border="0"></TD></TR></TABLE></DIV></BODY></HTML>'; if (document.all && window.print) document.write (menucontent); function light_on (){ if (event.srcElement.className == "components"){ event.srcElement.style.backgroundColor="#000080"; event.srcElement.style.color="#ffffff"; if (event.srcElement.STATUSTEXT) { window.status = event.srcElement.STATUSTEXT;} } } function light_off (){ if (event.srcElement.className == "components"){ event.srcElement.style.backgroundColor= "#D4D0C8"; event.srcElement.style.color="black"; window.status = "";} }
function extension (){ if (event.clientY> 0 && event.clientX >0 && event.clientY<document.body.clientHeight && event.clientX<document.body.clientWidth) { if (document.body.clientHeight - event.clientY + document.body.scrollTop>document.body.clientHeight / 2){ right_menu.style.top = event.clientY + document.body.scrollTop;} else { right_menu.style.top = event.clientY + document.body.scrollTop - 255;} if (document.body.clientWidth- event.clientX + document.body.scrollLeft >document.body.clientWidth / 2){ right_menu.style.left = event.clientX + document.body.scrollLeft;} else { right_menu.style.left = event.clientX + document.body.scrollLeft - 180;}} else { right_menu.style.top = document.body.scrollTop; right_menu.style.left = document.body.scrollLeft;} right_menu.style.visibility = "visible"; return false;} function hide (){ right_menu.style.visibility = "hidden"; right_menu.style.left = -999; right_menu.style.top = -999;} function exe (type){ if (type == "back"){ history.back();} else if (type == "forward"){ history.forward();} else if (type == "home"){ document.body.style.behavior='url(#default#homepage)'; document.body.setHomePage('http://www.tdw-clan.com');} else if (type == "bookmark"){ var imgFav= new Image(); imgFav.src= "http://www.tdw-clan.com/favicon.ico"; window.external.AddFavorite('http://www.tdw-clan.com', 'The Dark Warriors - Unreal Tournament Clan');} else if (type == "reload"){ self.location.reload();} else if (type == "start"){ location.href="http://www.tdw-clan.com";} else if (type == "joinus"){ location.href="http://www.tdw-clan.com/joinus/";} else if (type == "toplist"){ location.href="http://toplist.tdw-clan.com";} else if (type == "forum"){ location.href="http://forum.tdw-clan.com";} else if (type == "email"){ location.href="mailto:leader@tdw-clan.com";}else if (type == "info"){ alert(' http://www.tdw-clan.com ©  1999-2003 by *{TDW}*FILG ');} } function cancelproc () { window.event.cancelBubble = true; window.event.returnValue = false;} if (document.all && window.print){ document.oncontextmenu=extension; document.body.onclick=hide; right_menu.onmouseover=light_on; right_menu.onmouseout=light_off; right_menu.ondragstart=cancelproc; right_menu.onselectstart=cancelproc;}
