var header = ["Features update","Admin Notice","HFF Members","Important!","We need help","Femdom Artists","Welcome!"];
var text = ["Now members with over 30 posts can choose their own cutom titles in their UCP, Click Here...","New members, Please Do not use those Anti-spam Mail services to register as it is Insulting to the Community!","Never hesitate to contact the Admins or MODs if you face any troubles browsing the Forums.","If you haven't done so yet, Please make sure you read the forum rules, Click here...","We are in need of more Jp&gt;Eng Translators and Editors, Join the HFF Translation Team..","Please contact any of the Admins if you wish to advertise any of your work using our news bar...","Welcome to our newest Translation Team members &quot;Moosh&quot; &amp; &quot;Om Nomz&quot;"];
var link = ["http://hentai-femdom.com/board/ucp.php?i=profile&amp;mode=profile_info","","","http://hentai-femdom.com/board/faq.php?mode=rules","http://hentai-femdom.com/board/ucp.php?i=groups&amp;mode=membership","http://hentai-femdom.com/board/contact.php",""];
var admins = false;
var enable = true;
/*
The above should never be edited!
*/
var divtext = new Array();
var divh = new Array();
var objst = new Array();
var objs = new Array();
var objsh = new Array();
var randomnumber = 0;
var first = false;

uagent = window.navigator.userAgent.toLowerCase();
IEB=(uagent.indexOf('msie') != -1)?true:false;
var scompat = document.compatMode;
var kalan=0;
var vcurr=0;
var vnext=0;
var str2='';
var mc=0;
mc=text.length;
var RealTickerWidth=0;
var RealTickerHeight=0;
var CalcIcWidth=0;
var CalcIcHeight=0;
var nstheight=0,nst2width=0;
nstheight=25-0-0;
nst2width=846-0-0;
var icwidth=846;
var icheight=25;
var msgw,msgh;
msgw=846-120;
if((IEB==true)&&(scompat == "BackCompat" ))
{RealTickerWidth=846; RealTickerHeight=25;}
else
{RealTickerWidth=846-2*(0);RealTickerHeight=25-2*(0);}
CalcIcWidth=846-2*(0);
CalcIcHeight=25-2*(0);
str2='';
str2=str2+'<div style="position:relative;width'+RealTickerWidth+':px;height:'+RealTickerHeight+'px;left:0px;top:0px;overflow:hidden;visibility:visible;" >';

for(i=0;i<mc;i++) 
{	
	
	divh[i]='<div class="forumbg" id="dh'+i+'" style="position:absolute;width:'+110+'px; height:'+CalcIcHeight+'px;visibility:inherit;background-color:'+'#505C65'+'; COLOR:#FFFFFF;left:0px; top:0; FONT-FAMILY: '+'Verdana'+'; FONT-SIZE: '+9+'pt; font-style: '+'normal'+'; font-weight: '+'bold'+'; TEXT-DECORATION:none; overflow:hidden;text-align:'+'center'+';cursor: default;line-height:15px"><span class="corners-top"></span>';
	divtext[i]='<div class="navbar" id="d'+i+'" style="position:absolute;width:708px;height:'+CalcIcHeight+'px;left:'+110+'px; top:0;visibility:inherit;background:#DCDEE2;COLOR:'+'#A80000'+';padding-left:'+8+'px;'+' FONT-FAMILY: '+'Verdana'+'; FONT-SIZE: '+'8'+'pt; font-style: '+'normal'+'; font-weight:normal; TEXT-DECORATION: '+'none'+';line-height:15px; overflow:hidden;text-align:'+'left'+';cursor: default;" ><span class="corners-top" style="background-image:none"><span></span></span>';
	str2=str2+'<div id="op'+i+'" style="position:absolute;overflow:hidden;visibility:hidden;left:0px;top:0px;width:'+CalcIcWidth+'px; height:'+CalcIcHeight+'px;border-style:solid;border-width:0px;" onMouseOver="mdivmo('+i+')" onMouseOut ="restime('+i+')" onClick="goTo('+i+')">';        
	str2=str2+''+divh[i]+''+header[i]+'<span class="corners-bottom"></span></div>'+divtext[i]+''+text[i]+'<span class="corners-bottom" style="background-image:none"><span></span></span></div>';
	str2=str2+'</div>';   

}

str2=str2+'</div>';		

function mdivmo(gnum)
{    
	if(link[gnum] && link[gnum]!='')    
	{		
		objs[gnum].style.textDecoration='underline';		
		objs[gnum].style.cursor='pointer';		
		
	}   
	//clearTimeout(timer);
}

function restime(gnum)
{	
objs[gnum].style.textDecoration='none';		
//clearTimeout(timer);
//timer=setTimeout('DoScrollUp()',2000);        
}

function goTo(gnum)
{

	if(link[gnum] && link[gnum]!='')    
	{		link[gnum] = link[gnum].replace(/&amp;/g,"&");
		location.href = link[gnum];
	}
	else 
	{
		return false;
	}
}

function zindx()
{	
	objst[vnext].style.visibility="visible";
	objst[vcurr].style.zIndex=2;	
	objst[vnext].style.zIndex=3;
}

function Sonraki()
{	vcurr=vnext;
	vnext=vnext+1;
	if(vnext>=mc)	
	{		vnext=0;	}
}

function DoScrollUp()
{   
	
	if (first == true)
	{
		kalan=kalan-Math.ceil(kalan/(1000/1000));	
		first = false;
		
	}
	else
	{
		kalan=kalan-Math.ceil(kalan/(7000/1000));			
		
	}
	objst[vcurr].style.top=""+(kalan-CalcIcHeight)+"px";
	objst[vnext].style.top=""+kalan+"px"; 
	
	if(kalan<=0)    
	{           
 	Sonraki();       
	kalan=CalcIcHeight;	
	objst[vnext].style.top=""+kalan+"px";   
    zindx();
	
	
    timer=setTimeout('DoScrollUp()',2000);        
	
	}
    else  
  	{ 
       setTimeout('DoScrollUp()',50);      
  	}
}


function dofirst()
{ 	
	first = true;
	var i=0;    
	for(i=0;i<mc;i++)    
	{ 
	
	objs[i]=document.getElementById("d"+i);        
	objs[i].style.left=""+120+"px";   
	objs[i].style.top="0px";        	
	objsh[i]=document.getElementById("dh"+i);        
	objsh[i].style.left="0px";      
	objsh[i].style.top="0px";        
	objst[i]=document.getElementById("op"+i);        
	objst[i].style.left="0px";        
	objst[i].style.top="0px";   
	objst[i].style.visibility="hidden";    
	}    
	objst[0].style.visibility="visible";  
	while(randomnumber == 0)
	{
	randomnumber=Math.floor(Math.random()*mc)
	}
   	kalan=CalcIcHeight;   
	
    vnext=mc-randomnumber;       
 	Sonraki();       
 	zindx();              
  	//setTimeout('DoScrollUp()',3000);    
	DoScrollUp();
}

function initte()
{
    spageObj=document.getElementById('spage');    
    if(spageObj)
    {
		spageObj.innerHTML=str2; 
        
   	}
	else
	{
		setTimeout('initte()',10); 		
		return false;
	}


	vnext=1;    
	if(vnext>=mc)
	{vnext=0;}  
	
	//setTimeout('dofirst()',100);   
	dofirst();
}

//setTimeout('initte()',100);		       
function start()
{
	if (enable && mc > 1 && text[0] != '' && text[1] != '')
	{
		initte();
	}
}

start();

