function hoverImage(imgObj){

	if(imgObj.src.indexOf("_n.") > 1)
	{
		var pre = imgObj.src.substr(0, imgObj.src.indexOf("_n."));
		var post = imgObj.src.substr(imgObj.src.indexOf("_n.")+2);
	
		imgObj.src = pre + "_h"+post;
		return;
	}
	
	if(imgObj.src.indexOf("_h.") > 1)
	{
		var pre = imgObj.src.substr(0, imgObj.src.indexOf("_h."));
		var post = imgObj.src.substr(imgObj.src.indexOf("_h.")+2);
	
		imgObj.src = pre + "_n"+post;
		return;
	}

return;
}



function setOpacity(obj, opacity) {
  opacity = (opacity == 100)?99.999:opacity;

  // IE/Win
  obj.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+ opacity + ");";

  // Safari<1.2, Konqueror
  obj.style.KHTMLOpacity = opacity/100;

  // Older Mozilla and Firefox
  obj.style.MozOpacity = opacity/100;

  // Safari 1.2, newer Firefox and Mozilla, CSS3
  obj.style.opacity = opacity/100;
}



function $(id)
{
	return document.getElementById(id);
}



function getStyle(el, cssproperty, csspropertyNS){
if (el.currentStyle) //if IE5+
return el.currentStyle[cssproperty]
else if (window.getComputedStyle){ //if NS6+
var elstyle=window.getComputedStyle(el, "")
return elstyle.getPropertyValue(csspropertyNS)
}

return null;
}

