function showDetails(id) {
	request = getHttpRequest();
    request.onreadystatechange = function() { getContents(request); };
    request.open("post", 'getDetails.php?id='+id, false);
    request.send(null);
}
//-------------------------------------------------------------------------->
//-------------------------------------------------------------------------->
function getHttpRequest () {

	if (window.XMLHttpRequest) { // Mozilla, Safari, ...
	    return new XMLHttpRequest();
	} else if (window.ActiveXObject) { 	// IE
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
}
//-------------------------------------------------------------------------->
//-------------------------------------------------------------------------->
function getContents(httpRequest) {

    if (httpRequest.readyState == 4) {
        if (httpRequest.status == 200) {
			document.getElementById('details').innerHTML = httpRequest.responseText;
        } else {
            alert('There was a problem with the request.\n\nStatus='+ httpRequest.status);
        }
    }

}

function getDetails(category, position){
var detailsArray = new Array();

if(category == 'hospital'){
	detailsArray.push(
					'We offer a full range of Revenue Cycle Services<br>'+
					'from Coding Audits to Denials Management.');
	detailsArray.push(
					'We offer expertise in the area of Medicare guidelines<br>'+
					'for coding, documentation and claims submission performing<br>'+
					'concurrent and retrospective reviews and audits focusing on ICD-9-CM,<br>'+
					'CPT/HCPCS, MS-DRGs, APCs and clinical documentation.');
	detailsArray.push(
					'We offer a full analysis of your readiness with<br>'+
					'a customized implementation plan to meet your <br>'+
					'organization’s needs.');
	detailsArray.push(
					'Providing concurrent documentation and coding programs along<br>'+
					'with physician documentation tools to supplement your clinical<br>'+
					'documentation improvement efforts.');
	detailsArray.push(
					'Assessing your exposure to RAC audits and<br>'+
					'assisting you with the RAC appeals.');
	detailsArray.push(
					'Claims are reviewed to optimize charge capture and<br>'+
					'assure regulatory compliance.');
	detailsArray.push(
					'We offer a unique service to assist clients with correcting<br>'+
					'claims from a coding/billing and revenue/regulatory perspective<br>'+
					'to insure clean claim submission.');
	detailsArray.push(
					'Assist facilities by working the denied claim for reimbursement,<br>'+
					'tracking underlying causes of the denials and assisting the<br>'+
					'client to improve the internal processes leading to the denial.');
	detailsArray.push(
					'Chargemaster reviews offering expertise in Medicare, <br>'+
					'Medi-Cal, and private payer billing.');
	detailsArray.push(
					'Assisting facilities with the codification of contracts/DOFRs<br> '+
					'offering strategies for improvements in contract verbiage and coding.');
	detailsArray.push(
					'Experts in trending CMI and assessing reasons for change<br>'+
					'and opportunities for improvement.');
	detailsArray.push(
					'Offering impact analysis of proposed payment changes with<br>'+
					'trending of data to analyze variations in payments, <br>'+
					'length of stay and costs.');
	detailsArray.push(
					'Experience with assisting clients with OIG, PATH and DCIS audits.<br><br>'+
					'Offering expertise in compliance guidance to develop<br>'+
					'policies and internal controls which conform to federal and state law.');
	detailsArray.push(
					'Clinical documentation and coding programs designed for <br>'+
					'coding staff, case management staff, and Medical Staff.');
	detailsArray.push(
					'Providing expert coding and clinical staff to assist in <br>'+
					'coding and documentation efforts.');
} else if(category == 'healthplans'){
	detailsArray.push(
					'Programs to assure comprehensive capture of diagnostic<br>'+
					'codes supported by clinical documentation thereby<br>'+
					'optimizing RAF scores.<br><br>'+
					'Incorporating years of experience with educating <br>'+
					'clinicians on the link between documentation and coding.');
	detailsArray.push(
					'Providing  industry standard coding to contracts <br>'+
					'and DOFRs to be used in the claims adjudication<br>'+
					'and benefits processes.');
	detailsArray.push(
					'Develop benefit manuals incorporating health plan<br>'+
					'specific benefits with governmental benefits.');
	detailsArray.push(
					'Designated as an expert in contract disputes and <br>'+
					'arbitrations relating to coding and claims payment<br>'+
					'by providing industry standard expertise in charge<br>'+
					'practices and coding.');
	detailsArray.push(
					'Assists clients with communication of regulatory<br>'+
					'requirements for charge practices and coding<br>'+
					'with expertise in the government payers.');
	detailsArray.push(
					'Coding and claim’s payment educational programs<br>'+
					'tailored to the needs of contract/network managers<br>'+
					'and the claims staff.');					
					
} else if(category == 'groups'){
	detailsArray.push(
					'Programs to assure comprehensive capture of diagnostic<br>'+
					'codes supported by clinical documentation thereby <br>'+
					'optimizing RAF scores.<br><br>'+
					'Incorporating years of experience with educating<br>'+
					'clinicians on the link between documentation and coding.');
	detailsArray.push(
					'With expertise in documentation requirements, <br>'+
					'effectively communicates the link between physician<br>'+
					'documentation and coding.<br><br>'+
					'Pioneers of the physician query process in<br>'+
					'the physician office.');
	detailsArray.push(
					'Review and development of an accurate and useable superbill.');	
	detailsArray.push(
					'Optimize the functionality of the documentation<br>'+
					'and coding software to assure complete and accurate<br>'+
					'documentation and coding.');
	detailsArray.push(
					'Assists clients with communication of regulatory<br>'+
					'requirements for charge practices and coding with<br>'+
					'expertise in the government payers.');
	detailsArray.push(
					'Coding and claim’s payment educational programs tailored<br>'+
					'to the needs of physicians and coding/claims staff.');
}

return(detailsArray[position]);
}

function SimpleSwap(el,which){
  el.src=el.getAttribute(which || "origsrc");
}

function SimpleSwapSetup(){
  var x = document.getElementsByTagName("img");
  for (var i=0;i<x.length;i++){
    var oversrc = x[i].getAttribute("oversrc");
    if (!oversrc) continue;
      
    // preload image
    // comment the next two lines to disable image pre-loading
    x[i].oversrc_img = new Image();
    x[i].oversrc_img.src=oversrc;
    // set event handlers
    x[i].onmouseover = new Function("SimpleSwap(this,'oversrc');");
    x[i].onmouseout = new Function("SimpleSwap(this);");
    // save original src
    x[i].setAttribute("origsrc",x[i].src);
  }
}

var PreSimpleSwapOnload =(window.onload)? window.onload : function(){};
window.onload = function(){PreSimpleSwapOnload(); SimpleSwapSetup();}

function validate(id){
var required = "";

	if(id == 'email' && document.emailSignup.email.value == ''){required += "Email:\n";}
	if(document.contact.name.value == ""){required += "Name:\n";}
	if(document.contact.number.value == ""){required += "Phone Number:\n";}
	if(document.contact.employer.value == ""){required += "Employer:\n";}
	if(document.contact.email.value == ""){required += "Email:\n";}
	
	if(required.length > 0){
		alert("The following fields are required:\n\n\n" + required);
		return false;
	}
	return true;
}

function validateEmail(){
var required = "";

	if(document.emailSignup.email.value == ''){
		alert("Please enter an email address.");
		return false;
	}
	return true;
}

function cursorHand(){
	document.body.style.cursor = 'pointer';
}

function cursorArrow(){
	document.body.style.cursor = 'default';
}
