<!--
// 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")

//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 colors1=new Array("FF5000", "FF5000", "FF5204", "FF5B11", "FE641D",
//"FF6F2E", "FE7B40", "FD8853", "FD9769", "FCA780", "F7B797", "FBC7AF");
//×ÈÒÀÅÌ Ñ ÊÎÍÖÀ - ÇÀÒÓÕÀÍÈÅ
//var colors2=new Array("FF5000", "FF5000", "FF5204", "FF5B11", "FE641D",
//"FF6F2E", "FE7B40", "FD8853", "FD9769", "FCA780", "FBC7AF", "FBC7AF");

var colors1=new Array(
"DFCFAB",
"DECFAF",
"E0D2B4",
"E3D5B8",
"E5D8BC",
"E5D9BE",
"E8DCC3",
"EBE0CA",
"EBE1CC",
"EDE4D1",
"F0E8D8",
"F0E9DA",
"F2ECDF",
"F2EDE1",
"F5F0E6",
"F5F1E9",
"F7F4ED",
"FAF8F2",
"FFFFFF"
);

var colors2=new Array(
"DFCFAB",
"DECFAF",
"E0D2B4",
"E3D5B8",
"E5D8BC",
"E5D9BE",
"E8DCC3",
"EBE0CA",
"EBE1CC",
"EDE4D1",
"F0E8D8",
"F0E9DA",
"F2ECDF",
"F2EDE1",
"F5F0E6",
"F5F1E9",
"F7F4ED",
"FAF8F2",
"FFFFFF"
);

//set the height of the display in pixels
high=119;

//set the default width of the display in pixels
wide= '100%';

//set the pixel coordinates for the upper left hand corner of the display
Xpos=238; //417;
Ypos=0;


// move the display away from the edges of the background
pad=15;


//add a background image if you want.
// *** for no image, just leave empty quotes (ex. cellbg=""; ) ***
cellbg="";

// set the default font
fntFam="arial,verdana,helvetica";
fntSize=14;

// set how how many seconds you want the message to stay remain at totality.

if ( typeof(pause) == 'undefined' )	pause = 4.5;

// set how how many seconds you want the cycle to stay.

if ( typeof(cycle_pause) == 'undefined' ) cycle_pause = 2.5;

// Do not edit these values below!!!

icolor=0;
mcolor=1;
imsg=0;
totality=false;
glowing=true;
cycle=false;
var theMsg="";
var msgbox_;
pause=pause*1000;
cycle_pause=cycle_pause*1000;
if(cellbg.length>4){cellbg=" background="+cellbg}
else{cellbg="";}

var step = 7;
var opacity = 0;

var AdvList = new Array();
AdvList[0] = new Image();
AdvList[0].src = "banners/big14.gif";

AdvList[1] = new Image();
AdvList[1].src = "banners/big13.gif";

AdvList[2] = new Image();
AdvList[2].src = "banners/big15.gif";

AdvList[3] = new Image();
AdvList[3].src = "banners/big16.gif";

function showBlock(id) {
   el = document.getElementById(id);
   el.filters.alpha.style = 2;
   if (opacity < 100) { 
   	   opacity += step;
       el.filters.alpha.opacity = Math.round(opacity);
       blockShower = window.setTimeout("showBlock('" + el.id + "')",2); 
   } else {
	   opacity = 100;
   }
}

function hideBlock(id) {
   el = document.getElementById(id);
   el.filters.alpha.style = 2;
   if (opacity >= step) {
	   opacity -= step;
       el.filters.alpha.opacity = Math.round(opacity);
       blockShower = window.setTimeout("hideBlock('" + el.id + "')",2); 
   }
  
}   

function sBlock(id) {
	
/*   el = document.getElementById(id);
   if (opacity < 100) { 
   	   opacity += step;
	   if (document.all) {
		   el.filters.alpha.opacity = Math.round(opacity);
	   } else {
	   	   el.style.setProperty('-moz-opacity',opacity/100,null); 
	   }
   } 
  */ 
}

function hBlock(id) {
/*   el = document.getElementById(id);
   if (opacity >= step) {
	   opacity -= step;
   	   if (document.all) {
		   el.filters.alpha.opacity = Math.round(opacity);
	   } else {
	   	   el.style.setProperty('-moz-opacity',opacity/100,null); 
	   }

   } else {
	   opacity = 0;
   }*/
}   

function doPause(){
   totality=false; t=setTimeout("changecolor()",pause);
}

function doCyclePause(){
   cycle=false; t=setTimeout("changecolor()",cycle_pause);
   
}
  
function initiateTopLegend(){
   getContentColor();
   getMsg();
   if(document.getElementById){
   msgbox_ = document.getElementById('msgbox');
   msgbox_.innerHTML=theMsg;
   t=setTimeout("changecolor()",50);}
   if(document.layers){
   document.msgbox.document.write(theMsg);
   document.msgbox.document.close();
   t=setTimeout("changecolor()",70);
   }
   }
function changecolor() {
   if( totality==true ) { 
   	doPause();
   }	
   else {
   if ( cycle==true ) { doCyclePause(); msgbox_.innerHTML='';  return;}
   getMsg();
   getContentColor();

   if(document.getElementById) {
	 msgbox_.innerHTML=theMsg;
 	 t=setTimeout("changecolor()",50);
   }
   if(document.layers) {
	 document.msgbox.document.write(theMsg);
	 document.msgbox.document.close();
	 t=setTimeout("changecolor()",70);
   }
   
   }
}
function getFadeColor(){
   msgcont_ = document.getElementById('msgcont');
   x = parseInt(msgcont_.style.paddingLeft) + 1;	
   msgcont_.style.paddingLeft = x+'px';
	
   icolor=icolor-1;
   if(mcolor==1){contentcolor=colors1[icolor];}
   else{contentcolor=colors2[icolor];}
   }
function getGlowColor(){
   msgcont_ = document.getElementById('msgcont');
   x = parseInt(msgcont_.style.paddingLeft) - 1;
   msgcont_.style.paddingLeft = x+'px';
   icolor=icolor+1;
   if(mcolor==1){contentcolor=colors1[icolor];}
   else{contentcolor=colors2[icolor];}
   }
function changemsg(){
   //el = document.getElementById('advertisement');
   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;}
   //el.src = AdvList[imsg].src;
   }
function getContentColor(){
   if(icolor==colors1.length-1 && glowing==true){
   hBlock('advertisement'); glowing=false; totality=true;}
   else if(icolor < colors1.length && glowing==true){
   getGlowColor(); sBlock('advertisement');} 
   else if(icolor < 1 && glowing==false){changemsg(); sBlock('advertisement'); glowing=true; if (imsg==0) cycle=true;}
   else{getFadeColor();  hBlock('advertisement'); }
   }

function getMsg() {
   theMsg="<span style=\"white-space: nowrap\"><font color=\"#"+contentcolor+"\">"+msg[imsg]+"</font></span>";
   }
//-->
