
function mouseOver() {
  cs="tf0";cm("gu");os=cus;effects();
}

function mouseOut() {
  os="   ";effects();
}
function mouseOver() {                       // Run at "onMouseOver" event
  cs="tf0";cm("gu");os=cus;effects();        // Get selection, supply it to method
}

function mouseOut() {                        // Run at "onMouseOut" event
  os="   ";effects();                        // Select "No 3D required"
}

function effects() {                         // IN:os=3D effect. Can be: rgp, lgp, ser, sed.
  var o1s=os;                                // Save user's choice temporarely
  os ="lf=185;of=185;mode=wbo;";             // Open new bitmap operation using
                                             // bitmap of size 185 X 185 pixels
  os+="cls=p7;mode=gec;";                    // Paint background same as page
  os+="lf=150;of=150;mode=gce;";             // Create a circle
  if (os.Length<1) os="   ";                 // If no selection found use default
    //----------------------------- Radial Gradient Paint ------------------------------
  if (o1s=="rgp") {                          // If "Radial Gradient Paint selected:
    os+="cls=s9g0;mode=gspr;";               // Make radial gradient brush for the circle
    os+="mode=ggrf;";                        // Render-fill the circle object.
  }
    //----------------------------- Linear Gradient Paint ------------------------------
  else if (o1s=="lgp") {                     // If "Linear Gradient Paint selected:
    os+="cls=s9r0;ad=0;mode=gspl;";          // Make linear gradient brush for the circle
    os+="mode=ggrf;";                        // Render-fill the circle object.
  }
    //-------------------------- Special Effects - Reflection ---------------------------
  else if (o1s=="ser") {                     // If "Sp Effects-Reflection selected:
    os+="of=5;cls=b0;ks=r;mode=ggrs;";       // Render with sp effects-reflection
                                             // brightness factor=5, blue color
  }
    //----------------------------- Special Effects - Depth -----------------------------
  else if (o1s=="sed") {                     // If "Sp Effects-Depth selected:
    os+="cls=s9s0;id=20;ad=30;ks=d;mode=ggrs;";
                                             // Render with sp effects-depth
                                             // Shear angle=30, Depth=20 pixels
  }
    //---------------------------- No 3D Effects Requested ------------------------------
  else {                                     // If No Selection made:
    os+="cls=p7;mode=gec;";                  // Erase all.
  }
  os+="mode=wbc;";                           // Close bitmap operation.
  cs="lb1";js="im2";kb=true;rm("gi");        // Get image remotely, no cashing.
}

