function _getStyle(element,styleProp){ if (element.currentStyle){ var y = element.currentStyle[styleProp]; }else if (window.getComputedStyle){ var y = document.defaultView.getComputedStyle(element,null).getPropertyValue(styleProp.replace(/([A-Z])/g,"-$1").toLowerCase()); ...