// // (c) Jupiter Design 2005 // // By Rob Ingram // 20050802 // Array to hold opacity values var steps = new Array(0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 0.99); function setInnerTimer() { // Make sure text box is opaque when refreshed // For IE if(document.getElementById('innerQuoteBox').filters) // But not Mac IE if(window.print) document.getElementById('innerQuoteBox').filters.alpha.opacity = 0; // For others else document.getElementById('innerQuoteBox').style.opacity = 0; // Set a time for the fade function (not Mac IE) if(window.print) { var the_timeout = setTimeout("showItInner(0)", 3000); // Set the images and text document.getElementById('innerQuoteBox').innerHTML = "

“" + quoteText + "”

"; document.getElementById('innerQuoteBox').style.background = quoteBGColour; document.getElementById('innerQuoteBox').style.color = quoteFGColour; } } function showItInner(index) { var the_timeout; // If the panel is not fully opaque set the opacity to the value from the given array index if(steps[index] <= 1) { // For IE if(document.getElementById('innerQuoteBox').filters) document.getElementById('innerQuoteBox').filters.alpha.opacity = steps[index]*100; // For others else document.getElementById('innerQuoteBox').style.opacity = steps[index]; // Increment the array index and set a new timer for this function index += 1; the_timeout = setTimeout("showItInner("+index+")", 50); } } safeAddOnload(setInnerTimer);