// JavaScript Document

// Specify content for different products
var product_titles = new Array();
product_titles["gondola-cover"] = "images/title-gondola-cover_01.jpg";
product_titles["coil-steel-cover"] = "images/title-coil-steel-cover_01.jpg";
product_titles["electrified-train-cover"] = "images/title-electrified-train_01.jpg";
product_titles["flexible-cover-tech"] = "images/title-flexible-cover_01.jpg";
product_titles["hinged-hatch-cover"] = "images/title-hinged-hatch_01.jpg";
product_titles["sliding-hatch-cover"] = "images/title-sliding-hatch_01.jpg";

var product_content = new Array();
product_content["gondola-cover"] = "<br /><p>The Ecofab gondola cover is our most common and economical solution for product containment in open top railcars. The cover allows for full access to the railcar's contents once removed and our simple yet reliable latch system can in most cases be applied without modification to the railcar.<br><br>The U.S. D.O.T. has determined that a railcar equipped with an Ecofab railcar cover meets the criteria for a closed transport vehicle for transportation of low-level radioactive waste, as specified in Title 49 CFR 173.403(c)</p>";

product_content["coil-steel-cover"] = "<br /><p>The Ecofab coil cover can be designed specifically to meet your needs for either transverse or standard format coil railcars. Covers can be supplied with insulation to help avoid condensation on steel coils. Covers are easily removed with a single point lift hook.</p>";

product_content["electrified-train-cover"] = "<br /><p>Trains running on electrified tracks have unique height restrictions due to the overhead lines. Ecofab's electrified train cover solution provides fully automated operation, providing complete access to the load when open, and does so within the constraints of electrified rail. The cover operates pneumatically utilizing air pressure from the train's air system.</p>";

product_content["flexible-cover-tech"] = "<br /><p>Developed specifically to meet the needs of the coal industry, the Ecofab Flexible Cover Technology is suitable for any high volume operation, and is compatible with both hopper and rotary dump facilities.</p>";

product_content["hinged-hatch-cover"] = "<br /><p>Ecofab's hinged hatch covers provide a system for through-cover loading via an overhead chute. Opening the hatches can be done automatically via an economical scroll structure at the loading site. These covers can be easily removed for rotary dumping.</p>";

product_content["sliding-hatch-cover"] = "<br /><p>Ecofab's pneumatically operated sliding hatch cover provides a complete solution turning an open top hopper into a sealed container. The cover operates either fully automatically or with push button controls. It is self contained, obtaining air pressure via the train's air system.</p>";

var product_photo = new Array();
product_photo["gondola-cover"] = '<br /><img src="images/photo-gondola-cover-1b.jpg" alt="" />';
product_photo["coil-steel-cover"] = '<br /><img src="images/photo-coil-steel-cover.jpg" alt="" />';
product_photo["electrified-train-cover"] = '<br /><img src="images/photo-electrified-train.jpg" alt="" class="photo" />';
product_photo["flexible-cover-tech"] = '<br /><img src="images/photo-flexible-cover.jpg" alt="" />';
product_photo["hinged-hatch-cover"] = '<br /><img src="images/photo-hinged-hatch.jpg" alt="" class="photo" />';
product_photo["sliding-hatch-cover"] = '<br /><img src="images/photo-sliding-hatch-1b.jpg" alt="" />';

function showProduct( product_name ) {
	
	var title = document.getElementById("cover_systems_title");
	var content = document.getElementById("cover_systems_content");
	var photo = document.getElementById("cover_systems_photo");
	
	// Swap div containers with product material
	title.src = product_titles[ product_name ];
	content.innerHTML = product_content[ product_name ];
	photo.innerHTML = product_photo[ product_name ];
	
}

function loadProductImages() {
	MM_preloadImages("images/title-gondola-cover_01.jpg", "images/title-coil-steel-cover_01.jpg", "images/title-electrified-train_01.jpg", "images/title-flexible-cover_01.jpg", "images/title-hinged-hatch_01.jpg", "images/title-sliding-hatch_01.jpg", "images/photo-gondola-cover-1b.jpg", "images/photo-coil-steel-cover.jpg", "images/photo-electrified-train.jpg", "images/photo-flexible-cover.jpg", "images/photo-hinged-hatch.jpg", "images/photo-sliding-hatch-1b.jpg");
}

window.onLoad = loadProductImages;