var selectedTab = 1;
var allowTabChange = true;

function selectTab(tabCount, tabID)
{
	allowTabChange = false;
	if(navigator.appName != "Microsoft Internet Explorer"){ fadeOut("divTabContent", 50); }
	if(tabID < 1){ tabID = tabCount; }
	if(tabID > tabCount){ tabID = 1; }
	for(i=1; i <= tabCount; i++)
	{
		document.getElementById("tab" + i + "1").style.backgroundImage = "url(img/tabBox_tab_left.jpg)";
		document.getElementById("tab" + i + "2").style.backgroundImage = "url(img/tabBox_tab_center.jpg)";
		document.getElementById("tab" + i + "3").style.backgroundImage = "url(img/tabBox_tab_right.jpg)";
		document.getElementById("tab" + i + "2").className = "";
	}
	document.getElementById("tab" + tabID + "1").style.backgroundImage = "url(img/tabBox_tab_on_left.jpg)";
	document.getElementById("tab" + tabID + "2").style.backgroundImage = "url(img/tabBox_tab_on_center.jpg)";
	document.getElementById("tab" + tabID + "3").style.backgroundImage = "url(img/tabBox_tab_on_right.jpg)";
	document.getElementById("tab" + tabID + "2").className = "tabSelected";
	selectedTab = tabID;

	setTimeout("sendAjaxRequest('divTabContent', 'GET', 'classes/classChangeTab.php', 'tabID=" + tabID + "', '../img/loader.gif', true)", 50);
	if(navigator.appName != "Microsoft Internet Explorer"){ setTimeout("fadeIn('divTabContent')", 100); }
}

function hideAllJobs(){
	document.getElementById("imgHR").style.visibility = "hidden";
	document.getElementById("imgCompliance").style.visibility = "hidden";
	document.getElementById("imgStaff").style.visibility = "hidden";
	document.getElementById("imgResearch").style.visibility = "hidden";
	document.getElementById("imgNurse").style.visibility = "hidden";
	//changeWhoWeServe(0);
}


var whoWeServe = new Array();
whoWeServe[0] = '<div style="margin-top:70px; text-align:center; font-weight:bold; text-transform:uppercase; font-style:italic; color:#555">Select your area of expertise<br /><img src="img/whoWeServeArrow.gif" style="margin-right:40px" /></div>';
whoWeServe[1] = '<img alt="" src="img/hr.jpg" style="border:1px solid #999;" /><h3 style="margin:6px 0px 6px 0px; font-style:italic;">Human Resources</h3>One central Learning Management System to develop, deliver and track all online and classroom training, assess competencies and review performance.';
whoWeServe[2] = '<img alt="" src="img/compliance.jpg" style="border:1px solid #999;" /><h3 style="margin:6px 0px 6px 0px; font-style:italic;">Compliance</h3>HCCS compliance courses enable healthcare organizations to meet Joint Commission, Medicare, Medicaid, HIPAA and quality regulations.';
whoWeServe[3] = '<img alt="" src="img/staff.jpg" style="border:1px solid #999;" /><h3 style="margin:6px 0px 6px 0px; font-style:italic;">Staff Development</h3>The HCCS Healthcare Learning Platform (HLP) is a Learning Management System designed to assign, track and report on all online and offline learning and competency activities.';
whoWeServe[4] = '<img alt="" src="img/research.jpg" style="border:1px solid #999;" /><h3 style="margin:6px 0px 6px 0px; font-style:italic;">Research</h3>HCCS research courseware enables research staff to comply with the latest National Institute of Health and Responsible Conduct of Research guidelines.';
whoWeServe[5] = '<img alt="" src="img/nurse.jpg" style="border:1px solid #999;" /><h3 style="margin:6px 0px 6px 0px; font-style:italic;">Nurses</h3>HCCS courses help nursing staff meet yearly training requirements. Improved training also enables nursing staff to provide patients with superior care.';

function changeWhoWeServe(showImg, id){
	hideAllJobs();
	if(showImg != ""){ document.getElementById(showImg).style.visibility = "visible"; }
	document.getElementById("id_whoWeServe").innerHTML = whoWeServe[id];
}


/*
function selectTab2(tabCount, tabID)
{
	if(tabID < 1){ tabID = tabCount; }
	if(tabID > tabCount){ tabID = 1; }

	document.getElementById("tab11").style.backgroundImage = "url(img/tab_left_first.gif)";
	document.getElementById("tab12").style.backgroundImage = "url(img/tab_center.gif)";
	document.getElementById("tab13").style.backgroundImage = "url(img/tab_right.gif)";
	for(i=2; i <= tabCount; i++)
	{
		document.getElementById("tab" + i + "1").style.backgroundImage = "url(img/tab_center.gif)";
		document.getElementById("tab" + i + "2").style.backgroundImage = "url(img/tab_right.gif)";
	}
	document.getElementById("tab" + tabCount + "2").style.backgroundImage = "url(img/tab_right_last.gif)";
	
	if(tabID == 1)
	{
		document.getElementById("tab11").style.backgroundImage = "url(img/tab_left_on_first.gif)";
		document.getElementById("tab12").style.backgroundImage = "url(img/tab_center_on.gif)";
		document.getElementById("tab13").style.backgroundImage = "url(img/tab_right_on.gif)";
	}
	else
	{
		if(tabID == 2){ document.getElementById("tab13").style.backgroundImage = "url(img/tab_left_on.gif)"; }
		else{ document.getElementById("tab" + (tabID - 1) + "2").style.backgroundImage = "url(img/tab_left_on.gif)"; }
	
		document.getElementById("tab" + tabID + "1").style.backgroundImage = "url(img/tab_center_on.gif)";
		if(tabID == tabCount){ document.getElementById("tab" + tabID + "2").style.backgroundImage = "url(img/tab_right_on_last.gif)"; }
		else{ document.getElementById("tab" + tabID + "2").style.backgroundImage = "url(img/tab_right_on.gif)"; }
	}
	selectedTab = tabID;
}


function selectTad3(tabCount, tabID)
{
	for(i = 1; i <= tabCount; i++)
	{
		document.getElementById("vTab" + i).style.backgroundImage = "url(img/vTab.gif)";
	}
	document.getElementById("vTab" + tabID).style.backgroundImage = "url(img/vTab_on.gif)";
	document.getElementById("vTabBox").style.backgroundImage = "url(img/TabImgTest" + tabID + ".jpg)";
	selectedTab = tabID;
}
*/




var questionArray = new Array();
questionArray[0] = "";
questionArray[1] = "<b>HCCS</b> has provided over <b>2.5 million</b> hours of compliance and competency training courseware to <b>1.4 million</b> learners at over <b>700</b> hospitals, teaching facilities, medical schools, health plans and other healthcare entities.";
questionArray[2] = "<b>HCCS</b> online compliance courses <b>contain video scenarios</b> and other multimedia elements to increase retention and employee satisfaction. <b>HCCS</b> compliance courses have a <b>96% completion rate</b>, the highest in the industry.";
questionArray[3] = "The day to day management of <b>HCCS</b> is the responsibility of six individuals with over <b>150 years in healthcare</b> compliance, medical practice management, training, consulting, and new product development.";

var selectedQuestion = 0;
function changeQuestion(i){
	//if(selectedQuestion == i && document.getElementById("div_questions").style.display == "block"){ document.getElementById("div_questions").style.display = "none"; }
	//else{ document.getElementById("div_questions").style.display = "block"; }
	//for(x=1; x < questionArray.length; x++){ document.getElementById("div_question" + x).innerHTML = ""; }
	//setTimeout("document.getElementById('div_question" + i + "').innerHTML = ''", 2000);

	//if(i > 0){ document.getElementById("div_question" + i).innerHTML = questionArray[i].toString(); }
	//else{ document.getElementById("div_question" + i).innerHTML = ""; }

	if(i > 0){ document.getElementById("div_questions").innerHTML = questionArray[i].toString(); }
	else{ document.getElementById("div_questions").innerHTML = '<img alt="" src="img/hccs_logo_small.gif" style="margin:33px 0px 0px 20px" />'; }

	selectedQuestion = i;
}