﻿/* PRE-SYSTEM! Do not edit manually */
function randInt(e,b){var a=(b-e)+1;var c=Math.random();for(var d=0;d<=a-1;d++){if(c>=d/a&&c<(d+1)/a){return d+e;}}}var trilobit={scroll_speed:1,scroll_width:620,scroll_timeout:70,scroll_wait:100,scroll_intervall:70,scroll_direction:"right",scroll_stopper:0,scrollContainer:function(container_id,direction){var container=document.getElementById(container_id);if(!container){return;}if(container.scrollLeft<=0&&trilobit.scroll_timeout<=0){trilobit.scroll_direction="right";}if(container.scrollLeft>=eval(document.getElementById("scroll_content").scrollWidth-trilobit.scroll_width)&&trilobit.scroll_timeout<=0){trilobit.scroll_direction="left";}if(direction=="left"){container.scrollLeft-=trilobit.scroll_speed;}else{if(direction=="right"){container.scrollLeft+=trilobit.scroll_speed;}}return;},scrollFade:function(){if(document.getElementById("scroll_content")){var a=document.getElementById("scroll_content").scrollWidth;if(a<trilobit.scroll_width){document.getElementById("scrollbutton_left").style.display="none";document.getElementById("scrollbutton_right").style.display="none";}}},scrollAuto:function(){if(trilobit.scroll_stopper===0){if(trilobit.scroll_timeout>0){trilobit.scroll_timeout--;}else{trilobit.scrollContainer("scroll_content",trilobit.scroll_direction);}}},initApplication:function(){if(document.getElementById("scrollbutton_left")){document.getElementById("scrollbutton_left").onclick=function(){trilobit.scroll_stopper=0;trilobit.scroll_timeout=0;trilobit.scroll_direction="right";};}if(document.getElementById("scrollbutton_right")){document.getElementById("scrollbutton_right").onclick=function(){trilobit.scroll_stopper=0;trilobit.scroll_timeout=0;trilobit.scroll_direction="left";};}if(document.getElementById("scroller_td_1")){for(var b=0;b<50;b++){var a=randInt(1,scroller_max);var d=randInt(1,scroller_max);if(a!=d){var c=document.getElementById("scroller_td_"+a).innerHTML;document.getElementById("scroller_td_"+a).innerHTML=document.getElementById("scroller_td_"+d).innerHTML;document.getElementById("scroller_td_"+d).innerHTML=c;}}}trilobit.scrollFade();setInterval("trilobit.scrollAuto();",trilobit.scroll_intervall);}};function addLoadEvent(a){var b=window.onload;if(typeof window.onload!="function"){window.onload=a;}else{window.onload=function(){if(b){b();}a();};}}addLoadEvent(trilobit.initApplication);