function GroupDelegate(id) {
   var objLink = document.getElementById(id);
   $('#'+id).trigger('click');
}
		$(document).ready(function() {
			$("a[rel=gallery_group]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'outside',
				'padding'			: 0,
				'overlayOpacity'	: .7,
				'changeFade'		:'slow',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
				//	return '<span id="fancybox-title-under">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				return '<span id="fancybox-title-under">' + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			 
			 $("#SPLASH").fancybox({ //fancybox works perfect with hidden divs
                'width'				: 615,
				'height'			: 441,
				'padding'			: 2,
				'autoScale'			: false,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'overlayOpacity'	: .7,
				'type'				: 'iframe', 
				'hideOnContentClick' : true,     
             }).trigger('click');
			

 
			$("a.inline_student").fancybox({
				'width'				: 615,
				'height'			: 441,
				'padding'			: 2,
				'autoScale'			: false,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'overlayOpacity'	: .7,
				'type'				: 'iframe',
				'titlePosition' 	: 'outside',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
				//	return '<span id="fancybox-title-under">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				return '<span id="fancybox-title-under2">' + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$("a.inline_map").fancybox({
				'width'				: 660,
				'height'			: 570,
				'padding'			: 2,
				'autoScale'			: false,
				'overlayOpacity'	: .7,
				'type'				: 'iframe',
				'titlePosition' 	: 'outside',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
				//	return '<span id="fancybox-title-under">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				return '<span id="fancybox-title-under2">' + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$('#picHolder').before('<div id="nav" class="nav">').cycle({
		        fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	        	pager:  '#nav',
		        after:onAfter,
		        before:onBefore
			});
			function onBefore() {
				$('.titleText').html("<a href=" + this.longDesc + " target=_blank>"+ this.alt + "</a>");
    	
			}
			function onAfter() {
    			$('.titleText').html("<a href=" + this.longDesc + " target=_blank>"+ this.alt + "</a>");
				//$('#linkHolder').html("<div onClick=\"location.href='"+ this.longDesc + "'\" class=showLink></div>");
				//alert(this.longDesc);
				if(this.longDesc != "http://www.design.iastate.edu/index.php") { 
				$('#linkHolder').html("<a href=" + this.longDesc + "><img src=\"/webimages/blank.gif\" width=\"582\" height=\"310\" border=\"0\" /></a>");
				}
				else {
				$('#linkHolder').html("<img src=\"/webimages/blank.gif\" width=\"582\" height=\"310\" border=\"0\" /></a>");	
				}
			}
			
			
	 
			
		});
