/*
Tabs Menu (mouseover)- By Dynamic Drive
For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
This credit MUST stay intact for use
*/

var submenu=new Array()

//Set submenu contents. Expand as needed. For each content, make sure everything exists on ONE LINE. Otherwise, there will be JS errors.

 
submenu[0]= ''

submenu[1]= 'hi there'

submenu[2]= '<table cellpadding="3"><tr><td><table class="btn_norm" onmouseover="changeClass(this,\'btn_over\')" onmouseout="changeClass(this,\'btn_norm\')" onclick="changePage(\'index.asp?mode=team&employee=1&showit=2\')"><tr><td width="80" height="20" align="middle">Employee 1</td></tr></table></td><td><table class="btn_norm" onmouseover="changeClass(this,\'btn_over\')" onmouseout="changeClass(this,\'btn_norm\')" onclick="changePage(\'index.asp?mode=team&employee=2&showit=2\')"><tr><td width="80" height="20" align="middle">Employee 2</td></tr></table></td><td><table class="btn_norm" onmouseover="changeClass(this,\'btn_over\')" onmouseout="changeClass(this,\'btn_norm\')" onclick="changePage(\'index.asp?mode=team&employee=3&showit=2\')"><tr><td width="80" height="20" align="middle">Employee 3</td></tr></table></td><td><table class="btn_norm" onmouseover="changeClass(this,\'btn_over\')" onmouseout="changeClass(this,\'btn_norm\')" onclick="changePage(\'index.asp?mode=team&employee=4&showit=2\')"><tr><td width="80" height="20" align="middle">Employee 4</td></tr></table></td></tr></table>'
submenu[3]= '<table cellpadding="3"><tr><td><table class="btn_norm" onmouseover="changeClass(this,\'btn_over\'),changePic(\'clientpics\',\'images/clients/atomic.gif\')" onmouseout="changeClass(this,\'btn_norm\'),changePic(\'clientpics\',\'\')"><tr><td width="80" height="20" align="middle">Highlighted</td></tr></table></td><td><table class="btn_norm" onmouseover="changeClass(this,\'btn_over\'),changePic(\'clientpics\',\'images/clients/at_a_glance.gif\')" onmouseout="changeClass(this,\'btn_norm\'),changePic(\'clientpics\',\'\')"><tr><td width="60" height="20" align="middle">Sports</td></tr></table></td><td><table class="btn_norm" onmouseover="changeClass(this,\'btn_over\'),changePic(\'clientpics\',\'images/clients/kappa.gif\')" onmouseout="changeClass(this,\'btn_norm\'),changePic(\'clientpics\',\'\')"><tr><td width="80" height="20" align="middle">Promotions</td></tr></table></td><td><table class="btn_norm" onmouseover="changeClass(this,\'btn_over\'),changePic(\'clientpics\',\'images/clients/promised_land_dairy.gif\')" onmouseout="changeClass(this,\'btn_norm\'),changePic(\'clientpics\',\'\')"><tr><td width="90" height="20" align="middle">Case Studies</td></tr></table></td></tr></table>'

submenu[4]= '<table cellpadding="3"><tr><td><table class="btn_norm" onmouseover="changeClass(this,\'btn_over\')" onmouseout="changeClass(this,\'btn_norm\')"><tr><td width="60" height="20" align="middle"><a href="#recent">Recent</a></td></tr></table></td><td><table class="btn_norm" onmouseover="changeClass(this,\'btn_over\')" onmouseout="changeClass(this,\'btn_norm\')"><tr><td width="60" height="20" align="middle"><a href="#past">Past</a></td></tr></table></td></tr></table>'

submenu[5]=''

submenu[6]='<table cellpadding="3"><tr><td><table class="btn_norm" onmouseover="changeClass(this,\'btn_over\')" onmouseout="changeClass(this,\'btn_norm\')"><tr><td width="80" height="20" align="middle">Directions</td></tr></table></td><td><table class="btn_norm" onmouseover="changeClass(this,\'btn_over\')" onmouseout="changeClass(this,\'btn_norm\')"><tr><td width="60" height="20" align="middle">E-Mail</td></tr></table></td></tr></table>'


//Set delay before submenu disappears after mouse moves out of it (in milliseconds)
//var delay_hide=500

/////No need to edit beyond here

var menuobj=document.getElementById? document.getElementById("describe") : document.all? document.all.describe : document.layers? document.dep1.document.dep2 : ""

function showit(which){
clear_delayhide()
thecontent=(which==-1)? "" : submenu[which]
if (document.getElementById||document.all)
menuobj.innerHTML=thecontent
else if (document.layers){
menuobj.document.write(thecontent)
menuobj.document.close()
}
}

function resetit(e){
if (document.all&&!menuobj.contains(e.toElement))
clear_delayhide()
//delayhide=setTimeout("showit(-1)",delay_hide)
else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
clear_delayhide()
//delayhide=setTimeout("showit(-1)",delay_hide)
}

function clear_delayhide(){
if (window.delayhide)
clearTimeout(delayhide)
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function changeClass(button,stylesheet)
{
	button.className = stylesheet
}

function changePic(where,what)
{
	document.getElementById(where).innerHTML = "<IMG width='169' src='" + what + "'>"
	
	if(what == "")
		{
			document.getElementById(where).innerHTML = "&nbsp;"
		}
}

function changePage(whatpage)
{
	window.location.href = whatpage
}
