﻿// JScript File

var bannerNames = new Array()
bannerNames[0] = "How are you today!";
bannerNames[1] = "TekNewell = Technology new and well.";
bannerNames[2] = "Our web pages are printer friendly.";
bannerNames[3] = "We write Embedded Network <br />Automation Applications and more.";
bannerNames[4] = "Great software can change the world.";
bannerNames[5] = "CAN Universal Studio can help you <br />to do less and achieve more.";
bannerNames[6] = "You create Custom Window in just 1 minute";
bannerNames[7] = "using Microsoft Visual Studio 2005.";
bannerNames[8] = "Then you are under the beauty of<br /> .NET Graphic Objects";
bannerNames[9] = "drawing analytical charts and graphical gauges.";
bannerNames[10] = "And data acquisition is already at hand";
bannerNames[11] = "for saving messages to disk file or database for report.";
bannerNames[12] = "It supports many CAN interface devices.";
bannerNames[13] = "Our software products are written on <br />TekNewell Programming Framework. ";
bannerNames[14] = "That is optimized for programmer happiness <br />and sustainable productivity. ";
bannerNames[15] = "It favors Convention over Configuration and <br />supports the philosophy of Don't Repeat Yourself.";
bannerNames[16] = "Happiness is a perfume which you cannot pour on <br />someone without getting some on yourself. <br /></font><font color=\"black\" size=\"2\">- Ralph Waldo Emerson";
bannerNames[17] = "Excellence is the gradual result of <br />always striving to do better.";
bannerNames[18] = "Excellence is to do a common thing <br />in an uncommon way.";
bannerNames[19] = "Excellence is not an act, but a habit.";
var numberOfText=20;
var currentText=0;
var currentbkimg=0;

//bannerNames[2] = "<img src=\"image/banner06.gif\"/>";


//bannerNames[8] = "<font color=\"black\" size=\"4\"  style=\"font-style:italic; font-family:Cursive; font-weight: bolder;\">Try and fail, but don't fail to try.</font><br /><font color=\"black\" size=\"2\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- Stephen Kaggwa</font>";
//bannerNames[9] = "<font color=\"black\" size=\"2\"  style=\"font-style:Monotype Corsiva; font-family:Cursive; font-weight: bolder;\">Anyone can give up, it's the easiest thing in the world<br />to do. But to hold it together when everyone else would<br />understand if you fell apart, that's true strength.</font>";
//bannerNames[10] = "<font color=\"black\" size=\"2\"  style=\"font-style:Monotype Corsiva; font-family:Cursive; font-weight: bolder;\">Anyone can give up, it's the easiest thing in the world<br />to do. But to hold it together when everyone else would<br />understand if you fell apart, that's true strength.</font>";
//bannerNames[11] = "<font color=\"black\" size=\"1.8\"  style=\"font-style:italic; font-family:Cursive; font-weight: bolder;\">Courage doesn't always roar. Sometimes courage<br />is the quiet voice at the end of the day saying,<br /> \"I will try again tomorrow.\"</font><font color=\"black\" size=\"2\">- Mary Anne Radmacher</font>";
//bannerNames[12] = "<font color=\"black\" size=\"1.8\"  style=\"font-style:italic; font-family:Cursive; font-weight: bolder;\">Courage doesn't always roar. Sometimes courage<br />is the quiet voice at the end of the day saying,<br /> \"I will try again tomorrow.\"</font><font color=\"black\" size=\"2\">- Mary Anne Radmacher</font>";

//bannerNames[8] = "<font color=\"black\" size=\"8\" style=\"font-weight: bolder\">Do you have a dream?</font>";
//bannerNames[9] = "<font color=\"black\" size=\"8\" style=\"font-weight: bolder\">Yes, may courage be with you!</font>";
//bannerNames[888] = "<img src=\"image/banner01.gif\"/>";






	 
	   



var bannertimer;
var bannerText=0;

function startBanner()
{
/*
if(bannerText==0) 
{
	currentbkimg++;
	if(currentbkimg>=3) currentbkimg=0;
	if(currentbkimg==0) document.getElementById("bannerStrip").style.backgroundImage="url(play_strip0_0.png)";
	if(currentbkimg==1) document.getElementById("bannerStrip").style.backgroundImage="";
	//if(currentbkimg==2) document.getElementById("bannerStrip").style.backgroundImage="url(play_strip0_2.png)";
	if(currentbkimg==3) document.getElementById("bannerStrip").style.backgroundImage="url(play_strip3.png)";
	if(currentbkimg==4) document.getElementById("bannerStrip").style.backgroundImage="url(play_strip4.png)";
	if(currentbkimg==5) document.getElementById("bannerStrip").style.backgroundImage="url(play_strip5.png)";
	if(currentbkimg==6) document.getElementById("bannerStrip").style.backgroundImage="url(play_strip6.png)";
	if(currentbkimg==7) document.getElementById("bannerStrip").style.backgroundImage="url(play_strip7.png)";
	if(currentbkimg==8) document.getElementById("bannerStrip").style.backgroundImage="url(play_strip8.png)";
}
*/

		bannerText++;
		if(bannerText>=8) 
		{
		   bannerText=0;
		   currentText++;
		   if(currentText>=numberOfText)
		   {
				currentText=0;
		   }
			document.getElementById("BannerText").style.fontSize="larger";
			if(currentText==0) { 
				document.getElementById("bannerStrip").style.backgroundImage="url(play_strip0_0.png)";
				document.getElementById("BannerText").style.fontSize="xx-large"; 
			}
			if(currentText==1) { 
				document.getElementById("bannerStrip").style.backgroundImage="";
			}            
			document.getElementById("BannerText").innerHTML=bannerNames[currentText];

		}
		


	
	/*
	if(currentText==3)
	{
	
		document.getElementById("BannerText").style.backgroundColor="white";
	}
	else
	{
		document.getElementById("BannerText").style.backgroundColor="#336699";
	}
	*/
		//if(currentbkimg==0) document.body.style.backgroundImage="url(main_base.png)";
		//if(currentbkimg==1) document.body.style.backgroundImage="url(main_base1.png)";
		//if(currentbkimg==2) document.body.style.backgroundImage="url(main_base2.png)";
/*
	if(currentText==0) 
	{ 

		document.getElementById("BannerText").style.fontSize="xx-large"; 
	}
	if(currentText==1) { document.getElementById("BannerText").style.fontSize="xx-large"; }

	if(currentText==3) { document.getElementById("BannerText").style.fontSize="large"; }
	if(currentText==4) { 
		document.getElementById("BannerText").style.fontSize="large"; 
	}
	if(currentText==5) { document.getElementById("BannerText").style.fontSize="large"; }
	if(currentText==6) { document.getElementById("BannerText").style.fontSize="large"; }

	if(currentText==7) { 
		document.getElementById("BannerText").style.fontSize="medium"; 
	}
	if(currentText==8) { document.getElementById("BannerText").style.fontSize="medium"; }
	*/
	bannertimer=setTimeout("startBanner()",500)
}

