var headerGoldColor="bb0077"
var headerHumbugColor="330022"
var headerBackgroundColor="330022"
var headerTitleColor="440022"
var headerDropColor="330022"
var headerHighlightColor="bb0077"
var headerFontColor="eeeeee"
var headerSpacerNumber=2

function VerticalLineText(_width,_color)
{
return "<td width="+_width+" bgcolor=#"+_color+"><table border=0 width=100% cellspacing=0 cellpadding=0><tr><td></td></tr></table></td>"
}

function VerticalLine(_width,_color)
{
document.write(VerticalLineText(_width,_color))
}

var aU=new Array(200)
var aP=new Array(200)
var aA=new Array(200)
var aN=0
aU[aN]="http://www.digitallis.co.uk/webkick/index.html"
aP[aN]="advert_webkick.gif"
aA[aN]="get where you want to go with WebKick"
aN++
aU[aN]="http://www.thehungersite.com"
aP[aN]="advert_hungersite.gif"
aA[aN]="feed the starving with a mouse-click"
aN++
aU[aN]="http://www.therainforestsite.com"
aP[aN]="advert_rainforestsite.gif"
aA[aN]="save the rainforests with one mouse-click"
aN++
aU[aN]="http://www.atari.st"
aP[aN]="advert_lgd.gif"
aA[aN]="-the- atari resource"
aN++
aU[aN]="http://www.multimania.com/leonard/plugin.htm"
aP[aN]="advert_stsoundplugin.gif"
aA[aN]="get the ST sound plugin and listen to history"

function LogoHeader(_prePath)
{
var time=new Date()
if(time.getMonth()==8 && time.getDate()==11)
{
headerTitleColor="000000"
headerDropColor="000000"
}
var t = "<table border=0 bgcolor=#"+headerHumbugColor+" width=100%><tr><td height=70><a href='"+_prePath+"index.html'><img src='"+_prePath+"dt_swirl.gif' align=left border=0></a>"
if (navigator.appName=="Netscape")
{
t+="<img src='' width=10 height=1 align=left border=0>"
}
t+="<a href='"+_prePath+"index.html'>"
if ((time.getMonth()==11 && time.getDate()>=13)||(time.getMonth()==0 && time.getDate()<=6 ))
{
t+="<img src='"+_prePath+"dt_logo_christmas.gif'"
}
else
{
t+="<img src='"+_prePath+"dt_logo.gif'"
}
t+=" align=left border=0></a></td><td valign=center>"
var n=Math.random()*aN
n=Math.round(n)
t+="<a href='"+aU[n]+"'><img src='"+_prePath+aP[n]+"' align=right border=0 alt='"+aA[n]+"'></a></td></tr></table>"
document.write(t)
}

function TwoColumnHeader(_left,_leftSize,_right,_rightSize)
{
HeaderSpacer(2,headerGoldColor)
var t="<table border=0 bgcolor=#"+headerGoldColor+" width=100% cellspacing=0 cellpadding=0><tr>"
t+=VerticalLineText(5,headerGoldColor)
t+="<td height=1 width=49% align=left><font face=Arial color=#"+headerFontColor+" size="+_leftSize+">"
t+=_left
t+="</font></td><td height=1 width=49% align=right><font face=Arial color=#"+headerFontColor+" size="+_rightSize+">"
t+=_right
t+="</font></td>"
t+=VerticalLineText(5,headerGoldColor)
t+="</tr></table>"
document.write(t)
HeaderSpacer(2,headerGoldColor)
}

function OneColumnHeader(_text,_size)
{
HeaderSpacer(2,headerGoldColor)
var t="<table border=0 bgcolor=#"+headerGoldColor+" width=100% cellspacing=0 cellpadding=0><tr>"
t+=VerticalLineText(2,headerGoldColor)
t+="<td height=1 width=99% align=left><font face=Arial color=#"+headerFontColor+" size="+_size+">"
t+=_text
t+="</font></td></tr></table>"
document.write(t)
HeaderSpacer(2,headerGoldColor)
}

function HeaderSpacer(_height,_color)
{
document.write( "<table border=0 width=100% cellspacing=0 cellpadding=0><tr><td bgcolor=#"+_color+" height="+_height+"><table border=0 width=100% cellspacing=0 cellpadding=0><tr><td></td></tr></table></td></tr></table>" )
}

function HeaderItem(_title,_txt)
{
if (_title)
{
HeaderSpacer(1,headerHighlightColor)
}
document.write("<table border=0 width=100% cellspacing=0 cellpadding=0><tr>")
VerticalLine(1,headerHighlightColor)

var t="<td width=5 bgcolor=#"
if ( _title )
{
t+=headerTitleColor+"><table border=0 width=100% cellspacing=0 cellpadding=0><tr><td></td></tr></table></td><td bgcolor=#"+headerTitleColor+" height=1>"
}
else
{
t+=headerDropColor+"><table border=0 width=100% cellspacing=0 cellpadding=0><tr><td></td></tr></table></td><td bgcolor=#"+headerDropColor+" height=1>"
}

t+="<font face=Arial size=2 color="+headerFontColor+">"+_txt+"</font><td width=5 bgcolor=#"
if (_title)
{
t+=headerTitleColor
}
else
{
t+=headerDropColor
}
t+="><table border=0 width=100% cellspacing=0 cellpadding=0><tr><td></td></tr></table></td>"
document.write(t)

VerticalLine(1,headerHighlightColor)
document.write("</td></tr></table>")
HeaderSpacer(1,headerHighlightColor)
}

function TwoColumnHeaderWithColours(_left,_leftSize,_leftColour,_right,_rightSize,_rightColour,_withOpening,_withClosing)
{
if (_withOpening)
{
HeaderSpacer(1,headerHighlightColor)
}
var t="<table border=0 width=100% cellpadding=0 cellspacing=0><tr>"
t+=VerticalLineText(1,headerHighlightColor)

t+=VerticalLineText(5,_leftColour)
t+="<td height=1 width=25% align=left bgcolor=#"+_leftColour+" valign=top><font face=Arial color=#"+headerFontColor+" size="+_leftSize+">"+_left+"</font></td>"
t+=VerticalLineText(5,_leftColour)

t+=VerticalLineText(1,headerHighlightColor)

t+=VerticalLineText(5,_rightColour)
t+="<td height=1 align=left bgcolor=#"+_rightColour+"><font face=Arial color=#"+headerFontColor+" size="+_rightSize +">"+_right+"</font></td>"
t+=VerticalLineText(5,_rightColour)

t+=VerticalLineText(1,headerHighlightColor)
t+="</tr></table>"
document.write(t)
if (_withClosing)
{
HeaderSpacer(1,headerHighlightColor)
}
}

function TwoColumnHeaderWithBorder(_left,_leftSize,_right,_rightSize,_withClosing)
{
TwoColumnHeaderWithColours(_left,_leftSize,headerTitleColor,_right,_rightSize,headerDropColor,1,_withClosing)
}

function TwoColumnHeaderWithBorderSameColor(_left,_leftSize,_right,_rightSize,_withOpening,_withClosing )
{
TwoColumnHeaderWithColours(_left,_leftSize,headerDropColor,_right,_rightSize,headerDropColor,_withOpening,_withClosing)
}
