var callToolTip = function( event )
{
	showToolTip ( event, text );
}

var ToolTip = Class.create();

ToolTip.prototype = {
	initialize: function ( class_name )
	{
		this.class_name = class_name;
		
		Event.observe( window, 'load', this.addEvent.bindAsEventListener( this ) );	
	},
	addEvent: function ( obj )
	{
		var elements = document.getElementsByClassName( this.class_name );
		
		elements.each(
			function(item)
			{
				if ( item.addEventListener )
				{
					item.addEventListener( "mouseover", callToolTip, true );
					item.addEventListener( "mouseout", hideToolTip, true );
				}
				else if ( item.attachEvent )
				{
					item.attachEvent( "onmouseover", callToolTip );
					item.attachEvent( "onmouseout", hideToolTip );
				}
			}
		);
	}
}

/* banner control */
function hideFlashLayer()
{
	document.getElementById('bannerHolder').style.visibility = 'hidden';
}
/* /banner control */