/* comment out because straps ar enow being stored in css var oSecDiv = document.getElementByClassName('div','sechead'); var imgPath = "templates/secheads_sections/$file/"; if(document.forms[0].Section.value == "Library" && document.forms[0].Subsection.value == "Onix") { var imgPath = "templates/secheads_subsections/$file/"; } if((!args['cat'])||((unescape(args['cat'])).indexOf('>') == -1)) { if(!args['cat']) { var oDiv = ((unescape(args['div'])).toLowerCase()).replace(/\s/gi,""); } else { var oDiv = ((unescape(args['cat'])).toLowerCase()).replace(/\s/gi,""); } var oImg = new Image(); oImg.onload = function() { oSecDiv.style.backgroundImage = "url(" + imgPath + oDiv + ".jpg)"; oSecDiv.style.height = oImg.height; }; oImg.onerror = function() { var oImgErr = new Image(); oImgErr.src = imgPath + oDiv + ".gif"; oSecDiv.style.backgroundImage = "url(" + imgPath + oDiv + ".gif)"; oSecDiv.style.height = oImgErr.height; }; oImg.src = imgPath + oDiv + ".jpg"; } else { var oCat = (((unescape(args['cat'])).toLowerCase()).replace(/\s/gi,"")).split('>'); var oImg = new Image(); oImg.onload = function() { oSecDiv.style.backgroundImage = "url(" + imgPath + oCat[1] + ".jpg)"; oSecDiv.style.height = oImg.height; }; oImg.onerror = function() { var oImgErr = new Image(); oImgErr.src = imgPath + oCat[0] + ".jpg"; oSecDiv.style.backgroundImage = "url(" + imgPath + oCat[0] + ".jpg)"; oSecDiv.style.height = oImgErr.height; }; oImg.src = imgPath + oCat[1] + ".jpg"; } */