var Pictures_TE = new Array();
var Pictures_VS = new Array();
var Pictures_MV = new Array();
var Pictures_RC = new Array();
var Comments_TE = new Array();
var Comments_VS = new Array();
var Comments_MV = new Array();
var Comments_RC = new Array();
var Pos = 0;
var Prod = 0;
var GoProd = 0;

// Pictures
//TE
Pictures_TE[0] = "te_login.gif";
Pictures_TE[1] = "te_patient_selection.gif";
Pictures_TE[2] = "te_summary.gif";
Pictures_TE[3] = "te_graph.gif";
Pictures_TE[4] = "te_alerts.gif";
Pictures_TE[5] = "te_demo_edit.gif";
Pictures_TE[6] = "te_demo_show.gif";
Pictures_TE[7] = "te_hivind_edit.gif";
Pictures_TE[8] = "te_hivind_show.gif";
Pictures_TE[9] = "te_cond_list.gif";
Pictures_TE[10] = "te_cond_add.gif";
Pictures_TE[11] = "te_cond_edit.gif";
Pictures_TE[12] = "te_med_list.gif";
Pictures_TE[13] = "te_med_add.gif";
Pictures_TE[14] = "te_med_edit.gif";
Pictures_TE[15] = "te_lab_panels.gif";
Pictures_TE[16] = "te_lab_vl.gif";
Pictures_TE[17] = "te_report_list.gif";
Pictures_TE[18] = "te_report_running.gif";
Pictures_TE[19] = "te_report_drugs.gif";
Pictures_TE[20] = "te_settings.gif";
Pictures_TE[21] = "te_feedback.gif";

//VS
Pictures_VS[0] = "vs_login.gif";
Pictures_VS[1] = "vs_selection.gif";
Pictures_VS[2] = "vs_identification.gif";
Pictures_VS[3] = "vs_clinical.gif";
Pictures_VS[4] = "vs_seq_entry.gif";
Pictures_VS[5] = "vs_seq_final.gif";
Pictures_VS[6] = "vs_seq_phylo.gif";
Pictures_VS[7] = "vs_seq_phylo2.gif";
Pictures_VS[8] = "vs_seq_result.gif";
Pictures_VS[9] = "vs_seq_quality.gif";
Pictures_VS[10] = "vs_mut_nrti.gif";
Pictures_VS[11] = "vs_mut_nnrti.gif";
Pictures_VS[12] = "vs_mut_pi.gif";
Pictures_VS[13] = "vs_mut_gp41.gif";
Pictures_VS[14] = "vs_mut_final.gif";
Pictures_VS[15] = "vs_mut_result.gif";
Pictures_VS[16] = "vs_contaminations.gif";
Pictures_VS[17] = "vs_hivlib1.gif";
Pictures_VS[18] = "vs_hivlib2.gif";
Pictures_VS[19] = "vs_epivisor1.gif";
Pictures_VS[20] = "vs_epivisor2.gif";
Pictures_VS[21] = "vs_resistance.gif";

//MV
Pictures_MV[0] = "mv_login.gif";
Pictures_MV[1] = "mv_summary.gif";
Pictures_MV[2] = "mv_message1.gif";
Pictures_MV[3] = "mv_message2.gif";

//RC
Pictures_RC[0] = "rc_patient_selection.gif";
Pictures_RC[1] = "rc_new_patient.gif";
Pictures_RC[2] = "rc_new_patient_pdf.gif";
Pictures_RC[3] = "rc_existing_patient.gif";
Pictures_RC[4] = "rc_existing_patient_pdf.gif";

// Comments
//TE
Comments_TE[0] = "The TherapyEdge Login Screen uses 128 bit SSL encryption and strong passwords.";
Comments_TE[1] = "The patient search and selection screen. Patient search can be by ID number, name or patient pool (group). The most recently worked on charts are listed at the top.";
Comments_TE[2] = "The patient summary lists the conditions, medications, allergies and notes for each patient. It can be customized to match your existing chart cover sheet.";
Comments_TE[3] = "The Summary Graph page shows you a graphical presentation of the patients HIV health status. The top section is a line graph of the CD4 / Viral Load and can graph most of the numeric values in the system. Below this you will find line graphs of the ARV medications, non ARV medications, CDC stage and HIV related conditions.";
Comments_TE[4] = "Alerts are based on decision support rules active in the system such as drug-drug interactions, lab values out of range and treatment guidelines. Alerts can be filtered and sorted by date, patient pool, type and archive status.";
Comments_TE[5] = "Patient demographics captures all the pertinent demographic information for the patient. The system can be set to store only non-identifiable information upon site setup.";
Comments_TE[6] = "You can configure specific users with view only permission and give them the ability to see or not see patient identifiable information.";
Comments_TE[7] = "HIV indicators capture the patient's HIV status information is one page that drives the PEPFAR indicators reports.";
Comments_TE[8] = "This is the View only display of the HIV Indicators page. Pressing print will give a PDF printout version that can be printed emailed or faxed.";
Comments_TE[9] = "Current and past Clinical Conditions are listed with dates on the condition summary page.";
Comments_TE[10] = "Adding a condition is simplified with search by name and ICD-10 code that use an intelligent auto-complete.";
Comments_TE[11] = "During site setup, you can select which fields must be completed based on your site or protocol requirements.";
Comments_TE[12] = "Medications are organized by class (ARV / Non ARV) and status (current or previous).";
Comments_TE[13] = "The auto-complete search box for the medications matches generic or brand names and offers the available dosing in the fields below.";
Comments_TE[14] = "You can capture detailed reasons for discontinuation when a drug is stopped.";
Comments_TE[15] = "In case your laboratory company does not offer electronic transfer, we have added tools to customize lab panels which reduces data entry time.";
Comments_TE[16] = "Data can be entered by panel or by multiples of a specific test. This reduces the time required to input retrospective data. ABL has created matching paper forms to simplify chart extraction.";
Comments_TE[17] = "Numerous analysis and reporting tools are built into the system. Many reports are built in such as PEPFAR indicators or HIV status reports. You can extend these with crystal reports or have us create new reports for you.";
Comments_TE[18] = "Reports are run in the background on a separate database to improved the speed and responsiveness of the system and the reports. ";
Comments_TE[19] = "This sample ARV medication reports can show drug usage by patient or in the number of combined days of use.";
Comments_TE[20] = "Each user can modify their display settings. The system is available in English and French with Simplified Chinese on the way.";
Comments_TE[21] = "All users can send feature requests and defect reports directly to the product team for review. Simply put, our users guide and drive the development of the system.";

//VS
Comments_VS[0] = "The ViroScore<SUP><SMALL>TM</SMALL></SUP> Suite can be used as a stand alone system or be fully integrated with TherapyEdge.";
Comments_VS[1] = "The sequence search screen gives you the ability to review specific sequence data or create a new report.";
Comments_VS[2] = "By default, the system does not store any nominative (patient identifiable) data. Sequences are stored by sample or patient ID.";
Comments_VS[3] = "The patient information screen can associate some demographic data with the sequence, or you can use TherapyEdge to gather more detailed information.";
Comments_VS[4] = "Upload sequences in text or FASTA format and select the reference sequence. Sequences can also be imported from existing databases or spreadsheets.";
Comments_VS[5] = "Select the interpretation algorithm(s) and output options.";
Comments_VS[6] = "Then confirm the sub-type characterization.";
Comments_VS[7] = "Phylogenic tree in PDF format.";
Comments_VS[8] = "The resistance report is generated in PDF format for printing, emailing or faxing. When used with TherapyEdge the data will color code the ARV data on the graph and drive resistance based alerts.";
Comments_VS[9] = "The optional quality control report.";
Comments_VS[10] = "If you do not have sequence data, you can generate reports directly from mutation data and store this in the database.";
Comments_VS[11] = "Continuation of the mutation list for direct data entry.";
Comments_VS[12] = "More mutations for the PI region.";
Comments_VS[13] = "The mutations relevant to fusion inhibitors (GP41).";
Comments_VS[14] = "Generation of the report directly from mutations. Notice there are none of the sequence quality control options.";
Comments_VS[15] = "A view of the final report based on mutation input only.";
Comments_VS[16] = "The contamination search tool identifies specimen contamination by finding repeat or foreign genetic sequences in the database using phylogenetic analysis (Phylip).";
Comments_VS[17] = "The HIVLib tool helps you search your database for specific combinations of mutations and related clinical data.";
Comments_VS[18] = "HIVLib reports on the database matches and lists sequence data for each match.";
Comments_VS[19] = "EpiVisor is a tool to drill down into the prevalence of mutations within the database. Click on a region of the graph and it displays the breakdown of the next most prevelent mutations, continue to further constrain your search.";
Comments_VS[20] = "Alternately, you can drill down into the data using a list view with correlating resistance shown.";
Comments_VS[21] = "Export resistance data to XML data format.";

//MV
Comments_MV[0] = "The TherapyEdge MyView Patient login screen.";
Comments_MV[1] = "Patients have access to the chart summary and graph sections. When used as a stand alone system, patients can create and edit their own records.";
Comments_MV[2] = "Patients can view alerts and messages. ";
Comments_MV[3] = "When used with a doctor who is using TherapyEdge, patients can send secure messages to their doctors. Patient Groups can use the system together and send secure messages to each other.";

//RC
Comments_RC[0] = "The TherapyEdge Rapid Capture module is designed to capture PEPFAR indicator and HIV relevant data on a single paper form and enter that data in under three minutes. This is a must at large clinics and hospitals who see hundreds of HIV patients per day.";
Comments_RC[1] = "The form and the screen are organized by care giver, so each person only has to enter data for their own section.";
Comments_RC[2] = "The first time patient receives the form with options that can be clearly read and circled by the care giver.";
Comments_RC[3] = "Upon future visits, the past patient data from the last three visits is show on the screen view.";
Comments_RC[4] = "Likewise, the last three visits are shown on the printout form along with the CD4 count and weight.";


var Pictures = new Array(Pictures_TE,Pictures_VS,Pictures_MV,Pictures_RC);
var Comments = new Array(Comments_TE,Comments_VS,Comments_MV,Comments_RC);

function ShowSlide(Direction) {
	if (Direction==0) {
		Pos = 0;
		Prod = 0;
	}
	if (Direction==1) {
		if (GoProd==1) {
			GoProd = 0;
			Pos = 0;
		}
		else {
			Pos = Pos + 1;
			if (Pos==Pictures[Prod].length) {
				Pos = 0;
				Prod = Prod + 1;
				if (Prod==Pictures.length) Prod = 0;
			}
		}
	}
	if (Direction==-1) {
		if (GoProd==1) {
			GoProd = 0;
			Pos = 0;
			Prod = Prod - 1;
			if (Prod<0) Prod = Pictures.length-1;
			Pos = Pictures[Prod].length-1;
		}
		else {
			Pos = Pos - 1;
			if (Pos<0) {
				Prod = Prod - 1;
				if (Prod<0) Prod = Pictures.length-1;
				Pos = Pictures[Prod].length-1;
			}
		}
	}
	document.images['imageSS'].src = "screenshots/" + Pictures[Prod][Pos];
	document.getElementById('diapoDescr').innerHTML = Comments[Prod][Pos];
}

function goToProd(P1,P2) {
	Pos = P2;
	Prod = P1;
	GoProd = 1;
	document.images['imageSS'].src = "screenshots/" + Pictures[Prod][Pos];
	document.getElementById('diapoDescr').innerHTML = Comments[Prod][Pos];	
}

function StartSlideShow() {
	goToProd(0,3);
}