'; } } function getStyle(el,styleProp) { try { var x = document.getElementById(el); if (x == undefined || x == null) { return 'none'; } var y = false; if (x.currentStyle) { y = x.currentStyle[styleProp]; } else if (window.getComputedStyle) { y = document.defaultView.getComputedStyle(x, null).getPropertyValue(styleProp); } return y; } catch(err) { return 'none'; } } function checkad() { var s = getStyle('adBox', 'display'); if (s=='none' || s=="None") { bl = '1'; } load(); } setTimeout(function () { checkad(); }, 500);