var internet_explorer=navigator.appName=="Microsoft Internet Explorer"; /* How to change opacity in IE: http://joseph.randomnetworks.com/archives/2006/08/16/css-opacity-in-internet-explorer-ie/ */ var set_opacity = internet_explorer ? function(el,o) { el.style.filter="alpha(opacity="+Math.round(o*100)+")";} : function(el,o) { el.style.opacity=o; }; function start_slideshow(img,options) { var p=img.parentNode; if(p.tagName=="A") p=p.parentNode; var is=p.getElementsByTagName("img"); if(is.length>1) { var cur=0; var w=img.width; var h=img.height; //p.style.position="relative"; p.style.minWidth=w+"px"; p.style.minHeight=h+"px"; var images=[]; for(var i=0;iw) { w=n.width; p.style.minWidth=w+"px"; } if(n.height>h) { h=n.height; p.style.minHeight=h+"px"; } c.style.position="absolute"; c.style.zIndex=0; fade(n,0,1,ft,function() { if(c.width>n.width || c.height>n.height) fade(c,1,0,ft,null); else set_opacity(c,0); }); //debug.innerHTML=w+"x"+h; //for(var i=0;i=1) { next=1; done(); } if(next<=0) { next=0; done(); } set_opacity(el,next); el.current=next } if(!el.timer) { el.current=start; el.timer=setInterval(f,dt); } }