//Free JavaScripts on http://www.ScriptBreaker.com
var scroll = true // true to follow on scrolling , false to make static
var offsetleft = 5
var offsettop = 40
var step = 40

function init(id)
{
obj_head = document.getElementById(id)
obj_head.style.height = obj_head.offsetHeight +10;
if(scroll)
{
obj_head.style.position = "absolute";
obj_head.style.width = obj_head.offsetWidth + 10;
obj_head.style.top = offsettop;
obj_head.style.left = offsetleft;
}
obj_head.style.visibility="visible";
}
var T1 = null;

var ie4=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0

function makeStatic() {
id = "head1";
if (ie4) {wtop = document.body.scrollTop+offsettop}
else if (ns6) {wtop = window.pageYOffset+offsettop}
ntop = parseInt(document.getElementById(id).style.top);
if((ntop > (wtop)) && (ntop >(wtop + step))){
document.getElementById(id).style.top = wtop
T1 = setTimeout("makeStatic()",0);
}
else
{
if((ntop < (wtop)) && (ntop < (wtop+ step))){
document.getElementById(id).style.top =  ntop + step
T1 = setTimeout("makeStatic()",0);
}
else {clearTimeout("T1");T1=""}}
}
//Free JavaScripts on http://www.ScriptBreaker.com
if (scroll)
{
if (document.all) window.onscroll = makeStatic
else setInterval ('makeStatic()', 100);}


//========================================================================start dtc menu bar bottons code
//-------------------------------------------------------------------------------

function GetButtonBar(items) {

txt = "";

q = '"';

if (items.indexOf('horiz') > -1) {align = "&nbsp;&nbsp;";}
else {align = "<br />&nbsp;&nbsp;";} //default to vert if horiz is not specified

Len = align.length;

a1 = "<a href=" + q;
a2 = q + "><img src=" + q + "./Images/";
a3 = q + " height=48 width=100 border=0></a>" + align;

if (items.indexOf("home") > -1)
	txt += a1 + "Home-new.htm" + a2 + "dtcButtonHome.jpg" + a3;

if (items.indexOf('join') > -1)
	txt += a1 + "dtcMailingList.html" + a2 + "dtcButtonJoin.jpg" + a3;

if (items.indexOf('menu') > -1)
	txt += a1 + "dtcMenu.html" + a2 + "dtcButtonMenu.jpg" + a3;

if (items.indexOf('marg') > -1)
	txt += a1 + "dtcMargaritas.html" + a2 + "dtcButtonMarg.jpg" + a3;

if (items.indexOf('photos') > -1)
	txt += a1 + "dtcPhotos.html" + a2 + "dtcButtonPhotos.jpg" + a3;

if (items.indexOf('directions') > -1)
{	txt += '<a href="http://www.mapquest.com/directions/main.adp?go=1&amp;do=nw&amp;ct=NA&amp;1y=US&amp;1a=&amp;1p=&amp;1c=&amp;1s=MO&amp;1z=&amp;1ah=&amp;2y=US&amp;2a=711+Olive+Street&amp;2p=&amp;2c=St.+Louis&amp;2s=MO&amp;2z=63101&amp;2ah=&amp;lr=2&amp;x=61&amp;y=5"><img src="./Images/dtcButtonDirections.jpg" width="100" height="48" border="0"></a>'
	
	//txt += a1 + q;
    //txt += "http://www.mapquest.com/directions/main.adp?go=1&amp;do=nw&amp;ct=NA&amp;1y=US&amp;1a=&amp;1p=&amp;1c=&amp;1s=MO&amp;1z=&amp;1ah=&amp;2y=US&amp;2a=711+Olive+Street&amp;2p=&amp;2c=St.+Louis&amp;2s=MO&amp;2z=63101&amp;2ah=&amp;lr=2&amp;x=61&amp;y=5"
	//txt += a2 + "dtcButtonDirections.jpg" + a3;
}

if (txt.substring(- Len) == align) {txt = txt.substring(- Len)}

return txt;
}

//========================================================================end dtc menu bar buttons code