Šťastný konec

var pages = { "0": { "name":"page00" }, "22": { "name":"page01" }, "71": { "name":"page02" } }; var frames = { "0": { "position":{"x":67,"y":128},"dimension":{"height":419,"width":418} }, "6": { "position":{"x":485,"y":128},"dimension":{"height":211,"width":268} }, "16": { "position":{"x":485,"y":338},"dimension":{"height":210,"width":267} }, "22": { "position":{"x":60,"y":89},"dimension":{"height":211,"width":234} }, "25": { "position":{"x":293,"y":89},"dimension":{"height":212,"width":222} }, "29": { "position":{"x":514,"y":88},"dimension":{"height":214,"width":228} }, "32": { "position":{"x":58,"y":300},"dimension":{"height":212,"width":236} }, "50": { "position":{"x":291,"y":300},"dimension":{"height":212,"width":242 } }, "63": { "position":{"x":528,"y":301},"dimension":{"height":211,"width":216} }, "71": { "position":{"x":56,"y":88},"dimension":{"height":200,"width":418} }, "75": { "position":{"x":464,"y":89},"dimension":{"height":183,"width":280} }, "87": { "position":{"x":57,"y":260},"dimension":{"height":249,"width":415} }, "94": { "position":{"x":472,"y":271},"dimension":{"height":239,"width":271} }, };