<!--
// function for launching the gallery images in a popup window
function imgGal(cont) {
	if(!$(cont).is('.nocarousel'))
			$(cont).jcarousel();
			
		galleryObj = {
			'items': []
		};

		$(cont+' > li > a').each(function(i) {
			galleryObj.items[i] = {
				'src': $(this).attr('href')
			};
		
			$(this).bind('click', function() {
				galleryObj.curitem = i;
			
				var galleryWindow = window.open("gallery.htm","_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=620, height=540");
			
				galleryWindow.galleryObj = galleryObj;
			
				return false;
			});
		});
};

function imgGalOneLink (link, items) {
	galleryObj = {
		'items': []
	};

	$(items).each(function(i) {
		galleryObj.items[i] = {
			'src': this
		};
	});
	
	$(link).bind('click', function() {
		galleryObj.curitem = 0;
		var galleryWindow = window.open('gallery.htm','_blank','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=620, height=540');
		galleryWindow.galleryObj = galleryObj;
		return false;			
	});
}


// function for launching the videos in a popup window
			// popup window
			window.onload = function() {
				// check to see that the browser supports the getElementsByTagName method
				// if not, exit the loop 
				if (!document.getElementsByTagName) {
					return false; 
				} 
				// create an array of objects of each link in the document 
				var popuplinks = document.getElementsByTagName("a");
				
				// loop through each of these links (anchor tags)
				  for (var i=0; i < popuplinks.length; i++) {
					//if the link has a class of "popup"...	
					if (popuplinks[i].className == "popup btnBlue") {
						// add an onclick event on the fly to pass the href attribute	
						// of the link to our second function, openPopUp 	
						popuplinks[i].onclick = function() {
						openPopUp(this.getAttribute("href"));
						return false;
						} 
					}
				}
			}
			
			// Popup window attributes
			function openPopUp(linkURL) {
				window.open(linkURL,"popup","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=580, height=430");
				return false;
			}
//-->