/* Copyright (C) 2014 Alexander V. Butenko This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. See the file COPYING for the full license text. */ function getElementsByAttribute (strTagName, strAttributeName, arrAttributeValue) { var arrElements = document.getElementsByTagName (strTagName); var arrReturnElements = new Array(); for (var j=0; j 0 && strAttributeValue.indexOf (oAttribute) != -1) arrReturnElements.push (oCurrent); } } return arrReturnElements; }; function hideElementBySrc (uris) { var oElements = getElementsByAttribute('img', 'src', uris); if (oElements.length == 0) oElements = getElementsByAttribute ('iframe', 'src', uris); for (var i=0; i