

/* PRODUCT DESCRIPTION ---------------------------------------------------- */
//Set which tab to be selected when page loads:
//[which tab (1=first tab), ID of tab content that should display]:

//var initialtab=[1, "Guarantee"]

var previoustab=""

function expandthecontent(cid, aobject)
{
	if (document.getElementById)
	{
		highlightthetab(aobject)
		
		if (previoustab!="")
		{
			document.getElementById(previoustab).style.display="none"
		}

		document.getElementById(cid).style.display="block"
		previoustab=cid
	}
}

function highlightthetab(aobject)
{
	if (typeof tabobjlinks=="undefined")
	{
		collecttheddimagetabs()
	}
	
	for (i=0; i<tabobjlinks.length; i++)
	{
		tabobjlinks[i].className=""
	}
	
	aobject.className="current"
}

function collecttheddimagetabs()
{
	var tabobj=document.getElementById("ddimagetabs")
	tabobjlinks=tabobj.getElementsByTagName("A")
}

function setUpTabs()
{
	collecttheddimagetabs()
	expandthecontent(initialtab[1], tabobjlinks[initialtab[0]-1])
}





