var fieldList = new Array( "p1", "p2", "p3", "p4", "p5", "p6", "p7", "p8", "p9" );
var viewList = new Array();
	viewList[ "p1" ] = "gce1.jpg";
	viewList[ "p2" ] = "gce2.jpg";
	viewList[ "p3" ] = "gce3.jpg";
	viewList[ "p4" ] = "gce4.jpg";
	viewList[ "p5" ] = "gce5.jpg";
	viewList[ "p6" ] = "gce6.jpg";
	viewList[ "p7" ] = "";
	viewList[ "p8" ] = "";
	viewList[ "p9" ] = "";

var textList = new Array();
	textList[ "p1" ] = "In combination with a fully automated laser assist gas switchover system and high purity gas transmission lines, this facility has reduced operator involvement in their entire gas management system and reduced their laser maintenance costs by ensuring high purity lasing gases are delivered directly to the laser resonator.";
	textList[ "p2" ] = "A 3-laser facility such as this requires 3 separate high purity lasing gases for each machine.&nbsp;  By centrally locating the supply gases and providing automatic switchover controls from empty to full cylinders, the owner of this facility does not waste operator time checking gas inventory, can confidently run his equipment up to 24 hours per day without fear of unexpected shut-down time, and has reduced his lens maintenance costs by providing proper high purity lasing gases.";
	textList[ "p3" ] = "One of the largest laser cutting facilities in Western Canada relied on Welders Supplies to design and install their gas supply system.  Running multiple Trumpf laser cutting machines in both flat sheet and tube cutting formats, this facility works around the clock and needs to ensure 100% up-time on their beam-generating lasing gas supply.  Automatic switch-over controls ensure they never run out of high purity nitrogen, CO2, or helium.  Swagelok fittings and stainless steel tubing ensure zero contamination and optimize the beam path mirrors and optics to reduce cost and increase up time between maintenance cycles.";
	textList[ "p4" ] = "One of the largest laser cutting facilities in Western Canada relied on Welders Supplies to design and install their gas supply system.  Running multiple Trumpf laser cutting machines in both flat sheet and tube cutting formats, this facility works around the clock and needs to ensure 100% up-time on their beam-generating lasing gas supply.  Automatic switch-over controls ensure they never run out of high purity nitrogen, CO2, or helium.  Swagelok fittings and stainless steel tubing ensure zero contamination and optimize the beam path mirrors and optics to reduce cost and increase up time between maintenance cycles.";
	textList[ "p5" ] = "When you invest over a million dollars in laser cutting equipment, your objective is to keep it running as much as possible.  Downtime cuts into your return on investment.  The solution: professionally designed and installed gas supply systems to feed lasing gas to the resonator, the heart of your laser.  Impurities in the gas stream, caused by using plastic lines or improper regulators, can lead to contaminated gas supply.  Mirror and lens failures are the result.  Why buy gases that are 99.999% pure, only to run them through plastic lines designed for an ice-maker?";
	textList[ "p6" ] = "When this metal fabricator needed to ensure consistent gas mixing of argon and CO2 for their welding operation, they relied on us to design and install a high-flow gas mixer.  By installing a gas pipeline throughout the shop, they reduced gas costs by buying bulk , increased up-time by using satellite telemetry so they never run out of gas again, and ensured 100% compliance on welding procedures by using a locked-down gas mix ratio.";
	textList[ "p7" ] = "";
	textList[ "p8" ] = "";
	textList[ "p9" ] = "";
	
function loadPictures ( fieldList ) {
	for( var i =0; i<fieldList.length; i++ ) {
		eval( fieldList[ i ] + '_on = new Image();');
		eval( fieldList[ i ] + '_on.src = "../../images/' + fieldList[ i ] + 'a.jpg";');
		eval( fieldList[ i ] + '_off = new Image();');
		eval( fieldList[ i ] + '_off.src = "../../images/' + fieldList[ i ] + '.jpg";');
		eval( fieldList[ i ] + '_mainImg = new Image();');
		eval( fieldList[ i ] + '_mainImg.src = "../../images/' + viewList[ fieldList[ i ] ] + '";');
	}
}

function imgOn( imgName ) {
	if (document.images) {
		document[ imgName ].src = eval( imgName + "_on.src");
	}
}

function imgOff( imgName ) {
	if ( document.images ) {
		document[ imgName ].src = eval( imgName + "_off.src");
	}
}
function setMainImg( id ) {
	if ( document.images ) {
		document[ 'mainPic' ].src = eval( id + "_mainImg.src" );
	}
}

var curImgId = "";
var curId = 0;
function pickImg( id ) {

	if ( curImgId != "" ) {
		imgOff( curImgId );
	}

	var text = textList[ id ];
	WriteLayer('descriptionText',null,text);
	imgOn( id );
	setMainImg( id );
	curImgId = id;
}
function moveImg ( cnt ) {
	var upSub = (fieldList.length-1);
	for( i=0;i<fieldList.length;i++) {
		if ( curImgId == fieldList[ i ] ) {
			curId = i;
			i=fieldList.length;
		}
	}
	if ( curId + cnt < 0 ) {
		curId = curId+cnt+fieldList.length;
	} else if ( curId + cnt > upSub ) {
		curId = curId+cnt-fieldList.length;
	} else {
		curId = curId + cnt;
	}
	pickImg( fieldList[ curId ] );
}

function WriteLayer(ID,parentID,URL) {
if (document.layers) {
var oLayer;
if(parentID){
oLayer = eval('document.' + parentID + '.document.' + ID + '.document');
}else{
oLayer = document.layers[ID].document;
}
oLayer.open();
oLayer.write(URL);
oLayer.close();
}
else if (parseInt(navigator.appVersion)>=5&&navigator.
appName=="Netscape") {
document.getElementById(ID).innerHTML = URL;
}
else if (document.all) document.all[ID].innerHTML = URL
}
if ( document.images ) {
	loadPictures( fieldList );
}


