var selectedid= -1;
var mouseoverimg= null;

function moveover(img, id){
	img.src= arrImgOver[id].src;
	selectedid= id; mouseoverimg= img;
}

function moveout(img, id){
	img.src= arrImgOut[id].src;
}

function unselect(){
    if (selectedid >= 0 && mouseoverimg){
        mouseoverimg.src= arrImgOut[selectedid].src;
    }
}
//http://www.robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/
function getStyle(oElm, strCssRule){
	var strValue = "";
	if(document.defaultView && document.defaultView.getComputedStyle){
		strValue = document.defaultView.getComputedStyle(oElm, "").getPropertyValue(strCssRule);
	}
	else if(oElm.currentStyle){
		strCssRule = strCssRule.replace(/\-(\w)/g, function (strMatch, p1){
			return p1.toUpperCase();
		});
		strValue = oElm.currentStyle[strCssRule];
	}
	return strValue;
}
