function play_dropinslideshow(slidel){if(window.onload){var slide2=window.onload;window.onload=function() { slide2(); slidel(); };}else{window.onload=function() { slidel(); };}};function dropinslideshow(slideid,width,height,pause,pictures,linkss,titles,degree,movetime,arrowimage){var self=this;var canvas="canvas0"+slideid;var position=height*(-1);var current=0;var next=1;var interval;var previous;this.move=function(){if(this.position<0){this.position=Math.min(this.position+degree,0);this.previous.style.top=this.position+"px";}else{clearInterval(this.interval);document.getElementById(canvas).innerHTML='<div class=block style="padding:3px;"><img src="'+arrowimage+'"> '+titles[current]+'</div><a href="'+linkss[current]+'"><img src="'+pictures[current]+'"></a>';next=(next<pictures.length-1) ? next+1 : 0;setTimeout( function(){self.rotate();} ,pause);}};this.rotate=function(){self.reset();document.getElementById(canvas).style.zIndex++;this.previous=document.getElementById(canvas);canvas=(canvas=="canvas0"+slideid) ? "canvas1"+slideid : "canvas0"+slideid;current=(current<pictures.length-1) ? current+1 : 0;this.interval=setInterval( function(){self.move();} ,movetime);};this.reset=function(){this.position=height*(-1);document.getElementById(canvas).style.top=this.position+"px";};this.start=function(){document.getElementById(canvas).innerHTML='<div class=block style="padding:3px;"><img src="'+arrowimage+'"> '+titles[current]+'</div><a href="'+linkss[current]+'"><img src="'+pictures[current]+'"></a>';self.rotate();};document.write('<div style="position:relative; width:'+width+'px; height:'+height+'px; overflow:hidden; margin:10px;"><div id="canvas0'+slideid+'" class=block style="position:absolute; width:'+width+'px; height:'+height+'px; top:-'+height+'px;"></div><div id="canvas1'+slideid+'" class=block style="position:absolute; width:'+width+'px; height:'+height+'px; top:-'+height+'px;"></div></div>');};