
function theia ()
	{
	this.toolCapTimer = 0;
	}

theia.prototype.initialize = function ()
	{
	this.wWidth = $(window).width();
	this.wHeight = $(window).height();
	// close the tool-tip caption on any click
	$(document).click(function(){nd();});
	// handle info toggles
	this.prepareTogglers();
	}

theia.prototype.prepareTogglers = function ()
	{
	$('.info-toggler').each
		(
		function ()
			{
			var toggler = $(this);
			var info = $(this).siblings('.info');
			var isShown = false;
			if (info.is(':visible'))
				{
				isShown = true;
				}
			if (isShown)
				{
				toggler.children('.hide').show();
				toggler.children('.show').hide();
				}
			else
				{
				toggler.children('.hide').hide();
				toggler.children('.show').show();
				}
			toggler.click
				(
				function ()
					{
					var isShown = false;
					if (info.is(':visible'))
						{
						isShown = true;
						}
					if (isShown)
						{
						toggler.children('.hide').hide();
						toggler.children('.show').show();
						info.animate({'height': 'hide'}, 200);
						}
					else
						{
						toggler.children('.hide').show();
						toggler.children('.show').hide();
						info.animate({'height': 'show'}, 200);
						}
					}
				);
			}
		);
	}

