		function getWindowHeight() {
			var windowHeight = 0;
			if (typeof(window.innerHeight) == 'number') {
				windowHeight = window.innerHeight;
			}
			else {
				if (document.documentElement && document.documentElement.clientHeight) {
					windowHeight = document.documentElement.clientHeight;
				}
				else {
					if (document.body && document.body.clientHeight) {
						windowHeight = document.body.clientHeight;
					}
				}
			}
			return windowHeight;
		}
		function setContent() {
			if (document.getElementById) {
				var windowHeight = getWindowHeight();
				if (windowHeight > 0) {
					var contentElement = document.getElementById('content');
					var contentHeight = contentElement.offsetHeight;
					if (windowHeight - contentHeight > 0) {
						contentElement.style.position = 'relative';
						contentElement.style.top = ((windowHeight / 2) - (contentHeight / 2)) + 'px';
					}
					else {
						contentElement.style.position = 'static';
					}
				}
			}
		}
		window.onload = function() {
			setContent();
		}
		window.onresize = function() {
			setContent();
		}

/*
 * jQuery Hoverbox 1.0
 * http://koteako.com/hoverbox/
 *
 * Copyright (c) 2009 Eugeniy Kalinin
 * Dual licensed under the MIT and GPL licenses.
 * http://koteako.com/hoverbox/license/
 */
jQuery.fn.hoverbox=function(a){var b=jQuery.extend({id:"tooltip",top:0,left:15},a);var d;function c(e){if(!d){d=$('<div style="position:absolute" id="'+b.id+'"></div>').appendTo(document.body).hide()}if(e){d.css({top:(e.pageY-b.top)+"px",left:(e.pageX+b.left)+"px"})}return d}this.each(function(){$(this).hover(function(f){if(this.title){this.t=this.title;this.title="";this.alt="";c(f).html(this.t).fadeIn("fast")}},function(){if(this.t){this.title=this.t;c().hide()}});$(this).mousemove(c)})};

$(function(){
    $('span, a').hoverbox();
});

		$(document).ready(function() {
			$("a.zoom").fancybox({
				'overlayOpacity' : '0.2',
				'width' : '800',
				'autoScale' : false,
				'titlePosition' : 'over'
			});
			$("a.zooma").fancybox({
				'overlayOpacity' : '0.2',
				'width' : '800',
				'autoScale' : false,
				'titleShow' : false
			});
			$("a.zoom1").fancybox({
				'overlayOpacity' : '0.2',
				'width' : '445',
				'height' : '420',
				'autoScale' : false,
				'titlePosition' : 'inside'
			});
			$("a.zoom1a").fancybox({
				'overlayOpacity' : '0.2',
				'width' : '445',
				'height' : '420',
				'autoScale' : false,
				'titlePosition' : 'inside'
			});
			$("a.zoom2").fancybox({
				'overlayOpacity' : '0.2',
				'width' : '445',
				'height' : '40',
				'autoScale' : false,
				'titlePosition' : 'inside'
			});
		});

$(document).ready( function(){
    $('#anim').innerfade({
	animationtype: 'fade', speed: 750, timeout: 4000, type: 'random_start', containerheight: '1em' });
    $('#anim2').innerfade({
	animationtype: 'fade', speed: 750, timeout: 6000, type: 'random_start', containerheight: '1em' });
});