function Marquee(e, s)
{
	if (this && setInterval && clearInterval)
	{
		var me = this;
		var elem = e;
		var intt = 0;
		var step = (!s)? 0.0 : s / 100.0;
		var current = elem.parentNode.offsetWidth;
		
		
		elem.style.position = 'relative';
		elem.parentNode.style.overflow = 'hidden';
		
		function intervalHandler()
		{
			if (elem.offsetLeft < -elem.offsetWidth)
			{
				current = elem.parentNode.offsetWidth;
			}
			else
			{
				current -= step
			}
			
			elem.style.left = current + 'px';
		}
		
		this.setSpeed = function(s)
			{
				step = s / 100.0;
			}
		
		this.marqueeInterval__ = function(iv)
			{
				if (iv != 0)
				{
					intt = iv;
				}
				else
				{
					clearInterval(intt);
					intt = 0;
				}
			}
		
		this.isRunning__ = function()
			{
				return intt!=0;
			}
		
		this.stop = function()
			{
				this.marqueeInterval__(0);
			}
			
		this.run = function()
			{
				if (!this.isRunning__())
				{
					this.marqueeInterval__(setInterval(intervalHandler, 40));
				}
			}
	}
	else
	{
		this.stop = function(){}
		this.run = function(){}
		this.step = 0;
	}
}


$(document).ready(function() {

	$('.text_hidden .top span').click( function( e) {
		$(this.parentNode.parentNode).fadeOut();
		e.stopImmediatePropagation();
		e.stopPropagation();
	});
	$('.open_event').click( function( e) {
		if (e.isPropagationStopped()) {
			return( true);
		}
		var offset = $(this).offset();
		$('#desc'+this.id.substr( 4))
			.fadeIn("slow");
	});


    $('a.newWindow').click(function(){
    window.open(this.href);
    return false;

	});

});