// JQuery Based Image/Gallery Viewer Application // gFly_Img V2.2010.01.13
// Grendelfly - A Division of SC&G Technology Solutions
//
// Requires JQuery: jquery-1.3.2.min.js


$(function(){

$(document).ready(function() {

	$('#gFly_Img img').css({'cursor':'pointer'});
	
	// Set Up the Image Box
	$('img#gFly_Img_Box').css({
	  'display':'none',
	  'position':'absolute',
	  'cursor':'pointer',
	  'z-index':'3500',
	  'top':'-100px',
	  'border':'white solid 10px'
	  });
	
	$('#gFly_Img img').click(function() {
	  var dNewSource = $(this).attr('src2'); // Get Source of Image to Show
	  $('img#gFly_Img_Box').hide();
	  $('img#gFly_Img_Box').attr({'src':dNewSource});
	  $('img#gFly_Img_Box').fadeIn(1000);
	}); // $('#gFly_Img img')

	$('img#gFly_Img_Box').click(function() {
	  $(this).fadeOut(300);
	}); // $('img#gFly_Img_Box')

}); // $(document).ready(function()

}); // $(function()