//var titlea = new Array();
//var texta = new Array();
var xlinka = new Array();
var xtrgfrma = new Array();
var xheightarr = new Array();
//var cyposarr = new Array();
/*cyposarr[0]=0;
cyposarr[1]=1;
cyposarr[2]=2;
cyposarr[3]=3;
cyposarr[4]=4;
cyposarr[5]=5;
cyposarr[6]=6;*/
/*titlea[0] = "<img src=\"icon1.gif\" width=16 height=16></img> What's New";texta[0] = "Dynamic HTML News Scroller was released.";xlinka[0] = "http://www.news-scroller.com/";xtrgfrma[0] = "_parent";
/*titlea[1] = "<img src=\"icon2.gif\" width=16 height=16></img> Features";texta[1] = "Easy building, testing and installation. Full customizable font characteristics. Highlighted URL links.";xlinka[1] = "http://www.news-scroller.com/";xtrgfrma[1] = "_parent";
/*titlea[2] = "<img src=\"icon3.gif\" width=16 height=16></img> HTML Support";texta[2] = "Supports basic HTML tags. (img, B, U, <img src=\"icon4.gif\" width=16 height=16></img>  ...)";xlinka[2] = "http://www.news-scroller.com/";xtrgfrma[2] = "_parent";
/*titlea[3] = "<img src=\"icon5.gif\" width=16 height=16></img> Effects";texta[3] = "Dynamic HTML News Scroller supports 10 different scrolling-transition effects.";xlinka[3] = "http://www.news-scroller.com/";xtrgfrma[3] = "_parent";
/*titlea[4] = "<img src=\"icon2.gif\" width=16 height=16></img> Features 2";texta[4] = "Background image, smooth scrolling, custom colored border, easy to embed into HTML.";xlinka[4] = "http://www.news-scroller.com/news-scroller.zip";xtrgfrma[4] = "_parent";
/*titlea[5] = "<img src=\"icon2.gif\" width=16 height=16></img> Powerful and Useful";texta[5] = "Dynamic HTML News Scroller is an extremely powerful and useful text scroller and news ticker solution for your web sites.";xlinka[5] = "http://www.news-scroller.com/news-scroller.zip";xtrgfrma[5] = "_parent";
/*titlea[6] = "<img src=\"icon2.gif\" width=16 height=16></img> Effects";texta[6] = "Dynamic HTML News Scroller supports ten different scrolling-transition effects.";xlinka[6] = "http://www.news-scroller.com/news-scroller.zip";xtrgfrma[6] = "_parent";
*/
var xwidth=230;/*180*/
var xheight=240;/*220*/
var xmc;//var xmc=7;
xIEB=(uagent.indexOf('msie') != -1)?true:false;
var inoout=false;
var spage;
var cvar=0,say=0,tpos=0,enson=0,hidsay=0,hidson=0;
var tmpv;
tmpv=xwidth-8-8-(2*1);//180-20=160
var psy = new Array();
/*divtextb ="<div id=d";
divtextb2 ="<div id=dz";
divtev1=" onmouseover=\"mdivmo(";
divtev2=")\" onmouseout =\"restime(";
divtev3=")\" onclick=\"butclick(";
divtev4=")\"";
divtexts = " style=\"position:absolute;visibility:hidden;width:"+tmpv+"; COLOR: DEE2ED; left:0; top:0; FONT-FAMILY: MS Sans Serif,arial,helvetica; FONT-SIZE: 8pt; FONT-STYLE: normal; FONT-WEIGHT: normal; TEXT-DECORATION: none; margin:0px; LINE-HEIGHT: 12pt; text-align:left;padding:0px;\">";
ns6span= " style=\"position:relative; COLOR: FFFFFF; width:"+tmpv+"; FONT-FAMILY: verdana,arial,helvetica; FONT-SIZE: 9pt; FONT-STYLE: normal; FONT-WEIGHT: bold; TEXT-DECORATION: none; LINE-HEIGHT: 14pt; text-align:left;padding:0px;\"";
uzun="<div id=\"enuzun\" style=\"position:absolute;left:0;top:0;\">";
uzun2="<div id=\"enuzun2\" style=\"position:absolute;left:0;top:0;\">";*/
var uzunobj=null,uzunobj2=null;
var uzuntop=0;
var toplay=0;

function mdivmo(gnum,gnum5)
	{
		inoout=true;
		/*if((xlinka[gnum].length)>2)
			{*/
				if(gnum5==1)
					{    
						objd=document.getElementById('wdz'+gnum);    
						objd2=document.getElementById('whgdz'+gnum);
					}
				else
					{ 
						objd=document.getElementById('wd'+gnum);    
						objd2=document.getElementById('whgd'+gnum);
					}
				objd.style.color="#404040";/*#DBF7BF*/
				objd2.style.color="#5161BC";/*#F4ECAE*/
				objd.style.cursor='default';/*pointer*/
				objd2.style.cursor='default';/*pointer*/
				/*objd.style.textDecoration='underline';
				objd2.style.textDecoration='underline';*/
				window.status="";//+xlinka[gnum];
			//}
	}

function restime(gnum2,gnum5)
	{
		inoout=false;
		if(gnum5==1)
			{    
				objd=document.getElementById('wdz'+gnum2);    
				objd2=document.getElementById('whgdz'+gnum2);
			}
		else
			{
				objd=document.getElementById('wd'+gnum2);    
				objd2=document.getElementById('whgd'+gnum2);
			}
		objd.style.color="#404040";//#DEE2ED
		objd2.style.color="#5477C4";//"#FFFFFF";
		objd.style.textDecoration='none';
		objd2.style.textDecoration='none';
		window.status="";
	}

function wbutclick(gnum3)
	{
		if(xlinka[gnum3].substring(0,11)=="javascript:")
			{
				eval(""+xlinka[gnum3]);
			}
		else
			{
				if((xlinka[gnum3].length)>3)
					{
						if((xtrgfrma[gnum3].indexOf("_parent")>-1))
							{
								eval("parent.window.location='"+xlinka[gnum3]+"'");
							}
						else 
							if((xtrgfrma[gnum3].indexOf("_top")>-1))
								{
									eval("top.window.location='"+xlinka[gnum3]+"'");
								}
							else
								{
									window.open(''+xlinka[gnum3],''+xtrgfrma[gnum3]);
								}
					}
			}
	}

function dotrans()
	{
		if(inoout==false)
			{
				uzuntop--;    
				if(uzuntop<(-1*toplay))    
					{    
						uzuntop=0;    
						uzunobj2.style.top=xheight+"px";    
					}    
				uzunobj.style.top=uzuntop+"px";
				if((uzuntop+toplay)<xheight)
					{
						uzunobj2.style.top=""+(uzuntop+toplay)+"px";
					}    
			}    
		if(psy[(uzuntop*(-1))+8]==3)
			{
				setTimeout('dotrans()',2000+35);
			}
		else
			{
				setTimeout('dotrans()',35);
			}
	}
function winitte()
	{
		i=0;
		for(i=0;i<xmc;i++)
			{
				objd=document.getElementById('wd'+i);
				xheightarr[i]=objd.offsetHeight;
			}
		toplay=8;
		for(i=0;i<xmc;i++)
			{
				objd=document.getElementById('wd'+i);
				objd2=document.getElementById('wdz'+i);
/*				if (i%2!=0) 
				 {
					objd.style.backgroundColor="#EDEDED";
					objd2.style.backgroundColor="#EDEDED";
				  }*/
				objd.style.visibility="visible";
				objd2.style.visibility="visible";
				objd.style.top=""+toplay+"px";
				objd2.style.top=""+toplay+"px";
				psy[toplay]=3;
				toplay=toplay+xheightarr[i]+10;
			}
		uzunobj=document.getElementById('enuzun');
		uzunobj.style.left=8+"px";
		uzunobj.style.height=toplay+"px";
		uzunobj.style.width=tmpv+"px";
		uzunobj.style.top=xheight+"px";
		uzunobj2=document.getElementById('enuzunX');
		uzunobj2.style.left=8+"px";
		uzunobj2.style.height=toplay+"px";
		uzunobj2.style.width=tmpv+"px";
		uzunobj2.style.top=xheight+"px";
		uzuntop=xheight;
		dotrans();
	}
function initte()
	{
		spage=document.getElementById('spagensA');
		xenuzun=document.getElementById('enuzun');
	  	if(xIEB==true)
	   	 {
			//alert('SI')
			xmc=xenuzun.childNodes.length;//100/1;//			 
		 }
		else
		 {
			//alert('NO')
			xmc=Math.ceil(xenuzun.childNodes.length/2)-1;//100/1;//
		 }
		 //xmc=xenuzun.childNodes.length;
		//alert(xmc)
		spage.style.left="0px";
		spage.style.top="0px";
		setTimeout('winitte()',500);
	}
window.onload=initte;