/************************************************************************************************************************
conditions.js || controls the tabs for the condition page
------------------------------------------------------------------------------------------------------------------------
Developed By Cory Caines || Kreated Nine Web Development
************************************************************************************************************************/
var cont = new Array();
var tab_list = new Array();
function init_tabs_basic(){
	tabs = tag("div");
	for(i=0;i<=tabs.length-1;i++){
		if(tabs[i].getAttribute('typ') == "tab"){
			tab_list.push(tabs[i].id);
			tabs[i].onclick = function(){
				for(x=0;x<=tab_list.length-1;x++){
					$(tab_list[x]).className = "tab_off";	
				}
				this.className = "tab_sel";
				change_tab_cont(this.id);
			}
			tabs[i].onmouseover = function(){
				if(this.className == "tab_off"){
					this.className = "tab_ovr";
				}
			}
			tabs[i].onmouseout = function(){
				if(this.className == "tab_ovr"){
					this.className = "tab_off";
				}
			}
		}
	}	
}
function add_tab_cont(id,scont){
	cont[id] = scont;
}
function change_tab_cont(id){
	var icont = $("tabContent");
	icont.innerHTML = cont[id];
}