// JavaScript Document
	<!-- Hide script from old browsers
	//get values from querystring
	var args = new Object();
	var query = location.search.substring(1); 		// get query string.
	var pairs = query.split(",");					//break at comma
	var hairs = query.split("&");					//break at &
	var firstpart = hairs[0].split("=");
	var secondpart = hairs[1].split("=");
	var heading = "";	
	//this is the portion that the slideshow uses to show the images	
	if(firstpart[1] == 01) {
		firstpart[1] = "01_trucking";
		heading = "STEEL BUILDINGS FOR TRUCK AND EQUIPMENT STORAGE";
		}
	if(firstpart[1] == 02){
		firstpart[1] = "02_mini-warehousing";
		heading = "MINI-WAREHOUSES AND STORAGE FACILITIES";
		}
	if(firstpart[1] == 03){
		firstpart[1] = "03_equipment";
		heading = "EQUIPMENT &amp; REPAIR SHOPS";
		}
	if(firstpart[1] == 04){
		firstpart[1] = "04_church";
		heading = "METAL CHURCH BUILDINGS";
		}
	if(firstpart[1] == 05){
		firstpart[1] = "05_recreation";
		heading = "RECREATIONAL AND OFFICE";
		}
	if(firstpart[1] == 06){
		firstpart[1] = "06_riding_arena";
		heading = "STEEL BUILDINGS FOR RIDING ARENAS AND BARNS";
		}
	if(firstpart[1] == 07){
		firstpart[1] = "07_agriculture";
		heading = "AGRICULTURAL STEEL BUILDINGS";
		}
	if(firstpart[1] == 08){
		firstpart[1] = "08_retail";
		heading = "RETAIL BUILDINGS";
		}
	if(firstpart[1] == 09){
		firstpart[1] = "09_hangars";
		heading = "AIRPLANE HANGARS AND STORAGE";
		}
	if(firstpart[1] == 10){
		firstpart[1] = "10_warehousing";
		heading = "WAREHOUSES AND STORAGE";
		}
	if(firstpart[1] == 11) {
		firstpart[1] = "11_government";
		heading = "GOVERNMENT AND SPECIAL APPLICATIONS";
	}
	/*if(firstpart[1] == 11){
		firstpart[1] = "warehouse-storage-buildings";
		heading = "WAREHOUSES &amp; STORAGE";
		}*/
	myPix = new Array("images/" + firstpart[1] + "/01.jpg","images/" + firstpart[1] + "/02.jpg","images/" + firstpart[1] + "/03.jpg","images/" + firstpart[1] + "/04.jpg","images/" + firstpart[1] + "/05.jpg","images/" + firstpart[1] + "/06.jpg","images/" + firstpart[1] + "/07.jpg","images/" + firstpart[1] + "/08.jpg","images/" + firstpart[1] + "/09.jpg")
	thisPic = 0//originally 0
	imgCt = myPix.length - 1

	function chgSlide(direction) {//a one or minus-one gets passed into direction from the link
		if (document.images) {
			thisPic = thisPic + direction
			if (thisPic > imgCt) {
				thisPic = 0//0
			}
			if (thisPic < 0) {//originally said (thisPic < 0)
				thisPic = imgCt
			}
			document.myPicture.src=myPix[thisPic]
		}
	}	
	function writeMe(){
	document.write("<img src=images/" + firstpart[1] + "/" + secondpart[1] + ".jpg id=myPicture name=myPicture>")
	}
	// 
