//****************************************************************
//****************************************************************
//	COPYRIGHT 2008, Vertex Software
//****************************************************************
//****************************************************************

//----------------------------------------------------------------
//----------------------------------------------------------------
// For elements that use the js_rollover class, adds the "over" class
// so teh element when teh mouse goes over the element and removes
// teh class when the mouse leaves.
//----------------------------------------------------------------
//----------------------------------------------------------------



//-----------------------------------------------------------
// rollover
//-----------------------------------------------------------
function rollover( element ) {
	Initialize(element);
	

	//-----------------------------------------------------------
	// Initialize
	//-----------------------------------------------------------
	function Initialize( element ) {
		try {
			if (!element) return;
			$(element).hover( 
				function() {
					$(this).addClass( "over" );
					},
				function() {
					$(this).removeClass( "over" );
					} );
			}
		catch (error) {
			alert( "defaultText.Initialize: " + error.description  );
			}
		}

	}


AttachBehaviors("rollover");