$(document).ready(function() { 
 FadeAll()
	$("#HotPointImg").fadeToggle();
	$("#HotPointCaption").fadeToggle(); 
	$("#HotPointCaption").html("<p>Welcome to AAE's website. Click a point to view how our system components retrofit your plane.</p>");
	$("#HotPointImg").html("<img src='http://aae-ltd.com/wp-content/themes/AAE-Theme-Ver2/images/header-photos/cockpit.jpg' alt='AAE'>");
	
	

var array = new Array();
array = ["#HotPoint1", "#HotPoint2", "#HotPoint3"];

var arrayExtinguisher = new Array();
arrayExtinguisher = ["#HotPoint2", "#HotPoint2-2"]

var arrayEnclosures = new Array();
arrayEnclosures = ["#HotPoint3", "#HotPoint3-3", "#HotPoint3-5", "#HotPoint3-2","#HotPoint3-4"];

var arrayNozzles = new Array();
arrayNozzles = ["#HotPoint5", "#HotPoint5-3", "#HotPoint5-5", "#HotPoint5-2", "#HotPoint5-4" ];

	
 
	 $("#HotPoint1").click(function() {  
		 FadeAll()
			$("#HotPointCaption").fadeToggle();	
			$("#HotPointImg").fadeToggle();
			$("#HotPointCaption p").html("<p><strong>Cockpit Control Panel Assembly</strong><br>Monitors and controls the entire FPS.  Automatically arms the suppression system to operate to the affected cargo compartment. <a href='http://aae-ltd.com/cargo-detection-suppression-control-panel-cdscp/'>Read More...</a></p>");
			$("#HotPointImg").html("<img src='http://aae-ltd.com/wp-content/themes/AAE-Theme-Ver2/images/header-photos/Auto-Fire-EASA-Config.jpg'>")

		
	});//end click
	
	
	
for(var i=0; i<arrayExtinguisher.length; i++){
	
	// Extinguisher	
	$(arrayExtinguisher[i]).click(function() {  
		 FadeAll()
		 $("#HotPointCaption").fadeToggle();
		 $("#HotPointImg").fadeToggle();	
			$("#HotPointCaption p").html("<p><strong>Extinguisher Bottle <br>& Suppression Rack Assembly</strong><br> Provides one quick-discharge bottle to quickly saturate the affected cargo compartment with fire 'Knock-Down' protection. <a href='http://aae-ltd.com/extinguisher-bottle-assembly/'>Read More...</a></p>");	
			$("#HotPointImg").html("<img src='http://aae-ltd.com/wp-content/themes/AAE-Theme-Ver2/images/header-photos/FPS-Suppression-Rack-Assembly.jpg'>")
	});//end click
	
}// End Loop
			


// Enclosure Guard Bar hotpoints		
for(var i=0; i<arrayEnclosures.length; i++){
													
				$(arrayEnclosures[i]).click(function() {  
				 FadeAll()
				 $("#HotPointCaption").fadeToggle();
				 $("#HotPointImg").fadeToggle();	
					$("#HotPointCaption p").html("<p><strong>Detector Enclosure & Guard Bar Assembly, Dual Channel Smoke Detector, & Distribution Nozzle</strong><br>Stainless steel enclosure that houses the smoke detector and penetrating distribution nozzle.  The enclosure is mounted in the ceiling of the cargo compartment. <a href='http://aae-ltd.com/dual-channel-smoke-detector/'>Read More...</a></p>");	
					$("#HotPointImg").html("<img src='http://aae-ltd.com/wp-content/themes/AAE-Theme-Ver2/images/header-photos/Three.jpg'>")
			});//end click	
	
 }// End Loop
 
 
  $("#HotPoint4").click(function() {  
		 FadeAll()
			$("#HotPointCaption").fadeToggle();	
			$("#HotPointImg").fadeToggle();
			$("#HotPointCaption p").html("<p><strong>Fault Panel Assembly</strong><br>Monitors each smoke detector in the FPS system, and identifies exact location of faulty detector to ensure quick maintenance. <a href='http://aae-ltd.com/fault-panel-assembly-2/'>Read More...</a></p>");
			$("#HotPointImg").html("<img src='http://aae-ltd.com/wp-content/themes/AAE-Theme-Ver2/images/header-photos/Fault-Panel.jpg'>")

		
	});//end click
	 
	 
	 //Nozzle hotpoints		
for(var i=0; i<arrayNozzles.length; i++){
													
				$(arrayNozzles[i]).click(function() {  
				 FadeAll()
				 $("#HotPointCaption").fadeToggle();
				 $("#HotPointImg").fadeToggle();	
					$("#HotPointCaption p").html("<p><strong>Sustaining Distribution Nozzle</strong><br> Directs Halon to the top of the cargo compartment. Two are mounted to the ceiling of each compartment.<br><a href='http://aae-ltd.com/sustaining-distribution-nozzle/'>Read More...</a></p>");	
					$("#HotPointImg").html("<img src='http://aae-ltd.com/wp-content/themes/AAE-Theme-Ver2/images/header-photos/Nozzles.jpg'>")
			});//end click
				
			
	
 }// End Loop
 

	 
	function FadeAll()
	{
		$("#HotPointCaption").hide();
		$("#HotPointImg").hide();
	}
	
});//end doc ready
