/*
Sliding Menu Bar Script- © Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions, and TOS
Visit http://dynamicdrive.com
*/
var ns4=document.layers?1:0
var ie4=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0

if (ie4||ns6)
document.write('<div id="mainmenubar2">')
else
document.write('<layer id="mainmenubar">')

var sitems=new Array()
var sitemlinks=new Array()

///////////Edit below/////////////////////////////////

//extend or shorten this list
sitems[0]="Home"
sitems[1]="Acupuncture"
sitems[2]="Herbs"
sitems[3]="FAQs"
sitems[4]="Appointment"
sitems[5]="About us"
sitems[6]="Contact us"
sitems[7]="Sitemap"

//These are the links pertaining to the above text.
sitemlinks[0]="index.html"
sitemlinks[1]="acupuncture.html"
sitemlinks[2]="herbs.html"
sitemlinks[3]="faqs.html"
sitemlinks[4]="appointment.html"
sitemlinks[5]="about_us.html"
sitemlinks[6]="contact_us.html"
sitemlinks[7]="sitemap.html"

//If you want the links to load in another frame/window, specify name of target (ie: target="_new")
var target=""

/////////////////////////////////////////////////////////
for (i=0;i<=sitems.length-1;i++)
	document.write('&nbsp&nbsp<a class=mainmenu href='+sitemlinks[i]+' target="'+target+'">'+sitems[i]+'</a>&nbsp&nbsp')

document.write('<table bgcolor="#666666" width="100%">')
document.write('<tr><td align="right">')
document.write('<font size="-4" color="#A7A7A7">Copyright &copy; 2003 Savannah Acupuncture Wellness&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="trailer" href="http://www.macrostone.com">Powered by Macrostone</a></font>')
//document.write('</td><td><img src="images/macrostone_logo_tiny.gif" border="0" alt=""></td>')
document.write('</td></tr>')
document.write('</table>')


function regenerate(){
	window.location.reload()
}

function regenerate2(){
	if (ns4)
		setTimeout("window.onresize=regenerate",400)
}

window.onload=regenerate2

if (ie4||ns6){
	document.write('</div>')
	themenu=(ns6)? document.getElementById("mainmenubar2").style : document.all.mainmenubar2.style
	rightboundary=0
	leftboundary=-150
}
else{
	document.write('</layer>')
	themenu=document.layers.mainmenubar
	rightboundary=150
	leftboundary=10
}

function pull(){
	if (window.drawit)
	clearInterval(drawit)
	pullit=setInterval("pullengine()",20)
}

function draw(){
	clearInterval(pullit)
	drawit=setInterval("drawengine()",20)
}

function pullengine(){
	if (ie4&&themenu.pixelLeft<rightboundary)
	themenu.pixelLeft+=5
	else if (ns6&&parseInt(themenu.left)<rightboundary)
		themenu.left=parseInt(themenu.left)+5
	else if( ns4&&themenu.left<rightboundary)
		themenu.left+=5
	else if (window.pullit)
		clearInterval(pullit)
}

function drawengine(){
	if (ie4&&themenu.pixelLeft>leftboundary)
		themenu.pixelLeft-=5
	else if (ns6&&parseInt(themenu.left)>leftboundary)
		themenu.left=parseInt(themenu.left)-5
	else if(ns4&&themenu.left>leftboundary)
		themenu.left-=5
	else if (window.drawit)
		clearInterval(drawit)
}
