<!--
//=======================================================
// ChiroTouch Generic JS 
// Copywright 2004 all rights reserved
// Author: Ryan Stenberg
// Authorization: ChiroTouch has the written consent to utilize and change these Java scripts indefinitely by Ryan Stenberg.
// Updated: Aug 15 2005
//=======================================================
var lURL = 0;
var pass = 0;
var g = 0;

var gotofeature = new Array;
	
	gotofeature[0] =('Back to Start');
	
	gotofeature[1] =('ChiroTouch Basic');
	
	gotofeature[2] =('Chart_And_SOAP_Notes');
	gotofeature[3] =('Diagnoses');
	gotofeature[4] =('Treatment_Plans');
	gotofeature[5] =('Appointment_History');
	gotofeature[6] =('Posting_Charges');
	
	
	gotofeature[7] =('Electronic_Health_Records');
	gotofeature[8] =('Dynamic_Form_Creation');
	gotofeature[9] =('Patient_Information_Sheet');
	gotofeature[10] =('Patient_Flow_Manager');
	gotofeature[11] =('Advanced_Scheduling');
	gotofeature[12] =('Patient_Alert_System');
	gotofeature[13] =('Fee_Schedules_And_Care_Packages');
	gotofeature[14] =('Automated_Check_Out');
	gotofeature[15] =('Advanced_Account_Ledger');
	
	gotofeature[16] =('Electronic_HCFA_Billing');
	gotofeature[17] =('Interoffice_Messaging');
	gotofeature[18] =('Daily_And_Annual_Reports');

	
	gotofeature[19] =('ChiroTouch Premium');
	
	gotofeature[20] =('Patient_Sign_In_Premium');
	gotofeature[21] =('Provider_Premium');
	gotofeature[22] =('Announcer_Premium');
	gotofeature[23] =('Voice_Recorder_Premium');
		
	gotofeature[24] =('Technologies'); 
	gotofeature[25] =('Totally_Customizable');
	
var gotolink = new Array;
	
	gotolink[0]=('/Pages/Features');
	
	gotolink[1]=('/Pages/Features/CT_Basic_Features/');
	
	gotolink[2]=('/Pages/Features/CT_Basic_Features/Doctor_Tools/Chart_And_SOAP_Notes.html');
	gotolink[3]=('/Pages/Features/CT_Basic_Features/Doctor_Tools/Diagnoses.html');
	gotolink[4]=('/Pages/Features/CT_Basic_Features/Doctor_Tools/Treatment_Plans.html');
	gotolink[5]=('/Pages/Features/CT_Basic_Features/Doctor_Tools/Appointment_History.html');
	gotolink[6]=('/Pages/Features/CT_Basic_Features/Doctor_Tools/Posting_Charges.html');
	
	gotolink[7]=('/Pages/Features/CT_Basic_Features/Patient_Management_Tools/Electronic_Health_Records.html');
	gotolink[8]=('/Pages/Features/CT_Basic_Features/Patient_Management_Tools/Dynamic_Form_Creation.html');
	gotolink[9]=('/Pages/Features/CT_Basic_Features/Patient_Management_Tools/Patient_Information_Sheet.html');
	gotolink[10]=('/Pages/Features/CT_Basic_Features/Patient_Management_Tools/Patient_Flow_Manager.html');
	gotolink[11]=('/Pages/Features/CT_Basic_Features/Patient_Management_Tools/Advanced_Scheduling.html');
	gotolink[12]=('/Pages/Features/CT_Basic_Features/Patient_Management_Tools/Patient_Alert_System.html');
	gotolink[13]=('/Pages/Features/CT_Basic_Features/Patient_Management_Tools/Fee_Schedules_And_Care_Packages.html');
	gotolink[14]=('/Pages/Features/CT_Basic_Features/Patient_Management_Tools/Automated_Check_Out.html');
	gotolink[15]=('/Pages/Features/CT_Basic_Features/Patient_Management_Tools/Advanced_Account_Ledger.html');
	
	gotolink[16]=('/Pages/Features/CT_Basic_Features/Office_Management_Tools/Electronic_HCFA_Billing.html');
	gotolink[17]=('/Pages/Features/CT_Basic_Features/Office_Management_Tools/Interoffice_Messaging.html');
	gotolink[18]=('/Pages/Features/CT_Basic_Features/Office_Management_Tools/Daily_And_Annual_Reports.html');
	
	gotolink[19]=('/Pages/Features/CT_Premium_Features/');
	
	gotolink[20]=('/Pages/Features/CT_Premium_Features/Patient_Sign_In_Premium.html');
	gotolink[21]=('/Pages/Features/CT_Premium_Features/Provider_Premium.html');
	gotolink[22]=('/Pages/Features/CT_Premium_Features/Announcer_Premium.html');
	gotolink[23]=('/Pages/Features/CT_Premium_Features/Voice_Recorder_Premium.html');
	
	gotolink[24]=('/Pages/Features/Technologies/');
	gotolink[25]=('/Pages/Features/Technologies/Totally_Customizable.html');
	
	

function featurejump(direction){
//========Feature Map====================


//========Find Current Page Location====================
    var sURL = (location.pathname.indexOf('?') != -1) ? location.pathname.substring(0, location.pathname.indexOf('?')) : location.pathname;
        sURL = (location.pathname.charAt(0) == '/') ? location.pathname.substring(1) : location.pathname;
    	  var nURL = (location.pathname.indexOf('?') != -1) ? location.pathname.substring(0, location.pathname.indexOf('?')) : location.pathname;
        nURL = (location.pathname.charAt(0) == '/') ? location.pathname.substring(1) : location.pathname;
	
	
	if((sURL.lastIndexOf("/")+1)==sURL.length){  //if folder loose the extra comma at the end of the string
		 sURL = sURL.substring("",sURL.lastIndexOf("/"));
		 }
	
	var aURL = sURL.split('/');
	
	for(var i = 1; i< aURL.length; i++){
		
			if(aURL=='Pages,Features'){pass = 'Back to Start';}//Set for index starting page and custom name
			else if (aURL=='Pages,Features,CT_Basic_Features'){pass = 'ChiroTouch Basic';}
			else if (aURL=='Pages,Features,CT_Premium_Features'){pass = 'ChiroTouch Premium';}
			else {var lURL = aURL[i].split('.'); 
			
					pass = lURL[0];}
		//}Pages,Features,CT_Basic_Features
	}
	
		
		for(var i = 0; i< gotofeature.length; i++){
			
			if (gotofeature[i] == pass){
				
				if(direction == 'next'){//========Jump to Next Feature====================
					if(i==(gotofeature.length)-1){
							var g = 0;}
						else{
							var g = i+1;}
						}
					
					else if (direction == 'back'){//========Jump Back to Last Feature===================
						if(i==0){
							var g = (gotofeature.length)-1;}
						else{
							var g = i-1;}}
						
						//document.write(gotolink[g]);
						window.location=gotolink[g];
				//}	
			}
			
		}

}


function featurejumpTxt(direction){


//========Find Current Page Location====================
    var sURL = (location.pathname.indexOf('?') != -1) ? location.pathname.substring(0, location.pathname.indexOf('?')) : location.pathname;
        sURL = (location.pathname.charAt(0) == '/') ? location.pathname.substring(1) : location.pathname;
    	  var nURL = (location.pathname.indexOf('?') != -1) ? location.pathname.substring(0, location.pathname.indexOf('?')) : location.pathname;
        nURL = (location.pathname.charAt(0) == '/') ? location.pathname.substring(1) : location.pathname;
	
	if((sURL.lastIndexOf("/")+1)==sURL.length){  //if folder loose the extra comma at the end of the string
		 sURL = sURL.substring("",sURL.lastIndexOf("/"));
		 }
	
	var aURL = sURL.split('/');
	//document.write(aURL);
	for(var i = 1; i< aURL.length; i++){
			
			if(aURL.length==2){pass = 'Back to Start';}//Set for index starting pages and custom name
			 else if (aURL=='Pages,Features,CT_Basic_Features'){pass = 'ChiroTouch Basic';}
			else if (aURL=='Pages,Features,CT_Premium_Features'){pass = 'ChiroTouch Premium';}
				else{
					var lURL = aURL[i].split('.'); //drop the .html of pages
				pass = lURL[0];}
			
		
		
	}
		for(var i = 0; i< gotofeature.length; i++){
		
			if (gotofeature[i] == pass){
				
					
					
				if(direction == 'next'){//========Jump to Next Feature====================
					
					
					if(i==(gotofeature.length)-1){
							var g = 0;}
								
						else{
							var g = i+1;}
							
							var alttxt1=gotofeature[g];
					if (alttxt1.indexOf("_")!= -1){
							while (alttxt1.indexOf("_") != -1){
								var alttxt1 = alttxt1.replace("_"," ");}}
								
						if(alttxt1.indexOf("And")!= -1){
							 var alttxt1 = alttxt1.replace("And","&amp;");}
							 
						document.write('<a href="'+gotolink[g]+'">'+alttxt1+'</a>');}
					
					else if (direction == 'back'){//========Jump Back to Last Feature===================
						if(i==0){
							var g = (gotofeature.length)-1;}
						else{
							var g = i-1;}
							
							var alttxt2=gotofeature[g];
					if (alttxt2.indexOf("_")!= -1){
							while (alttxt2.indexOf("_") != -1){
								var alttxt2 = alttxt2.replace("_"," ");}}
								
						if(alttxt2.indexOf("And")!= -1){
							 var alttxt2 = alttxt2.replace("And","&amp;");}
							
							document.write('<a href="'+gotolink[g]+'">'+alttxt2+'</a>');}
						
						
						//window.location=gotolink[g];
				//}	
			}
			
		}

}
-->