
	<!-- Hide script from old browsers
	//get values from querystring
	var args = new Object();
	var query = location.search.substring(1); 
	//alert(query)// get query string.
	var pairs = query.split(",");
	//alert("pairs=" + pairs);						//break at comma
	
	if(pairs == "") {
		//alert("nobody home");
		var hairs = new Array ("page=11","fn=01")				//break at &
		//alert("hairs=" + hairs);
		var firstpart = hairs[0].split("=");
		//alert("firstpart=" + firstpart);
		var secondpart = hairs[1].split("=");
		//alert("secondpart=" + secondpart);
	}
	else {
	//	alert("Yay, we got it")
	var hairs = query.split("&");				//break at &
	//alert("hairs=" + hairs);
	var firstpart = hairs[0].split("=");
	//alert("firstpart=" + firstpart);
	var secondpart = hairs[1].split("=");
	//alert("secondpart=" + secondpart);
	}
	
	var heading = "";
	var picnum = "";
	var hdimage = "";

	//alert(heading);	
	//this is the portion that the slideshow uses to show the images
	
	if(firstpart[1] == 11) {
		firstpart[1] = "farm-buildings";
		heading = "AGRICULTURAL &amp; FARM BUILDINGS";
		picnum = "02";
		hdimage = "hd-farm-buildings"
		//alert(heading);
		}
	if(firstpart[1] == 22){
		firstpart[1] = "aircraft-hangar";
		heading = "AIRCRAFT HANGAR";
		picnum = "03";
		hdimage = "hd-aircraft-hangars";
		}
	if(firstpart[1] == 33){
		firstpart[1] = "commercial-steel-buildings";
		heading = "COMMERCIAL STEEL BUILDINGS";
		picnum = "04";
		hdimage = "hd-commercial-buildings";
		}
	if(firstpart[1] == 44){
		firstpart[1] = "steel-garage-kits";
		heading = "STEEL GARAGE KITS";
		picnum = "05";
		hdimage = "hd-steel-garage-kits";
		}
	if(firstpart[1] == 55){
		firstpart[1] = "government-buildings";
		heading = "GOVERNMENT BUILDINGS";
		picnum = "06";
		hdimage = "hd-government-buildings";
		}
	if(firstpart[1] == 66){
		firstpart[1] = "industrial-buildings";
		heading = "INDUSTRIAL BUILDINGS";
		picnum = "07";
		hdimage = "hd-industrial-buildings";
		}
	if(firstpart[1] == 77){
		firstpart[1] = "military";
		heading = "MILITARY BUILDINGS";
		picnum = "08";
		hdimage = "hd-military-buildings";
		}
	if(firstpart[1] == 88){
		firstpart[1] = "metal-storage-sheds";
		heading = "METAL STORAGE SHEDS";
		picnum = "09";
		hdimage = "type-building-photo";
		}
	if(firstpart[1] == 99){
		firstpart[1] = "garage-workshop";
		heading = "GARAGE WORKSHOPS";
		picnum = "10";
		hdimage = "hd-workshops";
		}
	if (heading == null) {
			alert("nuttin");
			heading = "WELCOME TO CROWN INTERNATIONAL STEEL BUILDINGS";
	}
	else if (query == null) {
		//alert("OY"+heading)
		firstpart[1] = "farm-buildings";
		heading = "AGRICULTURAL &amp; FARM BUILDINGS";
		}
		
	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","images/" + firstpart[1] + "/10.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>")
	}
	function writePic() {
	document.write("<img src=images/" + hdimage + ".jpg alt=Steel Buildings id=photo />")
	}
	// End hiding script from old browsers -->