// addHover
//
// Description:
// This function will add a class of 'hover' to any element
// selected by strSelector that contains a div.
//
// Arguments:
// (string) valid XPath selector
//
var addHover = function(strSelector)
{
	$$(strSelector).addEvents({
		
		'click': function()
		{
			window.location = this.getFirst().getProperty('href');
		},
		
		'mouseenter': function()
		{
			this.toggleClass('hover');
		},
		
		'mouseleave': function()
		{
			this.toggleClass('hover');
		}
	
	});
}