﻿ var cube_list = [
    "Image/005.jpg",
    "Image/001.jpg",
    "Image/002.jpg",
    "Image/003.jpg",
    "Image/004.jpg"
];
var cube1;
function cube_init () {
    cube1 = new Animation.Cube( "cube_area", cube_list );
    cube1.rotateSeconds = 0.5;
    cube1.waitSeconds   =15;
}
function cube_start () {
    if ( ! cube1 ) cube_init();
    cube1.rotate();
}
function cube_retry () {
    if ( ! cube1 ) cube_init();
    cube1.rotate();
}
function cube_reverse () {
    if ( ! cube1 ) cube_init();
    cube1.clockWise = ! cube1.clockWise;
}
function cube_stop () {
    if ( ! cube1 ) cube_init();
    cube1.finish();
}
function cube_speedup () {
    if ( ! cube1 ) cube_init();
    cube1.rotateSeconds *= 0.5;
}
function cube_speeddown () {
    if ( ! cube1 ) cube_init();
    cube1.rotateSeconds *= 2.0;
}

function test(x)
{
cube1.cursor=x;
}