/*
		Typing Scroller
		Submitted by bengaliboy00@hotmail.com (hp: http://www.angelfire.com/nt/bengaliboy/)
		With modifications by Dynamicdrive.com
		For full source code, usage terms, and 100s more scripts, visit http://dynamicdrive.com
		*/
		//Secify scroller contents
		var line=new Array()
		
		line[1]=  "*******SHRI PRANAB MUKHERJEE, UNION FINANCE MINISTER GRACES UNITED INDIA INSURANCE PLATINUM JUBILEE...Click for details*******";
                line[2]=  " **************NOW RENEW YOUR MOTOR POLICIES ONLINE IN EASY 4 STEPS - CLICK ONLINE MOTOR POLICY LINK BELOW  ******************  ";
		line[3]=  "UNITED INDIA INSURANCE  HALF YEARLY(H1) PROFIT SOARS OVER 56% TO Rs 341Crs, REFER PRESS RELEASES FOR DETAILS"
		line[4]=  "DENA BANK ALIGNS WITH UNITED INDIA INSURANCE"
		line[5]=   "DALAL STREET AWARDS 'BEST INSURER- NON LIFE' TO UNITED INDIA INSURANCE";
		line[6] =  "UNITED INDIA INSURANCE AWARDED 'GENERAL INSURER OF THE YEAR - PUBLIC SECTOR' BY BLOOMBERG UTV";
		line[7] =  "UIIC starts issuing online Overseas Mediclaim Policy.Buy online OMP policy today !!!"; 
		line[8] =  "CMD gets 'ICON OF THE YEAR AWARD'..know more" ; 
		line[9] =  "UNITED INDIA INSURANCE receives 'SKOTCH FINANCIAL INCLUSION AWARD 2011'...know more" ; 
		line[10] =  "UIIC adopts a village for Financial Inclusion... know more";
                line[11] =  "United India Insurance Company has been selected as among the top three general insurance companies in Asia.. know more";
		line[12] = "United India Insurance Company has been awarded the Best Non-Life Insurer.. know more";
		line[13] = "PPN Hospitals List.. know more";
		//Specify font size for scoller
		var ts_fontsize="14px"
		//--Don't edit below this line
		var longestmessage=1
		for (i=2;i<line.length;i++)	{
			if (line[i].length>line[longestmessage].length)
				longestmessage=i
		}
		//Auto set scroller width
		var tscroller_width=line[longestmessage].length
		lines=line.length-1 //--Number of lines
		//if IE 4+ or NS6
		temp=""
		nextchar=-1;
		nextline=1;
		cursor="\\"
		function animate() {
			if (temp==line[nextline] & temp.length==line[nextline].length & nextline!=lines)
			{	
				nextline++;
				nextchar=-1;
				document.bannerform.banner.value=temp;
				temp="";
				setTimeout("nextstep()",10000)
			}
			else if (nextline==lines & temp==line[nextline] & temp.length==line[nextline].length)
			{
				nextline=1;
				nextchar=-1;
				document.bannerform.banner.value=temp;
				temp="";
				setTimeout("nextstep()",10000)
			}
			else
			{
				nextstep()
			}
		}
		function nextstep()	{
			if (cursor=="\\"){ cursor="|"}
			else if (cursor=="|"){ cursor="/"}
			else if (cursor=="/"){ cursor="-"}
			else if (cursor=="-"){ cursor="\\"}
			nextchar++;
			temp+=line[nextline].charAt(nextchar);
			document.bannerform.banner.value=temp+cursor
			setTimeout("animate()",25)
		}
		//if IE 4+ or NS6
		if (document.all||document.getElementById)
			window.onload=animate
		// -->
