function onLoad() {
	rolloverlaysByClassName('click', 'content_container', 'div');
}

function rolloverlaysByClassName(className, inElement, tagName) {
	var clickables = $(inElement).getElementsByClassName(className);
	
	clickables.map( function (div) {
		if(div.tagName.toLowerCase() == tagName.toLowerCase() || !tagName) {
			addRolloverlay(div, className + '_overlay');
		}
	} );
}

function addRolloverlay(oElement, ofClass, URL) {
	var ch 		= oElement.getDimensions().height;
	var cw 		= oElement.getDimensions().width;
	var x		= Position.positionedOffset(oElement)[0];
	var y		= Position.positionedOffset(oElement)[1];
	
	var href;
	if(URL) {
		href = URL;
	} else {
		href = Try.these(
			function() {return oElement.getElementsByTagName("a")[0].href;},
			function() {return '';}
		);
	}
	
	var overlay = $(document.createElement("div"));
	overlay.addClassName(ofClass);
	overlay.setStyle( {width:cw+'px', height:ch+'px', 'z-index':9999, display:'none', cursor:'pointer', left:x+'px', top:y+'px'} );
	overlay.onclick = function() { document.location = href; }
	
	Position.offsetParent(oElement).appendChild(overlay);
	
	oElement.onmouseover 	= function() { overlay.show(); }
	oElement.onmouseout 	= function() { overlay.hide(); }
	overlay.onmouseover 	= function() { this.show(); }
	overlay.onmouseout 		= function() { this.hide(); }
}
