MAX_CAPTION = 3;
CAPTION_WIDTH = 1600;
CAPTION_HEIGHT = 160;
CAPTION_FONT_SIZE = 70;

var s = new stage ({});

caption_upper = new gtextbox ({
    "translate": [0, 300, 0],
    "rotation": [0, 0, 0, 0],
    "color": [255, 255, 255, 255],
    "width": CAPTION_WIDTH,
    "height": CAPTION_HEIGHT,
    "text": "",
    "align": CENTER,
    "font_size": CAPTION_FONT_SIZE,
    "font_name": "F015T-bold",
    "visible_p": true,
});
caption_middle = new gtextbox ({
    "translate": [0, -50, 0],
    "rotation": [0, 0, 0, 0],
    "color": [255, 255, 255, 255],
    "width": CAPTION_WIDTH,
    "height": CAPTION_HEIGHT,
    "text": "",
    "align": CENTER,
    "font_size": CAPTION_FONT_SIZE,
    "font_name": "F015T-bold",
    "visible_p": true,
});
caption_lower = new gtextbox ({
    "translate": [0, -400, 0],
    "rotation": [0, 0, 0, 0],
    "color": [255, 255, 255, 255],
    "width": CAPTION_WIDTH,
    "height": CAPTION_HEIGHT,
    "text": "",
    "align": CENTER,
    "font_size": CAPTION_FONT_SIZE,
    "font_name": "F015T-bold",
    "visible_p": true,
});

var clear_caption_frame = function() {
    s.components[0] = caption_upper;
    s.components[1] = caption_middle;
    s.components[2] = caption_lower;
    caption_upper = 0;
    caption_middle = 0;
    caption_lower = 0;
}

function caption_appear_obj () {
    s.components[0] = caption_upper;
    s.components[1] = caption_middle;
    s.components[2] = caption_lower;

    force_redraw();
}

s.in = [
    {
	"from": ["default"],
    }
];

var home_screen = stage
({
    "symbol": "home_screen",
});

