function show1(){
	var divone = document.getElementById("one");
	divone.style.display = "block";
	var lionelink = document.getElementById("onelink");
	lionelink.className = "tabActive";
}
function show2(){
	var divtwo = document.getElementById("two");
	divtwo.style.display = "block";
	var litwolink = document.getElementById("twolink");
	litwolink.className = "tabActive";
}
function show3(){
	var divthree = document.getElementById("three");
	divthree.style.display = "block";
	var lithreelink = document.getElementById("threelink");
	lithreelink.className = "tabActive";
}
function show4(){
	var divfour = document.getElementById("four");
	divfour.style.display = "block";
	var lifourlink = document.getElementById("fourlink");
	lifourlink.className = "tabActive";
}
function show5(){
	var divfive = document.getElementById("five");
	divfive.style.display = "block";
	var lifivelink = document.getElementById("fivelink");
	lifivelink.className = "tabActive";
}
function hide1(){
	var divone = document.getElementById("one");
	divone.style.display = "none";
	var lionelink = document.getElementById("onelink");
	lionelink.className = "tabInactive";
}
function hide2(){
	var divtwo = document.getElementById("two");
	divtwo.style.display = "none";
	var litwolink = document.getElementById("twolink");
	litwolink.className = "tabInactive";
}
function hide3(){
	var divthree = document.getElementById("three");
	divthree.style.display = "none";
	var lithreelink = document.getElementById("threelink");
	lithreelink.className = "tabInactive";
}
function hide4(){
	var divfour = document.getElementById("four");
	divfour.style.display = "none";
	var lifourlink = document.getElementById("fourlink");
	lifourlink.className = "tabInactive";
}
function hide5(){
	var divfive = document.getElementById("five");
	divfive.style.display = "none";
	var lifivelink = document.getElementById("fivelink");
	lifivelink.className = "tabInactive";
}

/*
selects random number from 1 to 3
*/
var randomtab=Math.floor(Math.random()*2 + 1);

/*
Combines above functions
*/
function tab1(){
	show1();
	hide2();
	hide3();
	hide4();
	hide5();
}
function tab2(){
	hide1();
	show2();
	hide3();
	hide4();
	hide5();
}
function tab3(){
	hide1();
	hide2();
	show3();
	hide4();
	hide5();
}
function tab4(){
	hide1();
	hide2();
	hide3();
	show4();
	hide5();
}
function tab5(){
	hide1();
	hide2();
	hide3();
	hide4();
	show5();
}

/*
Chooses which of the tabs to load based on random number
*/
function tabrandomizer(){
	if ( randomtab == 1)
	{
	tab1();
	}
	if ( randomtab == 2)
	{
	tab2();
	}
	if ( randomtab == 3)
	{
	tab3();
	}
}
/*
window.onload = tabrandomizer;
*/
