function smartRollover() {
	if(document.getElementsByTagName && document.getElementById("pinimg")) {
		var images = document.getElementById("pinimg");

		var areas = document.getElementById("xmas");
		if(images.getAttribute("src").match("pin2.gif"))
		{
			areas.onmouseover = function() {
				var images = document.getElementById("pinimg")
				images.setAttribute("src", images.getAttribute("src").replace("pin2.gif", "pinxmas.gif"));
			}
			areas.onmouseout = function() {
				var images = document.getElementById("pinimg")
				images.setAttribute("src", images.getAttribute("src").replace("pinxmas.gif", "pin2.gif"));
			}
		}
		var areas = document.getElementById("pyramid");
		if(images.getAttribute("src").match("pin2.gif"))
		{
			areas.onmouseover = function() {
				var images = document.getElementById("pinimg")
				images.setAttribute("src", images.getAttribute("src").replace("pin2.gif", "pinpyramid.gif"));
			}
			areas.onmouseout = function() {
				var images = document.getElementById("pinimg")
				images.setAttribute("src", images.getAttribute("src").replace("pinpyramid.gif", "pin2.gif"));
			}
		}
		var areas = document.getElementById("Exp");
		if(images.getAttribute("src").match("pin2.gif"))
		{
			areas.onmouseover = function() {
				var images = document.getElementById("pinimg")
				images.setAttribute("src", images.getAttribute("src").replace("pin2.gif", "Exp.gif"));
			}
			areas.onmouseout = function() {
				var images = document.getElementById("pinimg")
				images.setAttribute("src", images.getAttribute("src").replace("Exp.gif", "pin2.gif"));
			}
		}








	}
}

if(window.addEventListener) {
	window.addEventListener("load", smartRollover, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", smartRollover);
}
