var text = new Array();
var targetlink = new Array();
text[0] = "Welcome to the Vertexual Foundry: Exchange - One of IMVU's most recognised reselling platform";
text[1] = "We support IMVU's many content creators by helping them sell their credits. Cheaply too! At their preferred rates as well!";
text[2] = "Looking to have a blast in IMVU? Buy IMVU credits at rates cheaper than you can get from other places here!";
text[3] = "We are always looking for sellers, <a href='FoundrySupport.php' class='link_scroller'>send us an application</a> today!";
text[4] = "When you support us, you are supporting many of IMVU's content creators!";

//SCRIPT ALGO STARTS
var divtext = new Array();
var divh = new Array();
var objst = new Array();
var objs = new Array();
var objsh = new Array();
uagent = window.navigator.userAgent.toLowerCase();IEB=(uagent.indexOf('msie') != -1)?true:false;
var scompat = document.compatMode;
var pause =10000; //1000 = 1 second
var braking = 2000;
var denomer = 3000; // same as braking to be instant
var kalan=0;
var vcurr=0;
var vnext=0;
var str2='';
var mc=0;mc=text.length;stepc=parseInt(20*(denomer/braking));dif=0.00;op=1.00;dif=(1.00/stepc);
var RealTickerWidth=0;
var RealTickerHeight=0;
var CalcIcWidth=0;
var CalcIcHeight=0;
var nstheight=0,nst2width=0;nstheight=20-0-0;nst2width=765-0-0;
var icwidth=765;
var icheight=20;
var msgw,msgh;msgw=765;

if((IEB==true)&&(scompat == "BackCompat" )){
	RealTickerWidth=765;
	RealTickerHeight=20;
	}else{
		RealTickerWidth=765-2*(0);
		RealTickerHeight=20-2*(0);
	}
	CalcIcWidth=765-2*(0);
	CalcIcHeight=20-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++){
		divtext[i]='<div id="d'+i+'" style="position:absolute;width:'+(CalcIcWidth)+'px;height:'+CalcIcHeight+'px; top:0;visibility:inherit;background:url(webgfx/frames/sc_c.gif) repeat-x;'+'overflow:hidden;">';
		str2=str2+'<div id="op'+i+'" style="position:absolute;overflow:hidden;visibility:hidden;width:'+CalcIcWidth+'px; height:'+CalcIcHeight+'px;">';
		str2=str2+''+divtext[i]+''+text[i]+'</div>';
		str2=str2+'</div>';
	}
	str2=str2+'</div>';

	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 dotrans(){
		if(vnext!=vcurr)    {
			if(IEB){scrollTextObj.filters[0].apply();
		}        
		objs[vnext].style.color='#000000';
		objst[vnext].style.visibility='visible';
		objst[vcurr].style.visibility='hidden';
		if(IEB){
			scrollTextObj.filters[0].play();
		}    
	}    
Sonraki();    
setTimeout('dotrans()',pause+denomer);
}
function dotransff(){
	op=op-dif;
	if(op<(0.00)){
		op=0.00;
	}		
	objst[vcurr].style.opacity = op;
	objst[vnext].style.opacity = 1.00-op;
	if(op>(0.00))	{
		setTimeout('dotransff()',50);
	}	else	{
		objst[vcurr].style.zIndex=2;
		objst[vnext].style.zIndex=3;
		Sonraki();
		setTimeout('beftrans()',pause);
	}
}
function beftrans(){
	op=1.00;
	objst[vcurr].style.visibility="visible";
	objst[vnext].style.visibility="visible";
	objst[vcurr].style.zIndex=3;
	objst[vnext].style.zIndex=2;
	objst[vcurr].style.opacity = 1.00;
	objst[vnext].style.opacity = 1.00;
	dotransff();
}
function DoScrollUp(){
	kalan=kalan-Math.ceil(kalan/(denomer/braking));
	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();
		timeo=setTimeout('DoScrollUp()',pause);
	}    else    {
	setTimeout('DoScrollUp()',50);
	}
}
function DoSlide(){
	kalan=kalan-Math.ceil(kalan/(denomer/braking));
	objst[vcurr].style.left=""+(kalan-CalcIcWidth)+"px";
	objst[vnext].style.left=""+kalan+"px";
	if(kalan<=0)	{
		Sonraki();
		kalan=CalcIcWidth;
		objst[vnext].style.left=""+kalan+"px";
		zindx();
		timeo=setTimeout('DoSlide()',pause);
	}	else	{
			setTimeout('DoSlide()',50);
	}
}
function dofirst(){
	var i=0;
	for(i=0;i<mc;i++)    {
		objs[i]=document.getElementById("d"+i);
		objs[i].style.left="0px";
		objs[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";
	if(4==2)    {
		kalan=CalcIcHeight;
		vnext=0;
		Sonraki();
		zindx();
		setTimeout('DoScrollUp()',pause);
	}    else if(4==4)    {
		kalan=CalcIcWidth;
		vnext=0;
		Sonraki();
		zindx();
		objst[vnext].style.left=""+kalan+"px";
		setTimeout('DoSlide()',pause);
	}    else if(4==5)    {
		if(IEB){
			setTimeout('dotrans()',pause);
		}else{
			setTimeout('beftrans()',pause);
		}    
	}    else    {
		setTimeout('dotrans()',pause);
	}
}
function initte(){
	scrollTextObj=document.getElementById('scrollText');
	if(!scrollTextObj)    {
		setTimeout('initte()',200);
	}
	scrollTextObj.innerHTML=str2;
	vnext=1;
	if(vnext>=mc){
		vnext=0;
	}
	scrollTextObj.style.left="0px";
	scrollTextObj.style.top="0px";
	setTimeout('dofirst()',100);
}
setTimeout('initte()',100);		       