var CM = new CourseManager();
//==================== MAIN VARIABLES =========================================================
CM.buildTimeline('setCourseOptions', {dimentions_x:860,dimentions_y:500,showTitles:0,tocenabled:"1",helpTitle:'',euroforum:true,transcription:'',resumptionType:'popup',singleFile:true,status:'nc',project_max_points_custom: 0,drawPagesData:{"draws":{},"lastDrawId":0},zoom:1,trigger: [],sound:{filename: 'none',volume: 0.5,loop: 1,muted: false},req:{p: true,s: false,e: false},score:{required: 0,max: 0},logo:{filename: '',logoWidth: 0,logoHeight: 0},active:{line: 0,obj: 0}});
//==================== MAIN VARIABLES END =========================================================
//==================== PAGES =========================================================
CM.buildTimeline('addPage', {id: 1,order: 0,name: 'Ekran początkowy',compl: 0,timer: 0,sound:{filename: '',filenameogg: 'ogg'},locknavi: false,locknavitrigger: false,endAction: 'none',lockscroll: false,trigger: "{triggers: {}}"});
CM.buildTimeline('addPage', {id: 3,order: 1,name: 'Gardener',compl: 0,timer: 0,sound:{filename: '',filenameogg: 'ogg'},locknavi: false,locknavitrigger: false,endAction: 'none',lockscroll: false,trigger: "{triggers: {}}"});
CM.buildTimeline('addPage', {id: 4,order: 2,name: 'Teacher',compl: 0,timer: 0,sound:{filename: '',filenameogg: 'ogg'},locknavi: false,locknavitrigger: false,endAction: 'none',lockscroll: false,trigger: "{triggers: {}}"});
CM.buildTimeline('addPage', {id: 5,order: 3,name: 'Baker',compl: 0,timer: 0,sound:{filename: '',filenameogg: 'ogg'},locknavi: false,locknavitrigger: false,endAction: 'none',lockscroll: false,trigger: "{triggers: {}}"});
CM.buildTimeline('addPage', {id: 6,order: 4,name: 'Farmer',compl: 0,timer: 0,sound:{filename: '',filenameogg: 'ogg'},locknavi: false,locknavitrigger: false,endAction: 'none',lockscroll: false,trigger: "{triggers: {}}"});
CM.buildTimeline('addPage', {id: 7,order: 5,name: 'Mechanic',compl: 0,timer: 0,sound:{filename: '',filenameogg: 'ogg'},locknavi: false,locknavitrigger: false,endAction: 'none',lockscroll: false,trigger: "{triggers: {}}"});
CM.buildTimeline('addPage', {id: 8,order: 6,name: 'Vet',compl: 0,timer: 0,sound:{filename: '',filenameogg: 'ogg'},locknavi: false,locknavitrigger: false,endAction: 'none',lockscroll: false,trigger: "{triggers: {}}"});
CM.buildTimeline('addPage', {id: 2,order: 7,name: 'Ekran końcowy',compl: 0,timer: 0,sound:{filename: '',filenameogg: 'ogg'},locknavi: false,locknavitrigger: false,endAction: 'none',lockscroll: false,trigger: {"triggers":[],"enabled":true,"copied":{"triggerData":0,"triggerEnabled":0}}});
//==================== PAGES END =====================================================
//==================== OBJECTS =========================================================
CM.buildTimeline('addObject', {id: 'b811752e2418c3f3a033f180e368986d-2-1',init: false,hidden: false,animations: {animIn:'none',animOut:'none',hover:'none',endless:'none',animInExecTime: '1.3',animOutExecTime: '1.3',animOverExecTime: '1.3',animConstantExecTime: '1.3',obTime:'0',delaytime:'0',async:'0',lineType:'after_time',animationReady:true},
originalPosition: {posX: 47,posY: 112},
action: 99,score: 0,status: 0,compl: 0,clicked: 0,endAction: {name: 'none', opts: {}},trigger: {"triggers":[],"enabled":false,"lastID":0},sound: {filename:'',filenameogg:'W_tym_quizie_po__wiczysz_ze_s__uchu_pisowni___nazw_liczb_1_10.ogg',volume: 1,loop: 0}});
CM.buildTimeline('addObject', {id: 'b811752e2418c3f3a033f180e368986d-3-1',init: false,hidden: false,animations: {animIn:'hatch',animOut:'none',hover:'none',endless:'none',animInExecTime: '1.3',animOutExecTime: '1.3',animOverExecTime: '1.3',animConstantExecTime: '1.3',obTime:'0',delaytime:'0',async:'0',lineType:'after_time',animationReady:true},
originalPosition: {posX: 563,posY: 75},
action: 9,score: 0,status: 0,compl: 0,clicked: 0,endAction: {name: 'none', opts: {}},trigger: {},sound: {filename:'',filenameogg:'',volume: 1,loop: 0}});
CM.buildTimeline('addObject', {id: 'b811752e2418c3f3a033f180e368986d-4-1',init: false,hidden: false,animations: {animIn:'none',animOut:'none',hover:'none',endless:'none',animInExecTime: '1.3',animOutExecTime: '1.3',animOverExecTime: '1.3',animConstantExecTime: '1.3',obTime:'0',delaytime:'0',async:'0',lineType:'after_time',animationReady:true},
originalPosition: {posX: 64,posY: 56},
action: 16,score: 0,status: 0,compl: 0,clicked: 0,endAction: {name: 'none', opts: {}},trigger: {},sound: {filename:'',filenameogg:'',volume: 1,loop: 0}});
CM.buildTimeline('addObject', {id: '9deb01be8384117b19bb3723809082d3-17-1',init: false,hidden: false,animations: {animIn:'none',animOut:'none',hover:'none',endless:'none',animInExecTime: '1.3',animOutExecTime: '1.3',animOverExecTime: '1.3',animConstantExecTime: '1.3',obTime:'0',delaytime:'0',async:'0',lineType:'after_time',animationReady:true},
originalPosition: {posX: 0,posY: 385},
action: 9,score: 0,status: 0,compl: 0,clicked: 0,endAction: {name: 'none', opts: {}},trigger: {},sound: {filename:'',filenameogg:'',volume: 1,loop: 0}});
CM.buildTimeline('addObject', {id: '9deb01be8384117b19bb3723809082d3-18-1',init: false,hidden: false,animations: {animIn:'none',animOut:'none',hover:'none',endless:'none',animInExecTime: '1.3',animOutExecTime: '1.3',animOverExecTime: '1.3',animConstantExecTime: '1.3',obTime:'0',delaytime:'0',async:'0',lineType:'after_time',animationReady:true},
originalPosition: {posX: -8,posY: -7},
action: 9,score: 0,status: 0,compl: 0,clicked: 0,endAction: {name: 'none', opts: {}},trigger: {},sound: {filename:'',filenameogg:'',volume: 1,loop: 0}});
CM.buildTimeline('addObject', {id: '9deb01be8384117b19bb3723809082d3-19-1',init: false,hidden: false,animations: {animIn:'none',animOut:'none',hover:'none',endless:'none',animInExecTime: '1.3',animOutExecTime: '1.3',animOverExecTime: '1.3',animConstantExecTime: '1.3',obTime:'0',delaytime:'0',async:'0',lineType:'after_time',animationReady:true},
originalPosition: {posX: 10,posY: 7},
action: 99,score: 0,status: 0,compl: 0,clicked: 0,endAction: {name: 'none', opts: {}},trigger: {},sound: {filename:'',filenameogg:'',volume: 1,loop: 0}});
CM.buildTimeline('addObject', {id: '9deb01be8384117b19bb3723809082d3-20-1',init: false,hidden: false,animations: {animIn:'none',animOut:'none',hover:'none',endless:'none',animInExecTime: '1.3',animOutExecTime: '1.3',animOverExecTime: '1.3',animConstantExecTime: '1.3',obTime:'0',delaytime:'0',async:'0',lineType:'after_time',animationReady:true},
originalPosition: {posX: 729,posY: 16},
action: 99,score: 0,status: 0,compl: 0,clicked: 0,endAction: {name: 'none', opts: {}},trigger: {},sound: {filename:'',filenameogg:'',volume: 1,loop: 0}});
CM.buildTimeline('addObject', {id: '9deb01be8384117b19bb3723809082d3-21-1',init: false,hidden: false,animations: {animIn:'none',animOut:'none',hover:'none',endless:'none',animInExecTime: '1.3',animOutExecTime: '1.3',animOverExecTime: '1.3',animConstantExecTime: '1.3',obTime:'0',delaytime:'0',async:'0',lineType:'after_time',animationReady:true},
originalPosition: {posX: 89,posY: 2},
action: 99,score: 0,status: 0,compl: 0,clicked: 0,endAction: {name: 'none', opts: {}},trigger: {"triggers":[],"enabled":false,"lastID":0},sound: {filename:'',filenameogg:'',volume: 1,loop: 0}});
CM.buildTimeline('addObject', {id: '724993ce17d4a2e548820797ee384395-23-1',init: false,hidden: false,animations: {animIn:'none',animOut:'none',hover:'none',endless:'none',animInExecTime: '1.3',animOutExecTime: '1.3',animOverExecTime: '1.3',animConstantExecTime: '1.3',obTime:'0',delaytime:'0',async:'0',lineType:'after_time',animationReady:true},
originalPosition: {posX: 45,posY: 11},
action: 31,score: 0,status: 0,compl: 0,clicked: 0,endAction: {name: 'none', opts: {}},trigger: {},sound: {filename:'',filenameogg:'',volume: 1,loop: 0}});
CM.buildTimeline('addObject', {id: '724993ce17d4a2e548820797ee384395-25-1',init: false,hidden: false,animations: {animIn:'none',animOut:'none',hover:'none',endless:'none',animInExecTime: '1.3',animOutExecTime: '1.3',animOverExecTime: '1.3',animConstantExecTime: '1.3',obTime:'0',delaytime:'0',async:'0',lineType:'after_time',animationReady:true},
originalPosition: {posX: 72,posY: 11},
action: 31,score: 0,status: 0,compl: 0,clicked: 0,endAction: {name: 'none', opts: {}},trigger: {},sound: {filename:'',filenameogg:'',volume: 1,loop: 0}});
CM.buildTimeline('addObject', {id: '76b3b4df705d4477cf82c59f291da39d-1-3',init: false,hidden: false,animations: {animIn:'none',animOut:'none',hover:'none',endless:'none',animInExecTime: '1.3',animOutExecTime: '1.3',animOverExecTime: '1.3',animConstantExecTime: '1.3',obTime:'0',delaytime:'0',async:'0',lineType:'after_time',animationReady:true},
originalPosition: {posX: 0,posY: 0},
action: 18,score: 0,status: 0,compl: 0,clicked: 0,endAction: {name: 'none', opts: {}},trigger: {},sound: {filename:'',filenameogg:'',volume: 1,loop: 0}});
CM.buildTimeline('addObject', {id: '76b3b4df705d4477cf82c59f291da39d-1-4',init: false,hidden: false,animations: {animIn:'none',animOut:'none',hover:'none',endless:'none',animInExecTime: '1.3',animOutExecTime: '1.3',animOverExecTime: '1.3',animConstantExecTime: '1.3',obTime:'0',delaytime:'0',async:'0',lineType:'after_time',animationReady:true},
originalPosition: {posX: 0,posY: 0},
action: 18,score: 0,status: 0,compl: 0,clicked: 0,endAction: {name: 'none', opts: {}},trigger: {},sound: {filename:'',filenameogg:'',volume: 1,loop: 0}});
CM.buildTimeline('addObject', {id: '76b3b4df705d4477cf82c59f291da39d-1-5',init: false,hidden: false,animations: {animIn:'none',animOut:'none',hover:'none',endless:'none',animInExecTime: '1.3',animOutExecTime: '1.3',animOverExecTime: '1.3',animConstantExecTime: '1.3',obTime:'0',delaytime:'0',async:'0',lineType:'after_time',animationReady:true},
originalPosition: {posX: 0,posY: 0},
action: 18,score: 0,status: 0,compl: 0,clicked: 0,endAction: {name: 'none', opts: {}},trigger: {},sound: {filename:'',filenameogg:'',volume: 1,loop: 0}});
CM.buildTimeline('addObject', {id: '76b3b4df705d4477cf82c59f291da39d-1-6',init: false,hidden: false,animations: {animIn:'none',animOut:'none',hover:'none',endless:'none',animInExecTime: '1.3',animOutExecTime: '1.3',animOverExecTime: '1.3',animConstantExecTime: '1.3',obTime:'0',delaytime:'0',async:'0',lineType:'after_time',animationReady:true},
originalPosition: {posX: 0,posY: 0},
action: 18,score: 0,status: 0,compl: 0,clicked: 0,endAction: {name: 'none', opts: {}},trigger: {},sound: {filename:'',filenameogg:'',volume: 1,loop: 0}});
CM.buildTimeline('addObject', {id: '76b3b4df705d4477cf82c59f291da39d-1-7',init: false,hidden: false,animations: {animIn:'none',animOut:'none',hover:'none',endless:'none',animInExecTime: '1.3',animOutExecTime: '1.3',animOverExecTime: '1.3',animConstantExecTime: '1.3',obTime:'0',delaytime:'0',async:'0',lineType:'after_time',animationReady:true},
originalPosition: {posX: 0,posY: 0},
action: 18,score: 0,status: 0,compl: 0,clicked: 0,endAction: {name: 'none', opts: {}},trigger: {},sound: {filename:'',filenameogg:'',volume: 1,loop: 0}});
CM.buildTimeline('addObject', {id: '805e18e93733e0b1aa389ca28cf41c13-2-8',init: false,hidden: false,animations: {animIn:'none',animOut:'none',hover:'none',endless:'none',animInExecTime: '1.3',animOutExecTime: '1.3',animOverExecTime: '1.3',animConstantExecTime: '1.3',obTime:'0',delaytime:'0',async:'0',lineType:'after_time',animationReady:true},
originalPosition: {posX: 0,posY: 0},
action: 18,score: 0,status: 0,compl: 0,clicked: 0,endAction: {name: 'none', opts: {}},trigger: {},sound: {filename:'',filenameogg:'',volume: 1,loop: 0}});
CM.buildTimeline('addObject', {id: '9deb01be8384117b19bb3723809082d3-1-2',init: false,hidden: false,animations: {animIn:'none',animOut:'none',hover:'none',endless:'none',animInExecTime: '1.3',animOutExecTime: '1.3',animOverExecTime: '1.3',animConstantExecTime: '1.3',obTime:'0',delaytime:'0',async:'0',lineType:'after_time',animationReady:true},
originalPosition: {posX: 175,posY: -1},
action: 9,score: 0,status: 0,compl: 0,clicked: 0,endAction: {name: 'none', opts: {}},trigger: {},sound: {filename:'',filenameogg:'',volume: 1,loop: 0}});
CM.buildTimeline('addObject', {id: '9deb01be8384117b19bb3723809082d3-2-2',init: false,hidden: false,animations: {animIn:'none',animOut:'none',hover:'none',endless:'none',animInExecTime: '1.3',animOutExecTime: '1.3',animOverExecTime: '1.3',animConstantExecTime: '1.3',obTime:'0',delaytime:'0',async:'0',lineType:'after_time',animationReady:true},
originalPosition: {posX: 53,posY: 135},
action: 9,score: 0,status: 0,compl: 0,clicked: 0,endAction: {name: 'none', opts: {}},trigger: {"triggers":[],"enabled":true,"lastID":0},sound: {filename:'',filenameogg:'',volume: 1,loop: 0}});
CM.buildTimeline('addObject', {id: '9deb01be8384117b19bb3723809082d3-3-2',init: false,hidden: false,animations: {animIn:'none',animOut:'none',hover:'none',endless:'none',animInExecTime: '1.3',animOutExecTime: '1.3',animOverExecTime: '1.3',animConstantExecTime: '1.3',obTime:'4',delaytime:'0',async:'0',lineType:'after_time',animationReady:true},
originalPosition: {posX: 309,posY: 161},
action: 99,score: 0,status: 0,compl: 0,clicked: 0,endAction: {name: 'none', opts: {}},trigger: {"triggers":[],"enabled":false,"lastID":0},sound: {filename:'',filenameogg:'',volume: 1,loop: 0}});
//==================== OBJECTS END =========================================================
//==================== TIMELINE =========================================================
CM.buildTimeline('addLine', {opts: {pageID:'1',id:'line-1',order:'0',async:'0',wflc:'1'}, objs: ['724993ce17d4a2e548820797ee384395-23-1','724993ce17d4a2e548820797ee384395-25-1','9deb01be8384117b19bb3723809082d3-18-1','b811752e2418c3f3a033f180e368986d-3-1','b811752e2418c3f3a033f180e368986d-4-1','9deb01be8384117b19bb3723809082d3-21-1','b811752e2418c3f3a033f180e368986d-2-1','9deb01be8384117b19bb3723809082d3-17-1','9deb01be8384117b19bb3723809082d3-19-1','9deb01be8384117b19bb3723809082d3-20-1']});CM.buildTimeline('addLine', {opts: {pageID:'3',id:'line-0',order:'0',async:'0',wflc:'1'}, objs: ['76b3b4df705d4477cf82c59f291da39d-1-3']});CM.buildTimeline('addLine', {opts: {pageID:'4',id:'line-0',order:'0',async:'0',wflc:'1'}, objs: ['76b3b4df705d4477cf82c59f291da39d-1-4']});CM.buildTimeline('addLine', {opts: {pageID:'5',id:'line-0',order:'0',async:'0',wflc:'1'}, objs: ['76b3b4df705d4477cf82c59f291da39d-1-5']});CM.buildTimeline('addLine', {opts: {pageID:'6',id:'line-0',order:'0',async:'0',wflc:'1'}, objs: ['76b3b4df705d4477cf82c59f291da39d-1-6']});CM.buildTimeline('addLine', {opts: {pageID:'7',id:'line-0',order:'0',async:'0',wflc:'1'}, objs: ['76b3b4df705d4477cf82c59f291da39d-1-7']});CM.buildTimeline('addLine', {opts: {pageID:'8',id:'line-1',order:'0',async:'0',wflc:'1'}, objs: ['805e18e93733e0b1aa389ca28cf41c13-2-8']});CM.buildTimeline('addLine', {opts: {pageID:'2',id:'line-1',order:'0',wflc:'1'}, objs: ['9deb01be8384117b19bb3723809082d3-1-2','9deb01be8384117b19bb3723809082d3-2-2','9deb01be8384117b19bb3723809082d3-3-2']});//==================== TIMELINE END =========================================================
//=========== TRASH =========================================================
var scorm_score_max = "0" ;
var help_file = "";
var help_size_w = "0";
var help_size_h = "0";
var language = "pl";
var scorm = 'none';
$(document).ready(function() {CM.init();});