<!-- //

//Set tab to intially be selected when page loads:
//[which tab (1=first tab), ID of tab content to display]:
var initialtabhome=[1, "hm1"]

//Turn menu into single level image tabs (completely hides 2nd level)?
var hometurntosingle=0 //0 for no (default), 1 for yes

//Disable hyperlinks in 1st level tab images?
var homedisabletablinks=0 //0 for no (default), 1 for yes


//////////////// Stop editting ////////////////

var homeprevioustab=""

if (hometurntosingle==1)
	document.write('<style type="text/css">#hometabcontentcontainer{display: none;}</style>')

function expandcontenthm(cid, aobject){
	if (homedisabletablinks==1)
		aobject.onclick=new Function("return false")
	if (document.getElementById && hometurntosingle==0){
		homehighlighttab(aobject)
		if (homeprevioustab!="")
			document.getElementById(homeprevioustab).style.display="none"
			document.getElementById(cid).style.display="block"
			homeprevioustab=cid
	}
}

function homehighlighttab(aobject){
	if (typeof tabobjlinks=="undefined")
		collecthomimagetabs()
	for (i=0; i<tabobjlinks.length; i++)
		tabobjlinks[i].className=""
		aobject.className="current"
}

function collecthomimagetabs(){
	var tabobj=document.getElementById("homimagetabs")
	tabobjlinks=tabobj.getElementsByTagName("A")
}

function homedo_onload(){
	collecthomimagetabs()
	expandcontenthm(initialtabhome[1], tabobjlinks[initialtabhome[0]-1])
}

if (window.addEventListener)
	window.addEventListener("load", homedo_onload, false)
else if (window.attachEvent)
	window.attachEvent("onload", homedo_onload)
else if (document.getElementById)
	window.onload=homedo_onload

// -->