﻿var ta;
var da;
function init() {
    ta = new Tween(document.getElementById('contentbookAll').style, 'marginLeft', Tween.strongEaseOut, -160, 0, 1, 'px');
    da = new Tween(document.getElementById('contentdvdAll').style, 'marginLeft', Tween.strongEaseOut, -160, 0, 1, 'px');
    ta.start();
    da.start();
}
function gotoPositionCD(Int) {
    var nextPos = (-(150 * Int));
    ta.stop();
    ta.continueTo(nextPos, 1);
}
function gotoPositionDVD(Int) {
    var nextPos = (-(150 * Int));
    da.stop();
    da.continueTo(nextPos, 1);
}