// this method takes content from the source IFrame // and places it in the target element function fillContent(tagId) { var iframeElement = getDocument('lithiumFetcher-' + tagId); // grab the content in the iframe var iframeHTML = iframeElement.body.innerHTML; // grab the HTML between the tags getElement('lithiumContent-' + tagId).innerHTML = iframeHTML; // place it in the target element } // cross browser dom navigation methods function getElement(elName) { if (document.all) { // for IE return document.all[elName]; } else if (document.getElementById) { // for Moz/Nav/FF return document.getElementById(elName); } return ""; } // cross browser dom navigation methods function getDocument(elName) { if (document.all) { // for IE return document.frames[elName].document; } else if (window.frames && window.frames[elName]) { // for Safari return window.frames[elName].document; } else if (document.getElementById) { // for Moz/Nav/FF return document.getElementById(elName).contentWindow.document; } return ""; } // setup code to hide iframe based on browser var hideFrameCode = "style='display:none'"; var agent = navigator.userAgent.toLowerCase(); if (agent.indexOf("safari") != -1) { hideFrameCode = "height='0' width='0'"; } document.write("
"); document.write("");