/*
 * Thickbox 3 - One Box To Rule Them All.
 * By Cody Lindley (http://www.codylindley.com)
 * Copyright (c) 2007 cody lindley
 * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
*/
		  
var tb_pathToImage = "/images/loadingAnimation.gif";

/*!!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/

//on page load call tb_init
$(document).ready(function(){   
	tb_init('a.thickbox, area.thickbox, input.thickbox');//pass where to apply thickbox
	imgLoader = new Image();// preload image
	imgLoader.src = tb_pathToImage;
});

//add thickbox to href & area elements that have a class of .thickbox
function tb_init(domChunk){
	$(domChunk).click(function(){
	var t = this.title || this.name || null;
	var a = this.href || this.alt;
	var g = this.rel || false;
	tb_show(t,a,g);
	this.blur();
	return false;
	});
}

function subwayPopup(strCaption, strImageSource, strAnchorID) {
	document.getElementById('anchor1').style.fontWeight = "normal";
	document.getElementById('anchor2').style.fontWeight = "normal";
	document.getElementById('anchor3').style.fontWeight = "normal";
	document.getElementById('anchor4').style.fontWeight = "normal";
	document.getElementById('anchor5').style.fontWeight = "normal";
	document.getElementById('anchor6').style.fontWeight = "normal";
	document.getElementById('anchor7').style.fontWeight = "normal";
	document.getElementById('anchor8').style.fontWeight = "normal";
	document.getElementById('anchor9').style.fontWeight = "normal";
	
	document.getElementById(strAnchorID).style.fontWeight = "bold";
	document.getElementById('spanTheCaption').innerHTML = strCaption; 
	document.getElementById('TB_Image').src = strImageSource;
}
function idCapPopup(strCaption, strImageSource, strAnchorID) {
	document.getElementById('anchor10').style.fontWeight = "normal";
	document.getElementById('anchor11').style.fontWeight = "normal";
	document.getElementById('anchor12').style.fontWeight = "normal";
	document.getElementById('anchor13').style.fontWeight = "normal";
	document.getElementById('anchor14').style.fontWeight = "normal";
	document.getElementById('anchor15').style.fontWeight = "normal";
	document.getElementById('anchor16').style.fontWeight = "normal";
	document.getElementById('anchor17').style.fontWeight = "normal";
	document.getElementById('anchor18').style.fontWeight = "normal";
	document.getElementById('anchor19').style.fontWeight = "normal";
	document.getElementById('anchor20').style.fontWeight = "normal";
	
	document.getElementById(strAnchorID).style.fontWeight = "bold";
	document.getElementById('spanTheCaption').innerHTML = strCaption; 
	document.getElementById('TB_Image').src = strImageSource;
}

function bridgessunshineGalleryPopup(strCaption, strImageSource, strAnchorID) {
	document.getElementById('bridges-sunshine1').style.fontWeight = "normal";
	document.getElementById('bridges-sunshine2').style.fontWeight = "normal";
	document.getElementById('bridges-sunshine3').style.fontWeight = "normal";
	
	document.getElementById(strAnchorID).style.fontWeight = "bold";
	document.getElementById('spanTheCaption').innerHTML = strCaption; 
	document.getElementById('TB_Image').src = strImageSource;
}

function bridgesdamesGalleryPopup(strCaption, strImageSource, strAnchorID) {
	document.getElementById('bridges-dames1').style.fontWeight = "normal";
	document.getElementById('bridges-dames2').style.fontWeight = "normal";
	document.getElementById('bridges-dames3').style.fontWeight = "normal";
	document.getElementById('bridges-dames4').style.fontWeight = "normal";
	
	document.getElementById(strAnchorID).style.fontWeight = "bold";
	document.getElementById('spanTheCaption').innerHTML = strCaption; 
	document.getElementById('TB_Image').src = strImageSource;
}

function marineswoceanGalleryPopup(strCaption, strImageSource, strAnchorID) {
	document.getElementById('marine-swocean1').style.fontWeight = "normal";
	document.getElementById('marine-swocean2').style.fontWeight = "normal";
	document.getElementById('marine-swocean3').style.fontWeight = "normal";
	document.getElementById('marine-swocean4').style.fontWeight = "normal";
	document.getElementById('marine-swocean5').style.fontWeight = "normal";
	document.getElementById('marine-swocean6').style.fontWeight = "normal";
	document.getElementById('marine-swocean7').style.fontWeight = "normal";
	document.getElementById('marine-swocean8').style.fontWeight = "normal";
	document.getElementById('marine-swocean9').style.fontWeight = "normal";
	document.getElementById('marine-swocean10').style.fontWeight = "normal";
	document.getElementById('marine-swocean11').style.fontWeight = "normal";
	
	document.getElementById(strAnchorID).style.fontWeight = "bold";
	document.getElementById('spanTheCaption').innerHTML = strCaption; 
	document.getElementById('TB_Image').src = strImageSource;
}

function nuclearninemileGalleryPopup(strCaption, strImageSource, strAnchorID) {
	document.getElementById('nuclear-ninemile1').style.fontWeight = "normal";
	document.getElementById('nuclear-ninemile2').style.fontWeight = "normal";
	document.getElementById('nuclear-ninemile3').style.fontWeight = "normal";
	document.getElementById('nuclear-ninemile4').style.fontWeight = "normal";
	document.getElementById('nuclear-ninemile5').style.fontWeight = "normal";
	document.getElementById('nuclear-ninemile6').style.fontWeight = "normal";
	document.getElementById('nuclear-ninemile7').style.fontWeight = "normal";
	document.getElementById('nuclear-ninemile8').style.fontWeight = "normal";
	document.getElementById('nuclear-ninemile9').style.fontWeight = "normal";
	document.getElementById('nuclear-ninemile10').style.fontWeight = "normal";
	document.getElementById('nuclear-ninemile11').style.fontWeight = "normal";
	document.getElementById('nuclear-ninemile12').style.fontWeight = "normal";
	
	document.getElementById(strAnchorID).style.fontWeight = "bold";
	document.getElementById('spanTheCaption').innerHTML = strCaption; 
	document.getElementById('TB_Image').src = strImageSource;
}
function nuclearoystercreekGalleryPopup(strCaption, strImageSource, strAnchorID) {
	document.getElementById('nuclear-oystercreek1').style.fontWeight = "normal";
	document.getElementById('nuclear-oystercreek2').style.fontWeight = "normal";
	document.getElementById('nuclear-oystercreek3').style.fontWeight = "normal";
	document.getElementById('nuclear-oystercreek4').style.fontWeight = "normal";
	document.getElementById('nuclear-oystercreek5').style.fontWeight = "normal";
	document.getElementById('nuclear-oystercreek6').style.fontWeight = "normal";
	document.getElementById('nuclear-oystercreek7').style.fontWeight = "normal";
	document.getElementById('nuclear-oystercreek8').style.fontWeight = "normal";
	document.getElementById('nuclear-oystercreek9').style.fontWeight = "normal";
	
	document.getElementById(strAnchorID).style.fontWeight = "bold";
	document.getElementById('spanTheCaption').innerHTML = strCaption; 
	document.getElementById('TB_Image').src = strImageSource;
}
function nuclearwppsGalleryPopup(strCaption, strImageSource, strAnchorID) {
	document.getElementById('nuclear-wpps1').style.fontWeight = "normal";
	document.getElementById('nuclear-wpps2').style.fontWeight = "normal";
	document.getElementById('nuclear-wpps3').style.fontWeight = "normal";
	document.getElementById('nuclear-wpps4').style.fontWeight = "normal";
	
	document.getElementById(strAnchorID).style.fontWeight = "bold";
	document.getElementById('spanTheCaption').innerHTML = strCaption; 
	document.getElementById('TB_Image').src = strImageSource;
}

function tunnelschunnelGalleryPopup(strCaption, strImageSource, strAnchorID) {
	document.getElementById('tunnels-chunnel1').style.fontWeight = "normal";
	document.getElementById('tunnels-chunnel2').style.fontWeight = "normal";
	document.getElementById('tunnels-chunnel3').style.fontWeight = "normal";
	document.getElementById('tunnels-chunnel4').style.fontWeight = "normal";
	document.getElementById('tunnels-chunnel5').style.fontWeight = "normal";
	document.getElementById('tunnels-chunnel6').style.fontWeight = "normal";
	document.getElementById('tunnels-chunnel7').style.fontWeight = "normal";
	document.getElementById('tunnels-chunnel8').style.fontWeight = "normal";
	
	document.getElementById(strAnchorID).style.fontWeight = "bold";
	document.getElementById('spanTheCaption').innerHTML = strCaption; 
	document.getElementById('TB_Image').src = strImageSource;
}
function tunnelsnewyorkGalleryPopup(strCaption, strImageSource, strAnchorID) {
	document.getElementById('tunnels-newyork1').style.fontWeight = "normal";
	document.getElementById('tunnels-newyork2').style.fontWeight = "normal";
	document.getElementById('tunnels-newyork3').style.fontWeight = "normal";
	document.getElementById('tunnels-newyork4').style.fontWeight = "normal";
	document.getElementById('tunnels-newyork5').style.fontWeight = "normal";
	document.getElementById('tunnels-newyork6').style.fontWeight = "normal";
	
	document.getElementById(strAnchorID).style.fontWeight = "bold";
	document.getElementById('spanTheCaption').innerHTML = strCaption; 
	document.getElementById('TB_Image').src = strImageSource;
}
function tunnelsjapanGalleryPopup(strCaption, strImageSource, strAnchorID) {
	document.getElementById('tunnels-japan1').style.fontWeight = "normal";
	document.getElementById('tunnels-japan2').style.fontWeight = "normal";
	document.getElementById('tunnels-japan3').style.fontWeight = "normal";
	
	document.getElementById(strAnchorID).style.fontWeight = "bold";
	document.getElementById('spanTheCaption').innerHTML = strCaption; 
	document.getElementById('TB_Image').src = strImageSource;
}
function tunnelstexasGalleryPopup(strCaption, strImageSource, strAnchorID) {
	document.getElementById('tunnels-texas1').style.fontWeight = "normal";
	document.getElementById('tunnels-texas2').style.fontWeight = "normal";
	document.getElementById('tunnels-texas3').style.fontWeight = "normal";
	
	document.getElementById(strAnchorID).style.fontWeight = "bold";
	document.getElementById('spanTheCaption').innerHTML = strCaption; 
	document.getElementById('TB_Image').src = strImageSource;
}
function tunnelsbartGalleryPopup(strCaption, strImageSource, strAnchorID) {
	document.getElementById('tunnels-bart1').style.fontWeight = "normal";
	document.getElementById('tunnels-bart2').style.fontWeight = "normal";
	
	document.getElementById(strAnchorID).style.fontWeight = "bold";
	document.getElementById('spanTheCaption').innerHTML = strCaption; 
	document.getElementById('TB_Image').src = strImageSource;
}
function tunnelsistanbulGalleryPopup(strCaption, strImageSource, strAnchorID) {
	document.getElementById('tunnels-istanbul1').style.fontWeight = "normal";
	document.getElementById('tunnels-istanbul2').style.fontWeight = "normal";
	document.getElementById('tunnels-istanbul3').style.fontWeight = "normal";
	document.getElementById('tunnels-istanbul4').style.fontWeight = "normal";
	document.getElementById('tunnels-istanbul5').style.fontWeight = "normal";
	document.getElementById('tunnels-istanbul6').style.fontWeight = "normal";
	document.getElementById('tunnels-istanbul7').style.fontWeight = "normal";
	document.getElementById('tunnels-istanbul8').style.fontWeight = "normal";
	document.getElementById('tunnels-istanbul9').style.fontWeight = "normal";
	
	document.getElementById(strAnchorID).style.fontWeight = "bold";
	document.getElementById('spanTheCaption').innerHTML = strCaption; 
	document.getElementById('TB_Image').src = strImageSource;
}

function utilitieskhalidGalleryPopup(strCaption, strImageSource, strAnchorID) {
	document.getElementById('utilities-khalid1').style.fontWeight = "normal";
	document.getElementById('utilities-khalid2').style.fontWeight = "normal";
	document.getElementById('utilities-khalid3').style.fontWeight = "normal";
	document.getElementById('utilities-khalid4').style.fontWeight = "normal";
	document.getElementById('utilities-khalid5').style.fontWeight = "normal";
	document.getElementById('utilities-khalid6').style.fontWeight = "normal";
	document.getElementById('utilities-khalid7').style.fontWeight = "normal";
	document.getElementById('utilities-khalid8').style.fontWeight = "normal";
	document.getElementById('utilities-khalid9').style.fontWeight = "normal";
	document.getElementById('utilities-khalid10').style.fontWeight = "normal";
	document.getElementById('utilities-khalid11').style.fontWeight = "normal";
	
	document.getElementById(strAnchorID).style.fontWeight = "bold";
	document.getElementById('spanTheCaption').innerHTML = strCaption; 
	document.getElementById('TB_Image').src = strImageSource;
}
function utilitiessylmarGalleryPopup(strCaption, strImageSource, strAnchorID) {
	document.getElementById('utilities-sylmar1').style.fontWeight = "normal";
	document.getElementById('utilities-sylmar2').style.fontWeight = "normal";
	document.getElementById('utilities-sylmar3').style.fontWeight = "normal";
	document.getElementById('utilities-sylmar4').style.fontWeight = "normal";
	
	document.getElementById(strAnchorID).style.fontWeight = "bold";
	document.getElementById('spanTheCaption').innerHTML = strCaption; 
	document.getElementById('TB_Image').src = strImageSource;
}
function utilitiesidahowaterGalleryPopup(strCaption, strImageSource, strAnchorID) {
	document.getElementById('utilities-idahowater1').style.fontWeight = "normal";
	document.getElementById('utilities-idahowater2').style.fontWeight = "normal";
	document.getElementById('utilities-idahowater3').style.fontWeight = "normal";
	document.getElementById('utilities-idahowater4').style.fontWeight = "normal";
	
	document.getElementById(strAnchorID).style.fontWeight = "bold";
	document.getElementById('spanTheCaption').innerHTML = strCaption; 
	document.getElementById('TB_Image').src = strImageSource;
}
function utilitiesjamaicanGalleryPopup(strCaption, strImageSource, strAnchorID) {
	document.getElementById('utilities-jamaican1').style.fontWeight = "normal";
	
	document.getElementById(strAnchorID).style.fontWeight = "bold";
	document.getElementById('spanTheCaption').innerHTML = strCaption; 
	document.getElementById('TB_Image').src = strImageSource;
}
function utilitiescerrejonGalleryPopup(strCaption, strImageSource, strAnchorID) {
	document.getElementById('utilities-cerrejon1').style.fontWeight = "normal";
	document.getElementById('utilities-cerrejon2').style.fontWeight = "normal";
	
	document.getElementById(strAnchorID).style.fontWeight = "bold";
	document.getElementById('spanTheCaption').innerHTML = strCaption; 
	document.getElementById('TB_Image').src = strImageSource;
}
function utilitiespanamaGalleryPopup(strCaption, strImageSource, strAnchorID) {
	document.getElementById('utilities-panama1').style.fontWeight = "normal";
	
	document.getElementById(strAnchorID).style.fontWeight = "bold";
	document.getElementById('spanTheCaption').innerHTML = strCaption; 
	document.getElementById('TB_Image').src = strImageSource;
}
function hydromicaGalleryPopup(strCaption, strImageSource, strAnchorID) {
	document.getElementById('hydro-mica1').style.fontWeight = "normal";
	document.getElementById('hydro-mica2').style.fontWeight = "normal";
	document.getElementById('hydro-mica3').style.fontWeight = "normal";
	document.getElementById('hydro-mica4').style.fontWeight = "normal";
	document.getElementById('hydro-mica5').style.fontWeight = "normal";
	document.getElementById('hydro-mica6').style.fontWeight = "normal";
	document.getElementById('hydro-mica7').style.fontWeight = "normal";
	
	document.getElementById(strAnchorID).style.fontWeight = "bold";
	document.getElementById('spanTheCaption').innerHTML = strCaption; 
	document.getElementById('TB_Image').src = strImageSource;
}
function hydrookGalleryPopup(strCaption, strImageSource, strAnchorID) {
	document.getElementById('hydro-ok1').style.fontWeight = "normal";
	document.getElementById('hydro-ok2').style.fontWeight = "normal";
	document.getElementById('hydro-ok3').style.fontWeight = "normal";
	document.getElementById('hydro-ok4').style.fontWeight = "normal";
	document.getElementById('hydro-ok5').style.fontWeight = "normal";
	document.getElementById('hydro-ok6').style.fontWeight = "normal";
	
	document.getElementById(strAnchorID).style.fontWeight = "bold";
	document.getElementById('spanTheCaption').innerHTML = strCaption; 
	document.getElementById('TB_Image').src = strImageSource;
}
function hydroluddingtonGalleryPopup(strCaption, strImageSource, strAnchorID) {
	document.getElementById('hydro-luddington1').style.fontWeight = "normal";
	document.getElementById('hydro-luddington2').style.fontWeight = "normal";
	
	document.getElementById(strAnchorID).style.fontWeight = "bold";
	document.getElementById('spanTheCaption').innerHTML = strCaption; 
	document.getElementById('TB_Image').src = strImageSource;
}

function tb_show(caption, url, imageGroup) {//function called when the user clicks on a thickbox link

	try {
		if (typeof document.body.style.maxHeight === "undefined") {//if IE 6
			$("body","html").css({height: "100%", width: "100%"});
			$("html").css("overflow","hidden");
			if (document.getElementById("TB_HideSelect") === null) {//iframe to hide select elements in ie6
				$("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");
				$("#TB_overlay").click(tb_remove);
			}
		}else{//all others
			if(document.getElementById("TB_overlay") === null){
				$("body").append("<div id='TB_overlay'></div><div id='TB_window'>");
				$("#TB_overlay").click(tb_remove);
			}
		}
		
		if(caption===null){caption="";}
		$("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");//add loader to the page
		$('#TB_load').show();//show loader
		
		var baseURL;
	   if(url.indexOf("?")!==-1){ //ff there is a query string involved
			baseURL = url.substr(0, url.indexOf("?"));
	   }else{ 
	   		baseURL = url;
	   }
	   
	   var urlString = /\.jpg|\.jpeg|\.png|\.gif|\.bmp/g;
	   var urlType = baseURL.toLowerCase().match(urlString);

		if(urlType == '.jpg' || urlType == '.jpeg' || urlType == '.png' || urlType == '.gif' || urlType == '.bmp'){//code to show images
				
			TB_PrevCaption = "";
			TB_PrevURL = "";
			TB_PrevHTML = "";
			TB_NextCaption = "";
			TB_NextURL = "";
			TB_NextHTML = "";
			TB_imageCount = "";
			TB_FoundURL = false;
			if(imageGroup){
				TB_TempArray = $("a[@rel="+imageGroup+"]").get();
				for (TB_Counter = 0; ((TB_Counter < TB_TempArray.length) && (TB_NextHTML === "")); TB_Counter++) {
					var urlTypeTemp = TB_TempArray[TB_Counter].href.toLowerCase().match(urlString);
					if (!(TB_TempArray[TB_Counter].href == url)) {						
						if (TB_FoundURL) {
							TB_NextCaption = TB_TempArray[TB_Counter].title;
							TB_NextURL = TB_TempArray[TB_Counter].href;
							TB_NextHTML = "<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;</a></span>";
						} else {
							TB_PrevCaption = TB_TempArray[TB_Counter].title;
							TB_PrevURL = TB_TempArray[TB_Counter].href;
							TB_PrevHTML = "<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev</a></span>";
						}
					} else {
						TB_FoundURL = true;
						TB_imageCount = "Image " + (TB_Counter + 1) +" of "+ (TB_TempArray.length);	
					}
				}
				if (imageGroup == "gallery-subway") {
					TB_imageCount = "Image:&nbsp;&nbsp;<a id=\"anchor1\" href=\"#\" onclick=\"subwayPopup('Number 7 Subway Line Extension', '/images/no7subway_20.jpg', 'anchor1');\" title=\"Number 7 Subway Line Extension\" class=\"thickbox\" style=\"font-weight: bold;\" rel=\"gallery-subway\">1</a>&nbsp;&nbsp;<a id=\"anchor2\" href=\"#\" onclick=\"subwayPopup('Jacob Javits Convention Center Expansion', '/images/no7subway_12.jpg', 'anchor2');\" title=\"Jacob Javits Convention Center Expansion\" class=\"thickbox\" rel=\"gallery-subway\">2</a>&nbsp;&nbsp;<a id=\"anchor3\" href=\"#\" onclick=\"subwayPopup('Proposed Multi-Use Facility', '/images/no7subway_13.jpg', 'anchor3');\" title=\"Proposed Multi-Use Facility\" class=\"thickbox\" rel=\"gallery-subway\">3</a>&nbsp;&nbsp;<a id=\"anchor4\" href=\"#\" onclick=\"subwayPopup('34th Street Station: Plaza Entrance', '/images/no7subway_43.jpg', 'anchor4');\" title=\"34th Street Station: Plaza Entrance\" class=\"thickbox\" rel=\"gallery-subway\">4</a>&nbsp;&nbsp;<a id=\"anchor5\" href=\"#\" onclick=\"subwayPopup('34th Street Station: Canopy Entrance - Upper Mezzanine', '/images/no7subway_46.jpg', 'anchor5');\" title=\"34th Street Station: Canopy Entrance - Upper Mezzanine\" class=\"thickbox\" rel=\"gallery-subway\">5</a>&nbsp;&nbsp;<a id=\"anchor6\" href=\"#\" onclick=\"subwayPopup('34th Street Station: Cavern Rendering', '/images/no7subway_47.jpg', 'anchor6');\" title=\"34th Street Station: Cavern Rendering\" class=\"thickbox\" rel=\"gallery-subway\">6</a>&nbsp;&nbsp;<a id=\"anchor7\" href=\"#\" onclick=\"subwayPopup('Tenth Avenue Station: Fare Control Area - 42nd Street Entrance', '/images/no7subway_52.jpg', 'anchor7');\" title=\"Tenth Avenue Station: Fare Control Area - 42nd Street Entrance\" class=\"thickbox\" rel=\"gallery-subway\">7</a>&nbsp;&nbsp;<a id=\"anchor8\" href=\"#\" onclick=\"subwayPopup('Tenth Avenue Station Rendering', '/images/no7subway_51.jpg', 'anchor8');\" title=\"Tenth Avenue Station Rendering\" class=\"thickbox\" rel=\"gallery-subway\">8</a>&nbsp;&nbsp;<a id=\"anchor9\" href=\"#\" onclick=\"subwayPopup('Existing IND Eighth Avenue Station', '/images/no7subway_40.jpg', 'anchor9');\" title=\"Existing IND Eighth Avenue Station\" class=\"thickbox\" rel=\"gallery-subway\">9</a>";
				}
				else if (imageGroup == "gallery-idcapitol") {
					TB_imageCount = "Image:&nbsp;&nbsp;<a id=\"anchor10\" href=\"#\" onclick=\"idCapPopup('Capitol Workers - Relocation Street Map', '/images/capitol-map.jpg', 'anchor10');\" title=\"Capitol Workers - Relocation Street Map\" class=\"thickbox\" style=\"font-weight: bold;\" rel=\"gallery-idcapitol\">1</a>&nbsp;&nbsp;<a id=\"anchor11\" href=\"#\" onclick=\"idCapPopup('Idaho State Capitol', '/images/capitol_from_the_gate.jpg', 'anchor11');\" title=\"Idaho State Capitol\" class=\"thickbox\" rel=\"gallery-idcapitol\">2</a>&nbsp;&nbsp;<a id=\"anchor12\" href=\"#\" onclick=\"idCapPopup('Capitol Dome', '/images/capitol_dome.jpg', 'anchor12');\" title=\"Capitol Dome\" class=\"thickbox\" rel=\"gallery-idcapitol\">3</a>&nbsp;&nbsp;<a id=\"anchor15\" href=\"#\" onclick=\"idCapPopup('View from the Top of the Capitol Dome', '/images/view_from_dome.jpg', 'anchor15');\" title=\"View from the Top of the Capitol Dome\" class=\"thickbox\" rel=\"gallery-idcapitol\">4</a>&nbsp;&nbsp;<a id=\"anchor16\" href=\"#\" onclick=\"idCapPopup('Ed Law In the Capitol Dome', '/images/ed_law_dome.jpg', 'anchor16');\" title=\"Ed Law In the Capitol Dome\" class=\"thickbox\" rel=\"gallery-idcapitol\">5</a>&nbsp;&nbsp;<a id=\"anchor17\" href=\"#\" onclick=\"idCapPopup('Moving the George Washington Statue', '/images/moving-george-washington.jpg', 'anchor17');\" title=\"Moving the George Washington Statue\" class=\"thickbox\" rel=\"gallery-idcapitol\">6</a>&nbsp;&nbsp;<a id=\"anchor18\" href=\"#\" onclick=\"idCapPopup('Removing Asbestos in the Old Courthouse', '/images/removing-asbestos-in-old-courthouse.jpg', 'anchor18');\" title=\"Removing Asbestos in the Old Courthouse\" class=\"thickbox\" rel=\"gallery-idcapitol\">7</a>&nbsp;&nbsp;<a id=\"anchor19\" href=\"#\" onclick=\"idCapPopup('Moving Underground Conduit', '/images/underground-conduit-move-dewatering-drill.jpg', 'anchor19');\" title=\"Moving Underground Conduit\" class=\"thickbox\" rel=\"gallery-idcapitol\">8</a>&nbsp;&nbsp;<a id=\"anchor13\" href=\"#\" onclick=\"idCapPopup('Capitol Atrium - Watercolor', '/images/atrium_watercolor.jpg', 'anchor13');\" title=\"Capitol Atrium - Watercolor\" class=\"thickbox\" rel=\"gallery-idcapitol\">9</a>&nbsp;&nbsp;<a id=\"anchor14\" href=\"#\" onclick=\"idCapPopup('Capitol Plaza - Watercolor', '/images/us_flag_and_plaza_watercolor.jpg', 'anchor14');\" title=\"Capitol Plaza - Watercolor\" class=\"thickbox\" rel=\"gallery-idcapitol\">10</a>&nbsp;&nbsp;<a id=\"anchor20\" href=\"#\" onclick=\"idCapPopup('Idaho State Capitol - Southeast Corner', '/images/capitol_southeast_corner.jpg', 'anchor20');\" title=\"Idaho State Capitol - Southeast Corner\" class=\"thickbox\" rel=\"gallery-idcapitol\">11</a>";
				}
				else if (imageGroup == "gallery-bridges-sunshine") {
					TB_imageCount = "Image:&nbsp;&nbsp;<a id=\"bridges-sunshine1\" href=\"#\" onclick=\"bridgessunshineGalleryPopup('Arial view of Sunshine Skyway Bridge.', '/images/bridges-sunshine-01.jpg', 'bridges-sunshine1');\" title=\"Arial view of Sunshine Skyway Bridge.\" class=\"thickbox\" style=\"font-weight: bold;\" rel=\"gallery-bridges-sunshine\">1</a>&nbsp;&nbsp;<a id=\"bridges-sunshine2\" href=\"#\" onclick=\"bridgessunshineGalleryPopup('Sunshine Skyway Bridge.', '/images/bridges-sunshine-02.jpg', 'bridges-sunshine2');\" title=\"Sunshine Skyway Bridge.\" class=\"thickbox\" rel=\"gallery-bridges-sunshine\">2</a>&nbsp;&nbsp;<a id=\"bridges-sunshine3\" href=\"#\" onclick=\"bridgessunshineGalleryPopup('Arial view of Sunshine Skyway Bridge.', '/images/bridges-sunshine-03.jpg', 'bridges-sunshine3');\" title=\"Arial view of Sunshine Skyway Bridge.\" class=\"thickbox\" rel=\"gallery-bridges-sunshine\">3</a>";
				}
				else if (imageGroup == "gallery-bridges-dames") {
					TB_imageCount = "Image:&nbsp;&nbsp;<a id=\"bridges-dames1\" href=\"#\" onclick=\"bridgesdamesGalleryPopup('Arial view of Dames Point Bridge.', '/images/bridges-dames-01.jpg', 'bridges-dames1');\" title=\"Arial view of Dames Point Bridge.\" class=\"thickbox\" style=\"font-weight: bold;\" rel=\"gallery-bridges-dames\">1</a>&nbsp;&nbsp;<a id=\"bridges-dames2\" href=\"#\" onclick=\"bridgesdamesGalleryPopup('Dames Point Bridge.', '/images/bridges-dames-02.jpg', 'bridges-dames2');\" title=\"Dames Point Bridge.\" class=\"thickbox\" rel=\"gallery-bridges-dames\">2</a>&nbsp;&nbsp;<a id=\"bridges-dames3\" href=\"#\" onclick=\"bridgesdamesGalleryPopup('Dames Point Bridge.', '/images/bridges-dames-03.jpg', 'bridges-dames3');\" title=\"Dames Point Bridge.\" class=\"thickbox\" rel=\"gallery-bridges-dames\">3</a>&nbsp;&nbsp;<a id=\"bridges-dames4\" href=\"#\" onclick=\"bridgesdamesGalleryPopup('Dames Point Bridge.', '/images/bridges-dames-04.jpg', 'bridges-dames4');\" title=\"Dames Point Bridge.\" class=\"thickbox\" rel=\"gallery-bridges-dames\">4</a>";
				}
				else if (imageGroup == "gallery-marine-swocean") {
					TB_imageCount = "Image:&nbsp;&nbsp;<a id=\"marine-swocean1\" href=\"#\" onclick=\"marineswoceanGalleryPopup('Powerful ocean-going tugboat used in San Francisco outfall.', '/images/marine-swocean-01.jpg', 'marine-swocean1');\" title=\"Powerful ocean-going tugboat used in San Francisco outfall.\" class=\"thickbox\" style=\"font-weight: bold;\" rel=\"gallery-marine-swocean\">1</a>&nbsp;&nbsp;<a id=\"marine-swocean2\" href=\"#\" onclick=\"marineswoceanGalleryPopup('A $25 million purpose built barge.', '/images/marine-swocean-02.jpg', 'marine-swocean2');\" title=\"A $25 million purpose built barge.\" class=\"thickbox\" rel=\"gallery-marine-swocean\">2</a>&nbsp;&nbsp;<a id=\"marine-swocean3\" href=\"#\" onclick=\"marineswoceanGalleryPopup('Excavation for the pipeline near the shoreline.', '/images/marine-swocean-03.jpg', 'marine-swocean3');\" title=\"Excavation for the pipeline near the shoreline.\" class=\"thickbox\" rel=\"gallery-marine-swocean\">3</a>&nbsp;&nbsp;<a id=\"marine-swocean4\" href=\"#\" onclick=\"marineswoceanGalleryPopup('Men being transported from the barge to the trestles.', '/images/marine-swocean-04.jpg', 'marine-swocean4');\" title=\"Men being transported from the barge to the trestles.\" class=\"thickbox\" rel=\"gallery-marine-swocean\">4</a>&nbsp;&nbsp;<a id=\"marine-swocean5\" href=\"#\" onclick=\"marineswoceanGalleryPopup('Transfer in progress.', '/images/marine-swocean-06.jpg', 'marine-swocean5');\" title=\"Transfer in progress. \" class=\"thickbox\" rel=\"gallery-marine-swocean\">5</a>&nbsp;&nbsp;<a id=\"marine-swocean6\" href=\"#\" onclick=\"marineswoceanGalleryPopup('Men landing on the trestle.', '/images/marine-swocean-05.jpg', 'marine-swocean6');\" title=\"Men landing on the trestle.\" class=\"thickbox\" rel=\"gallery-marine-swocean\">6</a>&nbsp;&nbsp;<a id=\"marine-swocean7\" href=\"#\" onclick=\"marineswoceanGalleryPopup('Construction change from trestle to barge.', '/images/marine-swocean-07.jpg', 'marine-swocean7');\" title=\"Construction change from trestle to barge.\" class=\"thickbox\" rel=\"gallery-marine-swocean\">7</a>&nbsp;&nbsp;<a id=\"marine-swocean8\" href=\"#\" onclick=\"marineswoceanGalleryPopup('Pipe being placed in the sea bottom by a device used to lay one pipe joint to another.', '/images/marine-swocean-08.jpg', 'marine-swocean8');\" title=\"Pipe being placed in the sea bottom by a device used to lay one pipe joint to another.\" class=\"thickbox\" rel=\"gallery-marine-swocean\">8</a>&nbsp;&nbsp;<a id=\"marine-swocean9\" href=\"#\" onclick=\"marineswoceanGalleryPopup('Laying device getting set to be lowered into dredged trench.', '/images/marine-swocean-09.jpg', 'marine-swocean9');\" title=\"Laying device getting set to be lowered into dredged trench.\" class=\"thickbox\" rel=\"gallery-marine-swocean\">9</a>&nbsp;&nbsp;<a id=\"marine-swocean10\" href=\"#\" onclick=\"marineswoceanGalleryPopup('Laying device getting set to be lowered into dredged trench.', '/images/marine-swocean-10.jpg', 'marine-swocean10');\" title=\"Laying device getting set to be lowered into dredged trench.\" class=\"thickbox\" rel=\"gallery-marine-swocean\">10</a>&nbsp;&nbsp;<a id=\"marine-swocean11\" href=\"#\" onclick=\"marineswoceanGalleryPopup('Storm that damaged the trestles resulting in severe damage to the barge.', '/images/marine-swocean-11.jpg', 'marine-swocean11');\" title=\"Storm that damaged the trestles resulting in severe damage to the barge.\" class=\"thickbox\" rel=\"gallery-marine-swocean\">11</a>";
				}
				else if (imageGroup == "gallery-nuclear-ninemile") {
					TB_imageCount = "Image:&nbsp;&nbsp;<a id=\"nuclear-ninemile1\" href=\"#\" onclick=\"nuclearninemileGalleryPopup('Nine Mile Point #2. Turbine pedestal constructed with a 600-megawatt nuclear power plant.', '/images/nuclear-ninemile-01.jpg', 'nuclear-ninemile1');\" title=\"Nine Mile Point #2. Turbine pedestal constructed with a 600-megawatt nuclear power plant.\" class=\"thickbox\" style=\"font-weight: bold;\" rel=\"gallery-nuclear-ninemile\">1</a>&nbsp;&nbsp;<a id=\"nuclear-ninemile2\" href=\"#\" onclick=\"nuclearninemileGalleryPopup('Nine Mile Point #2. Reactor foundation and reinforcement for the containment structure.', '/images/nuclear-ninemile-02.jpg', 'nuclear-ninemile2');\" title=\"Nine Mile Point #2. Reactor foundation and reinforcement for the containment structure.\" class=\"thickbox\" rel=\"gallery-nuclear-ninemile\">2</a>&nbsp;&nbsp;<a id=\"nuclear-ninemile3\" href=\"#\" onclick=\"nuclearninemileGalleryPopup('Nine Mile Point #1. View of the foundations.', '/images/nuclear-ninemile-03.jpg', 'nuclear-ninemile3');\" title=\"Nine Mile Point #1. View of the foundations.\" class=\"thickbox\" rel=\"gallery-nuclear-ninemile\">3</a>&nbsp;&nbsp;<a id=\"nuclear-ninemile4\" href=\"#\" onclick=\"nuclearninemileGalleryPopup('Nine Mile Point #2. Turbine pedestal constructed with a 600-megawatt nuclear power plant.', '/images/nuclear-ninemile-04.jpg', 'nuclear-ninemile4');\" title=\"Nine Mile Point #2. Turbine pedestal constructed with a 600-megawatt nuclear power plant.\" class=\"thickbox\" rel=\"gallery-nuclear-ninemile\">4</a>&nbsp;&nbsp;<a id=\"nuclear-ninemile5\" href=\"#\" onclick=\"nuclearninemileGalleryPopup('Nine Mile Point #2. Utility tunnel foundation.', '/images/nuclear-ninemile-05.jpg', 'nuclear-ninemile5');\" title=\"Nine Mile Point #2. Utility tunnel foundation.\" class=\"thickbox\" rel=\"gallery-nuclear-ninemile\">5</a>&nbsp;&nbsp;<a id=\"nuclear-ninemile6\" href=\"#\" onclick=\"nuclearninemileGalleryPopup('Nine Mile Point #1. Foundation excavation.', '/images/nuclear-ninemile-06.jpg', 'nuclear-ninemile6');\" title=\"Nine Mile Point #1. Foundation excavation.\" class=\"thickbox\" rel=\"gallery-nuclear-ninemile\">6</a>&nbsp;&nbsp;<a id=\"nuclear-ninemile7\" href=\"#\" onclick=\"nuclearninemileGalleryPopup('Nine Mile Point #1. Reactor foundation and reinforcement for the containment structure.', '/images/nuclear-ninemile-07.jpg', 'nuclear-ninemile7');\" title=\"Nine Mile Point #1. Reactor foundation and reinforcement for the containment structure.\" class=\"thickbox\" rel=\"gallery-nuclear-ninemile\">7</a>&nbsp;&nbsp;<a id=\"nuclear-ninemile8\" href=\"#\" onclick=\"nuclearninemileGalleryPopup('Nine Mile Point #1. Progress on the foundation.', '/images/nuclear-ninemile-08.jpg', 'nuclear-ninemile8');\" title=\"Nine Mile Point #1. Progress on the foundation.\" class=\"thickbox\" rel=\"gallery-nuclear-ninemile\">8</a>&nbsp;&nbsp;<a id=\"nuclear-ninemile9\" href=\"#\" onclick=\"nuclearninemileGalleryPopup('Cooling tower and containment for Nine Mile Point #1.', '/images/nuclear-ninemile-09.jpg', 'nuclear-ninemile9');\" title=\"Cooling tower and containment for Nine Mile Point #1.\" class=\"thickbox\" rel=\"gallery-nuclear-ninemile\">9</a>&nbsp;&nbsp;<a id=\"nuclear-ninemile10\" href=\"#\" onclick=\"nuclearninemileGalleryPopup('Advanced reactor foundation and containment vessel.', '/images/nuclear-ninemile-10.jpg', 'nuclear-ninemile10');\" title=\"Advanced reactor foundation and containment vessel.\" class=\"thickbox\" rel=\"gallery-nuclear-ninemile\">10</a>&nbsp;&nbsp;<a id=\"nuclear-ninemile11\" href=\"#\" onclick=\"nuclearninemileGalleryPopup('Arial view of Nine Mile Point #2 and completed James A. Fitzpatrick nuclear plant.', '/images/nuclear-ninemile-11.jpg', 'nuclear-ninemile11');\" title=\"Arial view of Nine Mile Point #2 and completed James A. Fitzpatrick nuclear plant.\" class=\"thickbox\" rel=\"gallery-nuclear-ninemile\">11</a>&nbsp;&nbsp;<a id=\"nuclear-ninemile12\" href=\"#\" onclick=\"nuclearninemileGalleryPopup('Nine Mile Point #2. View of the foundations in progress.', '/images/nuclear-ninemile-12.jpg', 'nuclear-ninemile12');\" title=\"Nine Mile Point #2. View of the foundations in progress.\" class=\"thickbox\" rel=\"gallery-nuclear-ninemile\">12</a>";
				}
				else if (imageGroup == "gallery-nuclear-oystercreek") {
					TB_imageCount = "Image:&nbsp;&nbsp;<a id=\"nuclear-oystercreek1\" href=\"#\" onclick=\"nuclearoystercreekGalleryPopup('Reinforced steel material being set for Oyster Creek Nuclear Power Plant.', '/images/nuclear-oystercreek-01.jpg', 'nuclear-oystercreek1');\" title=\"Reinforced steel material being set for Oyster Creek Nuclear Power Plant.\" class=\"thickbox\" style=\"font-weight: bold;\" rel=\"gallery-nuclear-oystercreek\">1</a>&nbsp;&nbsp;<a id=\"nuclear-oystercreek2\" href=\"#\" onclick=\"nuclearoystercreekGalleryPopup('Alternate view. Reinforced steel being set for the foundation.', '/images/nuclear-oystercreek-02.jpg', 'nuclear-oystercreek2');\" title=\"Alternate view. Reinforced steel being set for the foundation.\" class=\"thickbox\" rel=\"gallery-nuclear-oystercreek\">2</a>&nbsp;&nbsp;<a id=\"nuclear-oystercreek3\" href=\"#\" onclick=\"nuclearoystercreekGalleryPopup('View of the preparation of the foundation of the Oyster Creek Power Plant.', '/images/nuclear-oystercreek-03.jpg', 'nuclear-oystercreek3');\" title=\"View of the preparation of the foundation of the Oyster Creek Power Plant.\" class=\"thickbox\" rel=\"gallery-nuclear-oystercreek\">3</a>&nbsp;&nbsp;<a id=\"nuclear-oystercreek4\" href=\"#\" onclick=\"nuclearoystercreekGalleryPopup('View of the preparation of the foundation.', '/images/nuclear-oystercreek-04.jpg', 'nuclear-oystercreek4');\" title=\"View of the preparation of the foundation.\" class=\"thickbox\" rel=\"gallery-nuclear-oystercreek\">4</a>&nbsp;&nbsp;<a id=\"nuclear-oystercreek5\" href=\"#\" onclick=\"nuclearoystercreekGalleryPopup('View of the preparation of the foundation.', '/images/nuclear-oystercreek-05.jpg', 'nuclear-oystercreek5');\" title=\"View of the preparation of the foundation.\" class=\"thickbox\" rel=\"gallery-nuclear-oystercreek\">5</a>&nbsp;&nbsp;<a id=\"nuclear-oystercreek6\" href=\"#\" onclick=\"nuclearoystercreekGalleryPopup('200-ton crane that serviced the construction of the Oyster Creek Power Plant construction.', '/images/nuclear-oystercreek-06.jpg', 'nuclear-oystercreek6');\" title=\"200-ton crane that serviced the construction of the Oyster Creek Power Plant construction.\" class=\"thickbox\" rel=\"gallery-nuclear-oystercreek\">6</a>&nbsp;&nbsp;<a id=\"nuclear-oystercreek7\" href=\"#\" onclick=\"nuclearoystercreekGalleryPopup('200-ton crane that serviced the construction.', '/images/nuclear-oystercreek-07.jpg', 'nuclear-oystercreek7');\" title=\"200-ton crane that serviced the construction.\" class=\"thickbox\" rel=\"gallery-nuclear-oystercreek\">7</a>&nbsp;&nbsp;<a id=\"nuclear-oystercreek8\" href=\"#\" onclick=\"nuclearoystercreekGalleryPopup('200-ton crane setting reinforced steel for foundation of the Oyster Creek Power Plant.', '/images/nuclear-oystercreek-08.jpg', 'nuclear-oystercreek8');\" title=\"200-ton crane setting reinforced steel for foundation of the Oyster Creek Power Plant.\" class=\"thickbox\" rel=\"gallery-nuclear-oystercreek\">8</a>&nbsp;&nbsp;<a id=\"nuclear-oystercreek9\" href=\"#\" onclick=\"nuclearoystercreekGalleryPopup('Arial view of the Oyster Creek Nuclear Power Plant.', '/images/oyster-creek-2003-npp.jpg', 'nuclear-oystercreek9');\" title=\"Arial view of the Oyster Creek Nuclear Power Plant.\" class=\"thickbox\" rel=\"gallery-nuclear-oystercreek\">9</a>";
				}
				else if (imageGroup == "gallery-nuclear-wpps") {
					TB_imageCount = "Image:&nbsp;&nbsp;<a id=\"nuclear-wpps1\" href=\"#\" onclick=\"nuclearwppsGalleryPopup('Cooling tower for Washington Public Power System.', '/images/nuclear-wpps-01.jpg', 'nuclear-wpps1');\" title=\"Cooling tower for Washington Public Power System.\" class=\"thickbox\" style=\"font-weight: bold;\" rel=\"gallery-nuclear-wpps\">1</a>&nbsp;&nbsp;<a id=\"nuclear-wpps2\" href=\"#\" onclick=\"nuclearwppsGalleryPopup('Arial view of cooling towers.', '/images/nuclear-wpps-02.jpg', 'nuclear-wpps2');\" title=\"Arial view of cooling towers.\" class=\"thickbox\" rel=\"gallery-nuclear-wpps\">2</a>&nbsp;&nbsp;<a id=\"nuclear-wpps3\" href=\"#\" onclick=\"nuclearwppsGalleryPopup('Overhead view of cooling towers.', '/images/nuclear-wpps-03.jpg', 'nuclear-wpps3');\" title=\"Overhead view of cooling towers.\" class=\"thickbox\" rel=\"gallery-nuclear-wpps\">3</a>&nbsp;&nbsp;<a id=\"nuclear-wpps4\" href=\"#\" onclick=\"nuclearwppsGalleryPopup('Arial view cooling towers.', '/images/nuclear-wpps-04.jpg', 'nuclear-wpps4');\" title=\"Arial view cooling towers.\" class=\"thickbox\" rel=\"gallery-nuclear-wpps\">4</a>";
				}
				else if (imageGroup == "gallery-tunnels-chunnel") {
					TB_imageCount = "Image:&nbsp;&nbsp;<a id=\"tunnels-chunnel1\" href=\"#\" onclick=\"tunnelschunnelGalleryPopup('Breakthrough of service tunnel between England and France.', '/images/tunnels-chunnel-01.jpg', 'tunnels-chunnel1');\" title=\"Breakthrough of service tunnel between England and France.\" class=\"thickbox\" style=\"font-weight: bold;\" rel=\"gallery-tunnels-chunnel\">1</a>&nbsp;&nbsp;<a id=\"tunnels-chunnel2\" href=\"#\" onclick=\"tunnelschunnelGalleryPopup('Breakthrough of service tunnel between England and France.', '/images/tunnels-chunnel-02.jpg', 'tunnels-chunnel2');\" title=\"Breakthrough of service tunnel between England and France.\" class=\"thickbox\" rel=\"gallery-tunnels-chunnel\">2</a>&nbsp;&nbsp;<a id=\"tunnels-chunnel3\" href=\"#\" onclick=\"tunnelschunnelGalleryPopup('Double shield tunnel boring machine passing thru the British undersea cross-over chamber.', '/images/tunnels-chunnel-03.jpg', 'tunnels-chunnel3');\" title=\"Double shield tunnel boring machine passing thru the British undersea cross-over chamber.\" class=\"thickbox\" rel=\"gallery-tunnels-chunnel\">3</a>&nbsp;&nbsp;<a id=\"tunnels-chunnel4\" href=\"#\" onclick=\"tunnelschunnelGalleryPopup('Construction service area north of Dover that serviced all of the work done on the UK side.', '/images/tunnels-chunnel-04.jpg', 'tunnels-chunnel4');\" title=\"Construction service area north of Dover that serviced all of the work done on the UK side.\" class=\"thickbox\" rel=\"gallery-tunnels-chunnel\">4</a>&nbsp;&nbsp;<a id=\"tunnels-chunnel5\" href=\"#\" onclick=\"tunnelschunnelGalleryPopup('Tunnel boring machine in British crossover chambers alongside a road header.', '/images/tunnels-chunnel-05.jpg', 'tunnels-chunnel5');\" title=\"Tunnel boring machine in British crossover chambers alongside a road header.\" class=\"thickbox\" rel=\"gallery-tunnels-chunnel\">5</a>&nbsp;&nbsp;<a id=\"tunnels-chunnel6\" href=\"#\" onclick=\"tunnelschunnelGalleryPopup('2.5 Kilometer-long UK terminal for the shuttle train operation.', '/images/tunnels-chunnel-06.jpg', 'tunnels-chunnel6');\" title=\"2.5 Kilometer-long UK terminal for the shuttle train operation.\" class=\"thickbox\" rel=\"gallery-tunnels-chunnel\">6</a>&nbsp;&nbsp;<a id=\"tunnels-chunnel7\" href=\"#\" onclick=\"tunnelschunnelGalleryPopup('Route of the Channel Tunnel crossing point.', '/images/tunnels-chunnel-07.jpg', 'tunnels-chunnel7');\" title=\"Route of the Channel Tunnel crossing point.\" class=\"thickbox\" rel=\"gallery-tunnels-chunnel\">7</a>&nbsp;&nbsp;<a id=\"tunnels-chunnel8\" href=\"#\" onclick=\"tunnelschunnelGalleryPopup('Custom-designed 6.3 megawatt electrical locomotive used as part of the repair facility.', '/images/tunnels-chunnel-08.jpg', 'tunnels-chunnel8');\" title=\"Custom-designed 6.3 megawatt electrical locomotive used as part of the repair facility.\" class=\"thickbox\" rel=\"gallery-tunnels-chunnel\">8</a>";
				}
				else if (imageGroup == "gallery-tunnels-newyork") {
					TB_imageCount = "Image:&nbsp;&nbsp;<a id=\"tunnels-newyork1\" href=\"#\" onclick=\"tunnelsnewyorkGalleryPopup('NYC Water Tunnel #3 with vertical shaft installed in stainless steel liner.', '/images/tunnels-newyork-01.jpg', 'tunnels-newyork1');\" title=\"NYC Water Tunnel #3 with vertical shaft installed in stainless steel liner.\" class=\"thickbox\" style=\"font-weight: bold;\" rel=\"gallery-tunnels-newyork\">1</a>&nbsp;&nbsp;<a id=\"tunnels-newyork2\" href=\"#\" onclick=\"tunnelsnewyorkGalleryPopup('Mined section of NYC water tunnel.', '/images/tunnels-newyork-02.jpg', 'tunnels-newyork2');\" title=\"Mined section of NYC water tunnel.\" class=\"thickbox\" rel=\"gallery-tunnels-newyork\">2</a>&nbsp;&nbsp;<a id=\"tunnels-newyork3\" href=\"#\" onclick=\"tunnelsnewyorkGalleryPopup('NYC Water Tunnel #3. 13.5-mile section that was excavated using explosives.', '/images/tunnels-newyork-03.jpg', 'tunnels-newyork3');\" title=\"NYC Water Tunnel #3. 13.5-mile section that was excavated using explosives.\" class=\"thickbox\" rel=\"gallery-tunnels-newyork\">3</a>&nbsp;&nbsp;<a id=\"tunnels-newyork4\" href=\"#\" onclick=\"tunnelsnewyorkGalleryPopup('Vertical shaft being prepared for lining the water tunnel.', '/images/tunnels-newyork-04.jpg', 'tunnels-newyork4');\" title=\"Vertical shaft being prepared for lining the water tunnel.\" class=\"thickbox\" rel=\"gallery-tunnels-newyork\">4</a>&nbsp;&nbsp;<a id=\"tunnels-newyork5\" href=\"#\" onclick=\"tunnelsnewyorkGalleryPopup('Van Cortland water center with 80-inch valves installed.', '/images/tunnels-newyork-05.jpg', 'tunnels-newyork5');\" title=\"Van Cortland water center with 80-inch valves installed.\" class=\"thickbox\" rel=\"gallery-tunnels-newyork\">5</a>&nbsp;&nbsp;<a id=\"tunnels-newyork6\" href=\"#\" onclick=\"tunnelsnewyorkGalleryPopup('Tunnel that serves as manifold to the Van Cortland water center.', '/images/tunnels-newyork-06.jpg', 'tunnels-newyork6');\" title=\"Tunnel that serves as manifold to the Van Cortland water center.\" class=\"thickbox\" rel=\"gallery-tunnels-newyork\">6</a>";
				}
				else if (imageGroup == "gallery-tunnels-japan") {
					TB_imageCount = "Image:&nbsp;&nbsp;<a id=\"tunnels-japan1\" href=\"#\" onclick=\"tunnelsjapanGalleryPopup('Immersed tube for Japanese tunnel complex.', '/images/tunnels-japan-02.jpg', 'tunnels-japan1');\" title=\"Immersed tube for Japanese tunnel complex.\" class=\"thickbox\" style=\"font-weight: bold;\" rel=\"gallery-tunnels-japan\">1</a>&nbsp;&nbsp;<a id=\"tunnels-japan2\" href=\"#\" onclick=\"tunnelsjapanGalleryPopup('Lined tunnel for the Japan railway.', '/images/tunnels-japan-04.jpg', 'tunnels-japan2');\" title=\"Lined tunnel for the Japan railway.\" class=\"thickbox\" rel=\"gallery-tunnels-japan\">2</a>&nbsp;&nbsp;<a id=\"tunnels-japan3\" href=\"#\" onclick=\"tunnelsjapanGalleryPopup('Lay barge for laying an immersed tube for Japan Railway tunnel.', '/images/tunnels-japan-05.jpg', 'tunnels-japan3');\" title=\"Lay barge for laying an immersed tube for Japan Railway tunnel.\" class=\"thickbox\" rel=\"gallery-tunnels-japan\">3</a>";
				}
				else if (imageGroup == "gallery-tunnels-texas") {
					TB_imageCount = "Image:&nbsp;&nbsp;<a id=\"tunnels-texas1\" href=\"#\" onclick=\"tunnelstexasGalleryPopup('Portion of the 50-mile ring for the project.', '/images/tunnels-texas-01.jpg', 'tunnels-texas1');\" title=\"Portion of the 50-mile ring for the project.\" class=\"thickbox\" style=\"font-weight: bold;\" rel=\"gallery-tunnels-texas\">1</a>&nbsp;&nbsp;<a id=\"tunnels-texas2\" href=\"#\" onclick=\"tunnelstexasGalleryPopup('Tunnel-boring machine.', '/images/tunnels-texas-02.jpg', 'tunnels-texas2');\" title=\"Tunnel-boring machine.\" class=\"thickbox\" rel=\"gallery-tunnels-texas\">2</a>&nbsp;&nbsp;<a id=\"tunnels-texas3\" href=\"#\" onclick=\"tunnelstexasGalleryPopup('Vertical shaft from the surface of the ground to the collider ring.', '/images/tunnels-texas-03.jpg', 'tunnels-texas3');\" title=\"Vertical shaft from the surface of the ground to the collider ring.\" class=\"thickbox\" rel=\"gallery-tunnels-texas\">3</a>";
				}
				else if (imageGroup == "gallery-tunnels-bart") {
					TB_imageCount = "Image:&nbsp;&nbsp;<a id=\"tunnels-bart1\" href=\"#\" onclick=\"tunnelsbartGalleryPopup('San Francisco BART subway station.', '/images/tunnels-bart-01.jpg', 'tunnels-bart1');\" title=\"San Francisco BART subway station.\" class=\"thickbox\" style=\"font-weight: bold;\" rel=\"gallery-tunnels-bart\">1</a>&nbsp;&nbsp;<a id=\"tunnels-bart2\" href=\"#\" onclick=\"tunnelsbartGalleryPopup('San Francisco BART subway station.', '/images/tunnels-bart-02.jpg', 'tunnels-bart2');\" title=\"San Francisco BART subway station.\" class=\"thickbox\" rel=\"gallery-tunnels-bart\">2</a>";
				}
				else if (imageGroup == "gallery-tunnels-istanbul") {
					TB_imageCount = "Image:&nbsp;&nbsp;<a id=\"tunnels-istanbul1\" href=\"#\" onclick=\"tunnelsistanbulGalleryPopup('Extension of the National Turkish railway thru Istanbul and under the Bosporus Straights.', '/images/tunnels-istanbul-01.jpg', 'tunnels-istanbul1');\" title=\"Extension of the National Turkish railway thru Istanbul and under the Bosporus Straights.\" class=\"thickbox\" style=\"font-weight: bold;\" rel=\"gallery-tunnels-istanbul\">1</a>&nbsp;&nbsp;<a id=\"tunnels-istanbul2\" href=\"#\" onclick=\"tunnelsistanbulGalleryPopup('Site Map.', '/images/tunnels-istanbul-02.jpg', 'tunnels-istanbul2');\" title=\"Site Map.\" class=\"thickbox\" rel=\"gallery-tunnels-istanbul\">2</a>&nbsp;&nbsp;<a id=\"tunnels-istanbul3\" href=\"#\" onclick=\"tunnelsistanbulGalleryPopup('Pier with a bridge to the access the first immersed tube placed in the dredge trench.', '/images/tunnels-istanbul-03.jpg', 'tunnels-istanbul3');\" title=\"Pier with a bridge to the access the first immersed tube placed in the dredge trench.\" class=\"thickbox\" rel=\"gallery-tunnels-istanbul\">3</a>&nbsp;&nbsp;<a id=\"tunnels-istanbul4\" href=\"#\" onclick=\"tunnelsistanbulGalleryPopup('Tube fabrication yard. ', '/images/tunnels-istanbul-04.jpg', 'tunnels-istanbul4');\" title=\"Tube fabrication yard. \" class=\"thickbox\" rel=\"gallery-tunnels-istanbul\">4</a>&nbsp;&nbsp;<a id=\"tunnels-istanbul5\" href=\"#\" onclick=\"tunnelsistanbulGalleryPopup('Station with tunnel-boring machine installed to drive the landside tunnels. ', '/images/tunnels-istanbul-05.jpg', 'tunnels-istanbul5');\" title=\"Station with tunnel-boring machine installed to drive the landside tunnels. \" class=\"thickbox\" rel=\"gallery-tunnels-istanbul\">5</a>&nbsp;&nbsp;<a id=\"tunnels-istanbul6\" href=\"#\" onclick=\"tunnelsistanbulGalleryPopup('Interior of one of the soft ground tunnels with lining installed.', '/images/tunnels-istanbul-06.jpg', 'tunnels-istanbul6');\" title=\"Interior of one of the soft ground tunnels with lining installed.\" class=\"thickbox\" rel=\"gallery-tunnels-istanbul\">6</a>&nbsp;&nbsp;<a id=\"tunnels-istanbul7\" href=\"#\" onclick=\"tunnelsistanbulGalleryPopup('Archeological dig in one of the stations on the European side of the Bosphorus.', '/images/tunnels-istanbul-07.jpg', 'tunnels-istanbul7');\" title=\"Archeological dig in one of the stations on the European side of the Bosphorus.\" class=\"thickbox\" rel=\"gallery-tunnels-istanbul\">7</a>&nbsp;&nbsp;<a id=\"tunnels-istanbul8\" href=\"#\" onclick=\"tunnelsistanbulGalleryPopup('Archeological dig of a station where a number of ancient boats have been found.', '/images/tunnels-istanbul-08.jpg', 'tunnels-istanbul8');\" title=\"Archeological dig of a station where a number of ancient boats have been found.\" class=\"thickbox\" rel=\"gallery-tunnels-istanbul\">8</a>&nbsp;&nbsp;<a id=\"tunnels-istanbul9\" href=\"#\" onclick=\"tunnelsistanbulGalleryPopup('Tunnel portal with tunnel-boring machine prepared to move.', '/images/tunnels-istanbul-09.jpg', 'tunnels-istanbul9');\" title=\"Tunnel portal with tunnel-boring machine prepared to move.\" class=\"thickbox\" rel=\"gallery-tunnels-istanbul\">9</a>";
				}
				else if (imageGroup == "gallery-utilities-khalid") {
					TB_imageCount = "Image:&nbsp;&nbsp;<a id=\"utilities-khalid1\" href=\"#\" onclick=\"utilitieskhalidGalleryPopup('Development of the buildings located in King Kahlid Military City (KKMC).', '/images/utilities-khalid-01.jpg', 'utilities-khalid1');\" title=\"Development of the buildings located in King Kahlid Military City (KKMC).\" class=\"thickbox\" style=\"font-weight: bold;\" rel=\"gallery-utilities-khalid\">1</a>&nbsp;&nbsp;<a id=\"utilities-khalid2\" href=\"#\" onclick=\"utilitieskhalidGalleryPopup('General site layout for KKMC.', '/images/utilities-khalid-02.jpg', 'utilities-khalid2');\" title=\"General site layout for KKMC.\" class=\"thickbox\" rel=\"gallery-utilities-khalid\">2</a>&nbsp;&nbsp;<a id=\"utilities-khalid3\" href=\"#\" onclick=\"utilitieskhalidGalleryPopup('Conveyor for processing and handling rock used in the reinforced concrete at KKMC.', '/images/utilities-khalid-03.jpg', 'utilities-khalid3');\" title=\"Conveyor for processing and handling rock used in the reinforced concrete at KKMC.\" class=\"thickbox\" rel=\"gallery-utilities-khalid\">3</a>&nbsp;&nbsp;<a id=\"utilities-khalid4\" href=\"#\" onclick=\"utilitieskhalidGalleryPopup('Storage yard for one of the three pre-cast concrete plants.', '/images/utilities-khalid-04.jpg', 'utilities-khalid4');\" title=\"Storage yard for one of the three pre-cast concrete plants.\" class=\"thickbox\" rel=\"gallery-utilities-khalid\">4</a>&nbsp;&nbsp;<a id=\"utilities-khalid5\" href=\"#\" onclick=\"utilitieskhalidGalleryPopup('The royal family and government officials at the dedication of the site.', '/images/utilities-khalid-05.jpg', 'utilities-khalid5');\" title=\"The royal family and government officials at the dedication of the site.\" class=\"thickbox\" rel=\"gallery-utilities-khalid\">5</a>&nbsp;&nbsp;<a id=\"utilities-khalid6\" href=\"#\" onclick=\"utilitieskhalidGalleryPopup('Construction of warehouses and office buildings used during the construction of the KKMC.', '/images/utilities-khalid-06.jpg', 'utilities-khalid6');\" title=\"Construction of warehouses and office buildings used during the construction of the KKMC.\" class=\"thickbox\" rel=\"gallery-utilities-khalid\">6</a>&nbsp;&nbsp;<a id=\"utilities-khalid7\" href=\"#\" onclick=\"utilitieskhalidGalleryPopup('Unique pre-cast concrete element for utilization on construction of a tower in the KKMC.', '/images/utilities-khalid-07.jpg', 'utilities-khalid7');\" title=\"Unique pre-cast concrete element for utilization on construction of a tower in the KKMC.\" class=\"thickbox\" rel=\"gallery-utilities-khalid\">7</a>&nbsp;&nbsp;<a id=\"utilities-khalid8\" href=\"#\" onclick=\"utilitieskhalidGalleryPopup('The preparation of foundations for buildings in the KKMC.', '/images/utilities-khalid-08.jpg', 'utilities-khalid8');\" title=\"The preparation of foundations for buildings in the KKMC.\" class=\"thickbox\" rel=\"gallery-utilities-khalid\">8</a>&nbsp;&nbsp;<a id=\"utilities-khalid9\" href=\"#\" onclick=\"utilitieskhalidGalleryPopup('Water tank and processing equipment for handling fresh water in KKMC.', '/images/utilities-khalid-09.jpg', 'utilities-khalid9');\" title=\"Water tank and processing equipment for handling fresh water in KKMC.\" class=\"thickbox\" rel=\"gallery-utilities-khalid\">9</a>&nbsp;&nbsp;<a id=\"utilities-khalid10\" href=\"#\" onclick=\"utilitieskhalidGalleryPopup('Explosion in the quarry that produced all aggregate used in the concrete elements of the KKMC.', '/images/utilities-khalid-10.jpg', 'utilities-khalid10');\" title=\"Explosion in the quarry that produced all aggregate used in the concrete elements of the KKMC.\" class=\"thickbox\" rel=\"gallery-utilities-khalid\">10</a>&nbsp;&nbsp;<a id=\"utilities-khalid11\" href=\"#\" onclick=\"utilitieskhalidGalleryPopup('Quarrying operation.', '/images/utilities-khalid-11.jpg', 'utilities-khalid11');\" title=\"Quarrying operation.\" class=\"thickbox\" rel=\"gallery-utilities-khalid\">11</a>";
				}
				else if (imageGroup == "gallery-utilities-sylmar") {
					TB_imageCount = "Image:&nbsp;&nbsp;<a id=\"utilities-sylmar1\" href=\"#\" onclick=\"utilitiessylmarGalleryPopup('&nbsp;', '/images/utilities-sylmar-01.jpg', 'utilities-sylmar1');\" title=\"&nbsp;\" class=\"thickbox\" style=\"font-weight: bold;\" rel=\"gallery-utilities-sylmar\">1</a>&nbsp;&nbsp;<a id=\"utilities-sylmar2\" href=\"#\" onclick=\"utilitiessylmarGalleryPopup('&nbsp;', '/images/utilities-sylmar-02.jpg', 'utilities-sylmar2');\" title=\"&nbsp;\" class=\"thickbox\" rel=\"gallery-utilities-sylmar\">2</a>&nbsp;&nbsp;<a id=\"utilities-sylmar3\" href=\"#\" onclick=\"utilitiessylmarGalleryPopup('&nbsp;', '/images/utilities-sylmar-03.jpg', 'utilities-sylmar3');\" title=\"&nbsp;\" class=\"thickbox\" rel=\"gallery-utilities-sylmar\">3</a>&nbsp;&nbsp;<a id=\"utilities-sylmar4\" href=\"#\" onclick=\"utilitiessylmarGalleryPopup('&nbsp;', '/images/utilities-sylmar-04.jpg', 'utilities-sylmar4');\" title=\"&nbsp;\" class=\"thickbox\" rel=\"gallery-utilities-sylmar\">4</a>";
				}
				else if (imageGroup == "gallery-utilities-idahowater") {
					TB_imageCount = "Image:&nbsp;&nbsp;<a id=\"utilities-idahowater1\" href=\"#\" onclick=\"utilitiesidahowaterGalleryPopup('Computer controlled flume in the Idaho Water Center utilized for research by multiple Universities.', '/images/utilities-idahowater-01.jpg', 'utilities-idahowater1');\" title=\"Computer controlled flume in the Idaho Water Center utilized for research by multiple Universities.\" class=\"thickbox\" style=\"font-weight: bold;\" rel=\"gallery-utilities-idahowater\">1</a>&nbsp;&nbsp;<a id=\"utilities-idahowater2\" href=\"#\" onclick=\"utilitiesidahowaterGalleryPopup('Computer controlled flume in the Idaho Water Center for research by multiple Universities.', '/images/utilities-idahowater-02.jpg', 'utilities-idahowater2');\" title=\"Computer controlled flume in the Idaho Water Center for research by multiple Universities.\" class=\"thickbox\" rel=\"gallery-utilities-idahowater\">2</a>&nbsp;&nbsp;<a id=\"utilities-idahowater3\" href=\"#\" onclick=\"utilitiesidahowaterGalleryPopup('Building that houses the flume and acts as the home of University of Idaho research facility.', '/images/utilities-idahowater-03.jpg', 'utilities-idahowater3');\" title=\"Building that houses the flume and acts as the home of University of Idaho research facility.\" class=\"thickbox\" rel=\"gallery-utilities-idahowater\">3</a>&nbsp;&nbsp;<a id=\"utilities-idahowater4\" href=\"#\" onclick=\"utilitiesidahowaterGalleryPopup('Building that houses the flume and acts as the home of University of Idaho research facility.', '/images/utilities-idahowater-04.jpg', 'utilities-idahowater4');\" title=\"Building that houses the flume and acts as the home of University of Idaho research facility.\" class=\"thickbox\" rel=\"gallery-utilities-idahowater\">4</a>";
				}
				else if (imageGroup == "gallery-utilities-jamaican") {
					TB_imageCount = "Image:&nbsp;&nbsp;<a id=\"utilities-jamaican1\" href=\"#\" onclick=\"utilitiesjamaicanGalleryPopup('New cement plant in Kingston, Jamaica.', '/images/utilities-jamaican-02.jpg', 'utilities-jamaican1');\" title=\"New cement plant in Kingston, Jamaica.\" class=\"thickbox\" rel=\"gallery-utilities-jamaican\">1</a>";
				}
				else if (imageGroup == "gallery-utilities-cerrejon") {
					TB_imageCount = "Image:&nbsp;&nbsp;<a id=\"utilities-cerrejon1\" href=\"#\" onclick=\"utilitiescerrejonGalleryPopup('Cerrejon Mine. Coal conveyors that fed silos loaded the unit trains.', '/images/utilities-cerrejon-01.jpg', 'utilities-cerrejon1');\" title=\"Cerrejon Mine. Coal conveyors that fed silos loaded the unit trains.\" class=\"thickbox\" style=\"font-weight: bold;\" rel=\"gallery-utilities-cerrejon\">1</a>&nbsp;&nbsp;<a id=\"utilities-cerrejon2\" href=\"#\" onclick=\"utilitiescerrejonGalleryPopup('Equipment used to load ships that transported coal between Columbia, the US, Europe and Japan.', '/images/utilities-cerrejon-02.jpg', 'utilities-cerrejon2');\" title=\"Equipment used to load ships that transported coal between Columbia, the US, Europe and Japan.\" class=\"thickbox\" rel=\"gallery-utilities-cerrejon\">2</a>";
				}
				else if (imageGroup == "gallery-utilities-panama") {
					TB_imageCount = "Image:&nbsp;&nbsp;<a id=\"utilities-panama1\" href=\"#\" onclick=\"utilitiespanamaGalleryPopup('The Trans-Panama Pipeline.', '/images/utilities-panama-01.jpg', 'utilities-panama1');\" title=\"The Trans-Panama Pipeline.\" class=\"thickbox\" style=\"font-weight: bold;\" rel=\"gallery-utilities-panama\">1</a>";
				}
				else if (imageGroup == "gallery-hydro-mica") {
					TB_imageCount = "Image:&nbsp;&nbsp;<a id=\"hydro-mica1\" href=\"#\" onclick=\"hydromicaGalleryPopup('The 800-foot high earth and rock filled Mica Dam.', '/images/hydro-mica-03.jpg', 'hydro-mica1');\" title=\"&nbsp;\" class=\"thickbox\" style=\"font-weight: bold;\" rel=\"gallery-hydro-mica\">1</a>&nbsp;&nbsp;<a id=\"hydro-mica2\" href=\"#\" onclick=\"hydromicaGalleryPopup('Mica Dam.', '/images/hydro-mica-04.jpg', 'hydro-mica2');\" title=\"&nbsp;\" class=\"thickbox\" rel=\"gallery-hydro-mica\">2</a>&nbsp;&nbsp;<a id=\"hydro-mica3\" href=\"#\" onclick=\"hydromicaGalleryPopup('Mica Dam.', '/images/hydro-mica-05.jpg', 'hydro-mica3');\" title=\"Mica Dam.\" class=\"thickbox\" rel=\"gallery-hydro-mica\">3</a>&nbsp;&nbsp;<a id=\"hydro-mica4\" href=\"#\" onclick=\"hydromicaGalleryPopup('Mica Dam.', '/images/hydro-mica-06.jpg', 'hydro-mica4');\" title=\"Mica Dam.\" class=\"thickbox\" rel=\"gallery-hydro-mica\">4</a>&nbsp;&nbsp;<a id=\"hydro-mica5\" href=\"#\" onclick=\"hydromicaGalleryPopup('Mica Dam.', '/images/hydro-mica-07.jpg', 'hydro-mica5');\" title=\"Mica Dam.\" class=\"thickbox\" rel=\"gallery-hydro-mica\">5</a>&nbsp;&nbsp;<a id=\"hydro-mica6\" href=\"#\" onclick=\"hydromicaGalleryPopup('Spillway located on the left abutment of the dam.', '/images/hydro-mica-08.jpg', 'hydro-mica6');\" title=\"Spillway located on the left abutment of the dam.\" class=\"thickbox\" rel=\"gallery-hydro-mica\">6</a>&nbsp;&nbsp;<a id=\"hydro-mica7\" href=\"#\" onclick=\"hydromicaGalleryPopup('Excavation of the foundation of Mica Dam with temporary support of the Coffer Dam.', '/images/hydro-mica-09.jpg', 'hydro-mica7');\" title=\"Excavation of the foundation of Mica Dam with temporary support of the Coffer Dam.\" class=\"thickbox\" rel=\"gallery-hydro-mica\">7</a>";
				}
				else if (imageGroup == "gallery-hydro-ok") {
					TB_imageCount = "Image:&nbsp;&nbsp;<a id=\"hydro-ok1\" href=\"#\" onclick=\"hydrookGalleryPopup('On the Papua New Guinea Hindenburg Mountains gold and copper mine.', '/images/hydro-ok-01.jpg', 'hydro-ok1');\" title=\"On the Papua New Guinea Hindenburg Mountains gold and copper mine.\" class=\"thickbox\" style=\"font-weight: bold;\" rel=\"gallery-hydro-ok\">1</a>&nbsp;&nbsp;<a id=\"hydro-ok2\" href=\"#\" onclick=\"hydrookGalleryPopup('Terrain around the site OK Tedi.', '/images/hydro-ok-02.jpg', 'hydro-ok2');\" title=\"Terrain around the site OK Tedi.\" class=\"thickbox\" rel=\"gallery-hydro-ok\">2</a>&nbsp;&nbsp;<a id=\"hydro-ok3\" href=\"#\" onclick=\"hydrookGalleryPopup('Camp for the workers who built the project.', '/images/hydro-ok-03.jpg', 'hydro-ok3');\" title=\"Camp for the workers who built the project.\" class=\"thickbox\" rel=\"gallery-hydro-ok\">3</a>&nbsp;&nbsp;<a id=\"hydro-ok4\" href=\"#\" onclick=\"hydrookGalleryPopup('OK Tedi mine.', '/images/hydro-ok-04.jpg', 'hydro-ok4');\" title=\"OK Tedi mine.\" class=\"thickbox\" rel=\"gallery-hydro-ok\">4</a>&nbsp;&nbsp;<a id=\"hydro-ok5\" href=\"#\" onclick=\"hydrookGalleryPopup('Excavating into the mine.', '/images/hydro-ok-05.jpg', 'hydro-ok5');\" title=\"Excavating into the mine.\" class=\"thickbox\" rel=\"gallery-hydro-ok\">5</a>&nbsp;&nbsp;<a id=\"hydro-ok6\" href=\"#\" onclick=\"hydrookGalleryPopup('Dump Trucks used on the project. The natives where trained to drive the trucks.', '/images/hydro-ok-06.jpg', 'hydro-ok6');\" title=\"Dump Trucks used on the project. The natives where trained to drive the trucks.\" class=\"thickbox\" rel=\"gallery-hydro-ok\">6</a>";
				}
				else if (imageGroup == "gallery-hydro-luddington") {
					TB_imageCount = "Image:&nbsp;&nbsp;<a id=\"hydro-luddington1\" href=\"#\" onclick=\"hydroluddingtonGalleryPopup('Seven-mile long dam intake for powerhouse.', '/images/hydro-luddington-01.jpg', 'hydro-luddington1');\" title=\"Seven-mile long dam intake for powerhouse.\" class=\"thickbox\" style=\"font-weight: bold;\" rel=\"gallery-hydro-luddington\">1</a>&nbsp;&nbsp;<a id=\"hydro-luddington2\" href=\"#\" onclick=\"hydroluddingtonGalleryPopup('700-acre reservoir.', '/images/hydro-luddington-02.jpg', 'hydro-luddington2');\" title=\"700-acre reservoir.\" class=\"thickbox\" rel=\"gallery-hydro-luddington\">2</a>";
				}
			}

			imgPreloader = new Image();
			imgPreloader.onload = function(){		
			imgPreloader.onload = null;
				
			// Resizing large images - orginal by Christian Montoya edited by me.
			var pagesize = tb_getPageSize();
			var x = pagesize[0] - 150;
			var y = pagesize[1] - 150;
			var imageWidth = imgPreloader.width;
			var imageHeight = imgPreloader.height;
			if (imageWidth > x) {
				imageHeight = imageHeight * (x / imageWidth); 
				imageWidth = x; 
				if (imageHeight > y) { 
					imageWidth = imageWidth * (y / imageHeight); 
					imageHeight = y; 
				}
			} else if (imageHeight > y) { 
				imageWidth = imageWidth * (y / imageHeight); 
				imageHeight = y; 
				if (imageWidth > x) { 
					imageHeight = imageHeight * (x / imageWidth); 
					imageWidth = x;
				}
			}
			// End Resizing
			
			TB_WIDTH = imageWidth + 30;
			TB_HEIGHT = imageHeight + 60;
			
			$("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/></a>" + "<div id='TB_caption'><span id='spanTheCaption'>"+caption+"</span><div id='TB_secondLine'>" + TB_imageCount + "<!--" + TB_PrevHTML + TB_NextHTML + "--></div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div>"); 		
			
			$("#TB_closeWindowButton").click(tb_remove);
			
			if (!(TB_PrevHTML === "")) {
				function goPrev(){
					if($(document).unbind("click",goPrev)){$(document).unbind("click",goPrev);}
					$("#TB_window").remove();
					$("body").append("<div id='TB_window'></div>");
					tb_show(TB_PrevCaption, TB_PrevURL, imageGroup);
					return false;	
				}
				$("#TB_prev").click(goPrev);
			}
			
			if (!(TB_NextHTML === "")) {		
				function goNext(){
					$("#TB_window").remove();
					$("body").append("<div id='TB_window'></div>");
					tb_show(TB_NextCaption, TB_NextURL, imageGroup);				
					return false;	
				}
				$("#TB_next").click(goNext);
				
			}

			document.onkeydown = function(e){ 	
				if (e == null) { // ie
					keycode = event.keyCode;
				} else { // mozilla
					keycode = e.which;
				}
				if(keycode == 27){ // close
					tb_remove();
				} else if(keycode == 190){ // display previous image
					if(!(TB_NextHTML == "")){
						document.onkeydown = "";
						goNext();
					}
				} else if(keycode == 188){ // display next image
					if(!(TB_PrevHTML == "")){
						document.onkeydown = "";
						goPrev();
					}
				}	
			};
			
			tb_position();
			$("#TB_load").remove();
			$("#TB_ImageOff").click(tb_remove);
			$("#TB_window").css({display:"block"}); //for safari using css instead of show
			};
			
			imgPreloader.src = url;
		}else{//code to show html pages
			
			var queryString = url.replace(/^[^\?]+\??/,'');
			var params = tb_parseQuery( queryString );

			TB_WIDTH = (params['width']*1) + 30 || 630; //defaults to 630 if no paramaters were added to URL
			TB_HEIGHT = (params['height']*1) + 40 || 440; //defaults to 440 if no paramaters were added to URL
			ajaxContentW = TB_WIDTH - 30;
			ajaxContentH = TB_HEIGHT - 45;
			
			if(url.indexOf('TB_iframe') != -1){				
					urlNoQuery = url.split('TB_');		
					$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;' onload='tb_showIframe()'> </iframe>");
				}else{
					if($("#TB_window").css("display") != "block"){
						if(params['modal'] != "true"){
						$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>close</a> or Esc Key</div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>");
						}else{
						$("#TB_overlay").unbind();
						$("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>");	
						}
					}else{
						$("#TB_ajaxContent")[0].style.width = ajaxContentW +"px";
						$("#TB_ajaxContent")[0].style.height = ajaxContentH +"px";
						$("#TB_ajaxContent")[0].scrollTop = 0;
						$("#TB_ajaxWindowTitle").html(caption);
					}
			}
					
			$("#TB_closeWindowButton").click(tb_remove);
			
				if(url.indexOf('TB_inline') != -1){	
					$("#TB_ajaxContent").html($('#' + params['inlineId']).html());
					tb_position();
					$("#TB_load").remove();
					$("#TB_window").css({display:"block"}); 
				}else if(url.indexOf('TB_iframe') != -1){
					tb_position();
					if(frames['TB_iframeContent'] === undefined){//be nice to safari
						$("#TB_load").remove();
						$("#TB_window").css({display:"block"});
						$(document).keyup( function(e){ var key = e.keyCode; if(key == 27){tb_remove();}});
					}
				}else{
					$("#TB_ajaxContent").load(url += "&random=" + (new Date().getTime()),function(){//to do a post change this load method
						tb_position();
						$("#TB_load").remove();
						tb_init("#TB_ajaxContent a.thickbox");
						$("#TB_window").css({display:"block"});
					});
				}
			
		}

		if(!params['modal']){
			document.onkeyup = function(e){ 	
				if (e == null) { // ie
					keycode = event.keyCode;
				} else { // mozilla
					keycode = e.which;
				}
				if(keycode == 27){ // close
					tb_remove();
				}	
			};
		}
		
	} catch(e) {
		//nothing here
	}
}

//helper functions below
function tb_showIframe(){
	$("#TB_load").remove();
	$("#TB_window").css({display:"block"});
}

function tb_remove() {
 	$("#TB_imageOff").unbind("click");
	$("#TB_overlay").unbind("click");
	$("#TB_closeWindowButton").unbind("click");
	$("#TB_window").fadeOut("fast",function(){$('#TB_window,#TB_overlay,#TB_HideSelect').remove();});
	$("#TB_load").remove();
	if (typeof document.body.style.maxHeight == "undefined") {//if IE 6
		$("body","html").css({height: "auto", width: "auto"});
		$("html").css("overflow","");
	}
	document.onkeydown = "";
	return false;
}

function tb_position() {
$("#TB_window").css({marginLeft: '-' + parseInt((TB_WIDTH / 2),10) + 'px', width: TB_WIDTH + 'px'});
	if ( !(jQuery.browser.msie && typeof XMLHttpRequest == 'function')) { // take away IE6
		$("#TB_window").css({marginTop: '-' + parseInt((TB_HEIGHT / 2),10) + 'px'});
	}
}

function tb_parseQuery ( query ) {
   var Params = {};
   if ( ! query ) {return Params;}// return empty object
   var Pairs = query.split(/[;&]/);
   for ( var i = 0; i < Pairs.length; i++ ) {
      var KeyVal = Pairs[i].split('=');
      if ( ! KeyVal || KeyVal.length != 2 ) {continue;}
      var key = unescape( KeyVal[0] );
      var val = unescape( KeyVal[1] );
      val = val.replace(/\+/g, ' ');
      Params[key] = val;
   }
   return Params;
}

function tb_getPageSize(){
	var de = document.documentElement;
	var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
	var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight;
	arrayPageSize = [w,h];
	return arrayPageSize;
}
