/* function renamed with phpipam prefix * to avoid collision with a dokuwiki builtin */ function phpipam_getElementsByClass(searchClass,node,tag) { var classElements = new Array(); if ( node == null ) node = document; if ( tag == null ) tag = '*'; var els = node.getElementsByTagName(tag); var elsLen = els.length; var pattern = new RegExp("(^|\\\\s)"+searchClass+"(\\\\s|\$)"); for (i = 0, j = 0; i < elsLen; i++) { if ( pattern.test(els[i].className) ) { classElements[j] = els[i]; j++; } } return classElements; } /* IE can't do "display:inline-table", * but "inline" works, so we fix this client-side */ function phpipam_ie6fix() { //alert(navigator.userAgent); if(/MSIE/.test(navigator.userAgent)) { var tables = phpipam_getElementsByClass('rack'); for (var i=0; i