
var rood = function ($){
    return{
		showImage : function(width, height, imageSrc)
		{
			var availWidth = document.documentElement.clientWidth;
			var left = (availWidth-width) / 2;
			
			var availHeight = document.documentElement.clientHeight;
			var top = (availHeight-height) / 3;
		
			$('#photo-holder').css('left', left);
			$('#photo-holder').css('top', top);

			$('#photo-holder').css('height', height);
			$('#photo-holder').css('width', width);
			
			$('#img-highlight').attr('src', imageSrc);
			$('#img-highlight').css('width',width);
			$('#img-highlight').css('height',height);
			
			$('#img-highlight').show();

			$('#overlay').css('display', 'block');
			$('#photo-holder').css('display', 'block');
		},

		hideImage : function()
		{
			$('#overlay').css('display', 'none');
			$('#photo-holder').css('display', 'none');
			
		},
		
		ApplyIE6Style : function()
		{	
			//first detect the client's browser
			if(navigator.appName == "Microsoft Internet Explorer")
			{
				var a = parseInt(navigator.appVersion.charAt(navigator.appVersion.indexOf("MSIE")+5));
				if(a < 6)
				{
					$('#container').css('height', '100%');
				}
			}
		}

	

	}
}(jQuery);




