/*written by Staicu Ionut Bogdan
	http://www.iamntz.com */
	
$(document).ready(function(){
	$('.ovr').hover(function(){$(this).addClass('over')},function(){$(this).removeClass('over')});	

	 $('.slideshow').lightBox();
	
	window.setTimeout('autoheight()', 100);
	
	$('#flashHeader').flash({
    src: 'header.swf',
    width: 875,
    height: 180,
    wmode:	'transparent'
});
	
	
	$('#quickNav').prependTo('#header');
	$('.keywords').appendTo('#wrap');
});


function autoheight(){
	if($('#content .right').height() > $('#content .left').height()){
		$('#content .vSeparator').css('height', $('#content .right').height()-30)
	}else{
		$('#content .vSeparator').css('height', $('#content .left').height()-30)
	}
};

jQuery.easing['BounceEaseOut'] = function(p, t, b, c, d) {
	if ((t/=d) < (1/2.75)) {
		return c*(7.5625*t*t) + b;
	} else if (t < (2/2.75)) {
		return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
	} else if (t < (2.5/2.75)) {
		return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
	} else {
		return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
	}
};
