/* // JoomlaWorks "Simple Image Rotator" Module for Joomla! 1.5.x - Version 1.2 // License: http://www.gnu.org/copyleft/gpl.html // Copyright (c) 2006 - 2008 JoomlaWorks, a Komrade LLC company. // More info at http://www.joomlaworks.gr // Developers: Fotis Evangelou // ***Last update: May 20th, 2008*** */ var delay = 5000; var transition = 40; var imageContainer = 'jw-sir'; var d=document, imgs = new Array(), zInterval = null, current=0, pause=false; function so_init() { if(!d.getElementById || !d.createElement)return; imgs = d.getElementById(imageContainer).getElementsByTagName("img"); for(i=1;i.99) { obj.xOpacity = .99; return; } obj.style.opacity = obj.xOpacity; obj.style.MozOpacity = obj.xOpacity; obj.style.filter = "alpha(opacity=" + (obj.xOpacity*100) + ")"; } } function hideLoading() {document.getElementById(preLoader).style.display = 'none';} // Load everything up function init_ahr() { if (arguments.callee.done) return; arguments.callee.done = true; so_init(); hideLoading(); }; // DOM2 if ( typeof window.addEventListener != "undefined" ) { window.addEventListener( "load", init_ahr, false ); } // IE else if ( typeof window.attachEvent != "undefined" ) { window.attachEvent( "onload", init_ahr ); } else { if ( window.onload != null ) { var oldOnload = window.onload; window.onload = function ( e ) { oldOnload( e ); init_ahr(); }; } else window.onload = init_ahr; }