// JavaScript Document

// Specify content for different products
var service_titles = new Array();
service_titles["safety-program"] = "images/title-safety-program_01.jpg";
service_titles["maintenance-program"] = "images/title-maintenance_01.jpg";

var service_content = new Array();
service_content["safety-program"] = "<br /><p>Ecofab has developed a comprehensive safety training program for all personnel who work with our covers.</p><h1>On-Site Safety Training</h1><p>Ecofab's on-site training provides small group instruction for workers and inspectors. Our safety training emphasizes safe procedures and safe cover handling techniques.</p><h1>Safety Literature</h1><p>Ecofab has prepared a detailed guide, \"Using Covers Safely\" which outlines safe procedures installing, removing, lifting, and storing covers. This guide is distributed to all employees during the on-site safety training sessions. Safety posters, outlining key points in the guide can be posted at visible locations on the worksite.</p><h1>Instructional Videos</h1><p>Ecofab has produced instructional videos demonstrating key aspects of safe cover handling. These videos can be used to train new employees, or as part of an ongoing safety program to refresh skills learned in the safety workshops.</p>";

service_content["maintenance-program"] = "<br /><h1>Preventative Maintenance</h1><p>Ecofab provides a complete preventative maintenance program as part of its full service package. An effective maintenance program increases overall safety, reliability, and maximizes cover utilization. Covers are inspected regularly for damage or excessive wear, and all repairs are done by fully trained Ecofab employees.</p><h1>Service Depots</h1><p>Our service depots are strategically located at key cover destinations such as ports, smelters, or mines. Service depots are located adjacent to the rail line so that covers can be inspected, removed, and replaced without taking a railcar out of service.</p><h1>Handling Systems</h1><p>There are a variety of handling systems which can be used to efficiently install and remove Ecofab Covers. Ecofab has more than 30 years experience in cover handling systems. We work closely with each of our customers to design a cover handling program which meets their requirements.</p><h1>Fleet Tracking / Fleet Management</h1><p>Knowing the location and condition of all covers in a fleet is critical for achieving maximum utilization. Ecofab has developed computer based tracking systems which allows our operations staff to closely monitor the status of each customer's cover fleet. This system provides a historical record for each cover, including a full maintenance history, equipment specifications, and a log of cover usage.</p>";

var service_photo = new Array();
service_photo["safety-program"] = '<br /><img src="images/photo-safety-program.jpg" alt="" />';
service_photo["maintenance-program"] = '<br /><table><tr><td><img src="images/photo-maintenance.jpg" alt="" /></td></tr><tr><td><img src="images/photo-maintenance-2.jpg" alt="" /></td></tr></table>';

function showService( service_name ) {
	
	var title = document.getElementById("services_title");
	var content = document.getElementById("services_content");
	var photo = document.getElementById("services_photo");
	
	// Swap div containers with product material
	title.src = service_titles[ service_name ];
	content.innerHTML = service_content[ service_name ];
	photo.innerHTML = service_photo[ service_name ];
	
}

function loadServiceImages() {
	MM_preloadImages("images/title-safety-program_01.jpg", "images/title-maintenance-program_01.jpg", "images/photo-safety-program.jpg", "images/photo-maintenance.jpg", "images/photo-maintenance-2.jpg");
}

window.onLoad = loadServiceImages;