
/*********************************************************************
File Name:	mapover.js
File Info:	Javascript
Author:		WEB DESIGN LAB
		http://www.webdlab.com/
Last Modified:	10.01.2009
*********************************************************************/

/*--------------------------------------------------------------------
Script
--------------------------------------------------------------------*/

var mapimg = new Array(3);
mapimg[0] = './files/prog.jpg';
mapimg[1] = './files/prog01.jpg';
mapimg[2] = './files/prog02.jpg';
mapimg[3] = './files/prog03.jpg';
mapimg[4] = './files/prog04.jpg';
mapimg[5] = './files/prog05.jpg';
mapimg[6] = './files/prog06.jpg';
mapimg[7] = './files/prog07.jpg';

function mapover() {
	document.getElementById('link1').onmouseover = function() {
		document.getElementById('cmap').src = mapimg[1];
	}
	document.getElementById('link1').onmouseout = function() {
		document.getElementById('cmap').src = mapimg[0];
	}
	document.getElementById('link1').onclick = function() {
		document.getElementById('cmap').src = mapimg[0];
	}

	document.getElementById('link2').onmouseover = function() {
		document.getElementById('cmap').src = mapimg[2];
	}
	document.getElementById('link2').onmouseout = function() {
		document.getElementById('cmap').src = mapimg[0];
	}
	document.getElementById('link2').onclick = function() {
		document.getElementById('cmap').src = mapimg[0];
	}
	
	document.getElementById('link3').onmouseover = function() {
		document.getElementById('cmap').src = mapimg[3];
	}
	document.getElementById('link3').onmouseout = function() {
		document.getElementById('cmap').src = mapimg[0];
	}
	document.getElementById('link3').onclick = function() {
		document.getElementById('cmap').src = mapimg[0];
	}
	
	document.getElementById('link4').onmouseover = function() {
		document.getElementById('cmap').src = mapimg[4];
	}
	document.getElementById('link4').onmouseout = function() {
		document.getElementById('cmap').src = mapimg[0];
	}
	document.getElementById('link4').onclick = function() {
		document.getElementById('cmap').src = mapimg[0];
	}
	
	document.getElementById('link5').onmouseover = function() {
		document.getElementById('cmap').src = mapimg[5];
	}
	document.getElementById('link5').onmouseout = function() {
		document.getElementById('cmap').src = mapimg[0];
	}
	document.getElementById('link5').onclick = function() {
		document.getElementById('cmap').src = mapimg[0];
	}
	
	document.getElementById('link6').onmouseover = function() {
		document.getElementById('cmap').src = mapimg[6];
	}
	document.getElementById('link6').onmouseout = function() {
		document.getElementById('cmap').src = mapimg[0];
	}
	document.getElementById('link6').onclick = function() {
		document.getElementById('cmap').src = mapimg[0];
	}
	
	document.getElementById('link7').onmouseover = function() {
		document.getElementById('cmap').src = mapimg[7];
	}
	document.getElementById('link7').onmouseout = function() {
		document.getElementById('cmap').src = mapimg[0];
	}
	document.getElementById('link7').onclick = function() {
		document.getElementById('cmap').src = mapimg[0];
	}
}

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

