function download(src)
{
        if(!document.all) return;
        var w=window.open(src,'photo','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=512,height=384');
}
function changeScrollbarColor(C)
{
        if (document.all)
        {
                document.body.style.scrollbarBaseColor = C;
        }
}

function showi(n)
{
        if (document.getElementById)
        {
                var info0 = document.getElementById("i0");
                var info1 = document.getElementById("i1");
                var info2 = document.getElementById("i2");
                var info3 = document.getElementById("i3");
                var info4 = document.getElementById("i4");
                var info5 = document.getElementById("i5");
                for(i=0;i<=5;i++) // hide all text boxes
                        {
                        eval("info"+i).style.visibility = "hidden";
                        }
                        // then show the one we want
                eval("info"+n).style.visibility = "visible";
        }else
        {
                return false;
        }
}
function show(n)
{
        if (document.getElementById)
        {
                var text0 = document.getElementById("t0");
                var text1 = document.getElementById("t1");
                var text2 = document.getElementById("t2");
                var text3 = document.getElementById("t3");
                var text4 = document.getElementById("t4");
                var text5 = document.getElementById("t5");
                for(i=0;i<=5;i++) // hide all text boxes
                        {
                        eval("text"+i).style.visibility = "hidden";
                        }
                        // then show the one we want
                eval("text"+n).style.visibility = "visible";
        }else
        {
                return false;
        }
//        select(0);
}
var selected=0;
function highlight(i,opac)
{
        for(a=1;a<=6;a++)
        {
                if(selected==a)
                {
                //do nothing;
               }else eval("frame"+a).style.filter='alpha(Opacity='+100+')';
        }
          if(selected!=i) eval("frame"+i).style.filter='alpha(Opacity='+opac+')';
//        document.frame1.style.filter=alpha(50);
}
function select(ii)
{
        for(a=1;a<=6;a++)
        {
         eval("frame"+a).style.filter='alpha(Opacity='+100+')';
         eval("com"+a).style.visibility='hidden';
        }
        if(ii!=0)
        {
        image.src=eval("pic"+ii).src;
        image.alt=eval("comment"+ii);
        comment=eval("comment"+ii);
        eval("frame"+ii).style.filter='alpha(Opacity='+50+')';
        eval("com"+ii).style.visibility='visible';
        selected=ii;
        }
}

var start=true;
var scroll=true;
var clip_down=20;
function scroll_text(t)
{
        if(!document.all) return;
        var speed=0.5;
        if (document.getElementById&&scroll)
        {
                var elem=document.getElementById("t3");
                if(start)
                {
                        eval("elem").style.posTop=561;
 //                       var clip_down=20;
                        start=false;
                }

                var poz_top=eval("elem").style.posTop;
                poz_top-=speed;
                clip_down+=2*speed;
                eval("elem").style.posTop=poz_top;
                eval("elem").style.clip="rect(auto auto "+clip_down+" auto )";
                if(poz_top<=240) scroll=false;
                window.setTimeout("scroll_text("+t+");", t);

        }
}

function play_midi(src)
{
        if(!document.all) return;
        var musicsrc=src;
        if (navigator.appName=="Microsoft Internet Explorer")
        document.write('<bgsound src='+'"'+musicsrc+'"'+' loop="infinite">');
        else
        document.write('<embed src=\"'+musicsrc+'\" hidden="true" border="0" width="20" height="20" autostart="true" loop="true">');
}
function open_photo(src)
{
        if(!document.all) return;
        var w=window.open(src,'photo','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=512,height=384');

}


