var osgb;
var slk;

var init = function(){
	osgb = document.getElementById('osgb');
	slk = document.getElementById('slk');

	osgb.onmouseover = over;
	slk.onmouseover = over;
	osgb.onmouseout = out;
	slk.onmouseout = out;
}

var over = function(event){
	if (undefined == event) event = window.event;
	if (undefined == event.target) event.target = event.srcElement;

	var selection = event.target
	var selectionId = selection.id;
	var antiSelectionId = (selectionId == 'osgb')? 'slk': 'osgb';
	var antiSelection = document.getElementById(antiSelectionId);

	antiSelection.src = "graphics/select/" + antiSelectionId + '2.png';

	var rand = Math.round(Math.random() * 5) + 2;

	selection.src = 'graphics/select/' + selectionId + '3.png';



}

var out = function(){
	osgb.src = "graphics/select/osgb1.png";
	slk.src = "graphics/select/slk1.png";
}