
function popupguide(prog, w, h) {	
	w +=3;
	h +=3;
  	var winopts="toolbar=no,location=no,directories=no,status=no,";
	winopts=winopts+"menubar=no,scrollbars=automatic,resize=yes,";
  	winopts=winopts+"titlebar=no,";
	winopts=  winopts + "width=" + w + ",height=" + h;
 	winopts=  winopts + ",left=0, top=0";
 	remote=window.open("" + prog,  "" , winopts);	 	
  	setTimeout('remote.focus()' , 10);  
}

function popupguide_sb(prog, w, h) {	
	w +=3;
	h +=3;
  	var winopts="toolbar=no,location=no,directories=no,status=no,";
	winopts=winopts+"menubar=no,scrollbars=yes,resize=yes,";
  	winopts=winopts+"titlebar=no,";
	winopts=  winopts + "width=" + w + ",height=" + h;
 	winopts=  winopts + ",left=0, top=0";
 	remote=window.open("" + prog,  "" , winopts);	 	
  	setTimeout('remote.focus()' , 10);  
}

function InitBall() {
  if (document.images) {
    kul1on=new Image();kul1on.src="1ona.gif";
    kul1off=new Image();kul1off.src="1offa.gif";
  }
}

function imgOn(imgName) {
  if (document.images) {document[imgName].src = kul1on.src;}
}
function imgOff(imgName) {
  if (document.images) {document[imgName].src = kul1off.src;}
}

var MinX=0, 
    MaxX=120,
    X=0,
    Y=20,
    Step=1,
    id;
    n_lighton=1;
    
function Move()
{
    if (n_lighton==0) {
      return;
    }

    // Přesun zdroje světla
    document.all.napis.filters.Light.moveLight(0, X, Y, 0, true);

    // Aktualizace 
    X += Step;      

    if (X >= MaxX) {
        //X = MaxX;
        Step = -Step;
        };

    if (X <= MinX) {
        //X = MinX;
        Step = -Step;
        };
}

function Init()
{
    document.all.napis.filters.Light.addCone((MinX+MaxX)/2, Y, 100, X, Y,
        255, 255, 255, 255, 10);    // Kuželový zdroj světla

    //document.all.napis.filters.Light.addPoint((MinX+MaxX)/2, Y, 100, 
    //    255, 255, 255, 100);    // Kuželový zdroj světla

    document.all.napis.filters.Light.addAmbient(0, 0, 255, 100);
                                    // Rovnoměrný zdroj světla
    id = setInterval("Move()", 50);    // Aktivace pohybu

    return(0);    
}
    

var id02, 
    op = 100,        // počáteční průhlednost
    step02 = -5;     // krok
    img_no = 1;
    n_delay = 100;

function img02_Start()
{
 
    id02 = window.setInterval("img02_Move()", 10);
}

function img02_Stop()
{
    window.clearInterval(id02);
}

function img02_Move()
{

    if (n_delay>0) {
      n_delay -=1;
      return(0);
    }
    
    n_lighton = 0;

    if (op > 0) {
        op -= 10;
    };

    if (op <= 0) {
        op = 100;
        img_no = img_no + 1;
        if (img_no > 3)
            img_no = 1;
        //window.clearInterval(id02);
        n_delay = 100;
        n_lighton = 1;
    };


    if (img_no == 1) {
      document.all.img1.filters.Alpha.opacity = op;
      document.all.img2.filters.Alpha.opacity = 100-op;
      document.all.img3.filters.Alpha.opacity = 0;
      return(0);
    }

    if (img_no == 2) {
      document.all.img1.filters.Alpha.opacity = 0;
      document.all.img2.filters.Alpha.opacity = op;
      document.all.img3.filters.Alpha.opacity = 100-op;
      return(0);
    }


    if (img_no == 3) {
      document.all.img1.filters.Alpha.opacity = 100-op;
      document.all.img2.filters.Alpha.opacity = 0;
      document.all.img3.filters.Alpha.opacity = op;
    }

    return(0);
}

function getWebCreatedBy() {
  var s = "";
  s = s + "<A class=web_created_by href=\"mailto: aitc@centrum.cz\">"
  s = s + "Web Design  © 2000, 2001, 2002  Zbynek Kojecky ";
  s = s + "</A>"
  return(s);
}

function WebCreatedBy() {
    WEB_CREEATED_BY.innerHTML = getWebCreatedBy();
}


