var tablink_idname = new Array("tablink","linkone","linktwo", "linkthree")
var tabcontent_idname = new Array("tabcontent","onecontent", "twocontent", "threecontent")
var tabcount = new Array("2","10","10","10")
var loadtabs = new Array("1","10","6","2")
var autochangemenu = 2;
var changespeed = 2;
var stoponhover = 1;
function easytabs(menunr, active)
{
if (menunr == autochangemenu)
{
currenttab=active;}
if ((menunr == autochangemenu)&&(stoponhover==1))
{
stop_autochange()
}
else if ((menunr == autochangemenu)&&(stoponhover==0))
{
counter=0;
}
menunr = menunr-1;
for (i=1; i <= tabcount[menunr]; i++)
{
document.getElementById(tablink_idname[menunr]+i).className='tab'+i;
document.getElementById(tabcontent_idname[menunr]+i).style.display = 'none';
}
document.getElementById(tablink_idname[menunr]+active).className='nonce';
document.getElementById(tabcontent_idname[menunr]+active).style.display = 'block';
}
var timer; counter=0;
var totaltabs=tabcount[autochangemenu-1];
var currenttab=loadtabs[autochangemenu-1];
|