﻿<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Ken Tholke, kentholke@firstsaga.com. -->

<!-- Begin
// add as many or as few messages as you would like
var msg=new Array()
//msg[0]="<CENTER>Das gläserne Projekt</CENTER>";
msg[0]="Das gläserne Projekt";
msg[1]="Wissen vermehrt sich durch Teilen";
msg[2]="Informationen Finden statt Suchen";
msg[3]="Mit 3 Klicks zur Information";
msg[4]="Dokument Workflow auf den Punkt gebracht";

// set your first set of colors.  Use as many or as few as you wish.
//var colors1=new Array("ffffff", "eeeeff", "ddddff", "ccccff", "bbbbff", "aaaaff", "9999ff",
//"8888ff", "7777ff", "6666ff", "5555ff", "4444ff", "3333ff","2222ff", "1111ff", "0000ff")

var colors1=new Array("000000", "0f0f0f", "111111", "1f1f1f", "222222", "2f2f2f", "333333", "3f3f3f", "444444", "4f4f4f", "555555", "5f5f5f", "666666", "6f6f6f", "777777", "7f7f7f", "888888", "8f8f8f", "999999", "9f9f9f", "aaaaaa", "afafaf", "bbbbbb", "bfbfbf", "cccccc", "cfcfcf", "dddddd", "dfdfdf", "eeeeee", "efefef", "ffffff")

//set your second set of colors
// *** must have exactly the same number of colors as the array above ***
//var colors2=new Array("ffffff", "ffeeee", "ffdddd", "ffcccc", "ffbbbb", "ffaaaa", "ff9999",
//"ff8888", "ff7777", "ff6666", "ff5555", "ff4444", "ff3333", "ff2222", "ff1111", "ff0000")

var colors2=new Array("000000", "0f0f0f", "111111", "1f1f1f", "222222", "2f2f2f", "333333", "3f3f3f", "444444", "4f4f4f", "555555", "5f5f5f", "666666", "6f6f6f", "777777", "7f7f7f", "888888", "8f8f8f", "999999", "9f9f9f", "aaaaaa", "afafaf", "bbbbbb", "bfbfbf", "cccccc", "cfcfcf", "dddddd", "dfdfdf", "eeeeee", "efefef", "ffffff")

//set the height of the display in pixels
high=0;

//set the width of the display in pixels
wide=0;

//set the pixel coordinates for the upper left hand corner of the display
Xpos=0;
Ypos=450;

// move the display away from the edges of the background
pad=0;

// set the background color of the display
bgcol="000000";

//add a background image if you want.
// *** for no image, just leave empty quotes (ex. cellbg=""; ) ***
cellbg="faderbg.jpg";

// set the font
fntFam="arial,verdana,helvetica";
fntSize=14;

// set how how many seconds you want the message to stay remain at totality.
pause=8;


// Do not edit these values below!!!

icolor=0;
mcolor=1;
imsg=0;
spWidth=wide-(2*pad);
totality=false;
glowing=true;
var msgbg;
var msgfade;
var theMsg="";
var cellcontent="";
pause=pause*1000;
if(cellbg.length>4){cellbg=" background="+cellbg}
else{cellbg="";}

function doPause(){
   totality=false; t=setTimeout("changecolor()",pause);
   }
function initiate(){
   msgbg=document.getElementById("msgbg");
   msgfade=document.getElementById("msgfade");
   getContentColor();   
   getMsg();
   getCellContent();
   msgbg.innerHTML=cellcontent;
   msgfade.innerHTML=theMsg;
   msgbg.style.posLeft=Xpos;
   msgbg.style.posTop=Ypos;
   msgfade.style.posLeft=Xpos+pad;
   msgfade.style.posTop=Ypos+pad;
   t=setTimeout("changecolor()",50);
   }
function changecolor(){
   if(totality==true){doPause();}
   else{
   getMsg();
   getContentColor();
   msgfade.innerHTML=theMsg;
   t=setTimeout("changecolor()",50);
   }
   }
function getFadeColor(){
   icolor=icolor-1;
   if(mcolor==1){contentcolor=colors1[icolor];}
   else{contentcolor=colors2[icolor];}
   }
function getGlowColor(){
   icolor=icolor+1;
   if(mcolor==1){contentcolor=colors1[icolor];}
   else{contentcolor=colors2[icolor];}
   }
function changemsg(){
   if(imsg==msg.length-1){imsg=0; mcolor=1;}
   else if(imsg != msg.lenght-1 && mcolor==1){imsg=imsg+1; mcolor=0;}
   else{imsg=imsg+1; mcolor=1;}
   }
function getContentColor(){
   if(icolor==colors1.length-1 && glowing==true)
   {
    getFadeColor(); 
    glowing=false; 
    totality=true;
   }
   else if(icolor < colors1.length && glowing==true){
   getGlowColor();}
   else if(icolor < 1 && glowing==false){changemsg(); getGlowColor(); glowing=true;}
   else{getFadeColor();}
   }
function getMsg() {
   theMsg="<span style='font-size:"+fntSize+"pt; font-family:"+fntFam+"; width:"+spWidth+";'>"
   theMsg+="<B><font color="+contentcolor+">"+msg[imsg]+"</font></B> "
   theMsg+="</span>"
   }
function getCellContent(){
   cellcontent="<TABLE height="+high+
   " width="+wide+" bgcolor="+bgcol+" cellpadding=0 cellspacing=0><TR><TD"+cellbg+"> </TD></TR></TABLE>"}
//  End -->

