﻿// JScript File

var tmrScroll;

    function scroll(nme, iScroll)
    {
        var el = document.getElementById(nme);    
        var t = parseInt(el.style.posTop);
        if (isNaN(t)){ t = 0; }    
        t += iScroll; 
        if (t > 0)
        {
            t = 0;
            stop();
        }   
        if ((el.scrollHeight + t) <= 0)
        {        
            t = 15 - el.scrollHeight;
            stop();
        }
        el.style.posTop = t;
        el.style.top = t + "px";
    }
    
    function scrollup(nme)
    {
    tmrScroll = setInterval("scroll('" + nme + "',50)", 100);
    }
    
    function scrolldown(nme)
    {
    tmrScroll = setInterval("scroll('" + nme + "',-50)", 100);
    }

function stop()
{
clearInterval(tmrScroll);
}


function RunObject(){
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="394" height="794" id="slideshow-player-with-logo" align="middle">\n');
document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
document.write('<param name="movie" value="slideshow-player-with-logo.swf" />\n');
document.write('<param name="quality" value="high" />\n');
document.write('<param name="bgcolor" value="#ffffff" />\n');
document.write('<embed src="slideshow-player-with-logo.swf" quality="high" bgcolor="#ffffff" width="394" height="794" name="slideshow-player-with-logo" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
document.write('</object>')  

}