this.onload = function()
{
	/*
	 * Config section
	 */
	 
	var rollover_dir = "/portfolio/images/";			//Directory prefix for rollover images.
	var off_ending	= "1.gif";				//extention and differentiating ending for normal state
	var on_ending	= "2.gif";				//same for the rolled over state

	
	/*
	 * execution phase
	 */
	
	var img_list = document.getElementsByTagName("img");  //get the list of images
	for (i in img_list)
	{
		if ( /rollover/.test(img_list[i].className) ) //test to see if class list contains "rollover"
		{
			addEvent(img_list[i],'mouseover', function(){this.src = rollover_dir+this.name+on_ending;}, true);
			addEvent(img_list[i],'mouseout', function(){this.src = rollover_dir+this.name+off_ending;}, true);
		/*	img_list[i].onmouseover= function(){this.src = rollover_dir+this.name+"2.gif";}; 
			img_list[i].onmouseout= function(){this.src = rollover_dir+this.name+"1.gif";}; */
		}
	}
}


function addEvent(obj, evType, fn, useCapture)
{
	if (obj.addEventListener)
	{
		obj.addEventListener(evType, fn, useCapture);
		return true;
	}
	else if (obj.attachEvent)
	{
		var r = obj.attachEvent("on"+evType, fn);
		return r;
	}
}

function bannerpop(urlt) {
window.open(urlt,"remote", "width=500,height=100,scrollbars=no");
}
