addEvent(window, 'load', highlightContainer);

function highlightContainer () {
	//Grab the current GET variables from the url
	var strQueryString="";
	var hasQueryString = document.URL.indexOf('?');
	if (hasQueryString != -1)
	{
	    strQueryString = '&'+document.URL.substring(hasQueryString+1, document.URL.length);
	}
	
	//Change background color, mouse pointer and add a link to every result container
	var hiResults = new Array();
	hiResults = getElementsByClassName(document.getElementById("leftColumnInside"),"div","resultContainer");
	if (hiResults.length>0) {
		for (i in hiResults) {
			hiResults[i].onmouseover = function() {
				this.style.background="#f2f7fa";
				this.style.cursor="pointer";
				var ad_id = this.id.substr(1);
				this.onclick = function() {
					window.open('fullListing.php?ad='+ad_id+strQueryString,'_self');
				}
			}
			hiResults[i].onmouseout = function() {
				this.style.background="#fff";
			}
		}
	}
}