Sindbad~EG File Manager
if(!window.cp)window.cp = function(str){return document.getElementById(str)};cp.CPProjInit = function(){if(cp && cp.model && cp.model.data) return; cp.model = {}; cp.poolResources = {}; cp.D = cp.model.data = {pref:{acc:1,rkt:0,hsr:0},Image_8906:{type:15,from:1,to:432,rp:0,rpa:0,mdi:'Image_8906c',immo:false,apsn:'Slide318578686',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319061796]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},Image_8906c:{b:[130,140,673,589],uid:319061796,sr:cp.fd,ip:'dr/319061792_543_449.png',dn:'Image_8906',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Image ',traccstr:'',ti:-1,vbwr:[130,140,673,589],vb:[130,140,673,589]},Text_Caption_2767:{type:19,from:1,to:432,rp:0,rpa:0,mdi:'Text_Caption_2767c',immo:false,apsn:'Slide318578686',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319061798]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},Text_Caption_2767c:{b:[9,64,803,128],uid:319061798,sr:cp.fd,ip:'dr/Text_Caption_2767.png',dn:'Text_Caption_2767',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Desafía tus conocimientos ',traccstr:'',ti:-1,vbwr:[9,64,803,128],vb:[9,64,803,128]},Text_Caption_2768:{type:19,from:1,to:432,rp:0,rpa:0,mdi:'Text_Caption_2768c',immo:false,apsn:'Slide318578686',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319061810]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},Text_Caption_2768c:{b:[2,113,796,177],uid:319061810,sr:cp.fd,ip:'dr/Text_Caption_2768.png',dn:'Text_Caption_2768',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Pon a prueba lo aprendido ',traccstr:'',ti:-1,vbwr:[2,113,796,177],vb:[2,113,796,177]},Slide318578686:{lb:'Viernes casuales para mujeres',id:318578686,from:1,to:432,useng:true,transition:{type:0},mmot:true,mdi:'Slide318578686c',st:'Normal Slide',audCC:[],vidCC:[],accstr:'Viernes casuales para mujeres ',si:[{n:'Image_8906',t:15},{n:'Text_Caption_2767',t:19},{n:'Text_Caption_2768',t:19}],iph:[],v:false,bc:'#ffffff',JSONTT_0:[],JSONTT_6:[],qs:''},Slide318578686c:{b:[0,0,0,0],sr:cp.fd,dn:'Slide318578686',visible:'1'},StAd0:{from:1,to:431,src:'ar/319026642.mp3',du:14444},StAd1:{from:433,to:2243,src:'ar/319037219.mp3',du:60420},SmartShape_6382:{type:612,from:433,to:2244,rp:0,rpa:0,mdi:'SmartShape_6382c',immo:false,apsn:'Slide319071818',JSONTT_4:[],cpa:true,oca:'cp.jumpToNextSlide();',JSONTT_5:[],ofa:'cpCmndResume = 1;',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319071683]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},SmartShape_6382c:{b:[-8,-9,812,606],uid:319071683,dn:'SmartShape_6382',visible:1,effectiveVi:1,JSONEffectData:false,accstr:' ',traccstr:'',ti:-1,sc:'#ffffff',sw:0,ss:0,fa:100,bc:'#ffffff',p0:[[0],[1,-8,-9],[2,-8,606],[2,812,606],[2,812,-9],[2,-8,-9],[4]],svg:false,vbwr:[-8,-9,812,606],vb:[-8,-9,812,606]},Image_8943:{type:15,from:433,to:2244,rp:0,rpa:0,mdi:'Image_8943c',immo:false,apsn:'Slide319071818',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319071689]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},Image_8943c:{b:[-115,-54,864,614],uid:319071689,sr:cp.fd,ip:'dr/318990610_979_668Tr92.png',dn:'Image_8943',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Image ',traccstr:'',ti:-1,vbwr:[-115,-54,864,614],vb:[-115,-54,864,614]},si319071782:{type:92,from:433,to:2245,rp:0,rpa:0,mdi:'si319071782c',immo:false,apsn:'Slide319071818',trin:0,trout:0},si319071782c:{b:[666,106,748,136],uid:319071782,dn:'si319071782',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Pregunta %d de %d ',traccstr:'',ti:-1,ta:'left',B:false,c:'#ffffff',f:'Myriad Pro',i:false,sz:11,u:false,rqs:'Slide319071818',text:'Pregunta %d de %d ',vbwr:[666,106,748,136],vb:[666,106,748,136]},si319071701:{type:86,from:433,to:2245,rp:0,rpa:0,mdi:'si319071701c',immo:false,apsn:'Slide319071818',trin:0,trout:0},si319071701c:{b:[-8,46,813,117],uid:319071701,sr:cp.fd,ip:'dr/si319071701.png',dn:'si319071701',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'¿Verdadero o falso? ',traccstr:'',ti:-1,t:86,vbwr:[-9,45,813,117],vb:[-9,45,813,117]},si319071713:{type:79,from:433,to:2245,rp:0,rpa:0,mdi:'si319071713c',immo:false,apsn:'Slide319071818',trin:0,trout:0},si319071713c:{b:[99,141,709,217],uid:319071713,sr:cp.fd,ip:'dr/si319071713.png',dn:'si319071713',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Riego Operativo: Es la posibilidad de recibir o ser pasible de sancines, multas, pleitos, sentencias desfavorables, contratos inaplicables que generen perdidas o aumento de gastos al Banco. ',traccstr:'',ti:-1,t:79,vbwr:[98,140,709,217],vb:[98,140,709,217]},si319071746:{type:10142,from:433,to:2245,rp:0,rpa:0,mdi:'si319071746c',immo:false,apsn:'Slide319071818',trin:0,trout:0},si319071746c:{b:[40,272,765,356],uid:319071746,dn:'si319071746',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Answer Item ',traccstr:'',ti:-1,t:10142,sc:'#004d95',sw:2,ss:0,fa:0,bc:'#ffffff',vbwr:[38,270,766,357],vb:[38,270,766,357]},si319071724:{type:10088,from:433,to:2245,rp:0,rpa:0,mdi:'si319071724c',immo:false,apsn:'Slide319071818',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319071724]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},si319071724c:{b:[75,286,79,309],uid:319071724,sr:cp.fd,ip:'dr/si319071724.png',dn:'si319071724',visible:1,effectiveVi:1,JSONEffectData:false,accstr:' ',traccstr:'',ti:-1,vbwr:[75,286,79,309],vb:[75,286,79,309]},si319071728:{type:80,from:433,to:2245,rp:0,rpa:0,mdi:'si319071728c',immo:false,apsn:'Slide319071818',qdi:'si319071728r',ta:0,txtl:0,trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319071728]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},si319071728c:{b:[75,286,736,310],uid:319071728,sr:cp.fd,ip:'dr/si319071728.png',dn:'si319071728',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Verdadero ',traccstr:'',ti:-1,isTrue:true,aid:'1',at:10082,atxtlms:'Verdadero',ti:0,ad:'',ic:false,ap:0,vbwr:[75,286,736,310],vb:[75,286,736,310]},si319071728r:{b:[45,286,65,310],type:'radio',visible:1,ahn:'si319071724_a',cn:'si319071724c',actid:'si319071728',aan:'si319071746',aid:'1',rqs:'Slide319071818',ic:false,ahl:75,aht:286,accstr:'',vbwr:[45,286,65,310],vb:[45,286,65,310]},si319071735:{type:10088,from:433,to:2245,rp:0,rpa:0,mdi:'si319071735c',immo:false,apsn:'Slide319071818',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319071735]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},si319071735c:{b:[75,320,79,343],uid:319071735,sr:cp.fd,ip:'dr/si319071735.png',dn:'si319071735',visible:1,effectiveVi:1,JSONEffectData:false,accstr:' ',traccstr:'',ti:-1,vbwr:[75,320,79,343],vb:[75,320,79,343]},si319071739:{type:80,from:433,to:2245,rp:0,rpa:0,mdi:'si319071739c',immo:false,apsn:'Slide319071818',qdi:'si319071739r',ta:0,txtl:0,trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319071739]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},si319071739c:{b:[75,320,737,344],uid:319071739,sr:cp.fd,ip:'dr/si319071739.png',dn:'si319071739',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Falso ',traccstr:'',ti:-1,isTrue:false,aid:'2',at:10082,atxtlms:'Falso',ti:0,ad:'',ic:true,ap:0,vbwr:[75,320,737,344],vb:[75,320,737,344]},si319071739r:{b:[45,320,65,344],type:'radio',visible:1,ahn:'si319071735_a',cn:'si319071735c',actid:'si319071739',aan:'si319071746',aid:'2',rqs:'Slide319071818',ic:true,ahl:75,aht:320,accstr:'',vbwr:[45,320,65,344],vb:[45,320,65,344]},si319071808:{type:91,from:433,to:2245,rp:0,rpa:0,mdi:'si319071808c',immo:false,apsn:'Slide319071818',chfn:cp.qsbch,enabled:1,amc:true,isDD:false,subt:2,itr:false,sn:'Slide319071818',iqb:true,qbt:'submit',pa:478,ma:1,oca:'continue',eh:cp.qbKH,trin:0,trout:0},si319071808c:{b:[331,430,469,469],uid:319071808,sr:cp.fd,ip:'dr/si319071808.png',dn:'si319071808',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Enviar ',traccstr:'',ti:2500,vbwr:[331,430,469,469],sh:{i:false,a:90,d:3,b:4,o:0.4,c:'rgb(0, 0, 0)'},vb:[329,430,471,474]},Slide319071818:{lb:'',id:319071818,from:433,to:2244,useng:false,transition:{type:0},mmot:false,mdi:'Slide319071818c',st:'Question Slide',audCC:[],vidCC:[],accstr:' ',si:[{n:'SmartShape_6382',t:612},{n:'Image_8943',t:15},{n:'si319071782',t:92},{n:'si319071701',t:86},{n:'si319071713',t:79},{n:'si319071746',t:10142},{n:'si319071724',t:10088},{n:'si319071728',t:80},{n:'si319071735',t:10088},{n:'si319071739',t:80},{n:'si319071808',t:91}],iph:[],v:false,bc:'#ffffff',JSONTT_0:[],sea:'cpCmndResume = 1;',qs:'Slide319071818q0',qnq:0,pa:476},Slide319071818c:{b:[0,0,801,600],sr:cp.fd,ip:'dr/1174.png',dn:'Slide319071818',visible:'1'},Slide319071818q0:{noa:1,qt:'Riego Operativo: Es la posibilidad de recibir o ser pasible de sancines, multas, pleitos, sentencias desfavorables, contratos inaplicables que generen perdidas o aumento de gastos al Banco. ',it:true,is:false,ipq:false,ikc:false,ish:false,ips:false,qnq:0,sn:'Slide319071818',oid:'Quiz_2014121082946',iid:'319071655',sra:true,w:1,nw:0,itp:'true-false',cal:['2'],qtp:'MCQ',gn:'Slide319071818_ag',tl:0,sfrc:false,frc:'',ifc:[],ofct:false,ao:['si319071728c:0','si319071739c:1'],qtc:'si319071713c',JSONTT_4:[],oca:'cp.jumpToNextSlide();',JSONTT_5:[],ofa:'cp.jumpToNextSlide();',oic:'si319071770',sic:true,osc:'si319071758',osct:true},StAd2:{from:2245,to:2677,src:'ar/319067142.mp3',du:14444},SmartShape_6346:{type:612,from:2245,to:4074,rp:0,rpa:0,mdi:'SmartShape_6346c',immo:false,apsn:'Slide319067356',JSONTT_4:[],cpa:true,oca:'cp.jumpToNextSlide();',JSONTT_5:[],ofa:'cpCmndResume = 1;',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319067212]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},SmartShape_6346c:{b:[-7,-13,813,602],uid:319067212,dn:'SmartShape_6346',visible:1,effectiveVi:1,JSONEffectData:false,accstr:' ',traccstr:'',ti:-1,sc:'#ffffff',sw:0,ss:0,fa:100,bc:'#ffffff',p0:[[0],[1,-7,-13],[2,-7,602],[2,813,602],[2,813,-13],[2,-7,-13],[4]],svg:false,vbwr:[-7,-13,813,602],vb:[-7,-13,813,602]},Image_8944:{type:15,from:2245,to:4074,rp:0,rpa:0,mdi:'Image_8944c',immo:false,apsn:'Slide319067356',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319071863]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},Image_8944c:{b:[-115,-54,864,614],uid:319071863,sr:cp.fd,ip:'dr/318990610_979_668Tr95.png',dn:'Image_8944',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Image ',traccstr:'',ti:-1,vbwr:[-115,-54,864,614],vb:[-115,-54,864,614]},si319067292:{type:92,from:2245,to:4075,rp:0,rpa:0,mdi:'si319067292c',immo:false,apsn:'Slide319067356',trin:0,trout:0},si319067292c:{b:[666,106,748,136],uid:319067292,dn:'si319067292',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Pregunta %d de %d ',traccstr:'',ti:-1,ta:'left',B:false,c:'#ffffff',f:'Myriad Pro',i:false,sz:11,u:false,rqs:'Slide319067356',text:'Pregunta %d de %d ',vbwr:[666,106,748,136],vb:[666,106,748,136]},si319067224:{type:79,from:2245,to:4075,rp:0,rpa:0,mdi:'si319067224c',immo:false,apsn:'Slide319067356',trin:0,trout:0},si319067224c:{b:[71,21,749,177],uid:319067224,sr:cp.fd,ip:'dr/si319067224.png',dn:'si319067224',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'¿Cual de las opciones es la correcta? Beneficiario final: La o las personas físicas que, directa o indirectamente, posean una participación sustantiva o control final sobre la persona jurídica o estructura jurídica, o se beneficie de éstas, de manera que se enmarque por lo menos en una de las siguientes condiciones: ',traccstr:'',ti:-1,t:79,vbwr:[70,20,749,177],vb:[70,20,749,177]},si319067268:{type:10142,from:2245,to:4075,rp:0,rpa:0,mdi:'si319067268c',immo:false,apsn:'Slide319067356',trin:0,trout:0},si319067268c:{b:[36,216,761,530],uid:319067268,dn:'si319067268',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Answer Item ',traccstr:'',ti:-1,t:10142,sc:'#d68403',sw:2,ss:0,fa:0,bc:'#ffffff',vbwr:[34,214,762,531],vb:[34,214,762,531]},si319067235:{type:10088,from:2245,to:4075,rp:0,rpa:0,mdi:'si319067235c',immo:false,apsn:'Slide319067356',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319067235]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},si319067235c:{b:[104,245,108,268],uid:319067235,sr:cp.fd,ip:'dr/si319067235.png',dn:'si319067235',visible:1,effectiveVi:1,JSONEffectData:false,accstr:' ',traccstr:'',ti:-1,vbwr:[104,245,108,268],vb:[104,245,108,268]},si319067239:{type:80,from:2245,to:4075,rp:0,rpa:0,mdi:'si319067239c',immo:false,apsn:'Slide319067356',qdi:'si319067239ch',ta:0,txtl:0,trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319067239]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},si319067239c:{b:[104,245,735,320],uid:319067239,sr:cp.fd,ip:'dr/si319067239.png',dn:'si319067239',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Tenga participación sustantiva: la tenencia de acciones o participaciones en un porcentaje igual o mayor al 10% (diez por ciento) con respecto al capital total de la persona o estructura jurídica; ',traccstr:'',ti:-1,aid:'1',at:10081,atxtlms:'Tenga participación sustantiva: la tenencia de acciones o participaciones en un porcentaje igual o mayor al 10% (diez por ciento) con respecto al capital total de la persona o estructura jurídica;',ti:0,ad:'',ic:true,ap:0,vbwr:[104,245,735,320],vb:[104,245,735,320]},si319067239ch:{b:[74,245,94,269],type:'checkbox',visible:1,ahn:'si319067235_a',cn:'si319067235c',actid:'si319067239',aan:'si319067268',aid:'1',rqs:'Slide319067356',ic:true,ahl:104,aht:245,vbwr:[74,245,94,269],vb:[74,245,94,269]},si319067246:{type:10088,from:2245,to:4075,rp:0,rpa:0,mdi:'si319067246c',immo:false,apsn:'Slide319067356',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319067246]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},si319067246c:{b:[100,348,104,371],uid:319067246,sr:cp.fd,ip:'dr/si319067246.png',dn:'si319067246',visible:1,effectiveVi:1,JSONEffectData:false,accstr:' ',traccstr:'',ti:-1,vbwr:[100,348,104,371],vb:[100,348,104,371]},si319067250:{type:80,from:2245,to:4075,rp:0,rpa:0,mdi:'si319067250c',immo:false,apsn:'Slide319067356',qdi:'si319067250ch',ta:0,txtl:0,trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319067250]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},si319067250c:{b:[100,348,720,399],uid:319067250,sr:cp.fd,ip:'dr/si319067250.png',dn:'si319067250',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Controles más del 20% (veinticinco por ciento) del derecho de votación en la persona o estructura jurídica; ',traccstr:'',ti:-1,aid:'2',at:10081,atxtlms:'Controles más del 20% (veinticinco por ciento) del derecho de votación en la persona o estructura jurídica;',ti:0,ad:'',ic:false,ap:0,vbwr:[100,348,720,399],vb:[100,348,720,399]},si319067250ch:{b:[70,348,90,372],type:'checkbox',visible:1,ahn:'si319067246_a',cn:'si319067246c',actid:'si319067250',aan:'si319067268',aid:'2',rqs:'Slide319067356',ic:false,ahl:100,aht:348,vbwr:[70,348,90,372],vb:[70,348,90,372]},si319067257:{type:10088,from:2245,to:4075,rp:0,rpa:0,mdi:'si319067257c',immo:false,apsn:'Slide319067356',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319067257]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},si319067257c:{b:[100,422,104,445],uid:319067257,sr:cp.fd,ip:'dr/si319067257.png',dn:'si319067257',visible:1,effectiveVi:1,JSONEffectData:false,accstr:' ',traccstr:'',ti:-1,vbwr:[100,422,104,445],vb:[100,422,104,445]},si319067261:{type:80,from:2245,to:4075,rp:0,rpa:0,mdi:'si319067261c',immo:false,apsn:'Slide319067356',qdi:'si319067261ch',ta:0,txtl:0,trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319067261]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},si319067261c:{b:[100,422,749,516],uid:319067261,sr:cp.fd,ip:'dr/si319067261.png',dn:'si319067261',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Gerentes, administradores o quienes frecuentemente usen o se beneficien de los activos que son propiedad de la persona o estructura jurídica o, en cuyo nombre o beneficio se realice una transacción de la persona o estructura jurídica; ',traccstr:'',ti:-1,aid:'3',at:10081,atxtlms:'Gerentes, administradores o quienes frecuentemente usen o se beneficien de los activos que son propiedad de la persona o estructura jurídica o, en cuyo nombre o beneficio se realice una transacción de la persona o estructura jurídica;',ti:0,ad:'',ic:true,ap:1,vbwr:[100,422,749,516],vb:[100,422,749,516]},si319067261ch:{b:[70,422,90,446],type:'checkbox',visible:1,ahn:'si319067257_a',cn:'si319067257c',actid:'si319067261',aan:'si319067268',aid:'3',rqs:'Slide319067356',ic:true,ahl:100,aht:422,vbwr:[70,422,90,446],vb:[70,422,90,446]},si319067318:{type:91,from:2245,to:4075,rp:0,rpa:0,mdi:'si319067318c',immo:false,apsn:'Slide319067356',chfn:cp.qsbch,enabled:1,amc:true,isDD:false,subt:2,itr:false,sn:'Slide319067356',iqb:true,qbt:'submit',pa:2290,ma:1,oca:'continue',eh:cp.qbKH,trin:0,trout:0},si319067318c:{b:[323,545,462,585],uid:319067318,sr:cp.fd,ip:'dr/si319067318.png',dn:'si319067318',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Enviar ',traccstr:'',ti:2500,vbwr:[323,545,462,585],sh:{i:false,a:90,d:3,b:4,o:0.4,c:'rgb(0, 0, 0)'},vb:[321,545,464,590]},Slide319067356:{lb:'',id:319067356,from:2245,to:4074,useng:true,transition:{type:0},mmot:false,mdi:'Slide319067356c',st:'Question Slide',audCC:[],vidCC:[],accstr:' ',si:[{n:'SmartShape_6346',t:612},{n:'Image_8944',t:15},{n:'si319067292',t:92},{n:'si319067224',t:79},{n:'si319067268',t:10142},{n:'si319067235',t:10088},{n:'si319067239',t:80},{n:'si319067246',t:10088},{n:'si319067250',t:80},{n:'si319067257',t:10088},{n:'si319067261',t:80},{n:'si319067318',t:91}],iph:[],v:false,bc:'#ffffff',JSONTT_0:[],sea:'cpCmndResume = 1;',qs:'Slide319067356q1',qnq:1,pa:2288},Slide319067356c:{b:[0,0,801,600],sr:cp.fd,ip:'dr/1174.png',dn:'Slide319067356',visible:'1'},Slide319067356q1:{noa:1,qt:'Cual de las opciones es la correcta? Beneficiario final: La o las personas fsicas que, directa o indirectamente, posean una participacin sustantiva o control final sobre la persona jurdica o estructura jurdica, o se beneficie de stas, de manera que se enmarque por lo menos en una de las siguientes condiciones:',it:true,is:false,ipq:false,ikc:false,ish:false,ips:false,qnq:1,sn:'Slide319067356',oid:'Quiz_2014121082946',iid:'319067190',sra:true,w:2,nw:0,itp:'choice',cal:['1','3'],qtp:'MCQ',gn:'Slide319067356_ag',tl:0,sfrc:false,frc:'',ifc:[],ofct:false,ao:['si319067239c:0','si319067250c:1','si319067261c:2'],qtc:'si319067224c',JSONTT_4:[],oca:'cp.jumpToNextSlide();',JSONTT_5:[],ofa:'cp.jumpToNextSlide();',oic:'',sic:false,osc:'si319067280',osct:true},StAd3:{from:4075,to:4507,src:'ar/319067142.mp3',du:14444},SmartShape_6383:{type:612,from:4075,to:5904,rp:0,rpa:0,mdi:'SmartShape_6383c',immo:false,apsn:'Slide319072057',JSONTT_4:[],cpa:true,oca:'cp.jumpToNextSlide();',JSONTT_5:[],ofa:'cpCmndResume = 1;',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319071907]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},SmartShape_6383c:{b:[-7,-13,813,602],uid:319071907,dn:'SmartShape_6383',visible:1,effectiveVi:1,JSONEffectData:false,accstr:' ',traccstr:'',ti:-1,sc:'#ffffff',sw:0,ss:0,fa:100,bc:'#ffffff',p0:[[0],[1,-7,-13],[2,-7,602],[2,813,602],[2,813,-13],[2,-7,-13],[4]],svg:false,vbwr:[-7,-13,813,602],vb:[-7,-13,813,602]},Image_8945:{type:15,from:4075,to:5904,rp:0,rpa:0,mdi:'Image_8945c',immo:false,apsn:'Slide319072057',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319071913]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},Image_8945c:{b:[-115,-54,864,614],uid:319071913,sr:cp.fd,ip:'dr/318990610_979_668Tr95.png',dn:'Image_8945',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Image ',traccstr:'',ti:-1,vbwr:[-115,-54,864,614],vb:[-115,-54,864,614]},si319071993:{type:92,from:4075,to:5905,rp:0,rpa:0,mdi:'si319071993c',immo:false,apsn:'Slide319072057',trin:0,trout:0},si319071993c:{b:[666,106,748,136],uid:319071993,dn:'si319071993',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Pregunta %d de %d ',traccstr:'',ti:-1,ta:'left',B:false,c:'#ffffff',f:'Myriad Pro',i:false,sz:11,u:false,rqs:'Slide319072057',text:'Pregunta %d de %d ',vbwr:[666,106,748,136],vb:[666,106,748,136]},si319071925:{type:79,from:4075,to:5905,rp:0,rpa:0,mdi:'si319071925c',immo:false,apsn:'Slide319072057',trin:0,trout:0},si319071925c:{b:[70,49,748,205],uid:319071925,sr:cp.fd,ip:'dr/si319071925.png',dn:'si319071925',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'¿Cual de las opciones es la correcta? El Banco ha implementado la matriz de autoevaluación permitiéndole un actuar en línea con las normas internas y externas vigentes, el Nivel de Riesgo actual del Banco es: ',traccstr:'',ti:-1,t:79,vbwr:[69,48,748,205],vb:[69,48,748,205]},si319071969:{type:10142,from:4075,to:5905,rp:0,rpa:0,mdi:'si319071969c',immo:false,apsn:'Slide319072057',trin:0,trout:0},si319071969c:{b:[47,265,772,446],uid:319071969,dn:'si319071969',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Answer Item ',traccstr:'',ti:-1,t:10142,sc:'#d68403',sw:2,ss:0,fa:0,bc:'#ffffff',vbwr:[45,263,773,447],vb:[45,263,773,447]},si319071936:{type:10088,from:4075,to:5905,rp:0,rpa:0,mdi:'si319071936c',immo:false,apsn:'Slide319072057',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319071936]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},si319071936c:{b:[115,294,119,317],uid:319071936,sr:cp.fd,ip:'dr/si319071936.png',dn:'si319071936',visible:1,effectiveVi:1,JSONEffectData:false,accstr:' ',traccstr:'',ti:-1,vbwr:[115,294,119,317],vb:[115,294,119,317]},si319071940:{type:80,from:4075,to:5905,rp:0,rpa:0,mdi:'si319071940c',immo:false,apsn:'Slide319072057',qdi:'si319071940r',ta:0,txtl:0,trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319071940]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},si319071940c:{b:[115,294,746,321],uid:319071940,sr:cp.fd,ip:'dr/si319071940.png',dn:'si319071940',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Riesgo Bajo ',traccstr:'',ti:-1,aid:'1',at:10082,atxtlms:'Riesgo Bajo',ti:0,ad:'',ic:false,ap:0,vbwr:[115,294,746,321],vb:[115,294,746,321]},si319071940r:{b:[85,294,105,318],type:'radio',visible:1,ahn:'si319071936_a',cn:'si319071936c',actid:'si319071940',aan:'si319071969',aid:'1',rqs:'Slide319072057',ic:false,ahl:115,aht:294,accstr:'',vbwr:[85,294,105,318],vb:[85,294,105,318]},si319071947:{type:10088,from:4075,to:5905,rp:0,rpa:0,mdi:'si319071947c',immo:false,apsn:'Slide319072057',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319071947]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},si319071947c:{b:[115,343,119,366],uid:319071947,sr:cp.fd,ip:'dr/si319071947.png',dn:'si319071947',visible:1,effectiveVi:1,JSONEffectData:false,accstr:' ',traccstr:'',ti:-1,vbwr:[115,343,119,366],vb:[115,343,119,366]},si319071951:{type:80,from:4075,to:5905,rp:0,rpa:0,mdi:'si319071951c',immo:false,apsn:'Slide319072057',qdi:'si319071951r',ta:0,txtl:0,trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319071951]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},si319071951c:{b:[115,343,735,377],uid:319071951,sr:cp.fd,ip:'dr/si319071951.png',dn:'si319071951',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Riesgo Medio ',traccstr:'',ti:-1,aid:'2',at:10082,atxtlms:'Riesgo Medio',ti:0,ad:'',ic:true,ap:1,vbwr:[115,343,735,377],vb:[115,343,735,377]},si319071951r:{b:[85,343,105,367],type:'radio',visible:1,ahn:'si319071947_a',cn:'si319071947c',actid:'si319071951',aan:'si319071969',aid:'2',rqs:'Slide319072057',ic:true,ahl:115,aht:343,accstr:'',vbwr:[85,343,105,367],vb:[85,343,105,367]},si319071958:{type:10088,from:4075,to:5905,rp:0,rpa:0,mdi:'si319071958c',immo:false,apsn:'Slide319072057',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319071958]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},si319071958c:{b:[115,389,119,412],uid:319071958,sr:cp.fd,ip:'dr/si319071958.png',dn:'si319071958',visible:1,effectiveVi:1,JSONEffectData:false,accstr:' ',traccstr:'',ti:-1,vbwr:[115,389,119,412],vb:[115,389,119,412]},si319071962:{type:80,from:4075,to:5905,rp:0,rpa:0,mdi:'si319071962c',immo:false,apsn:'Slide319072057',qdi:'si319071962r',ta:0,txtl:0,trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319071962]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},si319071962c:{b:[115,389,764,415],uid:319071962,sr:cp.fd,ip:'dr/si319071962.png',dn:'si319071962',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Riesgo Alto ',traccstr:'',ti:-1,aid:'3',at:10082,atxtlms:'Riesgo Alto',ti:0,ad:'',ic:false,ap:1,vbwr:[115,389,764,415],vb:[115,389,764,415]},si319071962r:{b:[85,389,105,413],type:'radio',visible:1,ahn:'si319071958_a',cn:'si319071958c',actid:'si319071962',aan:'si319071969',aid:'3',rqs:'Slide319072057',ic:false,ahl:115,aht:389,accstr:'',vbwr:[85,389,105,413],vb:[85,389,105,413]},si319072019:{type:91,from:4075,to:5905,rp:0,rpa:0,mdi:'si319072019c',immo:false,apsn:'Slide319072057',chfn:cp.qsbch,enabled:1,amc:true,isDD:false,subt:2,itr:false,sn:'Slide319072057',iqb:true,qbt:'submit',pa:4120,ma:1,oca:'continue',eh:cp.qbKH,trin:0,trout:0},si319072019c:{b:[323,545,462,585],uid:319072019,sr:cp.fd,ip:'dr/si319072019.png',dn:'si319072019',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Enviar ',traccstr:'',ti:2500,vbwr:[323,545,462,585],sh:{i:false,a:90,d:3,b:4,o:0.4,c:'rgb(0, 0, 0)'},vb:[321,545,464,590]},Slide319072057:{lb:'',id:319072057,from:4075,to:5904,useng:true,transition:{type:0},mmot:false,mdi:'Slide319072057c',st:'Question Slide',audCC:[],vidCC:[],accstr:' ',si:[{n:'SmartShape_6383',t:612},{n:'Image_8945',t:15},{n:'si319071993',t:92},{n:'si319071925',t:79},{n:'si319071969',t:10142},{n:'si319071936',t:10088},{n:'si319071940',t:80},{n:'si319071947',t:10088},{n:'si319071951',t:80},{n:'si319071958',t:10088},{n:'si319071962',t:80},{n:'si319072019',t:91}],iph:[],v:false,bc:'#ffffff',JSONTT_0:[],sea:'cpCmndResume = 1;',qs:'Slide319072057q2',qnq:2,pa:4118},Slide319072057c:{b:[0,0,801,600],sr:cp.fd,ip:'dr/1174.png',dn:'Slide319072057',visible:'1'},Slide319072057q2:{noa:1,qt:'Cual de las opciones es la correcta? El Banco ha implementado la matriz de autoevaluacin permitindole un actuar en lnea con las normas internas y externas vigentes, el Nivel de Riesgo actual del Banco es: ',it:true,is:false,ipq:false,ikc:false,ish:false,ips:false,qnq:2,sn:'Slide319072057',oid:'Quiz_2014121082946',iid:'319071885',sra:true,w:1,nw:0,itp:'choice',cal:['2'],qtp:'MCQ',gn:'Slide319072057_ag',tl:0,sfrc:false,frc:'',ifc:[],ofct:false,ao:['si319071940c:0','si319071951c:1','si319071962c:2'],qtc:'si319071925c',JSONTT_4:[],oca:'cp.jumpToNextSlide();',JSONTT_5:[],ofa:'cp.jumpToNextSlide();',oic:'',sic:false,osc:'si319071981',osct:true},StAd4:{from:5905,to:6337,src:'ar/319067142.mp3',du:14444},SmartShape_6384:{type:612,from:5905,to:7734,rp:0,rpa:0,mdi:'SmartShape_6384c',immo:false,apsn:'Slide319072262',JSONTT_4:[],cpa:true,oca:'cp.jumpToNextSlide();',JSONTT_5:[],ofa:'cpCmndResume = 1;',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319072112]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},SmartShape_6384c:{b:[-7,-13,813,602],uid:319072112,dn:'SmartShape_6384',visible:1,effectiveVi:1,JSONEffectData:false,accstr:' ',traccstr:'',ti:-1,sc:'#ffffff',sw:0,ss:0,fa:100,bc:'#ffffff',p0:[[0],[1,-7,-13],[2,-7,602],[2,813,602],[2,813,-13],[2,-7,-13],[4]],svg:false,vbwr:[-7,-13,813,602],vb:[-7,-13,813,602]},Image_8946:{type:15,from:5905,to:7734,rp:0,rpa:0,mdi:'Image_8946c',immo:false,apsn:'Slide319072262',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319072118]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},Image_8946c:{b:[-115,-54,864,614],uid:319072118,sr:cp.fd,ip:'dr/318990610_979_668Tr95.png',dn:'Image_8946',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Image ',traccstr:'',ti:-1,vbwr:[-115,-54,864,614],vb:[-115,-54,864,614]},si319072198:{type:92,from:5905,to:7735,rp:0,rpa:0,mdi:'si319072198c',immo:false,apsn:'Slide319072262',trin:0,trout:0},si319072198c:{b:[666,106,748,136],uid:319072198,dn:'si319072198',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Pregunta %d de %d ',traccstr:'',ti:-1,ta:'left',B:false,c:'#ffffff',f:'Myriad Pro',i:false,sz:11,u:false,rqs:'Slide319072262',text:'Pregunta %d de %d ',vbwr:[666,106,748,136],vb:[666,106,748,136]},si319072130:{type:79,from:5905,to:7735,rp:0,rpa:0,mdi:'si319072130c',immo:false,apsn:'Slide319072262',trin:0,trout:0},si319072130c:{b:[71,21,749,177],uid:319072130,sr:cp.fd,ip:'dr/si319072130.png',dn:'si319072130',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'¿Cual de las opciones es la correcta? El incumplimiento de las disposiciones relacionadas al sistema ALA/CFT/FP será considerada internamente como una infracción, quedando establecido su gravedad y las sanciones aplicables de acuerdo al tipo de falt en que documento: ',traccstr:'',ti:-1,t:79,vbwr:[70,20,749,177],vb:[70,20,749,177]},si319072174:{type:10142,from:5905,to:7735,rp:0,rpa:0,mdi:'si319072174c',immo:false,apsn:'Slide319072262',trin:0,trout:0},si319072174c:{b:[36,216,785,482],uid:319072174,dn:'si319072174',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Answer Item ',traccstr:'',ti:-1,t:10142,sc:'#d68403',sw:2,ss:0,fa:0,bc:'#ffffff',vbwr:[34,214,786,483],vb:[34,214,786,483]},si319072141:{type:10088,from:5905,to:7735,rp:0,rpa:0,mdi:'si319072141c',immo:false,apsn:'Slide319072262',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319072141]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},si319072141c:{b:[104,245,108,268],uid:319072141,sr:cp.fd,ip:'dr/si319072141.png',dn:'si319072141',visible:1,effectiveVi:1,JSONEffectData:false,accstr:' ',traccstr:'',ti:-1,vbwr:[104,245,108,268],vb:[104,245,108,268]},si319072145:{type:80,from:5905,to:7735,rp:0,rpa:0,mdi:'si319072145c',immo:false,apsn:'Slide319072262',qdi:'si319072145r',ta:0,txtl:0,trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319072145]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},si319072145c:{b:[104,245,735,320],uid:319072145,sr:cp.fd,ip:'dr/si319072145.png',dn:'si319072145',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Manual de Políticas de Prevención y Gestión de Riesgos de Lavado de Activos y Financiamiento del Terrorismo ',traccstr:'',ti:-1,aid:'1',at:10082,atxtlms:'Manual de Políticas de Prevención y Gestión de Riesgos de Lavado de Activos y Financiamiento del Terrorismo ',ti:0,ad:'',ic:false,ap:0,vbwr:[104,245,735,320],vb:[104,245,735,320]},si319072145r:{b:[74,245,94,269],type:'radio',visible:1,ahn:'si319072141_a',cn:'si319072141c',actid:'si319072145',aan:'si319072174',aid:'1',rqs:'Slide319072262',ic:false,ahl:104,aht:245,accstr:'',vbwr:[74,245,94,269],vb:[74,245,94,269]},si319072152:{type:10088,from:5905,to:7735,rp:0,rpa:0,mdi:'si319072152c',immo:false,apsn:'Slide319072262',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319072152]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},si319072152c:{b:[101,315,105,338],uid:319072152,sr:cp.fd,ip:'dr/si319072152.png',dn:'si319072152',visible:1,effectiveVi:1,JSONEffectData:false,accstr:' ',traccstr:'',ti:-1,vbwr:[101,315,105,338],vb:[101,315,105,338]},si319072156:{type:80,from:5905,to:7735,rp:0,rpa:0,mdi:'si319072156c',immo:false,apsn:'Slide319072262',qdi:'si319072156r',ta:0,txtl:0,trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319072156]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},si319072156c:{b:[101,315,721,341],uid:319072156,sr:cp.fd,ip:'dr/si319072156.png',dn:'si319072156',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Código de Conducta Ética ',traccstr:'',ti:-1,aid:'2',at:10082,atxtlms:'Código de Conducta Ética',ti:0,ad:'',ic:true,ap:1,vbwr:[101,315,721,341],vb:[101,315,721,341]},si319072156r:{b:[71,315,91,339],type:'radio',visible:1,ahn:'si319072152_a',cn:'si319072152c',actid:'si319072156',aan:'si319072174',aid:'2',rqs:'Slide319072262',ic:true,ahl:101,aht:315,accstr:'',vbwr:[71,315,91,339],vb:[71,315,91,339]},si319072163:{type:10088,from:5905,to:7735,rp:0,rpa:0,mdi:'si319072163c',immo:false,apsn:'Slide319072262',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319072163]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},si319072163c:{b:[99,368,103,391],uid:319072163,sr:cp.fd,ip:'dr/si319072163.png',dn:'si319072163',visible:1,effectiveVi:1,JSONEffectData:false,accstr:' ',traccstr:'',ti:-1,vbwr:[99,368,103,391],vb:[99,368,103,391]},si319072167:{type:80,from:5905,to:7735,rp:0,rpa:0,mdi:'si319072167c',immo:false,apsn:'Slide319072262',qdi:'si319072167r',ta:0,txtl:0,trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319072167]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},si319072167c:{b:[99,368,748,394],uid:319072167,sr:cp.fd,ip:'dr/si319072167.png',dn:'si319072167',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Manual de Políticas-Administración Integral de Riesgos ',traccstr:'',ti:-1,aid:'3',at:10082,atxtlms:'Manual de Políticas-Administración Integral de Riesgos',ti:0,ad:'',ic:false,ap:1,vbwr:[99,368,748,394],vb:[99,368,748,394]},si319072167r:{b:[69,368,89,392],type:'radio',visible:1,ahn:'si319072163_a',cn:'si319072163c',actid:'si319072167',aan:'si319072174',aid:'3',rqs:'Slide319072262',ic:false,ahl:99,aht:368,accstr:'',vbwr:[69,368,89,392],vb:[69,368,89,392]},si319072281:{type:10088,from:5905,to:7735,rp:0,rpa:0,mdi:'si319072281c',immo:false,apsn:'Slide319072262',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319072281]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},si319072281c:{b:[99,422,103,445],uid:319072281,sr:cp.fd,ip:'dr/si319072281.png',dn:'si319072281',visible:1,effectiveVi:1,JSONEffectData:false,accstr:' ',traccstr:'',ti:-1,vbwr:[99,422,103,445],vb:[99,422,103,445]},si319072285:{type:80,from:5905,to:7735,rp:0,rpa:0,mdi:'si319072285c',immo:false,apsn:'Slide319072262',qdi:'si319072285r',ta:0,txtl:0,trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319072285]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},si319072285c:{b:[99,422,784,446],uid:319072285,sr:cp.fd,ip:'dr/si319072285.png',dn:'si319072285',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Manual de Políticas de la Unidad de Control Interno ',traccstr:'',ti:-1,aid:'4',at:10082,atxtlms:'Manual de Políticas de la Unidad de Control Interno',ti:0,ad:'',ic:false,ap:0,vbwr:[99,422,784,446],vb:[99,422,784,446]},si319072285r:{b:[69,422,89,446],type:'radio',visible:1,ahn:'si319072281_a',cn:'si319072281c',actid:'si319072285',aan:'si319072174',aid:'4',rqs:'Slide319072262',ic:false,ahl:99,aht:422,accstr:'',vbwr:[69,422,89,446],vb:[69,422,89,446]},si319072224:{type:91,from:5905,to:7735,rp:0,rpa:0,mdi:'si319072224c',immo:false,apsn:'Slide319072262',chfn:cp.qsbch,enabled:1,amc:true,isDD:false,subt:2,itr:false,sn:'Slide319072262',iqb:true,qbt:'submit',pa:5950,ma:1,oca:'continue',eh:cp.qbKH,trin:0,trout:0},si319072224c:{b:[323,545,462,585],uid:319072224,sr:cp.fd,ip:'dr/si319072224.png',dn:'si319072224',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Enviar ',traccstr:'',ti:2500,vbwr:[323,545,462,585],sh:{i:false,a:90,d:3,b:4,o:0.4,c:'rgb(0, 0, 0)'},vb:[321,545,464,590]},Slide319072262:{lb:'',id:319072262,from:5905,to:7734,useng:true,transition:{type:0},mmot:false,mdi:'Slide319072262c',st:'Question Slide',audCC:[],vidCC:[],accstr:' ',si:[{n:'SmartShape_6384',t:612},{n:'Image_8946',t:15},{n:'si319072198',t:92},{n:'si319072130',t:79},{n:'si319072174',t:10142},{n:'si319072141',t:10088},{n:'si319072145',t:80},{n:'si319072152',t:10088},{n:'si319072156',t:80},{n:'si319072163',t:10088},{n:'si319072167',t:80},{n:'si319072281',t:10088},{n:'si319072285',t:80},{n:'si319072224',t:91}],iph:[],v:false,bc:'#ffffff',JSONTT_0:[],sea:'cpCmndResume = 1;',qs:'Slide319072262q3',qnq:3,pa:5948},Slide319072262c:{b:[0,0,801,600],sr:cp.fd,ip:'dr/1174.png',dn:'Slide319072262',visible:'1'},Slide319072262q3:{noa:1,qt:'Cual de las opciones es la correcta? El incumplimiento de las disposiciones relacionadas al sistema ALA/CFT/FP ser considerada internamente como una infraccin, quedando establecido su gravedad y las sanciones aplicables de acuerdo al tipo de falt en que documento: ',it:true,is:false,ipq:false,ikc:false,ish:false,ips:false,qnq:3,sn:'Slide319072262',oid:'Quiz_2014121082946',iid:'319072090',sra:true,w:1,nw:0,itp:'choice',cal:['2'],qtp:'MCQ',gn:'Slide319072262_ag',tl:0,sfrc:false,frc:'',ifc:[],ofct:false,ao:['si319072145c:0','si319072156c:1','si319072167c:2','si319072285c:3'],qtc:'si319072130c',JSONTT_4:[],oca:'cp.jumpToNextSlide();',JSONTT_5:[],ofa:'cp.jumpToNextSlide();',oic:'',sic:false,osc:'si319072186',osct:true},SmartShape_6386:{type:612,from:7735,to:8109,rp:0,rpa:0,mdi:'SmartShape_6386c',immo:false,apsn:'Slide319072764',JSONTT_4:[],cpa:true,oca:'cp.jumpToNextSlide();',JSONTT_5:[],ofa:'cpCmndResume = 1;',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319072559]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},SmartShape_6386c:{b:[1,-1,799,595],uid:319072559,dn:'SmartShape_6386',visible:1,effectiveVi:1,JSONEffectData:false,accstr:' ',traccstr:'',ti:-1,sc:'#ffffff',sw:2,ss:0,fa:100,bc:'#ffffff',p0:[[0],[1,1,-1],[2,1,595],[2,799,595],[2,799,-1],[2,1,-1],[4]],svg:false,vbwr:[-3,-5,803,599],vb:[-3,-5,803,599]},SmartShape_6387:{type:612,from:7735,to:8109,rp:0,rpa:0,mdi:'SmartShape_6387c',immo:false,apsn:'Slide319072764',JSONTT_4:[],cpa:true,oca:'cp.jumpToNextSlide();',JSONTT_5:[],ofa:'cpCmndResume = 1;',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319072578]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},SmartShape_6387c:{b:[28,68,771,154],uid:319072578,sr:cp.fd,ip:'dr/SmartShape_6387.png',dn:'SmartShape_6387',visible:1,effectiveVi:1,JSONEffectData:false,accstr:' ',traccstr:'',ti:-1,sc:'#d77973',sw:0,ss:0,fa:100,bc:'#0053a4',p0:[[0],[1,49.5,68],[3,37.63,68,28,77.63,28,89.5],[2,28,132.5],[3,28,144.37,37.63,154,49.5,154],[2,749.5,154],[3,761.37,154,771,144.37,771,132.5],[2,771,89.5],[3,771,77.63,761.37,68,749.5,68],[2,49.5,68],[4]],svg:false,vbwr:[28,68,771,154],vb:[28,68,771,154]},SmartShape_6388:{type:612,from:7735,to:8109,rp:0,rpa:0,mdi:'SmartShape_6388c',immo:false,apsn:'Slide319072764',JSONTT_4:[],cpa:true,oca:'cp.jumpToNextSlide();',JSONTT_5:[],ofa:'cpCmndResume = 1;',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319072597]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},SmartShape_6388c:{b:[43,76,759,145],uid:319072597,sr:cp.fd,ip:'dr/SmartShape_6388.png',dn:'SmartShape_6388',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Parea según corresponda ',traccstr:'',ti:-1,sc:'#ffffff',sw:2,ss:0,fa:100,bc:'#ffffff',p0:[[0],[1,60.25,76],[3,50.72,76,43,83.72,43,93.25],[2,43,127.75],[3,43,137.28,50.72,145,60.25,145],[2,741.75,145],[3,751.28,145,759,137.28,759,127.75],[2,759,93.25],[3,759,83.72,751.28,76,741.75,76],[2,60.25,76],[4]],svg:false,vbwr:[39,72,763,149],vb:[39,72,763,149]},si319072616:{type:87,from:7735,to:8109,rp:0,rpa:0,mdi:'si319072616c',immo:false,apsn:'Slide319072764',trin:0,trout:0},si319072616c:{b:[-241,157,19,180],uid:319072616,sr:cp.fd,ip:'dr/si319072616.png',dn:'si319072616',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Columna 1 ',traccstr:'',ti:-1,vbwr:[-241,157,19,180],vb:[-241,157,19,180]},Text_Caption_67:{type:10098,from:7735,to:7824,rp:0,rpa:0,mdi:'Text_Caption_67c',immo:false,apsn:'Slide319072764',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319072626]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},Text_Caption_67c:{b:[28,220,78,244],uid:319072626,sr:cp.fd,ip:'dr/Text_Caption_67.png',dn:'Text_Caption_67',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'B ',traccstr:'',ti:-1,vbwr:[28,220,78,244],vb:[28,220,78,244]},Text_Caption_69:{type:10110,from:7735,to:8110,rp:0,rpa:0,mdi:'Text_Caption_69c',immo:false,apsn:'Slide319072764',qdi:'Text_Caption_69mtchi',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319072630]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},Text_Caption_69c:{b:[103,220,293,302],uid:319072630,sr:cp.fd,ip:'dr/Text_Caption_69.png',dn:'Text_Caption_69',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'La debida diligencia debe realizarse sobre los Clientes cuando: ',traccstr:'',ti:-1,aid:'B',at:90,atxtlms:'B',ti:-1,ad:'',aAnsTxtlms:'La debida diligencia debe realizarse sobre los Clientes cuando:',vbwr:[103,220,293,302],vb:[103,220,293,302]},Text_Caption_69mtchi:{b:[103,220,293,302],visible:1,cn:'Text_Caption_69c',ln:'Text_Caption_67c',actid:'Text_Caption_69',aid:'B',rqs:'Slide319072764',ahl:103,aht:220,aan:'si319072662',vbwr:[103,220,293,302],vb:[103,220,293,302]},si319072670:{type:10088,from:7735,to:8110,rp:0,rpa:0,mdi:'si319072670c',immo:false,apsn:'Slide319072764',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319072670]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},si319072670c:{b:[449,206,471,231],uid:319072670,sr:cp.fd,ip:'dr/si319072670.png',dn:'si319072670',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'A) ',traccstr:'',ti:-1,aid:'A',lip:'dr/si319072670_Column1Image.png',vbwr:[449,206,471,231],vb:[449,206,471,231]},si319072674:{type:80,from:7735,to:8110,rp:0,rpa:0,mdi:'si319072674c',immo:false,apsn:'Slide319072764',qdi:'si319072674mtcha',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319072674]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},si319072674c:{b:[476,206,780,293],uid:319072674,sr:cp.fd,ip:'dr/si319072674.png',dn:'si319072674',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Se efectué una transacción o transferencia de dinero ocasional dentro del límite especificado. ',traccstr:'',ti:-1,aid:'A',at:10097,atxtlms:'Se efectué una transacción o transferencia de dinero ocasional dentro del límite especificado.',ti:-1,ad:'',aAnsTxtlms:'Se efectué una transacción o transferencia de dinero ocasional dentro del límite especificado.',vbwr:[476,206,780,293],vb:[476,206,780,293]},si319072674mtcha:{b:[476,206,780,293],visible:1,cn:'si319072670c',actid:'si319072674',aid:'A',rqs:'Slide319072764',ahl:476,aht:206,aan:'si319072703',vbwr:[476,206,780,293],vb:[476,206,780,293]},si319072680:{type:10088,from:7735,to:8110,rp:0,rpa:0,mdi:'si319072680c',immo:false,apsn:'Slide319072764',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319072680]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},si319072680c:{b:[446,288,464,311],uid:319072680,sr:cp.fd,ip:'dr/si319072680.png',dn:'si319072680',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'B) ',traccstr:'',ti:-1,aid:'B',lip:'dr/si319072680_Column1Image.png',vbwr:[446,288,464,311],vb:[446,288,464,311]},si319072684:{type:80,from:7735,to:8110,rp:0,rpa:0,mdi:'si319072684c',immo:false,apsn:'Slide319072764',qdi:'si319072684mtcha',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319072684]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},si319072684c:{b:[469,288,733,339],uid:319072684,sr:cp.fd,ip:'dr/si319072684.png',dn:'si319072684',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Se establezcan relaciones comerciales. ',traccstr:'',ti:-1,aid:'B',at:10097,atxtlms:'Se establezcan relaciones comerciales.',ti:-1,ad:'',aAnsTxtlms:'Se establezcan relaciones comerciales.',vbwr:[469,288,733,339],vb:[469,288,733,339]},si319072684mtcha:{b:[469,288,733,339],visible:1,cn:'si319072680c',actid:'si319072684',aid:'B',rqs:'Slide319072764',ahl:469,aht:288,aan:'si319072703',vbwr:[469,288,733,339],vb:[469,288,733,339]},si319072690:{type:10088,from:7735,to:8110,rp:0,rpa:0,mdi:'si319072690c',immo:false,apsn:'Slide319072764',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319072690]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},si319072690c:{b:[446,352,465,375],uid:319072690,sr:cp.fd,ip:'dr/si319072690.png',dn:'si319072690',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'C) ',traccstr:'',ti:-1,aid:'C',lip:'dr/si319072690_Column1Image.png',vbwr:[446,352,465,375],vb:[446,352,465,375]},si319072694:{type:80,from:7735,to:8110,rp:0,rpa:0,mdi:'si319072694c',immo:false,apsn:'Slide319072764',qdi:'si319072694mtcha',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319072694]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},si319072694c:{b:[470,352,761,405],uid:319072694,sr:cp.fd,ip:'dr/si319072694.png',dn:'si319072694',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Persona sea considerada Politicamente Expuesta. ',traccstr:'',ti:-1,aid:'C',at:10097,atxtlms:'Persona sea considerada Politicamente Expuesta. ',ti:-1,ad:'',aAnsTxtlms:'Persona sea considerada Politicamente Expuesta. ',vbwr:[470,352,761,405],vb:[470,352,761,405]},si319072694mtcha:{b:[470,352,761,405],visible:1,cn:'si319072690c',actid:'si319072694',aid:'C',rqs:'Slide319072764',ahl:470,aht:352,aan:'si319072703',vbwr:[470,352,761,405],vb:[470,352,761,405]},si319072740:{type:91,from:7735,to:8110,rp:0,rpa:0,mdi:'si319072740c',immo:false,apsn:'Slide319072764',chfn:cp.qsbch,enabled:1,amc:true,isDD:false,subt:2,itr:false,sn:'Slide319072764',iqb:true,qbt:'submit',pa:7780,ma:1,oca:'continue',eh:cp.qbKH,trin:0,trout:0},si319072740c:{b:[333,459,436,489],uid:319072740,sr:cp.fd,ip:'dr/si319072740.png',dn:'si319072740',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Enviar ',traccstr:'',ti:2500,vbwr:[333,459,436,489],vb:[333,459,436,489]},Slide319072764:{lb:'',id:319072764,from:7735,to:8109,useng:false,transition:{type:0},mmot:false,mdi:'Slide319072764c',st:'Question Slide',audCC:[],vidCC:[],accstr:' ',si:[{n:'SmartShape_6386',t:612},{n:'SmartShape_6387',t:612},{n:'SmartShape_6388',t:612},{n:'si319072616',t:87},{n:'Text_Caption_67',t:10098},{n:'Text_Caption_69',t:10110},{n:'si319072670',t:10088},{n:'si319072674',t:80},{n:'si319072680',t:10088},{n:'si319072684',t:80},{n:'si319072690',t:10088},{n:'si319072694',t:80},{n:'si319072740',t:91}],iph:[],v:false,bc:'#ffffff',JSONTT_0:[],sea:'cpCmndResume = 1;',qs:'Slide319072764q4',qnq:4,pa:7778},Slide319072764c:{b:[0,0,801,600],sr:cp.fd,ip:'dr/1174.png',dn:'Slide319072764',visible:'1'},Slide319072764q4:{noa:1,qt:'Asocie lo siguiente',it:true,is:false,ipq:false,ikc:false,ish:true,ips:false,qnq:4,sn:'Slide319072764',oid:'Quiz_2014121082946',iid:'319072509',sra:true,w:1,nw:0,itp:'matching',cal:[],qtp:'Matching',gn:'Slide319072764_ag',tl:0,sfrc:false,frc:'',ifc:[],ofct:false,ao:['28:220'],qtc:'si319072609c',JSONTT_4:[],oca:'cp.jumpToNextSlide();',JSONTT_5:[],ofa:'cp.jumpToNextSlide();',oic:'',sic:false,osc:'si319072754',osct:true,aio:['Text_Caption_69c:0'],aco:['si319072674c:0','si319072684c:1','si319072694c:2'],anslb:['si319072670c','si319072680c','si319072690c'],itemlb:['Text_Caption_67c']},SmartShape_6392:{type:612,from:8110,to:8199,rp:0,rpa:0,mdi:'SmartShape_6392c',immo:false,apsn:'Slide319073045',JSONTT_4:[],cpa:true,oca:'cp.jumpToNextSlide();',JSONTT_5:[],ofa:'cpCmndResume = 1;',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319073087]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},SmartShape_6392c:{b:[26,204,774,457],uid:319073087,sr:cp.fd,ip:'dr/SmartShape_6392.png',dn:'SmartShape_6392',visible:1,effectiveVi:1,JSONEffectData:false,accstr:' ',traccstr:'',ti:-1,sc:'#891334',sw:3,ss:0,fa:100,bc:'#ffffff',p0:[[0],[1,48.07,204],[3,35.88,204,26,213.88,26,226.07],[2,26,434.93],[3,26,447.12,35.88,457,48.07,457],[2,751.93,457],[3,764.12,457,774,447.12,774,434.93],[2,774,226.07],[3,774,213.88,764.12,204,751.93,204],[2,48.07,204],[4]],svg:false,vbwr:[20,198,780,463],vb:[20,198,780,463]},SmartShape_6393:{type:612,from:8110,to:8199,rp:0,rpa:0,mdi:'SmartShape_6393c',immo:false,apsn:'Slide319073045',JSONTT_4:[],cpa:true,oca:'cp.jumpToNextSlide();',JSONTT_5:[],ofa:'cpCmndResume = 1;',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319073128]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},SmartShape_6393c:{b:[293,388,503,418],uid:319073128,dn:'SmartShape_6393',visible:1,effectiveVi:1,JSONEffectData:false,accstr:' ',traccstr:'',ti:-1,sc:'#fdc240',sw:2,ss:0,fa:100,bc:'#fdc240',p0:[[0],[1,300.5,388],[3,296.36,388,293,391.36,293,395.5],[2,293,410.5],[3,293,414.64,296.36,418,300.5,418],[2,495.5,418],[3,499.64,418,503,414.64,503,410.5],[2,503,395.5],[3,503,391.36,499.64,388,495.5,388],[2,300.5,388],[4]],svg:false,vbwr:[289,384,507,422],sh:{i:false,a:45,d:3,b:4,o:0.4,c:'rgb(0, 0, 0)'},vb:[289,384,511,426]},SmartShape_6394:{type:612,from:8110,to:8199,rp:0,rpa:0,mdi:'SmartShape_6394c',immo:false,apsn:'Slide319073045',JSONTT_4:[],cpa:true,oca:'cp.jumpToNextSlide();',JSONTT_5:[],ofa:'cpCmndResume = 1;',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319073163]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},SmartShape_6394c:{b:[23,506,264,536],uid:319073163,sr:cp.fd,ip:'dr/SmartShape_6394.png',dn:'SmartShape_6394',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Recolección ',traccstr:'',ti:-1,sc:'#fdc240',sw:3,ss:0,fa:100,bc:'#ffffff',p0:[[0],[1,27.85,506],[3,25.17,506,23,508.17,23,510.85],[2,23,531.15],[3,23,533.83,25.17,536,27.85,536],[2,259.15,536],[3,261.83,536,264,533.83,264,531.15],[2,264,510.85],[3,264,508.17,261.83,506,259.15,506],[2,27.85,506],[4]],svg:false,vbwr:[17,500,270,542],sh:{i:false,a:90,d:3,b:4,o:0.4,c:'rgb(0, 0, 0)'},vb:[15,500,272,547]},Text_Caption_2803:{type:19,from:8110,to:8199,rp:0,rpa:0,mdi:'Text_Caption_2803c',immo:false,apsn:'Slide319073045',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319073171]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},Text_Caption_2803c:{b:[141,58,688,125],uid:319073171,sr:cp.fd,ip:'dr/Text_Caption_2803.png',dn:'Text_Caption_2803',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Arrastrar y soltar ',traccstr:'',ti:-1,vbwr:[141,58,688,125],vb:[141,58,688,125]},Text_Caption_2804:{type:19,from:8110,to:8199,rp:0,rpa:0,mdi:'Text_Caption_2804c',immo:false,apsn:'Slide319073045',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319073179]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},Text_Caption_2804c:{b:[46,116,774,163],uid:319073179,sr:cp.fd,ip:'dr/Text_Caption_2804.png',dn:'Text_Caption_2804',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Etapas del Financiamiento del Terrorismo ',traccstr:'',ti:-1,vbwr:[46,116,774,163],vb:[46,116,774,163]},Text_Caption_2805:{type:19,from:8110,to:8199,rp:0,rpa:0,mdi:'Text_Caption_2805c',immo:false,apsn:'Slide319073045',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319073187]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},Text_Caption_2805c:{b:[287,252,511,381],uid:319073187,sr:cp.fd,ip:'dr/Text_Caption_2805.png',dn:'Text_Caption_2805',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'En esta etapa los fondos son utilizados para las necesidades de financiamiento de la logística estructural de la organización ',traccstr:'',ti:-1,vbwr:[287,252,511,381],vb:[287,252,511,381]},SmartShape_6395:{type:612,from:8110,to:8199,rp:0,rpa:0,mdi:'SmartShape_6395c',immo:false,apsn:'Slide319073045',JSONTT_4:[],cpa:true,oca:'cp.jumpToNextSlide();',JSONTT_5:[],ofa:'cpCmndResume = 1;',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319073228]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},SmartShape_6395c:{b:[46,388,256,418],uid:319073228,dn:'SmartShape_6395',visible:1,effectiveVi:1,JSONEffectData:false,accstr:' ',traccstr:'',ti:-1,sc:'#fdc240',sw:2,ss:0,fa:100,bc:'#fdc240',p0:[[0],[1,53.5,388],[3,49.36,388,46,391.36,46,395.5],[2,46,410.5],[3,46,414.64,49.36,418,53.5,418],[2,248.5,418],[3,252.64,418,256,414.64,256,410.5],[2,256,395.5],[3,256,391.36,252.64,388,248.5,388],[2,53.5,388],[4]],svg:false,vbwr:[42,384,260,422],sh:{i:false,a:45,d:3,b:4,o:0.4,c:'rgb(0, 0, 0)'},vb:[42,384,264,426]},SmartShape_6396:{type:612,from:8110,to:8199,rp:0,rpa:0,mdi:'SmartShape_6396c',immo:false,apsn:'Slide319073045',JSONTT_4:[],cpa:true,oca:'cp.jumpToNextSlide();',JSONTT_5:[],ofa:'cpCmndResume = 1;',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319073261]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},SmartShape_6396c:{b:[541,388,751,418],uid:319073261,dn:'SmartShape_6396',visible:1,effectiveVi:1,JSONEffectData:false,accstr:' ',traccstr:'',ti:-1,sc:'#fdc240',sw:2,ss:0,fa:100,bc:'#fdc240',p0:[[0],[1,548.5,388],[3,544.36,388,541,391.36,541,395.5],[2,541,410.5],[3,541,414.64,544.36,418,548.5,418],[2,743.5,418],[3,747.64,418,751,414.64,751,410.5],[2,751,395.5],[3,751,391.36,747.64,388,743.5,388],[2,548.5,388],[4]],svg:false,vbwr:[537,384,755,422],sh:{i:false,a:45,d:3,b:4,o:0.4,c:'rgb(0, 0, 0)'},vb:[537,384,759,426]},SmartShape_6397:{type:612,from:8110,to:8199,rp:0,rpa:0,mdi:'SmartShape_6397c',immo:false,apsn:'Slide319073045',JSONTT_4:[],cpa:true,oca:'cp.jumpToNextSlide();',JSONTT_5:[],ofa:'cpCmndResume = 1;',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319073296]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},SmartShape_6397c:{b:[274,506,515,536],uid:319073296,sr:cp.fd,ip:'dr/SmartShape_6397.png',dn:'SmartShape_6397',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Disposición ',traccstr:'',ti:-1,sc:'#fdc240',sw:3,ss:0,fa:100,bc:'#ffffff',p0:[[0],[1,278.85,506],[3,276.17,506,274,508.17,274,510.85],[2,274,531.15],[3,274,533.83,276.17,536,278.85,536],[2,510.15,536],[3,512.83,536,515,533.83,515,531.15],[2,515,510.85],[3,515,508.17,512.83,506,510.15,506],[2,278.85,506],[4]],svg:false,vbwr:[268,500,521,542],sh:{i:false,a:90,d:3,b:4,o:0.4,c:'rgb(0, 0, 0)'},vb:[266,500,523,547]},SmartShape_6398:{type:612,from:8110,to:8199,rp:0,rpa:0,mdi:'SmartShape_6398c',immo:false,apsn:'Slide319073045',JSONTT_4:[],cpa:true,oca:'cp.jumpToNextSlide();',JSONTT_5:[],ofa:'cpCmndResume = 1;',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319073331]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},SmartShape_6398c:{b:[533,501,774,536],uid:319073331,sr:cp.fd,ip:'dr/SmartShape_6398.png',dn:'SmartShape_6398',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Utilización ',traccstr:'',ti:-1,sc:'#fdc240',sw:3,ss:0,fa:100,bc:'#ffffff',p0:[[0],[1,538.66,501],[3,535.53,501,533,503.53,533,506.66],[2,533,530.34],[3,533,533.47,535.53,536,538.66,536],[2,768.34,536],[3,771.47,536,774,533.47,774,530.34],[2,774,506.66],[3,774,503.53,771.47,501,768.34,501],[2,538.66,501],[4]],svg:false,vbwr:[527,495,780,542],sh:{i:false,a:90,d:3,b:4,o:0.4,c:'rgb(0, 0, 0)'},vb:[525,495,782,547]},Text_Caption_2807:{type:19,from:8110,to:8199,rp:0,rpa:0,mdi:'Text_Caption_2807c',immo:false,apsn:'Slide319073045',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319073339]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},Text_Caption_2807c:{b:[40,252,264,381],uid:319073339,sr:cp.fd,ip:'dr/Text_Caption_2807.png',dn:'Text_Caption_2807',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Corresponde al movimiento de los mismos fondos, que se realiza a través de una diversificación de técnicas ',traccstr:'',ti:-1,vbwr:[40,252,264,381],vb:[40,252,264,381]},Text_Caption_2808:{type:19,from:8110,to:8199,rp:0,rpa:0,mdi:'Text_Caption_2808c',immo:false,apsn:'Slide319073045',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319073347]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},Text_Caption_2808c:{b:[527,252,761,381],uid:319073347,sr:cp.fd,ip:'dr/Text_Caption_2808.png',dn:'Text_Caption_2808',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Consiste en la búsqueda de fuentes de financiación por parte de las organizaciones terroristas. ',traccstr:'',ti:-1,vbwr:[527,252,761,381],vb:[527,252,761,381]},Interacción_57q5:{noa:1,qt:'',it:false,is:false,ipq:false,ish:false,ips:false,qnq:5,sn:'Slide319073045',oid:'',iid:'',sra:false,w:3,nw:0,itp:'choice',cal:'',qtp:'DragDropQuestion',gn:'Interacción_57_ag',sfrc:false,frc:'',ifc:'',ofct:false,ao:'',qtc:'',oic:'',sic:false,osc:'',osct:false},Interacción_57:{ds:[{n:'SmartShape_6394',t:'SmartShape_6394',ef:0},{n:'SmartShape_6397',t:'SmartShape_6397',ef:0},{n:'SmartShape_6398',t:'SmartShape_6398',ef:0}],dt:[{n:'SmartShape_6393',t:'SmartShape_6393',ef:0,ha:0,ac:'\\b(.*)\\b',acc:-1,rgo:false,osc:'',osct:0,ofc:'',ofct:0,sbp:6,sbs:100,sbo:100,sbd:0},{n:'SmartShape_6395',t:'SmartShape_6395',ef:0,ha:0,ac:'\\b(.*)\\b',acc:-1,rgo:false,osc:'',osct:0,ofc:'',ofct:0,sbp:6,sbs:100,sbo:100,sbd:0},{n:'SmartShape_6396',t:'SmartShape_6396',ef:0,ha:0,ac:'\\b(.*)\\b',acc:-1,rgo:false,osc:'',osct:0,ofc:'',ofct:0,sbp:6,sbs:100,sbo:100,sbd:0}],cal:[{a:'\\b(t:SmartShape_6398-t:SmartShape_6393){1}(t:SmartShape_6397-t:SmartShape_6395){1}(t:SmartShape_6394-t:SmartShape_6396){1}\\b',isSeq:false}],iht:false,rds:false,rdt:false,hc:true,sdc2op:true,reds:true,JSONTT_4:[],oca:'cp.jumpToNextSlide();',JSONTT_5:[],ofa:'cp.jumpToNextSlide();',ma:1,ofc:'Failure_Caption_68',ofct:1,osc:'Success_Caption_38',osct:1,re:false,ri:false,pa:8155,as:false,sb:'si319073410',srb:true,rb:'si319073456',sub:false,ub:'',siq:true,sat:true,qnq:5,p:3},si319073410:{type:641,from:8110,to:8199,rp:0,rpa:0,mdi:'si319073410c',immo:false,apsn:'Slide319073045',chfn:cp.DDch,enabled:1,amc:true,isDD:true,subt:2,itr:false,trin:0,trout:0},si319073410c:{b:[341,559,445,589],uid:319073410,sr:cp.fd,ip:'dr/si319073410.png',dn:'si319073410',visible:0,effectiveVi:0,JSONEffectData:false,accstr:'Enviar ',traccstr:'',ti:2500,vbwr:[341,559,445,589],vb:[341,559,445,589]},Slide319073045:{lb:'',id:319073045,from:8110,to:8199,useng:true,transition:{type:0},mmot:false,mdi:'Slide319073045c',st:'Normal Slide',audCC:[],vidCC:[],accstr:' ',si:[{n:'SmartShape_6392',t:612},{n:'SmartShape_6393',t:612},{n:'SmartShape_6394',t:612},{n:'Text_Caption_2803',t:19},{n:'Text_Caption_2804',t:19},{n:'Text_Caption_2805',t:19},{n:'SmartShape_6395',t:612},{n:'SmartShape_6396',t:612},{n:'SmartShape_6397',t:612},{n:'SmartShape_6398',t:612},{n:'Text_Caption_2807',t:19},{n:'Text_Caption_2808',t:19},{n:'si319073410',t:641}],iph:[{n:'Interacción_57',t:633}],v:false,bc:'#ffffff',JSONTT_0:[],JSONTT_6:[],qs:'Interacción_57q5'},Slide319073045c:{b:[0,0,0,0],sr:cp.fd,dn:'Slide319073045',visible:'1'},SmartShape_6225:{type:612,from:8200,to:9336,rp:0,rpa:0,mdi:'SmartShape_6225c',immo:false,apsn:'Slide318854034',JSONTT_4:[],cpa:true,oca:'cp.jumpToNextSlide();',JSONTT_5:[],ofa:'cpCmndResume = 1;',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319019416]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},SmartShape_6225c:{b:[-8,-14,812,607],uid:319019416,dn:'SmartShape_6225',visible:1,effectiveVi:1,JSONEffectData:false,accstr:' ',traccstr:'',ti:-1,sc:'#ffffff',sw:0,ss:0,fa:100,bc:'#ffffff',p0:[[0],[1,-8,-14],[2,-8,607],[2,812,607],[2,812,-14],[2,-8,-14],[4]],svg:false,vbwr:[-8,-14,812,607],vb:[-8,-14,812,607]},Image_8895:{type:15,from:8200,to:9336,rp:0,rpa:0,mdi:'Image_8895c',immo:false,apsn:'Slide318854034',trin:0,trout:0,stl:[{stn:'Normal',stt:0,stsi:[319019427]}],stis:0,bstiid:-1,sipst:0,sicbs:false,sihhs:false,sihds:false},Image_8895c:{b:[-43,96,479,572],uid:319019427,sr:cp.fd,ip:'dr/319019423_522_476Fl1.png',dn:'Image_8895',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Image ',traccstr:'',ti:-1,vbwr:[-43,96,479,572],vb:[-43,96,479,572]},si318854056:{type:111,from:8200,to:9337,rp:0,rpa:0,mdi:'si318854056c',immo:false,apsn:'Slide318854034',trin:0,trout:0},si318854056c:{b:[610,195,835,233],uid:318854056,dn:'si318854056',visible:1,effectiveVi:1,JSONEffectData:false,ta:'left',B:false,c:'#d68403',f:'NexaBold',i:false,sz:20,u:false,qp:'quizInfoPointsScored',text:'',vbwr:[610,195,835,233],vb:[610,195,835,233]},si318854064:{type:111,from:8200,to:9337,rp:0,rpa:0,mdi:'si318854064c',immo:false,apsn:'Slide318854034',trin:0,trout:0},si318854064c:{b:[610,237,835,275],uid:318854064,dn:'si318854064',visible:1,effectiveVi:1,JSONEffectData:false,ta:'left',B:false,c:'#d68403',f:'NexaBold',i:false,sz:20,u:false,qp:'quizInfoTotalQuizPoints',text:'',vbwr:[610,237,835,275],vb:[610,237,835,275]},si318854096:{type:111,from:8200,to:9337,rp:0,rpa:0,mdi:'si318854096c',immo:false,apsn:'Slide318854034',trin:0,trout:0},si318854096c:{b:[610,319,835,357],uid:318854096,dn:'si318854096',visible:1,effectiveVi:1,JSONEffectData:false,ta:'left',B:false,c:'#d68403',f:'NexaBold',i:false,sz:20,u:false,qp:'quizInfoCurrentAttempt',text:'',vbwr:[610,319,835,357],vb:[610,319,835,357]},si319019386:{type:111,from:8200,to:9337,rp:0,rpa:0,mdi:'si319019386c',immo:false,apsn:'Slide318854034',trin:0,trout:0},si319019386c:{b:[610,278,835,316],uid:319019386,dn:'si319019386',visible:1,effectiveVi:1,JSONEffectData:false,ta:'left',B:false,c:'#d68403',f:'NexaBold',i:false,sz:20,u:false,qp:'quizInfoPercentScored',text:'',vbwr:[610,278,835,316],vb:[610,278,835,316]},si318854044:{type:86,from:8200,to:9337,rp:0,rpa:0,mdi:'si318854044c',immo:false,apsn:'Slide318854034',trin:0,trout:0},si318854044c:{b:[52,82,812,151],uid:318854044,sr:cp.fd,ip:'dr/si318854044.png',dn:'si318854044',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Resultados de la prueba ',traccstr:'',ti:-1,t:86,vbwr:[51,81,812,151],vb:[51,81,812,151]},si318854052:{type:112,from:8200,to:9337,rp:0,rpa:0,mdi:'si318854052c',immo:false,apsn:'Slide318854034',trin:0,trout:0},si318854052c:{b:[446,197,594,235],uid:318854052,sr:cp.fd,ip:'dr/si318854052.png',dn:'si318854052',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Su puntuación: ',traccstr:'',ti:-1,vbwr:[446,197,594,235],vb:[446,197,594,235]},si318854060:{type:112,from:8200,to:9337,rp:0,rpa:0,mdi:'si318854060c',immo:false,apsn:'Slide318854034',trin:0,trout:0},si318854060c:{b:[392,238,594,276],uid:318854060,sr:cp.fd,ip:'dr/si318854060.png',dn:'si318854060',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Puntuación máxima: ',traccstr:'',ti:-1,vbwr:[392,238,594,276],vb:[392,238,594,276]},si318854092:{type:112,from:8200,to:9337,rp:0,rpa:0,mdi:'si318854092c',immo:false,apsn:'Slide318854034',trin:0,trout:0},si318854092c:{b:[345,319,595,357],uid:318854092,sr:cp.fd,ip:'dr/si318854092.png',dn:'si318854092',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Intentos: ',traccstr:'',ti:-1,vbwr:[345,319,595,357],vb:[345,319,595,357]},si319019382:{type:112,from:8200,to:9337,rp:0,rpa:0,mdi:'si319019382c',immo:false,apsn:'Slide318854034',trin:0,trout:0},si319019382c:{b:[438,278,595,316],uid:319019382,sr:cp.fd,ip:'dr/si319019382.png',dn:'si319019382',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Precisión: ',traccstr:'',ti:-1,vbwr:[438,278,595,316],vb:[438,278,595,316]},si319068138:{type:175,from:8200,to:9337,rp:0,rpa:0,mdi:'si319068138c',immo:false,apsn:'Slide318854034',chfn:cp.qrtch,enabled:1,amc:true,isDD:false,subt:2,itr:false,sn:'Slide318854034',iqb:true,qbt:'retake',pa:8245,ma:-1,oca:'continue',eh:cp.qbKH,trin:0,trout:0},si319068138c:{b:[536,403,697,449],uid:319068138,sr:cp.fd,ip:'dr/si319068138.png',dn:'si319068138',visible:1,effectiveVi:1,JSONEffectData:false,accstr:'Realizar 2do intento ',traccstr:'',ti:2500,vbwr:[536,403,697,449],vb:[536,403,697,449]},Slide318854034:{lb:'',id:318854034,from:8200,to:9336,useng:true,transition:{type:0},mmot:false,mdi:'Slide318854034c',st:'Question Slide',audCC:[],vidCC:[],accstr:' ',si:[{n:'SmartShape_6225',t:612},{n:'Image_8895',t:15},{n:'si318854052',t:112},{n:'si318854056',t:111},{n:'si318854060',t:112},{n:'si318854064',t:111},{n:'si319019382',t:112},{n:'si319019386',t:111},{n:'si318854092',t:112},{n:'si318854096',t:111},{n:'si318854044',t:86},{n:'si319068138',t:175}],iph:[],v:false,bc:'#ffffff',JSONTT_0:[],sea:'cpCmndResume = 1;',qs:'',pa:8228},Slide318854034c:{b:[0,0,801,600],sr:cp.fd,ip:'dr/3381.png',dn:'Slide318854034',visible:'1'},StAd5:{from:8200,to:9335,src:'ar/319037228.mp3',du:37929},quizzingData:{allowBackwardMovement:false,allowReviewMode:true,isInReviewMode:false,allowSkipAnyScoreSlide:true,allowSkipFailScoreSlide:true,allowSkipPassScoreSlide:true,anyGradeAction:'',anyGradeActionArg1:'',anyGradeActionArg2:'',defaultActionType:'continue',defaultActionArg1:'',defaultActionArg2:'',failedScoreFeedback:'Lo sentimos, ¡ha suspendido!',failingGradeAction:'cpCmndResume = 1;',JSONTT_5:[],passedScoreFeedback:'Enhorabuena, ha aprobado la prueba.',passingGradeAction:'cpCmndResume = 1;',JSONTT_4:[],pretestAction:'',it:true,anyScoreSlide:7,firstSlideInQuiz:1,lastSlideInQuiz:7,quizScopeEndSlide:7,maxScore:9,minScore:0,maxPretestScore:0,numQuestionsInQuiz:6,numQuizAttemptsAllowed:2,passingScore:8,quizInfoCurrentAttempt:0,quizInfoPercentScored:0,quizProgress:'',questionAdvance:'mustAnswer',quizAdvance:'optional',quizID:455,showFinishButton:true,showProgress:true,questionPoolsInitialized:true,quizInfoAnswerChoice:'',quizInfoAttempts:2,quizInfoLastSlidePointScored:0,quizInfoMaxAttemptsOnCurrentQuestion:1,quizInfoPassFail:0,quizInfoPointsPerQuestionSlide:0,quizInfoPointsScored:0,quizInfoQuestionSlideTiming:0,quizInfoQuestionSlideType:'',quizInfoQuizPassPercent:80,quizInfoQuizPassPoints:0,quizInfoTotalCorrectAnswers:0,quizInfoTotalProjectPoints:9,quizInfoTotalQuestionsPerProject:6,quizInfoTotalQuizPoints:9,quizInfoTotalUnansweredQuestions:0,reportingVariables:0,reportingEnabled:true,submitAll:false,hidePlaybarInQuiz:true,quizBranchAware:false,passFailPassingScoreTypeInPrecent:true,passFailPassingScoreValue:80,progressIndicatorType:0,rpViDv:'Esta diapositiva se ha visualizado en un dispositivo con otra anchura.',progressIndicatorString:'Pregunta %d de %d '},quizReportingData:{lWriteDebugInfo:false,lmsType:2,sendScoreAsPercent:false,trackingLevel:0,slideViewPercentage:100,reportingOption:1,slideViewsForSuccess:100,slideViewsTypeForSuccess:0,slideViewsForCompletion:100,slideViewsTypeForCompletion:0,quizCriteriaForCompletion:2,quizCriteriaForSuccess:2,completionCriteria:2,successCriteria:2,companyName:'',departmentName:'',courseName:'',courseNode:'',isTrackedFlag:true,trackingUrlEncodeVersionAndSession:1,commitDataOnEverySlide:false,trackingSendResumeData:true,cmiExitNormalAfterCompletion:false,lmsInitializationString:'cp.movie.playbackController.SetLMSType();cp.movie.playbackController.SetSendScoreAsPercent();cp.movie.playbackController.SetTrackingLevel();cp.movie.playbackController.SetSlideViewPercentage();cp.movie.playbackController.SetReportingOption();cp.movie.playbackController.SetSlideViewsForSuccess();cp.movie.playbackController.SetSlideViewsForCompletion();cp.movie.playbackController.SetQuizCriteriaForCompletion();cp.movie.playbackController.SetQuizCriteriaForSuccess();cp.movie.playbackController.SetCompletionCriteria();cp.movie.playbackController.SetSuccessCriteria();cp.movie.playbackController.SetDirectory();cp.movie.playbackController.SetCourseNode();cp.movie.playbackController.SetIsTrackedFlag();cp.movie.playbackController.SetTrackingUrlEncodeVersionAndSession();cp.movie.playbackController.SetCommitDataOnEverySlide();cp.movie.playbackController.SetTrackingSendResumeData();cp.movie.playbackController.SetCmiExitNormalAfterCompletion();'},rtDialog:{rtbgfc:'#343434',rtbgsc:'#ffffff',rtbtnfc:'#000000',rtbtnsc:'#ffffff',rtsc:'#ffffff',rttc:'#ffffff',rttsc:'#1a1a1a',rtfn:'MyriadPro-Regular',rtt:'Enviar todo',rtsam:'Ha respondido a todas las preguntas. ¿Qué desea hacer a continuación?',rtiqm:'Hay una o más preguntas incompletas. Debe responder a todas las preguntas para continuar.',rtsiqm:'Aún quedan preguntas sin responder. ¿Seguro que desea continuar sin responder a esas preguntas?',rtsanym:'Ha llegado al final de la prueba pero aún hay preguntas sin responder. ¿Qué desea hacer?',rtmtqm:'Debe contestar al menos una pregunta para continuar.',rtokb:'OK',rtcb:'CANCELAR',rtyb:'SÍ',rtnb:'NO',rtsab:'Enviar todas las respuestas',rtsanyb:'Enviar de todos modos',rtrtqb:'Regresar a prueba',rtWarningTitle:'Adobe Captivate',rtUnsupportedBowser:'El archivo que quiere ver incluye contenido no admitido por este navegador. Utilice uno de los siguientes:<ul><li>Internet Explorer 9 o posterior</li><li>Safari 5.1 o posterior</li><li>Google Chrome 17 o posterior</li><li>Firefox @FFVERSION o posterior</li></ul>'},sgMgr:{ri:0,sg:[[0,[[1,[23]]]],[1,[[2,[2,2,2]]]],[2,[[3,[2,2,2]]]],[3,[[4,[2,2,2]]]],[4,[[5,[2,2,2]]]],[5,[[6,[2,2,2,2,2]]]],[6,[[7,[23,2,2,2,2,2,2,2]]]]]},project:{fps:30,hasTOC:0,w:801,h:600,iw:801,ih:600,prm:[1,1,0,0],stateNameToLocalizedStateNameMap:{kCPNormalState:'Normal',kCPDownState:'Abajo',kCPRolloverState:'Efecto dinámico',kCPDragoverState:'ArrastrarPor',kCPDragstartState:'ArrastrarInicio',kCPDropCorrect:'ColocarCorrecto',kCPDropIncorrect:'ColocarIncorrecto',kCPDropAccept:'ColocarAceptar',kCPDropReject:'ColocarRechazar'},prjBgColor:'#ffffff',pkt:0,htmlBgColor:'#fbf0de',shc:true,pN:'clase1'},project_main:{from:1,to:9336,currentFrame:1,useResponsive:false,currentFrame:1,useWidgetVersion7:false,isPublishedFromLacuna:false,slideAudios:'StAd0,StAd1,StAd2,StAd3,StAd4,StAd5',slides:'Slide318578686,Slide319071818,Slide319067356,Slide319072057,Slide319072262,Slide319072764,Slide319073045,Slide318854034',questions:'Slide319071818q0,Slide319067356q1,Slide319072057q2,Slide319072262q3,Slide319072764q4,Interacción_57q5',autoplay:true,preloader:true,preloaderFileName:'dr/loading.gif',preloaderPercentage:1,preloaderimagel:385,preloaderimaget:285,pprtd:false,peon:false,fadeInAtStart:0,fadeOutAtEnd:0,endAction:'cp.stopMovie();'},borderProperties:{hasBorder:false},playBarProperties:{hasPlayBar:true,jsfile:'playbarScript.js',cssfile:'playbarStyle.css',position:3,layout:3,showOnHover:false,overlay:false,tworow:false,hasRewind:false,hasBackward:false,hasPlay:false,hasSlider:false,hasForward:true,hasCC:false,hasAudioOn:false,hasExit:false,hasFastForward:false,applyColors:true,BkColor:{bc:'#001d7e',alpha:100},FaceColor:{bc:'#d68403',alpha:100},GlowColor:{bc:'#ffffff',alpha:100},IconColor:{bc:'#ffffff',alpha:100},alpha:100,noToolTips:false,locale:6},tocProperties:{},ccProperties:{w:801,h:57,lc:3,c:'#ffffff',o:49,f:'Times New Roman',fs:12,tc:'#000000'},trecs:[{link:318578686,text:['Desafía tus conocimientos','Pon a prueba lo aprendido']},{link:319071818,text:['Pregunta 1 de 5 ','¿Verdadero o falso?','Riego Operativo: Es la posibilidad de recibir o ser pasible de sancines, multas, pleitos, sentencias desfavorables, contratos inaplicables que generen perdidas o aumento de gastos al Banco. ','','Verdadero','','Falso','Enviar']},{link:319067356,text:['Pregunta 2 de 5 ','¿Cual de las opciones es la correcta? Beneficiario final: La o las personas físicas que, directa o indirectamente, posean una participación sustantiva o control final sobre la persona jurídica o estructura jurídica, o se beneficie de éstas, de manera que se enmarque por lo menos en una de las siguientes condiciones:','','Tenga participación sustantiva: la tenencia de acciones o participaciones en un porcentaje igual o mayor al 10% (diez por ciento) con respecto al capital total de la persona o estructura jurídica;','','Controles más del 20% (veinticinco por ciento) del derecho de votación en la persona o estructura jurídica;','','Gerentes, administradores o quienes frecuentemente usen o se beneficien de los activos que son propiedad de la persona o estructura jurídica o, en cuyo nombre o beneficio se realice una transacción de la persona o estructura jurídica;','Enviar']},{link:319072057,text:['Pregunta 3 de 5 ','¿Cual de las opciones es la correcta? El Banco ha implementado la matriz de autoevaluación permitiéndole un actuar en línea con las normas internas y externas vigentes, el Nivel de Riesgo actual del Banco es: ','','Riesgo Bajo','','Riesgo Medio','','Riesgo Alto','Enviar']},{link:319072262,text:['Pregunta 4 de 5 ','¿Cual de las opciones es la correcta? El incumplimiento de las disposiciones relacionadas al sistema ALA/CFT/FP será considerada internamente como una infracción, quedando establecido su gravedad y las sanciones aplicables de acuerdo al tipo de falt en que documento: ','','Manual de Políticas de Prevención y Gestión de Riesgos de Lavado de Activos y Financiamiento del Terrorismo ','','Código de Conducta Ética','','Manual de Políticas-Administración Integral de Riesgos','','Manual de Políticas de la Unidad de Control Interno','Enviar']},{link:319072764,text:['','Parea según corresponda ','Columna 1','B','La debida diligencia debe realizarse sobre los Clientes cuando:','A)','Se efectué una transacción o transferencia de dinero ocasional dentro del límite especificado.','B)','Se establezcan relaciones comerciales.','C)','Persona sea considerada Politicamente Expuesta. ','Enviar']},{link:319073045,text:['','Recolección','Arrastrar y soltar','Etapas del Financiamiento del Terrorismo','En esta etapa los fondos son utilizados para las necesidades de financiamiento de la logística estructural de la organización ','Disposición','Utilización','Corresponde al movimiento de los mismos fondos, que se realiza a través de una diversificación de técnicas','Consiste en la búsqueda de fuentes de financiación por parte de las organizaciones terroristas.','Enviar']}]};cp.model.projectImages=['assets/htmlimages/checkBox_disabled.png','assets/htmlimages/checkBox_normal.png','assets/htmlimages/checkBox_selected.png','assets/htmlimages/checkBox_selectedDisabled.png','assets/htmlimages/closeReviewButton.png','assets/htmlimages/correct_answer_normal.png','assets/htmlimages/correct_answer_small.png','assets/htmlimages/correct_question_normal.png','assets/htmlimages/correct_question_small.png','assets/htmlimages/dd_arrow.png','assets/htmlimages/img_trans.gif','assets/htmlimages/incorrect_answer_normal.png','assets/htmlimages/incorrect_answer_small.png','assets/htmlimages/incorrect_question_normal.png','assets/htmlimages/incorrect_question_small.png','assets/htmlimages/partial_correct_question_normal.png','assets/htmlimages/partial_correct_question_small.png','assets/htmlimages/placeholder.png','assets/htmlimages/radioButton_disabled.png','assets/htmlimages/radioButton_normal.png','assets/htmlimages/radioButton_selected.png','assets/htmlimages/radioButton_selectedDisabled.png','assets/htmlimages/sequenceReview.png','assets/htmlimages/skip_answer_normal.png','assets/htmlimages/skip_answer_small.png','assets/htmlimages/skip_question_normal.png','assets/htmlimages/skip_question_small.png'];cp.model.images=['dr/1174.png','dr/318990610_979_668Tr92.png','dr/318990610_979_668Tr95.png','dr/319019423_522_476Fl1.png','dr/319061792_543_449.png','dr/3381.png','dr/SmartShape_6387.png','dr/SmartShape_6388.png','dr/SmartShape_6392.png','dr/SmartShape_6394.png','dr/SmartShape_6397.png','dr/SmartShape_6398.png','dr/Text_Caption_2767.png','dr/Text_Caption_2768.png','dr/Text_Caption_2803.png','dr/Text_Caption_2804.png','dr/Text_Caption_2805.png','dr/Text_Caption_2807.png','dr/Text_Caption_2808.png','dr/Text_Caption_67.png','dr/Text_Caption_69.png','dr/si318854044.png','dr/si318854052.png','dr/si318854060.png','dr/si318854092.png','dr/si319019382.png','dr/si319067224.png','dr/si319067235.png','dr/si319067239.png','dr/si319067246.png','dr/si319067250.png','dr/si319067257.png','dr/si319067261.png','dr/si319067318.png','dr/si319068138.png','dr/si319071701.png','dr/si319071713.png','dr/si319071724.png','dr/si319071728.png','dr/si319071735.png','dr/si319071739.png','dr/si319071808.png','dr/si319071925.png','dr/si319071936.png','dr/si319071940.png','dr/si319071947.png','dr/si319071951.png','dr/si319071958.png','dr/si319071962.png','dr/si319072019.png','dr/si319072130.png','dr/si319072141.png','dr/si319072145.png','dr/si319072152.png','dr/si319072156.png','dr/si319072163.png','dr/si319072167.png','dr/si319072224.png','dr/si319072281.png','dr/si319072285.png','dr/si319072616.png','dr/si319072670.png','dr/si319072670_Column1Image.png','dr/si319072674.png','dr/si319072680.png','dr/si319072680_Column1Image.png','dr/si319072684.png','dr/si319072690.png','dr/si319072690_Column1Image.png','dr/si319072694.png','dr/si319072740.png','dr/si319073410.png'];cp.model.videos=[];cp.model.slideVideos=[];cp.model.tocVideos=[];cp.model.audios=['ar/319026642.mp3','ar/319037219.mp3','ar/319067142.mp3','ar/319037228.mp3'];cp.initVariables = function(){cp.cv('CaptivateVersion','9.0.0',1,1000,0);cp.cv('cpCmndCC',0,1,15,0);cp.cv('cpCmndExit',0,1,15,0);cp.cv('cpCmndMute',0,1,15,0);cp.cv('cpCmndPause',0,1,15,0);cp.cv('cpCmndPlaybarMoved',0,1,15,0);cp.cv('cpCmndPrevious',0,1,15,0);cp.cv('cpCmndResume',0,1,15,0);cp.cv('cpCmndShowPlaybar',1,1,15,0);cp.cv('cpCmndTOCVisible',0,1,15,0);cp.cv('cpCmndVolume',100,1,15,0);cp.cv('cpInQuizScope',0,1,15,0);cp.cv('cpInReviewMode',0,1,15,0);cp.cv('cpInfoAuthor','author',1,15,0);cp.cv('cpInfoCompany','company',1,15,0);cp.cv('cpInfoCopyright','copyright',1,15,0);cp.cv('cpInfoCourseID',-1,1,15,0);cp.cv('cpInfoCourseName','Course Name',1,15,0);cp.cv('cpInfoCurrentDate','dd',1,15,0);cp.cv('cpInfoCurrentDateString','mm/dd/yyyy',1,15,0);cp.cv('cpInfoCurrentDateStringDDMMYYYY','dd/mm/yyyy',1,15,0);cp.cv('cpInfoCurrentDay',1,1,15,0);cp.cv('cpInfoCurrentFrame',1,1,15,0);cp.cv('cpInfoCurrentHour','hh',1,15,0);cp.cv('cpInfoCurrentLocaleDateString','',1,15,0);cp.cv('cpInfoCurrentMinutes','mm',1,15,0);cp.cv('cpInfoCurrentMonth','mm',1,15,0);cp.cv('cpInfoCurrentSlide',1,1,15,0);cp.cv('cpInfoCurrentSlideLabel','slide',1,15,0);cp.cv('cpInfoCurrentSlideType','Normal',1,15,0);cp.cv('cpInfoCurrentTime','hh:mm:ss',1,15,0);cp.cv('cpInfoCurrentYear','yyyy',1,15,0);cp.cv('cpInfoDescription','project description',1,15,0);cp.cv('cpInfoElapsedTimeMS',0,1,15,0);cp.cv('cpInfoEmail','author@company.com',1,15,0);cp.cv('cpInfoEpochMS',0,1,15,0);cp.cv('cpInfoFPS',1,1,15,0);cp.cv('cpInfoFrameCount',1,1,15,0);cp.cv('cpInfoGeoLocation','',1,15,0);cp.cv('cpInfoHasPlaybar',1,1,1000,0);cp.cv('cpInfoIsStandalone',1,1,15,0);cp.cv('cpInfoLastVisitedSlide',0,1,15,0);cp.cv('cpInfoMobileOS',0,1,15,0);cp.cv('cpInfoPercentage',0,1,15,0);cp.cv('cpInfoPrevSlide',-1,1,15,0);cp.cv('cpInfoProjectName','',1,15,0);cp.cv('cpInfoSlideCount',1,1,15,0);cp.cv('cpInfoSlidesInProject',8,1,1000,0);cp.cv('cpInfoWebsite','www.company.com',1,15,0);cp.cv('cpLockTOC',0,1,1000,0);cp.cv('cpQuizInfoAnswerChoice','',1,15,0);cp.cv('cpQuizInfoAttempts',0,1,15,0);cp.cv('cpQuizInfoLastSlidePointScored',0,1,15,0);cp.cv('cpQuizInfoMaxAttemptsOnCurrentQuestion',0,1,15,0);cp.cv('cpQuizInfoNegativePointsOnCurrentQuestionSlide',0,1,15,0);cp.cv('cpQuizInfoPassFail',0,1,15,0);cp.cv('cpQuizInfoPointsPerQuestionSlide',0,1,15,0);cp.cv('cpQuizInfoPointsscored',0,1,15,0);cp.cv('cpQuizInfoPreTestMaxScore',0,1,15,0);cp.cv('cpQuizInfoPreTestTotalCorrectAnswers',0,1,15,0);cp.cv('cpQuizInfoPreTestTotalQuestions',0,1,1000,0);cp.cv('cpQuizInfoPretestPointsscored',0,1,15,0);cp.cv('cpQuizInfoPretestScorePercentage',0,1,15,0);cp.cv('cpQuizInfoQuestionPartialScoreOn',0,1,15,0);cp.cv('cpQuizInfoQuestionSlideTiming',0,1,15,0);cp.cv('cpQuizInfoQuestionSlideType','choice',1,15,0);cp.cv('cpQuizInfoQuizPassPercent',80,1,1000,0);cp.cv('cpQuizInfoQuizPassPoints',8,1,1000,0);cp.cv('cpQuizInfoTotalCorrectAnswers',0,1,15,0);cp.cv('cpQuizInfoTotalProjectPoints',0,1,15,0);cp.cv('cpQuizInfoTotalQuestionsPerProject',0,1,15,0);cp.cv('cpQuizInfoTotalQuizPoints',9,1,1000,0);cp.cv('cpQuizInfoTotalUnansweredQuestions',0,1,15,0);cp.cv('cpInfoPrevFrame',0,1,15,0);cp.cv('Text_Entry_Box_1','',0,15,0);cp.cv('Text_Entry_Box_2','',0,15,0);cp.cv('cpQuizInfoStudentID','',0,15,0);cp.cv('cpQuizInfoStudentName','',0,15,0);};cp.ReportingVariables="Text_Entry_Box_1,Text_Entry_Box_2,";};cp.sbw=0;cp.useg=0;cp.geo=0;cp.pg=0;cp.win8=0;cp.autoGrow=1;cp.fluidFont=1;;var RuntimeBrowserDetect={init:function(a,c,e){this.BrowserEnum||(this.BrowserEnum={},this.BrowserEnum.UNKNOWN=0,this.BrowserEnum.MSIE=1,this.BrowserEnum.FIREFOX=2,this.BrowserEnum.CHROME=3,this.BrowserEnum.SAFARI=4,this.BrowserEnum.NETSCAPE=5,this.BrowserEnum.OPERA=6,this.BrowserEnum.CAMINO=7,this.BrowserEnum.FIREBIRD=8,this.BrowserEnum.MSIE_MIN_SUPPORTED_VERSION=9,this.BrowserEnum.CHROME_MIN_SUPPORTED_VERSION=17,this.BrowserEnum.SAFARI_MIN_SUPPORTED_VERSION=5.1,this.BrowserEnum.FF_MIN_SUPPORTED_VERSION_WIN=
22,this.BrowserEnum.FF_MIN_SUPPORTED_VERSION_MAC=35,this.BrowserEnum.FF_MIN_SUPPORTED_VERSION_FFOS=15,this.BrowserEnum.FF_MIN_SUPPORTED_VERSION_ANDROID=20);this.DeviceEnum||(this.DeviceEnum={},this.DeviceEnum.DESKTOP=0,this.DeviceEnum.IDEVICE=1,this.DeviceEnum.ANDROID=2);this.browserVersion=this.browser=this.BrowserEnum.UNKNOWN;this.device=this.DeviceEnum.DESKTOP;navigator.userAgent.match(/(iPhone|iPad|iPod)/i)?this.device=this.DeviceEnum.IDEVICE:navigator.userAgent.match(/android/i)&&(this.device=
this.DeviceEnum.ANDROID);navigator.userAgent.match(/MSIE/i)?(this.browser=this.BrowserEnum.MSIE,this.browserVersion=this.getCurrentBrowserVersion(navigator.userAgent,"MSIE")||this.getCurrentBrowserVersion(navigator.appVersion,"MSIE")||this.BrowserEnum.UNKNOWN):navigator.userAgent.match(/Firefox/i)?(this.browser=this.BrowserEnum.FIREFOX,this.browserVersion=this.getCurrentBrowserVersion(navigator.userAgent,"Firefox")||this.getCurrentBrowserVersion(navigator.appVersion,"Firefox")||this.BrowserEnum.UNKNOWN):
navigator.userAgent.match(/Chrome/i)?(this.browser=this.BrowserEnum.CHROME,this.browserVersion=this.getCurrentBrowserVersion(navigator.userAgent,"Chrome")||this.getCurrentBrowserVersion(navigator.appVersion,"Chrome")||this.BrowserEnum.UNKNOWN):navigator.userAgent.match(/Safari/i)?(this.browser=this.BrowserEnum.SAFARI,this.browserVersion=this.getCurrentBrowserVersion(navigator.userAgent,"Version")||this.getCurrentBrowserVersion(navigator.appVersion,"Version")||this.BrowserEnum.UNKNOWN):navigator.userAgent.match(/Netscape/i)?
(this.browser=this.BrowserEnum.NETSCAPE,this.browserVersion=this.getCurrentBrowserVersion(navigator.userAgent,"Netscape")||this.getCurrentBrowserVersion(navigator.appVersion,"Netscape")||this.BrowserEnum.UNKNOWN):navigator.userAgent.match(/Opera/i)?(this.browser=this.BrowserEnum.OPERA,this.browserVersion=this.getCurrentBrowserVersion(navigator.userAgent,"Version")||this.getCurrentBrowserVersion(navigator.appVersion,"Version")||this.BrowserEnum.UNKNOWN):navigator.userAgent.match(/Camino/i)?(this.browser=
this.BrowserEnum.CAMINO,this.browserVersion=this.getCurrentBrowserVersion(navigator.userAgent,"Camino")||this.getCurrentBrowserVersion(navigator.appVersion,"Camino")||this.BrowserEnum.UNKNOWN):navigator.userAgent.match(/Firebird/i)?this.browser=this.BrowserEnum.FIREBIRD:navigator.userAgent.match(/Trident/i)&&"netscape"==navigator.appName.toLowerCase()&&(this.browser=this.BrowserEnum.MSIE,this.browserVersion=this.getCurrentBrowserVersion(navigator.userAgent,"rv")||this.BrowserEnum.UNKNOWN);this.getIsBrowserSupported()||
this.showRuntimeWarning(a,c,e)},getCurrentBrowserVersion:function(a,c){var e=a.indexOf(c);return-1==e?this.BrowserEnum.UNKNOWN:parseFloat(a.substring(e+c.length+1))},getIsBrowserSupported:function(){var a=!1;if(this.browser==this.BrowserEnum.MSIE&&this.browserVersion>=this.BrowserEnum.MSIE_MIN_SUPPORTED_VERSION)a=!0;else if(this.browser==this.BrowserEnum.CHROME&&this.browserVersion>=this.BrowserEnum.CHROME_MIN_SUPPORTED_VERSION)a=!0;else if(this.browser==this.BrowserEnum.SAFARI&&this.browserVersion>=
this.BrowserEnum.SAFARI_MIN_SUPPORTED_VERSION)a=!0;else if(this.browser==this.BrowserEnum.FIREFOX&&(cp.OS==cp.MACOS&&this.browserVersion>=this.BrowserEnum.FF_MIN_SUPPORTED_VERSION_MAC||cp.OS==cp.WINDOWS&&this.browserVersion>=this.BrowserEnum.FF_MIN_SUPPORTED_VERSION_WIN))a=!0;return a},getPanelElement:function(a,c,e,d,f){var b=document.createElement("div");b.style.left=a;b.style.top=c;b.style.width=e;b.style.height=d;b.style.backgroundColor=f;b.style.border="1px solid #666666";b.style.borderRadius=
"14px";return b},getTextElement:function(a,c,e,d,f){var b=document.createElement("div");b.style.color=e;b.style.fontFamily=d;b.style.fontSize="14px";b.style.textAlign="left";b.style.left=a;b.style.top=c;b.style.position="relative";b.style.opacity=1;b.innerHTML=f;return b},showRuntimeWarning:function(a,c,e){if(document.body){var d=document.createElement("div");d.id="CPUnSupportedBrowserWarning_ID";var f=this.getPanelElement("0px","0px","455px","220px","#CCCCCC");f.style.margin="100px auto";"boxShadow"in
f.style&&(f.style.boxShadow="1px 1px 1px #000000");d.appendChild(f);var b=this.getPanelElement("2px","2px","450px","215px","#FEFEFE");b.style.position="relative";f.appendChild(b);c=this.getTextElement("10px","10px","#000000","Tahoma",c);b.appendChild(c);c=document.createElement("div");c.style.height="2px";c.style.backgroundColor="#000000";c.style.opacity=0.5;c.style.position="relative";c.style.marginLeft="10px";c.style.marginRight="10px";c.style.top="20px";b.appendChild(c);a=this.getTextElement("10px",
"30px","#000000","Tahoma",a);a.style.marginRight="10px";b.appendChild(a);a=this.getPanelElement("0px","auto","100px","33px","#CCCCCC");a.style.bottom="10px";a.style.opacity=0.7;a.style.position="absolute";a.style.cursor="pointer";cp.registerGestureEvent(a,cp.GESTURE_EVENT_TYPES.TAP,function(){var a=document.getElementById("CPUnSupportedBrowserWarning_ID");a!=void 0&&document.body.removeChild(a)});"boxShadow"in a.style&&(a.style.boxShadow="1px 1px 1px #000000");e=this.getTextElement("0px","5px","#000000",
"Tahoma",e);e.style.textAlign="center";a.appendChild(e);b.appendChild(a);document.body.appendChild(d);d.style.visibility="visible";d.style.position="absolute";d.style.left="0px";d.style.top="0px";d.style.width="100%";d.style.height="100%";d.style.textAlign="center";d.style.zIndex="1000";d.style.backgroundColor="CCCCCC";a.style.left=(b.clientWidth-a.clientWidth)/2+"px"}}};
// MSDropDown - jquery.dd.js
// author: Marghoob Suleman - Search me on google
// Date: 12th Aug, 2009, {18 Dec, 2010 (2.36)}, {date: 02 July, 2011}
// Version: 2.37.5
// Revision: 34
// web: www.giftlelo.com | www.marghoobsuleman.com
/*
// msDropDown is free jQuery Plugin: you can redistribute it and/or modify
// it under the terms of the either the MIT License or the Gnu General Public License (GPL) Version 2
*/
;(function(a){var r="",E=function(h,k,F){var e=this;k=a.extend({height:120,visibleRows:7,rowHeight:23,showIcon:!0,zIndex:9999,mainCSS:"dd",useSprite:!1,animStyle:"slideDown",onInit:"",style:""},k);this.ddProp={};var w="",n={insideWindow:!0,keyboardAction:!1,currentKey:null},s=!1,E={postElementHolder:"_msddHolder",postID:"_msdd",postTitleID:"_title",postTitleTextID:"_titletext",postChildID:"_child",postAID:"_msa",postOPTAID:"_msopta",postInputID:"_msinput",postArrowID:"_arrow",postInputhidden:"_inp"},
N=k.mainCSS;this.onActions={};var d=a(h).prop("id");if("undefined"==typeof d||0>=d.length)d="msdrpdd"+a.msDropDown.counter++,a(h).attr("id",d);var G=a(h).prop("style");k.style+=void 0==G?"":G;var x=a(h).children();if(s=1<a(h).prop("size")||!0==a(h).prop("multiple")?!0:!1)k.visibleRows=a(h).prop("size");var m={},C={},f=function(a){"undefined"==typeof C[a]&&(C[a]=document.getElementById(a));return C[a]},g=function(a){return d+E[a]},y=function(b,c,l,f){var p="",j="opt"==f?g("postOPTAID"):g("postAID");
c="opt"==f?j+"_"+c+"_"+l:j+"_"+c;f=l="";!1!=k.useSprite?f=" "+k.useSprite+" "+b.className:(l=a(b).prop("title"),l=0==l.length?"":'<img src="'+l+'" align="absmiddle" /> ');var e=a(b).text(),n=a(b).val(),j=!0==a(b).prop("disabled")?"disabled":"enabled";m[c]={html:l,value:n,text:e,index:b.index,id:c};e=a(b).prop("style");a:{b=b.index;n=a("#"+d+" option:selected");if(1<n.length)for(var h=0;h<n.length;h++){if(b==n[h].index){b=!0;break a}}else if(1==n.length&&n[0].index==b){b=!0;break a}b=!1}p=!0==b?p+
('<a tabindex=-1 href="javascript:void(0);" class="selected '+j+f+'"'):p+('<a tabindex=-1 href="javascript:void(0);" class="'+j+f+'"');!1!==e&&void 0!==e&&(p+=" style='"+e+"'");return p=p+(' id="'+c+'">')+l},D=function(){var b=g("postChildID");a("#"+b+" a.enabled").unbind("click");a("#"+b+" a.enabled").bind("click",function(c){c.preventDefault();H(this);z();s||(a("#"+b).unbind("mouseover"),n.insideWindow=!1,c=!1==k.showIcon?a(this).text():a(this).html(),v(c),e.close())})},O=function(){var b=!1,c=
g("postID"),l=g("postTitleID");g("postTitleTextID");var t=g("postChildID");g("postArrowID");var p=a("#"+d).width(),p=p+2,j=k.style;0<a("#"+c).length&&(a("#"+c).remove(),b=!0);var h='<div id="'+c+'" class="'+N+'"',h=h+(""!=j?' style="'+j+'"':"")+">",m=g("postTitleID"),j=g("postArrowID"),q=g("postTitleTextID");g("postInputhidden");var r=F;f(d);r=0==r.length||void 0==r||!1==k.showIcon||!1!=k.useSprite?"":'<img src="'+r+'" align="absmiddle" /> ';m='<div id="'+m+'" class="ddTitle">';m+='<span id="'+j+
'" class="arrow"></span><span class="ddTitleText" id="'+q+'">'+r+"</span></div>";h+=m;g("postID");j=g("postChildID");q=k.style;sDiv="";sDiv+='<div id="'+j+'" class="ddChild"';sDiv=s?sDiv+(""!=q?' style="border-top:1px solid #c3c3c3;display:block;position:relative;'+q+'"':""):sDiv+(""!=q?' style="'+q+'"':"");sDiv+=">";h+=sDiv;if(0==x.length)j="";else{var u="";g("postAID");g("postOPTAID");x.each(function(b){var c=x[b];if("OPTGROUP"==c.nodeName){u+="<div class='opta'>";u+="<span style='font-weight:bold;font-style:italic; clear:both;'>"+
a(c).prop("label")+"</span>";var d=a(c).children();d.each(function(a){u+=y(d[a],b,a,"opt")});u+="</div>"}else u+=y(c,b,"","")});j=u}h=h+j+"</div>";h+="</div>";!0==b?(j=g("postElementHolder"),a("#"+j).after(h)):a("#"+d).after(h);s&&(l=g("postTitleID"),a("#"+l).hide());a("#"+c).css("width",p+"px");a("#"+c).css("height",a("#"+d).height()+"px");a("#"+c).find(".ddTitle").css("height",a("#"+d).height()+"px");a("#"+t).css("min-width",p-2+"px");x.length>k.visibleRows?(p=parseInt(a("#"+t+" a:first").css("padding-bottom"))+
parseInt(a("#"+t+" a:first").css("padding-top")),p=k.rowHeight*k.visibleRows-p,a("#"+t).css("height",p+"px")):s&&(p=a("#"+d).height(),a("#"+t).css("height",p+"px"));if(!1==b){b=g("postElementHolder");a("#"+d).after("<div class='ddOutOfVision' style='height:0px;overflow:hidden;position:absolute;' id='"+b+"'></div>");a("#"+d).appendTo(a("#"+b));var v=d;f(v).refresh=function(){a("#"+v).msDropDown(k)}}!0==a("#"+d).prop("disabled")&&a("#"+c).css("opacity",1);c=g("postID");b="focus blur change click dblclick mousedown mouseup mouseover mousemove mouseout keypress keydown keyup".split(" ");
for(p=0;p<b.length;p++)if(h=b[p],!0==A(h))switch(h){case "focus":a("#"+c).bind("mouseenter",function(){f(d).focus()});break;case "click":a("#"+c).bind("click",function(){a("#"+d).trigger("click")});break;case "dblclick":a("#"+c).bind("dblclick",function(){a("#"+d).trigger("dblclick")});break;case "mousedown":a("#"+c).bind("mousedown",function(){a("#"+d).trigger("mousedown")});break;case "mouseup":a("#"+c).bind("mouseup",function(){a("#"+d).trigger("mouseup")});break;case "mouseover":a("#"+c).bind("mouseover",
function(){a("#"+d).trigger("mouseover")});break;case "mousemove":a("#"+c).bind("mousemove",function(){a("#"+d).trigger("mousemove")});break;case "mouseout":a("#"+c).bind("mouseout",function(){a("#"+d).trigger("mouseout")})}a("#"+l).bind("mouseover",function(){I(1)});a("#"+l).bind("mouseout",function(){I(0)});D();a("#"+t+" a.disabled").css("opacity",1);s&&a("#"+t).bind("mouseover",function(){n.keyboardAction||(n.keyboardAction=!0,a(document).bind("keydown",function(a){var b=a.keyCode;n.currentKey=
b;if(39==b||40==b)a.preventDefault(),a.stopPropagation(),J("next"),z();if(37==b||38==b)a.preventDefault(),a.stopPropagation(),J("previous"),z()}))});a("#"+t).bind("mouseout",function(){n.insideWindow=!1;a(document).unbind("keydown");n.keyboardAction=!1;n.currentKey=null});a("#"+l).bind("click",function(){n.insideWindow=!1;1==a("#"+t+":visible").length?a("#"+t).unbind("mouseover"):(a("#"+t).bind("mouseover",function(){n.insideWindow=!0}),e.open())});a("#"+l).bind("mouseout",function(){n.insideWindow=
!1});k.showIcon&&!1!=k.useSprite&&B()},q=function(a){for(var c in m)if(m[c].index==a)return m[c];return-1},H=function(b){var c=g("postChildID");1==a("#"+c+" a.selected").length&&(w=a("#"+c+" a.selected").text());s||a("#"+c+" a.selected").removeClass("selected");var l=a("#"+c+" a.selected").prop("id");if(void 0!=l)var f=void 0==n.oldIndex||null==n.oldIndex?m[l].index:n.oldIndex;b&&!s&&a(b).addClass("selected");if(s)if(l=n.currentKey,!0==a("#"+d).prop("multiple"))if(17==l)n.oldIndex=m[a(b).prop("id")].index,
a(b).toggleClass("selected");else if(16==l){a("#"+c+" a.selected").removeClass("selected");a(b).addClass("selected");b=a(b).prop("id");b=m[b].index;for(c=Math.min(f,b);c<=Math.max(f,b);c++)a("#"+q(c).id).addClass("selected")}else a("#"+c+" a.selected").removeClass("selected"),a(b).addClass("selected"),n.oldIndex=m[a(b).prop("id")].index;else a("#"+c+" a.selected").removeClass("selected"),a(b).addClass("selected"),n.oldIndex=m[a(b).prop("id")].index},v=function(b){var c=g("postTitleTextID");a("#"+
c).html(b)},J=function(b){var c=g("postChildID"),d=a("#"+c+" a:visible"),f=d.length,e=a("#"+c+" a:visible").index(a("#"+c+" a.selected:visible")),j;switch(b){case "next":e<f-1&&(e++,j=d[e]);break;case "previous":e<f&&0<e&&(e--,j=d[e])}if("undefined"==typeof j)return!1;a("#"+c+" a.selected").removeClass("selected");a(j).addClass("selected");d=j.id;s||(f=!1==k.showIcon?m[d].text:a("#"+d).html(),v(f),B(m[d].index));"next"==b?parseInt(a("#"+d).position().top+a("#"+d).height())>=parseInt(a("#"+c).height())&&
a("#"+c).scrollTop(a("#"+c).scrollTop()+a("#"+d).height()+a("#"+d).height()):0>=parseInt(a("#"+d).position().top+a("#"+d).height())&&a("#"+c).scrollTop(a("#"+c).scrollTop()-a("#"+c).height()-a("#"+d).height())},B=function(b){if(!1!=k.useSprite){var c=g("postTitleTextID");b="undefined"==typeof b?f(d).selectedIndex:b;b=f(d).options[b].className;if(0<b.length){var l=g("postChildID"),e=a("#"+l+" a."+b).prop("id");b=a("#"+e).css("background-image");l=a("#"+e).css("background-position");e=a("#"+e).css("padding-left");
void 0!=b&&a("#"+c).find(".ddTitleText").attr("style","background:"+b);void 0!=l&&a("#"+c).find(".ddTitleText").css("background-position",l);void 0!=e&&a("#"+c).find(".ddTitleText").css("padding-left",e);a("#"+c).find(".ddTitleText").css("background-repeat","no-repeat");a("#"+c).find(".ddTitleText").css("padding-bottom","2px")}}},z=function(){var b=g("postChildID"),c=a("#"+b+" a.selected");if(1==c.length){a("#"+b+" a.selected").text();var l=a("#"+b+" a.selected").prop("id");void 0!=l&&(f(d).selectedIndex=
m[l].index);k.showIcon&&!1!=k.useSprite&&B()}else if(1<c.length)for(b=0;b<c.length;b++)l=a(c[b]).prop("id"),l=m[l].index,f(d).options[l].selected="selected";c=f(d).selectedIndex;e.ddProp.selectedIndex=c},A=function(b){if(void 0!=a("#"+d).prop("on"+b))return!0;var c=a("#"+d).data("events");return c&&c[b]?!0:!1},P=function(){var b=g("postChildID");!0==A("change")&&(b=m[a("#"+b+" a.selected").prop("id")].text,a.trim(w)!==a.trim(b)&&""!==w&&a("#"+d).trigger("change"));!0==A("mouseup")&&a("#"+d).trigger("mouseup");
!0==A("blur")&&a(document).bind("mouseup",function(){a("#"+d).focus();a("#"+d)[0].blur();z();a(document).unbind("mouseup")})},I=function(b){var c=g("postArrowID");1==b?a("#"+c).css({backgroundPosition:"0 100%"}):a("#"+c).css({backgroundPosition:"0 0"})},Q=function(){for(var a in f(d))"function"!=typeof f(d)[a]&&(void 0!==f(d)[a]&&null!==f(d)[a])&&e.set(a,f(d)[a],!0)},K=function(){var b=g("postChildID"),c=document.getElementById(g("postID")).parentElement.id,d=a("#"+c).position(),c=a("#"+c).height(),
e=a("#div_Slide").height(),f=a("#"+b).height(),j={zIndex:k.zIndex,top:c+"px",display:"none"},h=k.animStyle,m=!1,n="noBorderTop";a("#"+b).removeClass("noBorderTop");a("#"+b).removeClass("borderTop");e+0<Math.floor(f+c+d.top)&&(j={zIndex:k.zIndex,top:-f+"px",display:"none"},h="show",m=!0,n="borderTop");return{opp:m,ani:h,css:j,border:n}},L=function(){null!=e.onActions.onOpen&&eval(e.onActions.onOpen)(e)},M=function(){P();null!=e.onActions.onClose&&eval(e.onActions.onClose)(e)};this.open=function(){if(!(!0==
e.get("disabled",!0)||0==e.get("options",!0).length)){var b=g("postChildID");""!=r&&b!=r&&(a("#"+r).slideUp("fast"),a("#"+r).css({zIndex:"0"}));if("none"==a("#"+b).css("display")){m[a("#"+b+" a.selected").prop("id")]&&(w=m[a("#"+b+" a.selected").prop("id")].text);a("#"+b).height();a("#"+b+" a").show();a(document).bind("mouseup",function(){!1==n.insideWindow&&e.close()});var c=K();a("#"+b).css(c.css);if(!0==c.opp)a("#"+b).css({display:"block"}),a("#"+b).addClass(c.border),L();else a("#"+b)[c.ani]("fast",
function(){a("#"+b).addClass(c.border);L()});b!=r&&(r=b)}}};this.close=function(){var b=g("postChildID"),tmpC=a("#"+g("postTitleID")); if(tmpC==undefined) return;var tmpCC = tmpC.position(); if(tmpCC==undefined) return;var c=tmpCC.top;if(!0==K().opp){var d=a("#"+b).height();a("#"+b).animate({height:0,top:c},function(){a("#"+b).css({height:d+"px",display:"none"});M()})}else a("#"+b).slideUp("fast",function(){M();a("#"+b).css({zIndex:"0"});a("#"+b).css({height:d+"px"})});B()};this.selectedIndex=function(a){if("undefined"==typeof a)return e.get("selectedIndex");e.set("selectedIndex",a)};
this.debug=function(b){"undefined"==typeof b||!0==b?a(".ddOutOfVision").removeAttr("style"):a(".ddOutOfVision").attr("style","height:0px;overflow:hidden;position:absolute")};this.set=function(b,c,l){if(void 0==b||void 0==c)throw{message:"set to what?"};e.ddProp[b]=c;if(!0!=l)switch(b){case "selectedIndex":if(-1!=q(c))f(d)[b]=c,b=g("postChildID"),a("#"+b+" a.selected").removeClass("selected"),a("#"+q(c).id).addClass("selected"),c=q(f(d).selectedIndex).html,v(c);else if(f(d)[b]=c,g("postTitleID"),g("postArrowID"),
c=g("postTitleTextID"),g("postInputhidden"),b=F,f(d),b=0==b.length||void 0==b||!1==k.showIcon||!1!=k.useSprite?"":'<img src="'+b+'" align="absmiddle" /> ',c=document.getElementById(c))c.innerHTML=b;break;case "disabled":e.disabled(c,!0);break;case "multiple":f(d)[b]=c;if(s=0<a(h).prop("size")||!0==a(h).prop("multiple")?!0:!1)c=a("#"+d).height(),b=g("postChildID"),a("#"+b).css("height",c+"px"),c=g("postTitleID"),a("#"+c).hide(),b=g("postChildID"),a("#"+b).css({display:"block",position:"relative"}),
D();break;case "size":f(d)[b]=c;0==c&&(f(d).multiple=!1);s=0<a(h).prop("size")||!0==a(h).prop("multiple")?!0:!1;0==c?(c=g("postTitleID"),a("#"+c).show(),b=g("postChildID"),a("#"+b).css({display:"none",position:"absolute"}),c="",0<=f(d).selectedIndex&&(b=q(f(d).selectedIndex),c=b.html,H(a("#"+b.id))),v(c)):(c=g("postTitleID"),a("#"+c).hide(),b=g("postChildID"),a("#"+b).css({display:"block",position:"relative"}));break;default:try{f(d)[b]=c}catch(m){}}};this.get=function(a,c){if(void 0==a&&void 0==
c)return e.ddProp;if(void 0!=a&&void 0==c)return void 0!=e.ddProp[a]?e.ddProp[a]:null;if(void 0!=a&&void 0!=c)return f(d)[a]};this.visible=function(b){var c=g("postID");if(!0==b)a("#"+c).show();else if(!1==b)a("#"+c).hide();else return a("#"+c).css("display")};this.add=function(b,c){var e=b.text,h=void 0==b.value||null==b.value?e:b.value,k=void 0==b.title||null==b.title?"":b.title,j=void 0==c||null==c?f(d).options.length:c;f(d).options[j]=new Option(e,h);""!=k&&(f(d).options[j].title=k);e=q(j);-1!=
e?(j=y(f(d).options[j],j,"",""),a("#"+e.id).html(j)):(j=y(f(d).options[j],j,"",""),e=g("postChildID"),a("#"+e).append(j),D())};this.remove=function(b){f(d).remove(b);if(-1!=q(b)){a("#"+q(b).id).remove();for(var c in m)if(m[c].index==b){delete m[c];break}b=0;for(c in m)m[c].index=b,b++}0==f(d).length?v(""):(c=q(f(d).selectedIndex).html,v(c));e.set("selectedIndex",f(d).selectedIndex)};this.disabled=function(b,c){f(d).disabled=b;var h=g("postID");!0==b?(a("#"+h).css("opacity",1),e.close()):!1==b&&a("#"+
h).css("opacity",1);!0!=c&&e.set("disabled",b)};this.form=function(){return void 0==f(d).form?null:f(d).form};this.item=function(){if(1==arguments.length)return f(d).item(arguments[0]);if(2==arguments.length)return f(d).item(arguments[0],arguments[1]);throw{message:"An index is required!"};};this.namedItem=function(a){return f(d).namedItem(a)};this.multiple=function(a){if("undefined"==typeof a)return e.get("multiple");e.set("multiple",a)};this.size=function(a){if("undefined"==typeof a)return e.get("size");
e.set("size",a)};this.addMyEvent=function(a,c){e.onActions[a]=c};this.fireEvent=function(a){eval(e.onActions[a])(e)};(function(){O();Q();e.set("version",a.msDropDown.version);e.set("author",a.msDropDown.author);""!=k.onInit&&eval(k.onInit)(e)})()};a.msDropDown={version:2.37,author:"Marghoob Suleman",counter:20,create:function(h,k){return a(h).msDropDown(k).data("dd")}};a.fn.extend({msDropDown:function(h,k){return this.each(function(){var r=new E(this,h,k);a(this).data("dd",r)})}});"undefined"==typeof a.fn.prop&&
(a.fn.prop=function(h){return a(this).attr(h)})})(jQuery);(function(l,q,s){function ca(e,d,a){var c=e.runtimeStyle&&e.runtimeStyle[d],b,f=e.style;if(!/^-?[0-9]+\.?[0-9]*(?:px)?$/i.test(a)&&/^-?\d/.test(a)&&(b=f.left,c&&(e.runtimeStyle.left=e.currentStyle.left),f.left="fontSize"===d?"1em":a||0,a=f.pixelLeft+"px",f.left=b,c))e.runtimeStyle.left=c;return!/^(thin|medium|thick)$/i.test(a)?Math.round(parseFloat(a))+"px":a}function qa(e){return parseInt(e,10)}function ea(e,d,a,c,b,f){var d=g.Util.getCSS(d,e,b),x;1===d.length&&(b=d[0],d=[],d[0]=b,d[1]=b);-1!==d[0].toString().indexOf("%")?
(x=parseFloat(d[0])/100,b=a.width*x,"backgroundSize"!==e&&(b-=(f||c).width*x)):b="backgroundSize"===e?"auto"===d[0]?c.width:/contain|cover/.test(d[0])?g.Util.resizeBounds(c.width,c.height,a.width,a.height,d[0]).width:parseInt(d[0],10):parseInt(d[0],10);"auto"===d[1]?a=b/c.width*c.height:-1!==d[1].toString().indexOf("%")?(x=parseFloat(d[1])/100,a=a.height*x,"backgroundSize"!==e&&(a-=(f||c).height*x)):a=parseInt(d[1],10);return[b,a]}var g={},da;g.Util={};g.Util.log=function(e){g.logging&&(l.console&&
l.console.log)&&l.console.log(e)};var oa=String.prototype.trim;g.Util.trimText=function(e){return oa?oa.apply(e):((e||"")+"").replace(/^\s+|\s+$/g,"")};g.Util.asFloat=function(e){return parseFloat(e)};var ra=/((rgba|rgb)\([^\)]+\)(\s-?\d+px){0,})/g,sa=/(-?\d+px)|(#.+)|(rgb\(.+\))|(rgba\(.+\))/g;g.Util.parseTextShadows=function(e){if(!e||"none"===e)return[];for(var e=e.match(ra),d=[],a=0;e&&a<e.length;a++){var c=e[a].match(sa);d.push({color:c[0],offsetX:c[1]?c[1].replace("px",""):0,offsetY:c[2]?c[2].replace("px",
""):0,blur:c[3]?c[3].replace("px",""):0})}return d};g.Util.parseBackgroundImage=function(e){var d,a,c,b,f,x=[],g,h=0,T=0,t,p,m=function(){if(d){'"'===a.substr(0,1)&&(a=a.substr(1,a.length-2));a&&p.push(a);if("-"===d.substr(0,1)&&0<(b=d.indexOf("-",1)+1))c=d.substr(0,b),d=d.substr(b);x.push({prefix:c,method:d.toLowerCase(),value:f,args:p})}p=[];d=c=a=f=""};m();for(var l=0,s=e.length;l<s;l++)if(g=e[l],!(0===h&&-1<" \r\n\t".indexOf(g))){switch(g){case '"':t?t===g&&(t=null):t=g;break;case "(":if(t)break;
else if(0===h){h=1;f+=g;continue}else T++;break;case ")":if(t)break;else if(1===h)if(0===T){h=0;f+=g;m();continue}else T--;break;case ",":if(!t)if(0===h){m();continue}else if(1===h&&0===T&&!d.match(/^url$/i)){p.push(a);a="";f+=g;continue}}f+=g;0===h?d+=g:a+=g}m();return x};g.Util.Bounds=function(e){var d,a={};e.getBoundingClientRect&&(d=e.getBoundingClientRect(),a.top=d.top,a.bottom=d.bottom||d.top+d.height,a.left=d.left,a.width=e.offsetWidth,a.height=e.offsetHeight);return a};g.Util.OffsetBounds=
function(e){var d=e.offsetParent?g.Util.OffsetBounds(e.offsetParent):{top:0,left:0};return{top:e.offsetTop+d.top,bottom:e.offsetTop+e.offsetHeight+d.top,left:e.offsetLeft+d.left,width:e.offsetWidth,height:e.offsetHeight}};g.Util.getCSS=function(e,d,a){void 0!==e&&(da=q.defaultView.getComputedStyle(e,null));var c=da[d];if(/^background(Size|Position)$/.test(d)){a:{c=(c||"").split(",");c=c[a||0]||c[0]||"auto";c=g.Util.trimText(c).split(" ");if(!("backgroundSize"===d&&(!c[0]||c[0].match(/cover|contain|auto/)))){c[0]=
-1===c[0].indexOf("%")?ca(e,d+"X",c[0]):c[0];if(c[1]===s)if("backgroundSize"===d){c[1]="auto";e=c;break a}else c[1]=c[0];c[1]=-1===c[1].indexOf("%")?ca(e,d+"Y",c[1]):c[1]}e=c}return e}return/border(Top|Bottom)(Left|Right)Radius/.test(d)?(e=c.split(" "),1>=e.length&&(e[1]=e[0]),e.map(qa)):c};g.Util.resizeBounds=function(e,d,a,c,b){e/=d;!b||"auto"===b?(b=a,a=c):a/c<e^"contain"===b?(a=c,b=c*e):(b=a,a/=e);return{width:b,height:a}};g.Util.BackgroundPosition=function(e,d,a,c,b){e=ea("backgroundPosition",
e,d,a,c,b);return{left:e[0],top:e[1]}};g.Util.BackgroundSize=function(e,d,a,c){e=ea("backgroundSize",e,d,a,c);return{width:e[0],height:e[1]}};g.Util.Extend=function(e,d){for(var a in e)e.hasOwnProperty(a)&&(d[a]=e[a]);return d};g.Util.Children=function(e){var d;try{var a;if(e.nodeName&&"IFRAME"===e.nodeName.toUpperCase())a=e.contentDocument||e.contentWindow.document;else{var c=e.childNodes,e=[];if(null!==c){var b=e.length,f=0;if("number"===typeof c.length)for(var x=c.length;f<x;f++)e[b++]=c[f];else for(;c[f]!==
s;)e[b++]=c[f++];e.length=b}a=e}d=a}catch(k){g.Util.log("html2canvas.Util.Children failed with exception: "+k.message),d=[]}return d};g.Util.isTransparent=function(e){return"transparent"===e||"rgba(0, 0, 0, 0)"===e};var aa={};g.Util.Font=function(e,d,a){if(aa[e+"-"+d]!==s)return aa[e+"-"+d];var c=a.createElement("div"),b=a.createElement("img"),f=a.createElement("span"),g;c.style.visibility="hidden";c.style.fontFamily=e;c.style.fontSize=d;c.style.margin=0;c.style.padding=0;a.body.appendChild(c);b.src=
"data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACwAAAAAAQABAAACAkQBADs=";b.width=1;b.height=1;b.style.margin=0;b.style.padding=0;b.style.verticalAlign="baseline";f.style.fontFamily=e;f.style.fontSize=d;f.style.margin=0;f.style.padding=0;f.appendChild(a.createTextNode("Hidden Text"));c.appendChild(f);c.appendChild(b);g=b.offsetTop-f.offsetTop+1;c.removeChild(f);c.appendChild(a.createTextNode("Hidden Text"));c.style.lineHeight="normal";b.style.verticalAlign="super";b={baseline:g,lineWidth:1,middle:b.offsetTop-
c.offsetTop+1};aa[e+"-"+d]=b;a.body.removeChild(c);return b};var E=function(e){return function(d){try{e.addColorStop(d.stop,d.color)}catch(a){ta.log(["failed to add color stop: ",a,"; tried to add: ",d])}}},ta=g.Util,F={};g.Generate=F;var pa=[/^(-webkit-linear-gradient)\(([a-z\s]+)([\w\d\.\s,%\(\)]+)\)$/,/^(-o-linear-gradient)\(([a-z\s]+)([\w\d\.\s,%\(\)]+)\)$/,/^(-webkit-gradient)\((linear|radial),\s((?:\d{1,3}%?)\s(?:\d{1,3}%?),\s(?:\d{1,3}%?)\s(?:\d{1,3}%?))([\w\d\.\s,%\(\)\-]+)\)$/,/^(-moz-linear-gradient)\(((?:\d{1,3}%?)\s(?:\d{1,3}%?))([\w\d\.\s,%\(\)]+)\)$/,
/^(-webkit-radial-gradient)\(((?:\d{1,3}%?)\s(?:\d{1,3}%?)),\s(\w+)\s([a-z\-]+)([\w\d\.\s,%\(\)]+)\)$/,/^(-moz-radial-gradient)\(((?:\d{1,3}%?)\s(?:\d{1,3}%?)),\s(\w+)\s?([a-z\-]*)([\w\d\.\s,%\(\)]+)\)$/,/^(-o-radial-gradient)\(((?:\d{1,3}%?)\s(?:\d{1,3}%?)),\s(\w+)\s([a-z\-]+)([\w\d\.\s,%\(\)]+)\)$/];F.parseGradient=function(e,d){var a,c,b=pa.length,f,g,k,h;for(c=0;c<b&&!(f=e.match(pa[c]));c+=1);if(f)switch(f[1]){case "-webkit-linear-gradient":case "-o-linear-gradient":a={type:"linear",x0:null,y0:null,
x1:null,y1:null,colorStops:[]};if(b=f[2].match(/\w+/g)){g=b.length;for(c=0;c<g;c+=1)switch(b[c]){case "top":a.y0=0;a.y1=d.height;break;case "right":a.x0=d.width;a.x1=0;break;case "bottom":a.y0=d.height;a.y1=0;break;case "left":a.x0=0,a.x1=d.width}}null===a.x0&&null===a.x1&&(a.x0=a.x1=d.width/2);null===a.y0&&null===a.y1&&(a.y0=a.y1=d.height/2);if(b=f[3].match(/((?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\)(?:\s\d{1,3}(?:%|px))?)+/g)){g=b.length;k=1/Math.max(g-1,1);for(c=0;c<g;c+=1)h=
b[c].match(/((?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\))\s*(\d{1,3})?(%|px)?/),h[2]?(f=parseFloat(h[2]),f="%"===h[3]?f/100:f/d.width):f=c*k,a.colorStops.push({color:h[1],stop:f})}break;case "-webkit-gradient":a={type:"radial"===f[2]?"circle":f[2],x0:0,y0:0,x1:0,y1:0,colorStops:[]};if(b=f[3].match(/(\d{1,3})%?\s(\d{1,3})%?,\s(\d{1,3})%?\s(\d{1,3})%?/))a.x0=b[1]*d.width/100,a.y0=b[2]*d.height/100,a.x1=b[3]*d.width/100,a.y1=b[4]*d.height/100;if(b=f[4].match(/((?:from|to|color-stop)\((?:[0-9\.]+,\s)?(?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\)\))+/g)){g=
b.length;for(c=0;c<g;c+=1)h=b[c].match(/(from|to|color-stop)\(([0-9\.]+)?(?:,\s)?((?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\))\)/),f=parseFloat(h[2]),"from"===h[1]&&(f=0),"to"===h[1]&&(f=1),a.colorStops.push({color:h[3],stop:f})}break;case "-moz-linear-gradient":a={type:"linear",x0:0,y0:0,x1:0,y1:0,colorStops:[]};if(b=f[2].match(/(\d{1,3})%?\s(\d{1,3})%?/))a.x0=b[1]*d.width/100,a.y0=b[2]*d.height/100,a.x1=d.width-a.x0,a.y1=d.height-a.y0;if(b=f[3].match(/((?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\)(?:\s\d{1,3}%)?)+/g)){g=
b.length;k=1/Math.max(g-1,1);for(c=0;c<g;c+=1)h=b[c].match(/((?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\))\s*(\d{1,3})?(%)?/),h[2]?(f=parseFloat(h[2]),h[3]&&(f/=100)):f=c*k,a.colorStops.push({color:h[1],stop:f})}break;case "-webkit-radial-gradient":case "-moz-radial-gradient":case "-o-radial-gradient":a={type:"circle",x0:0,y0:0,x1:d.width,y1:d.height,cx:0,cy:0,rx:0,ry:0,colorStops:[]};if(b=f[2].match(/(\d{1,3})%?\s(\d{1,3})%?/))a.cx=b[1]*d.width/100,a.cy=b[2]*d.height/100;b=f[3].match(/\w+/);
h=f[4].match(/[a-z\-]*/);if(b&&h)switch(h[0]){case "farthest-corner":case "cover":case "":c=Math.sqrt(Math.pow(a.cx,2)+Math.pow(a.cy,2));b=Math.sqrt(Math.pow(a.cx,2)+Math.pow(a.y1-a.cy,2));g=Math.sqrt(Math.pow(a.x1-a.cx,2)+Math.pow(a.y1-a.cy,2));h=Math.sqrt(Math.pow(a.x1-a.cx,2)+Math.pow(a.cy,2));a.rx=a.ry=Math.max(c,b,g,h);break;case "closest-corner":c=Math.sqrt(Math.pow(a.cx,2)+Math.pow(a.cy,2));b=Math.sqrt(Math.pow(a.cx,2)+Math.pow(a.y1-a.cy,2));g=Math.sqrt(Math.pow(a.x1-a.cx,2)+Math.pow(a.y1-
a.cy,2));h=Math.sqrt(Math.pow(a.x1-a.cx,2)+Math.pow(a.cy,2));a.rx=a.ry=Math.min(c,b,g,h);break;case "farthest-side":"circle"===b[0]?a.rx=a.ry=Math.max(a.cx,a.cy,a.x1-a.cx,a.y1-a.cy):(a.type=b[0],a.rx=Math.max(a.cx,a.x1-a.cx),a.ry=Math.max(a.cy,a.y1-a.cy));break;case "closest-side":case "contain":"circle"===b[0]?a.rx=a.ry=Math.min(a.cx,a.cy,a.x1-a.cx,a.y1-a.cy):(a.type=b[0],a.rx=Math.min(a.cx,a.x1-a.cx),a.ry=Math.min(a.cy,a.y1-a.cy))}if(b=f[5].match(/((?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\)(?:\s\d{1,3}(?:%|px))?)+/g)){g=
b.length;k=1/Math.max(g-1,1);for(c=0;c<g;c+=1)h=b[c].match(/((?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\))\s*(\d{1,3})?(%|px)?/),h[2]?(f=parseFloat(h[2]),f="%"===h[3]?f/100:f/d.width):f=c*k,a.colorStops.push({color:h[1],stop:f})}}return a};F.Gradient=function(e,d){if(!(0===d.width||0===d.height)){var a=q.createElement("canvas"),c=a.getContext("2d"),b,f;a.width=d.width;a.height=d.height;if(b=g.Generate.parseGradient(e,d))switch(b.type){case "linear":f=c.createLinearGradient(b.x0,b.y0,
b.x1,b.y1);b.colorStops.forEach(E(f));c.fillStyle=f;c.fillRect(0,0,d.width,d.height);break;case "circle":f=c.createRadialGradient(b.cx,b.cy,0,b.cx,b.cy,b.rx);b.colorStops.forEach(E(f));c.fillStyle=f;c.fillRect(0,0,d.width,d.height);break;case "ellipse":var x=q.createElement("canvas"),k=x.getContext("2d");f=Math.max(b.rx,b.ry);var h=2*f;x.width=x.height=h;f=k.createRadialGradient(b.rx,b.ry,0,b.rx,b.ry,f);b.colorStops.forEach(E(f));k.fillStyle=f;k.fillRect(0,0,h,h);c.fillStyle=b.colorStops[b.colorStops.length-
1].color;c.fillRect(0,0,a.width,a.height);c.drawImage(x,b.cx-b.rx,b.cy-b.ry,2*b.rx,2*b.ry)}return a}};F.ListAlpha=function(e){var d="",a;do a=e%26,d=String.fromCharCode(a+64)+d,e/=26;while(26<26*e);return d};F.ListRoman=function(e){var d="M CM D CD C XC L XL X IX V IV I".split(" "),a=[1E3,900,500,400,100,90,50,40,10,9,5,4,1],c="",b,f=d.length;if(0>=e||4E3<=e)return e;for(b=0;b<f;b+=1)for(;e>=a[b];)e-=a[b],c+=d[b];return c};g.Parse=function(e,d){function a(a,c){var b=parseInt(o(a,c),10);return isNaN(b)?
0:b}function c(a,c,b,e,d,f){"transparent"!==f&&(a.setVariable("fillStyle",f),a.fillRect(c,b,e,d))}function b(a,c,b){if(0<a.length)return c+b.toUpperCase()}function f(a,c){switch(c){case "lowercase":return a.toLowerCase();case "capitalize":return a.replace(/(^|\s|:|-|\(|\))([a-z])/g,b);case "uppercase":return a.toUpperCase();default:return a}}function x(a,c,b,e){var d=o(c,"fontWeight"),f=o(c,"fontFamily"),h=o(c,"fontSize"),g=w.parseTextShadows(o(c,"textShadow"));switch(parseInt(d,10)){case 401:d="bold";
break;case 400:d="normal"}a.setVariable("fillStyle",e);a.setVariable("font",[o(c,"fontStyle"),o(c,"fontVariant"),d,h,f].join(" "));a.setVariable("textAlign","left");g.length&&(a.setVariable("shadowColor",g[0].color),a.setVariable("shadowOffsetX",g[0].offsetX),a.setVariable("shadowOffsetY",g[0].offsetY),a.setVariable("shadowBlur",g[0].blur));if("none"!==b)return w.Font(f,h,y)}function k(a,b,e){var h=e.ctx,g=o(a,"color"),ka=o(a,"textDecoration"),v=o(a,"textAlign"),U,m,k=b,z=0;if(0<w.trimText(b.nodeValue).length){b.nodeValue=
f(b.nodeValue,o(a,"textTransform"));var v=v.replace(["-webkit-auto"],["auto"]),t;if(t=!d.letterRendering){if(v=/^(left|right|justify|auto)$/.test(v))v=o(a,"letterSpacing"),v=/^(normal|none|0px)$/.test(v);t=v}m=t?b.nodeValue.split(/(\b| )/):b.nodeValue.split("");U=x(h,a,ka,g);d.chinese&&m.forEach(function(a,c){/.*[\u4E00-\u9FA5].*$/.test(a)&&(a=a.split(""),a.unshift(c,1),m.splice.apply(m,a))});m.forEach(function(a,b){var D,d=b<m.length-1;D=e.transform.matrix;var f;if(F.rangeBounds&&!D){if("none"!==
ka||0!==w.trimText(a).length)D=k,d=z,f=y.createRange(),f.setStart(D,d),f.setEnd(D,d+a.length),f=f.getBoundingClientRect();z+=a.length}else if(k&&"string"===typeof k.nodeValue){var d=d?k.splitText(a.length):null,ga=k;f=ga.parentNode;var v=y.createElement("wrapper"),x=ga.cloneNode(!0);v.appendChild(ga.cloneNode(!0));f.replaceChild(v,ga);D=D?w.OffsetBounds(v):w.Bounds(v);f.replaceChild(x,v);f=D;k=d}if(D=f)switch(d=D.left,f=D.bottom,null!==a&&0<w.trimText(a).length&&h.fillText(a,d,f),ka){case "underline":c(h,
D.left,Math.round(D.top+U.baseline+U.lineWidth),D.width,1,g);break;case "overline":c(h,D.left,Math.round(D.top),D.width,1,g);break;case "line-through":c(h,D.left,Math.ceil(D.top+U.middle+U.lineWidth),D.width,1,g)}})}}function h(a){return(a=e[a])&&!0===a.succeeded?a.img:!1}function T(a,c){var b=Math.max(a.left,c.left),d=Math.max(a.top,c.top),e=Math.min(a.left+a.width,c.left+c.width),f=Math.min(a.top+a.height,c.top+c.height);return{left:b,top:d,width:e-b,height:f-d}}function t(c,b,d,e,f){var h=a(b,
"paddingLeft"),g=a(b,"paddingTop"),v=a(b,"paddingRight"),b=a(b,"paddingBottom");ha(c,d,0,0,d.width,d.height,e.left+h+f[3].width,e.top+g+f[0].width,e.width-(f[1].width+f[3].width+h+v),e.height-(f[0].width+f[2].width+g+b))}function p(a,c,b,d){var e=function(a,c,b){return{x:a.x+(c.x-a.x)*b,y:a.y+(c.y-a.y)*b}};return{start:a,startControl:c,endControl:b,end:d,subdivide:function(f){var h=e(a,c,f),g=e(c,b,f),v=e(b,d,f),U=e(h,g,f),g=e(g,v,f),f=e(U,g,f);return[p(a,h,U,f),p(f,g,v,d)]},curveTo:function(a){a.push(["bezierCurve",
c.x,c.y,b.x,b.y,d.x,d.y])},curveToReversed:function(d){d.push(["bezierCurve",b.x,b.y,c.x,c.y,a.x,a.y])}}}function m(a,c,b,d,e,f,h){0<c[0]||0<c[1]?(a.push(["line",d[0].start.x,d[0].start.y]),d[0].curveTo(a),d[1].curveTo(a)):a.push(["line",f,h]);(0<b[0]||0<b[1])&&a.push(["line",e[0].start.x,e[0].start.y])}function fa(a,c,b,d,e,f,h){var g=[];0<c[0]||0<c[1]?(g.push(["line",d[1].start.x,d[1].start.y]),d[1].curveTo(g)):g.push(["line",a.c1[0],a.c1[1]]);0<b[0]||0<b[1]?(g.push(["line",f[0].start.x,f[0].start.y]),
f[0].curveTo(g),g.push(["line",h[0].end.x,h[0].end.y]),h[0].curveToReversed(g)):(g.push(["line",a.c2[0],a.c2[1]]),g.push(["line",a.c3[0],a.c3[1]]));0<c[0]||0<c[1]?(g.push(["line",e[1].end.x,e[1].end.y]),e[1].curveToReversed(g)):g.push(["line",a.c4[0],a.c4[1]]);return g}function $(a,c){var b=a.drawShape();c.forEach(function(a,c){b[0===c?"moveTo":a[0]+"To"].apply(null,a.slice(1))});return b}function Y(a,c,b){var d=y.createElement("valuewrap");"lineHeight textAlign fontFamily color fontSize paddingLeft paddingTop width height border borderLeftWidth borderTopWidth".split(" ").forEach(function(c){try{d.style[c]=
o(a,c)}catch(b){w.log("html2canvas: Parse: Exception caught in renderFormValue: "+b.message)}});d.style.borderColor="black";d.style.borderStyle="solid";d.style.display="block";d.style.position="absolute";if(/^(submit|reset|button|text|password)$/.test(a.type)||"SELECT"===a.nodeName)d.style.lineHeight=o(a,"height");d.style.top=c.top+"px";d.style.left=c.left+"px";c="SELECT"===a.nodeName?(a.options[a.selectedIndex]||0).text:a.value;c||(c=a.placeholder);c=y.createTextNode(c);d.appendChild(c);ia.appendChild(d);
k(a,c,b);ia.removeChild(d)}function ha(a){a.drawImage.apply(a,Array.prototype.slice.call(arguments,1))}function K(a,c){var b=l.getComputedStyle(a,c);if(b&&b.content&&!("none"===b.content||"-moz-alt-content"===b.content||"none"===b.display)){var d=b.content+"",e=d.substr(0,1);e===d.substr(d.length-1)&&e.match(/'|"/)&&(d=d.substr(1,d.length-2));var e="url"===d.substr(0,3),f=q.createElement(e?"img":"span");f.className=Z+"-before "+Z+"-after";Object.keys(b).filter(ja).forEach(function(a){try{f.style[a]=
b[a]}catch(c){w.log(["Tried to assign readonly property ",a,"Error:",c])}});e?f.src=w.parseBackgroundImage(d)[0].args[0]:f.innerHTML=d;return f}}function ja(a){return isNaN(l.parseInt(a,10))}function ba(a,c,b,d){var e=Math.round(d.left+b.left),b=Math.round(d.top+b.top);a.createPattern(c);a.translate(e,b);a.fill();a.translate(-e,-b)}function v(a,c,b,d,e,f,g,h){var v=[];v.push(["line",Math.round(e),Math.round(f)]);v.push(["line",Math.round(e+g),Math.round(f)]);v.push(["line",Math.round(e+g),Math.round(h+
f)]);v.push(["line",Math.round(e),Math.round(h+f)]);$(a,v);a.save();a.clip();ba(a,c,b,d);a.restore()}function U(a){return a.replace("px","")}function z(b,e,f,k){var r,z,l,p,s,q,P,L,u,j=o(b,"transform")||o(b,"-webkit-transform")||o(b,"-moz-transform")||o(b,"-ms-transform")||o(b,"-o-transform");u=o(b,"transform-origin")||o(b,"-webkit-transform-origin")||o(b,"-moz-transform-origin")||o(b,"-ms-transform-origin")||o(b,"-o-transform-origin")||"0px 0px";u=u.split(" ").map(U).map(w.asFloat);var i;if(j&&"none"!==
j&&(j=j.match(ea)))switch(j[1]){case "matrix":i=j[2].split(",").map(w.trimText).map(w.asFloat)}u={origin:u,matrix:i};i=u.matrix?w.OffsetBounds(b):w.Bounds(b);u.origin[0]+=i.left;u.origin[1]+=i.top;var E,j=!e?Math.max(Math.max(y.body.scrollWidth,y.documentElement.scrollWidth),Math.max(y.body.offsetWidth,y.documentElement.offsetWidth),Math.max(y.body.clientWidth,y.documentElement.clientWidth)):i.width,B=!e?Math.max(Math.max(y.body.scrollHeight,y.documentElement.scrollHeight),Math.max(y.body.offsetHeight,
y.documentElement.offsetHeight),Math.max(y.body.clientHeight,y.documentElement.clientHeight)):i.height,M=[],j={storage:M,width:j,height:B,clip:function(){M.push({type:"function",name:"clip",arguments:arguments})},translate:function(){M.push({type:"function",name:"translate",arguments:arguments})},fill:function(){M.push({type:"function",name:"fill",arguments:arguments})},save:function(){M.push({type:"function",name:"save",arguments:arguments})},restore:function(){M.push({type:"function",name:"restore",
arguments:arguments})},fillRect:function(){M.push({type:"function",name:"fillRect",arguments:arguments})},createPattern:function(){M.push({type:"function",name:"createPattern",arguments:arguments})},drawShape:function(){var a=[];M.push({type:"function",name:"drawShape",arguments:a});return{moveTo:function(){a.push({name:"moveTo",arguments:arguments})},lineTo:function(){a.push({name:"lineTo",arguments:arguments})},arcTo:function(){a.push({name:"arcTo",arguments:arguments})},bezierCurveTo:function(){a.push({name:"bezierCurveTo",
arguments:arguments})},quadraticCurveTo:function(){a.push({name:"quadraticCurveTo",arguments:arguments})}}},drawImage:function(){M.push({type:"function",name:"drawImage",arguments:arguments})},fillText:function(){M.push({type:"function",name:"fillText",arguments:arguments})},setVariable:function(a,b){M.push({type:"variable",name:a,arguments:b});return b}},B=j.setVariable("globalAlpha",o(b,"opacity")*(e?e.opacity:1));r=o(b,"position");var J;J=["Top","Right","Bottom","Left"].map(function(c){return{width:a(b,
"border"+c+"Width"),color:o(b,"border"+c+"Color")}});u={ctx:j,opacity:B,cssPosition:r,borders:J,transform:u,clip:e&&e.clip?w.Extend({},e.clip):null};r=(B="static"!==u.cssPosition)?o(b,"zIndex"):"auto";J=o(b,"opacity");var W="none"!==o(b,"cssFloat");u.zIndex=j={zindex:r,children:[]};j.isPositioned=B;j.isFloated=W;j.opacity=J;j.ownStacking="auto"!==r||1>J;e&&e.zIndex.children.push(u);!0===d.useOverflow&&(!0===/(hidden|scroll|auto)/.test(o(b,"overflow"))&&!1===/(BODY)/i.test(b.nodeName))&&(u.clip=u.clip?
T(u.clip,i):i);var j=u.borders,Q=u.ctx,e=u.clip,B={left:i.left+j[3].width,top:i.top+j[0].width,width:i.width-(j[1].width+j[3].width),height:i.height-(j[0].width+j[2].width)};e&&(B=T(B,e));e=B;J=i.left;var W=i.top,R=i.width,S=i.height,V,C,A,H,I,N,n;n=["TopLeft","TopRight","BottomRight","BottomLeft"].map(function(a){return o(b,"border"+a+"Radius")});var B=i.left,G=i.top;q=i.width;P=i.height;z=n[0][0];l=n[0][1];p=n[1][0];s=n[1][1];A=n[2][0];H=n[2][1];L=n[3][0];V=n[3][1];var F=q-p;I=P-H;var ja=q-A;C=
P-V;r=X(B,G,z,l).topLeft.subdivide(0.5);z=X(B+j[3].width,G+j[0].width,Math.max(0,z-j[3].width),Math.max(0,l-j[0].width)).topLeft.subdivide(0.5);l=X(B+F,G,p,s).topRight.subdivide(0.5);p=X(B+Math.min(F,q+j[3].width),G+j[0].width,F>q+j[3].width?0:p-j[3].width,s-j[0].width).topRight.subdivide(0.5);s=X(B+ja,G+I,A,H).bottomRight.subdivide(0.5);q=X(B+Math.min(ja,q+j[3].width),G+Math.min(I,P+j[0].width),Math.max(0,A-j[1].width),Math.max(0,H-j[2].width)).bottomRight.subdivide(0.5);P=X(B,G+C,L,V).bottomLeft.subdivide(0.5);
L=X(B+j[3].width,G+C,Math.max(0,L-j[3].width),Math.max(0,V-j[2].width)).bottomLeft.subdivide(0.5);G=[];switch(o(b,"backgroundClip")){case "content-box":case "padding-box":m(G,n[0],n[1],z,p,i.left+j[3].width,i.top+j[0].width);m(G,n[1],n[2],p,q,i.left+i.width-j[1].width,i.top+j[0].width);m(G,n[2],n[3],q,L,i.left+i.width-j[1].width,i.top+i.height-j[2].width);m(G,n[3],n[0],L,z,i.left+j[3].width,i.top+i.height-j[2].width);break;default:m(G,n[0],n[1],r,l,i.left,i.top),m(G,n[1],n[2],l,s,i.left+i.width,i.top),
m(G,n[2],n[3],s,P,i.left+i.width,i.top+i.height),m(G,n[3],n[0],P,r,i.left,i.top+i.height)}B=[];for(V=0;4>V;V++)if(0<j[V].width){C=J;A=W;H=R;I=S-j[2].width;switch(V){case 0:I=j[0].width;N=fa({c1:[C,A],c2:[C+H,A],c3:[C+H-j[1].width,A+I],c4:[C+j[3].width,A+I]},n[0],n[1],r,z,l,p);break;case 1:C=J+R-j[1].width;H=j[1].width;N=fa({c1:[C+H,A],c2:[C+H,A+I+j[2].width],c3:[C,A+I],c4:[C,A+j[0].width]},n[1],n[2],l,p,s,q);break;case 2:A=A+S-j[2].width;I=j[2].width;N=fa({c1:[C+H,A+I],c2:[C,A+I],c3:[C+j[3].width,
A],c4:[C+H-j[3].width,A]},n[2],n[3],s,q,P,L);break;case 3:H=j[3].width,N=fa({c1:[C,A+I+j[2].width],c2:[C,A],c3:[C+H,A+j[0].width],c4:[C+H,A+I]},n[3],n[0],P,L,r,z)}B.push({args:N,color:j[V].color})}N=aa.test(b.nodeName)?"#efefef":o(b,"backgroundColor");$(Q,G);Q.save();Q.clip();if(0<e.height&&0<e.width&&!k){c(Q,i.left,i.top,i.width,i.height,N);r=o(b,"backgroundImage");k=w.parseBackgroundImage(r);for(N=k.length;N--;)if(r=k[N],r.args&&0!==r.args.length)if(W=h("url"===r.method?r.args[0]:r.value))switch(S=
b,r=e,J=Q,n=W,W=N,z=w.BackgroundSize(S,r,n,W),R=w.BackgroundPosition(S,r,n,W,z),S=o(S,"backgroundRepeat").split(",").map(w.trimText),n.width===z.width&&n.height===z.height||(l=void 0,p=y.createElement("canvas"),p.width=z.width,p.height=z.height,l=p.getContext("2d"),ha(l,n,0,0,n.width,n.height,0,0,z.width,z.height),n=p),S=S[W]||S[0],S){case "repeat-x":v(J,n,R,r,r.left,r.top+R.top,99999,n.height);break;case "repeat-y":v(J,n,R,r,r.left+R.left,r.top,n.width,99999);break;case "no-repeat":v(J,n,R,r,r.left+
R.left,r.top+R.top,n.width,n.height);break;default:ba(J,n,R,{top:r.top,left:r.left,width:n.width,height:n.height})}else w.log("html2canvas: Error loading background:",r)}else k&&(u.backgroundColor=N);Q.restore();B.forEach(function(a){var b=a.args,a=a.color;if(a!=="transparent"){Q.setVariable("fillStyle",a);$(Q,b);Q.fill()}});if(!f&&(f=K(b,":before"),k=K(b,":after"),f||k))if(f&&(b.className+=" "+Z+"-before",b.parentNode.insertBefore(f,b),la(f,u,!0),b.parentNode.removeChild(f),b.className=b.className.replace(Z+
"-before","").trim()),k)b.className+=" "+Z+"-after",b.appendChild(k),la(k,u,!0),b.removeChild(k),b.className=b.className.replace(Z+"-after","").trim();switch(b.nodeName){case "IMG":(E=h(b.getAttribute("src")))?t(Q,b,E,i,j):w.log("html2canvas: Error loading <img>:"+b.getAttribute("src"));break;case "INPUT":/^(text|url|email|submit|button|reset)$/.test(b.type)&&0<(b.value||b.placeholder||"").length&&Y(b,i,u);break;case "TEXTAREA":0<(b.value||b.placeholder||"").length&&Y(b,i,u);break;case "SELECT":0<
(b.options||b.placeholder||"").length&&Y(b,i,u);break;case "LI":var O;E=u.ctx;f=o(b,"listStyleType");if(/^(decimal|decimal-leading-zero|upper-alpha|upper-latin|upper-roman|lower-alpha|lower-greek|lower-latin|lower-roman)$/i.test(f)){i=-1;j=1;k=b.parentNode.childNodes;if(b.parentNode){for(;k[++i]!==b;)1===k[i].nodeType&&j++;i=j}else i=-1;switch(f){case "decimal":O=i;break;case "decimal-leading-zero":O=1===i.toString().length?"0"+i.toString():i.toString();break;case "upper-roman":O=g.Generate.ListRoman(i);
break;case "lower-roman":O=g.Generate.ListRoman(i).toLowerCase();break;case "lower-alpha":O=g.Generate.ListAlpha(i).toLowerCase();break;case "upper-alpha":O=g.Generate.ListAlpha(i)}O+=". ";i=y.createElement("boundelement");i.style.display="inline";j=b.style.listStyleType;b.style.listStyleType="none";i.appendChild(y.createTextNode(O));b.insertBefore(i,b.firstChild);f=w.Bounds(i);b.removeChild(i);b.style.listStyleType=j;x(E,b,"none",o(b,"color"));"inside"===o(b,"listStylePosition")&&(E.setVariable("textAlign",
"left"),i=e.left,f=f.bottom,null!==O&&0<w.trimText(O).length&&E.fillText(O,i,f))}break;case "CANVAS":t(Q,b,b,i,j)}return u}function la(a,b,c){"none"!==o(a,"display")&&("hidden"!==o(a,"visibility")&&!a.hasAttribute("data-html2canvas-ignore"))&&(b=z(a,b,c,!1)||b,aa.test(a.nodeName)||P(a,b,c))}function P(a,b,c){w.Children(a).forEach(function(d){d.nodeType===d.ELEMENT_NODE?la(d,b,c):d.nodeType===d.TEXT_NODE&&k(a,d,b)})}l.scroll(0,0);var L=d.elements===s?q.body:d.elements[0],y=L.ownerDocument,w=g.Util,
F=w.Support(d,y),aa=RegExp("("+d.ignoreElements+")"),ia=y.body,o=w.getCSS,Z="___html2canvas___pseudoelement",E=y.createElement("style");E.innerHTML="."+Z+'-before:before { content: "" !important; display: none !important; }.'+Z+'-after:after { content: "" !important; display: none !important; }';ia.appendChild(E);var e=e||{},X,ca=4*((Math.sqrt(2)-1)/3);X=function(a,b,c,d){var e=c*ca,f=d*ca,c=a+c,d=b+d;return{topLeft:p({x:a,y:d},{x:a,y:d-f},{x:c-e,y:b},{x:c,y:b}),topRight:p({x:a,y:b},{x:a+e,y:b},{x:c,
y:d-f},{x:c,y:d}),bottomRight:p({x:c,y:b},{x:c,y:b+f},{x:a+e,y:d},{x:a,y:d}),bottomLeft:p({x:c,y:d},{x:c-e,y:d},{x:a,y:b+f},{x:a,y:b})}};var ea=/(matrix)\((.+)\)/,ma=o(q.documentElement,"backgroundColor"),da=w.isTransparent(ma)&&L===q.body,na=z(L,null,!1,da);P(L,na);da&&(ma=na.backgroundColor);ia.removeChild(E);return{backgroundColor:ma,stack:na}};g.Preload=function(e){function d(){t.log("html2canvas: start: images: "+h.numLoaded+" / "+h.numTotal+" (failed: "+h.numFailed+")");!h.firstRun&&h.numLoaded>=
h.numTotal&&(t.log("Finished loading images: # "+h.numTotal+" (failed: "+h.numFailed+")"),"function"===typeof e.complete&&e.complete(h))}function a(a,b,c){var f,g=e.proxy,m;K.href=a;a=K.href;f="html2canvas_"+E++;c.callbackname=f;g=-1<g.indexOf("?")?g+"&":g+"?";g+="url="+encodeURIComponent(a)+"&callback="+f;m=$.createElement("script");l[f]=function(a){"error:"===a.substring(0,6)?(c.succeeded=!1,h.numLoaded++,h.numFailed++,d()):(k(b,c),b.src=a);l[f]=s;try{delete l[f]}catch(e){}m.parentNode.removeChild(m);
m=null;delete c.script;delete c.callbackname};m.setAttribute("type","text/javascript");m.setAttribute("src",g);c.script=m;l.document.body.appendChild(m)}function c(a,b){var c=l.getComputedStyle(a,b),d=c.content;"url"===d.substr(0,3)&&p.loadImage(g.Util.parseBackgroundImage(d)[0].args[0]);f(c.backgroundImage,a)}function b(a){return a&&a.method&&a.args&&0<a.args.length}function f(a,c){var e;g.Util.parseBackgroundImage(a).filter(b).forEach(function(a){if("url"===a.method)p.loadImage(a.args[0]);else if(a.method.match(/\-?gradient$/)){e===
s&&(e=g.Util.Bounds(c));var a=a.value,b=g.Generate.Gradient(a,e);b!==s&&(h[a]={img:b,succeeded:!0},h.numTotal++,h.numLoaded++,d())}})}function x(a){var b=!1;try{t.Children(a).forEach(x)}catch(d){}try{b=a.nodeType}catch(e){b=!1,t.log("html2canvas: failed to access some element's nodeType - Exception: "+e.message)}if(1===b||b===s){c(a,":before");c(a,":after");try{f(t.getCSS(a,"backgroundImage"),a)}catch(g){t.log("html2canvas: failed to get background-image - Exception: "+g.message)}f(a)}}function k(b,
c){b.onload=function(){c.timer!==s&&l.clearTimeout(c.timer);h.numLoaded++;c.succeeded=!0;b.onerror=b.onload=null;d()};b.onerror=function(){if("anonymous"===b.crossOrigin&&(l.clearTimeout(c.timer),e.proxy)){var f=b.src;b=new Image;c.img=b;b.src=f;a(b.src,b,c);return}h.numLoaded++;h.numFailed++;c.succeeded=!1;b.onerror=b.onload=null;d()}}var h={numLoaded:0,numFailed:0,numTotal:0,cleanupDone:!1},T,t=g.Util,p,m,E=0;m=e.elements[0]||q.body;var $=m.ownerDocument,Y=m.getElementsByTagName("img"),ha=Y.length,
K=$.createElement("a"),F;F=(new Image).crossOrigin!==s;var ba;K.href=l.location.href;T=K.protocol+K.host;p={loadImage:function(b){var c,d;b&&h[b]===s&&(c=new Image,b.match(/data:image\/.*;base64,/i)?(c.src=b.replace(/url\(['"]{0,}|['"]{0,}\)$/ig,""),d=h[b]={img:c},h.numTotal++,k(c,d)):(K.href=b,K.href=K.href,K.protocol+K.host===T||!0===e.allowTaint?(d=h[b]={img:c},h.numTotal++,k(c,d),c.src=b):F&&!e.allowTaint&&e.useCORS?(c.crossOrigin="anonymous",d=h[b]={img:c},h.numTotal++,k(c,d),c.src=b):e.proxy&&
(d=h[b]={img:c},h.numTotal++,a(b,c,d))))},cleanupDOM:function(a){var b,c;if(!h.cleanupDone){a&&"string"===typeof a?t.log("html2canvas: Cleanup because: "+a):t.log("html2canvas: Cleanup after timeout: "+e.timeout+" ms.");for(c in h)if(h.hasOwnProperty(c)&&(b=h[c],"object"===typeof b&&b.callbackname&&b.succeeded===s)){l[b.callbackname]=s;try{delete l[b.callbackname]}catch(f){}b.script&&b.script.parentNode&&(b.script.setAttribute("src","about:blank"),b.script.parentNode.removeChild(b.script));h.numLoaded++;
h.numFailed++;t.log("html2canvas: Cleaned up failed img: '"+c+"' Steps: "+h.numLoaded+" / "+h.numTotal)}l.stop!==s?l.stop():q.execCommand!==s&&q.execCommand("Stop",!1);q.close!==s&&q.close();h.cleanupDone=!0;a&&"string"===typeof a||d()}},renderingDone:function(){ba&&l.clearTimeout(ba)}};0<e.timeout&&(ba=l.setTimeout(p.cleanupDOM,e.timeout));t.log("html2canvas: Preload starts: finding background-images");h.firstRun=!0;x(m);t.log("html2canvas: Preload: Finding images");for(m=0;m<ha;m+=1)p.loadImage(Y[m].getAttribute("src"));
h.firstRun=!1;t.log("html2canvas: Preload: Done.");h.numTotal===h.numLoaded&&d();return p};g.Renderer=function(e,d){var a=d.renderer;if("string"===typeof d.renderer&&g.Renderer[a]!==s)a=g.Renderer[a](d);else if("function"===typeof a)a=a(d);else throw Error("Unknown renderer");if("function"!==typeof a)throw Error("Invalid renderer defined");var c=q,b=function(a){Object.keys(a).sort().forEach(function(c){var d=[],e=[],g=[],k=[];a[c].forEach(function(a){a.node.zIndex.isPositioned||1>a.node.zIndex.opacity?
g.push(a):a.node.zIndex.isFloated?e.push(a):d.push(a)});(function Y(a){a.forEach(function(a){k.push(a);a.children&&Y(a.children)})})(d.concat(e,g));k.forEach(function(a){a.context?b(a.context):f.push(a.node)})})},f=[],x=function(a,b,c){var d="auto"===b.zIndex.zindex?0:Number(b.zIndex.zindex),e=a,f=b.zIndex.isPositioned,g=b.zIndex.isFloated,k={node:b},l=c;if(b.zIndex.ownStacking)e=k.context={"!":[{node:b,children:[]}]},l=s;else if(f||g)l=k.children=[];0===d&&c?c.push(k):(a[d]||(a[d]=[]),a[d].push(k));
b.zIndex.children.forEach(function(a){x(e,a,l)})},k={};x(k,e.stack);b(k);return a(e,d,c,f,g)};g.Util.Support=function(e,d){function a(){var a=new Image,b=d.createElement("canvas"),c=b.getContext===s?!1:b.getContext("2d");if(!1===c)return!1;b.width=b.height=10;a.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10'><foreignObject width='10' height='10'><div xmlns='http://www.w3.org/1999/xhtml' style='width:10;height:10;'>sup</div></foreignObject></svg>";try{c.drawImage(a,
0,0),b.toDataURL()}catch(e){return!1}g.Util.log("html2canvas: Parse: SVG powered rendering available");return!0}var c,b,f=!1;d.createRange&&(c=d.createRange(),c.getBoundingClientRect&&(b=d.createElement("boundtest"),b.style.height="123px",b.style.display="block",d.body.appendChild(b),c.selectNode(b),c=c.getBoundingClientRect(),c=c.height,123===c&&(f=!0),d.body.removeChild(b)));return{rangeBounds:f,svgRendering:e.svgRendering&&a()}};l.html2canvas=function(e,d){var e=e.length?e:[e],a,c,b={logging:!1,
elements:e,background:"#fff",proxy:null,timeout:0,useCORS:!1,allowTaint:!1,svgRendering:!1,ignoreElements:"IFRAME|OBJECT|PARAM",useOverflow:!0,letterRendering:!1,chinese:!1,width:null,height:null,taintTest:!0,renderer:"Canvas"},b=g.Util.Extend(d,b);g.logging=b.logging;b.complete=function(d){if(!("function"===typeof b.onpreloaded&&!1===b.onpreloaded(d))&&(a=g.Parse(d,b),!("function"===typeof b.onparsed&&!1===b.onparsed(a))&&(c=g.Renderer(a,b),"function"===typeof b.onrendered)))b.onrendered(c)};l.setTimeout(function(){g.Preload(b)},
0);return{render:function(a,c){return g.Renderer(a,g.Util.Extend(c,b))},parse:function(a,c){return g.Parse(a,g.Util.Extend(c,b))},preload:function(a){return g.Preload(g.Util.Extend(a,b))},log:g.Util.log}};l.html2canvas.log=g.Util.log;l.html2canvas.Renderer={Canvas:s};g.Renderer.Canvas=function(e){var e=e||{},d=q,a=[],c=q.createElement("canvas"),b=c.getContext("2d"),f=g.Util,l=e.canvas||d.createElement("canvas");return function(g,h,q,t,p){var m=l.getContext("2d"),E,F=g.stack;l.width=l.style.width=
h.width||F.ctx.width;l.height=l.style.height=h.height||F.ctx.height;E=m.fillStyle;m.fillStyle=f.isTransparent(F.backgroundColor)&&h.background!==s?h.background:g.backgroundColor;m.fillRect(0,0,l.width,l.height);m.fillStyle=E;t.forEach(function(g){m.textBaseline="bottom";m.save();g.transform.matrix&&(m.translate(g.transform.origin[0],g.transform.origin[1]),m.transform.apply(m,g.transform.matrix),m.translate(-g.transform.origin[0],-g.transform.origin[1]));g.clip&&(m.beginPath(),m.rect(g.clip.left,g.clip.top,
g.clip.width,g.clip.height),m.clip());g.ctx.storage&&g.ctx.storage.forEach(function(g){var h=m;switch(g.type){case "variable":h[g.name]=g.arguments;break;case "function":switch(g.name){case "createPattern":if(g.arguments[0].width>0&&g.arguments[0].height>0)try{h.fillStyle=h.createPattern(g.arguments[0],"repeat")}catch(l){f.log("html2canvas: Renderer: Error creating pattern",l.message)}break;case "drawShape":g=g.arguments;h.beginPath();g.forEach(function(a){h[a.name].apply(h,a.arguments)});h.closePath();
break;case "drawImage":if(g.arguments[8]>0&&g.arguments[7]>0){var k;if(!(k=!e.taintTest))if(k=e.taintTest)a:{if(a.indexOf(g.arguments[0].src)===-1){b.drawImage(g.arguments[0],0,0);try{b.getImageData(0,0,1,1)}catch(p){c=d.createElement("canvas");b=c.getContext("2d");k=false;break a}a.push(g.arguments[0].src)}k=true}k&&h.drawImage.apply(h,g.arguments)}break;default:h[g.name].apply(h,g.arguments)}}});m.restore()});f.log("html2canvas: Renderer: Canvas renderer done - returning canvas obj");return 1===
h.elements.length&&"object"===typeof h.elements[0]&&"BODY"!==h.elements[0].nodeName?(g=p.Util.Bounds(h.elements[0]),q=q.createElement("canvas"),q.width=Math.ceil(g.width),q.height=Math.ceil(g.height),m=q.getContext("2d"),m.drawImage(l,g.left,g.top,g.width,g.height,0,0,g.width,g.height),l=null,q):l}}})(window,document);
cp.rtInherits=function(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.baseConstructor=b;a.superClass=b.prototype};cp.HexToRGBA=function(a,b){if(void 0==a)return a;var c=a;"#"==c.charAt(0)&&(c=c.substring(1));if(6>c.length)return a;var d=parseInt(c.substring(0,2),16),e=parseInt(c.substring(2,4),16),c=parseInt(c.substring(4,6),16);return"rgba("+d+","+e+","+c+","+b+")"};
cp.RuntimeDialogSeparator=function(a,b,c){this.m_parent=a;this.m_XPos=b;this.m_YPos=c;this.m_color="#000000";this.m_alpha=0.5;this.m_size=10;this.m_strokeWidth=2;this.m_shadowColor="#FFFFFF";this.m_shadowAlpha=0.65;this.m_shadowAngle=270;this.m_shadowBlur=2;this.m_shadowDistance=1};
cp.RuntimeDialogSeparator.prototype={setColor:function(a){this.m_color=a},setAlpha:function(a){this.m_alpha=a},setSize:function(a){this.m_size=a},setShadowColor:function(a){this.m_shadowColor=a},getComponentDiv:function(){var a=document.createElement("div");a.style.height=this.m_strokeWidth+"px";a.style.backgroundColor=this.m_color;a.style.opacity=this.m_alpha;a.style.position="relative";a.style.marginLeft=this.m_XPos+"px";a.style.marginRight=this.m_XPos+"px";a.style.top=this.m_YPos+"px";"webkitBoxShadow"in
a.style?a.style.webkitBoxShadow=this.m_shadowDistance+"px "+this.m_shadowDistance+"px "+this.m_shadowBlur+"px "+this.m_shadowColor:"MozBoxShadow"in a.style?a.style.MozBoxShadow=this.m_shadowDistance+"px "+this.m_shadowDistance+"px "+this.m_shadowBlur+"px "+this.m_shadowColor:a.style.boxShadow=this.m_shadowDistance+"px "+this.m_shadowDistance+"px "+this.m_shadowBlur+"px "+this.m_shadowColor;return a}};
cp.RuntimeDialogText=function(a,b,c){this.m_parent=a;this.m_fontName="Myriad Pro";this.m_XPos=b;this.m_YPos=c;this.m_fontSize=14;this.m_fontColor="#ff0000";this.m_text="Sample Text";this.m_multiline=!1;this.m_maxWidth=400;this.m_maxHeight=80;this.m_shadowColor="#FFFFFF";this.m_shadowAlpha=0.35;this.m_shadowAngle=270;this.m_shadowBlur=2;this.m_shadowDistance=1};
cp.RuntimeDialogText.prototype={setFontName:function(a){this.m_fontName=a},setFontSize:function(a){this.m_fontSize=a},setFontColor:function(a){this.m_fontColor=a},setText:function(a){this.m_text=a},setMultiline:function(a){this.m_multiline=a},setMaxWidth:function(a){this.m_maxWidth=a},setShadowColor:function(a){this.m_shadowColor=a},getTruncatedText:function(a){if(void 0==a)return this.m_text;var b=this.getMaxPossibleWidth(this.m_text);if(b<=a)return this.m_text;for(var c=this.m_text,d=c+"...",b=
this.getMaxPossibleWidth(d);0<d.length&&b>a;)c=c.substring(0,c.length-1),d=c+"...",b=this.getMaxPossibleWidth(d);return d},getMaxPossibleWidth:function(a){var b=document.createElement("div");b.style.color=this.m_fontColor;b.style.fontFamily=this.m_fontName;b.style.fontSize=this.m_fontSize+"px";b.style.width="auto";b.style.height="auto";b.style.position="absolute";b.style.visibilty="hidden";b.innerHTML=a;document.body.appendChild(b);a=b.clientWidth+4;document.body.removeChild(b);return a},getComponentDiv:function(){var a=
document.createElement("div");a.style.color=this.m_fontColor;a.style.fontFamily=this.m_fontName;a.style.fontSize=this.m_fontSize+"px";a.style.textAlign="left";a.style.left=this.m_XPos+"px";a.style.top=this.m_YPos+"px";a.style.position="relative";a.style.opacity=1;var b=cp.HexToRGBA(this.m_shadowColor,this.m_shadowAlpha);a.style.textShadow=this.m_shadowDistance+"px "+this.m_shadowDistance+"px "+this.m_shadowBlur+"px "+b;a.innerHTML=this.m_text;return a}};
cp.RuntimeDialogTextInput=function(a,b,c){this.m_parent=a;this.m_fontName="Myriad Pro";this.m_XPos=b;this.m_YPos=c;this.m_fontSize=14;this.m_fontColor="#ff0000";this.m_maxWidth=400;this.m_maxHeight=80;this.m_label="Text Input :";this.m_textInput=void 0};
cp.RuntimeDialogTextInput.prototype={setFontName:function(a){this.m_fontName=a},setFontSize:function(a){this.m_fontSize=a},setFontColor:function(a){this.m_fontColor=a},setText:function(a){this.m_text=a},setLabel:function(a){this.m_label=a},setMaxWidth:function(a){this.m_maxWidth=a},getValue:function(){return this.m_textInput.value},getComponentDiv:function(){var a=document.createElement("div");a.style.left=this.m_XPos+"px";a.style.top=this.m_YPos+"px";a.style.width=this.m_maxWidth+"px";var b=document.createElement("table");
b.style.width="100%";b.style.height="100%";a.appendChild(b);var c=document.createElement("tr");c.style.width="100%";c.style.height="50%";b.appendChild(c);var d=document.createElement("td");d.style.width="100%";d.style.height="100%";d.style.paddingBottom="0em";c.appendChild(d);c=new cp.RuntimeDialogText(d,this.MESSAGE_DEFAULT_LEFT_OFFSET,0);c.setText(this.m_label);c.setFontColor(this.m_fontColor);c.setFontName(this.m_fontName);c.setFontSize(14);c.setMultiline(!0);c=c.getComponentDiv();c.style.width=
"100%";d.appendChild(c);d=document.createElement("tr");d.style.width="100%";d.style.height="50%";b.appendChild(d);b=document.createElement("td");b.style.width="100%";b.style.height="100%";d.appendChild(b);d=document.createElement("input");d.type="text";d.value=this.m_text;d.style.color="#000000";d.style.fontFamily=this.m_fontName;d.style.fontSize=this.m_fontSize+"px";d.style.width="100%";d.style.opacity=1;this.m_textInput=d;b.appendChild(d);a.style.position="relative";return a}};
cp.RuntimeDialogPanel=function(a,b,c,d,e){this.m_parent=a;this.m_fillColor="#CCCCCC";this.m_alpha=0.5;this.m_strokeColor="#666666";this.m_XPos=b;this.m_YPos=c;this.m_strokeWidth=1;this.m_width=d;this.m_height=e;this.m_roundness=20;this.m_minHeight=this.m_minWidth=100;this.m_maxWidth=493;this.m_maxHeight=219;this.m_showShadow=!1;this.m_shadowColor="#000000";this.m_shadowAlpha=0.65;this.m_shadowAngle=270;this.m_shadowDistance=this.m_shadowBlur=2};
cp.RuntimeDialogPanel.prototype={setFillColor:function(a){this.m_fillColor=a},setAlpha:function(a){this.m_alpha=a},setStrokeColor:function(a){this.m_strokeColor=a},setStrokeWidth:function(a){this.m_strokeWidth=a},setWidth:function(a){this.m_width=a},getWidth:function(){var a=this.m_width;a<this.m_minWidth&&(a=this.m_minWidth);a>this.m_maxWidth&&(a=this.m_maxWidth);return a},setHeight:function(a){this.m_height=a},setMinWidth:function(a){a<this.m_maxWidth&&(this.m_minWidth=a)},setMinHeight:function(a){a<
this.m_maxHeight&&(this.m_minHeight=a)},setMaxWidth:function(a){a>this.m_minWidth&&(this.m_maxWidth=a)},setMaxHeight:function(a){a>this.m_minHeight&&(this.m_maxHeight=a)},setRoundness:function(a){this.m_roundness=a},showShadow:function(a){this.m_showShadow=a},setShadowColor:function(a){this.m_shadowColor=a},getComponentDiv:function(){var a=this.m_width,b=this.m_height;a<this.m_minWidth&&(a=this.m_minWidth);a>this.m_maxWidth&&(a=this.m_maxWidth);b<this.m_minHeight&&(b=this.m_minHeight);b>this.m_maxHeight&&
(b=this.m_maxHeight);var c=document.createElement("div");c.style.width=a+"px";c.style.height=b+"px";c.style.background=cp.HexToRGBA(this.m_fillColor,this.m_alpha);c.style.border=this.m_strokeWidth+"px solid "+this.m_strokeColor;c.style.borderRadius=this.m_roundness+"px";c.style.left=this.m_XPos+"px";c.style.top=this.m_YPos+"px";this.m_showShadow&&("webkitBoxShadow"in c.style?c.style.webkitBoxShadow=this.m_shadowDistance+"px "+this.m_shadowDistance+"px "+this.m_shadowBlur+"px "+this.m_shadowColor:
"MozBoxShadow"in c.style?c.style.MozBoxShadow=this.m_shadowDistance+"px "+this.m_shadowDistance+"px "+this.m_shadowBlur+"px "+this.m_shadowColor:c.style.boxShadow=this.m_shadowDistance+"px "+this.m_shadowDistance+"px "+this.m_shadowBlur+"px "+this.m_shadowColor);return c}};
cp.RuntimeDialogButton=function(a,b,c,d,e){cp.RuntimeDialogButton.baseConstructor.call(this,a,b,c,d,e);this.m_label=void 0;this.m_labelText="OK";this.m_labelFontName="Myriad Pro";this.m_labelFontSize=16;this.m_labelFontColor="#000000";this.m_labelShadowColor="#FFFFFF";this.BUTTON_LABEL_TOP_PADDING=this.BUTTON_LABEL_LEFT_PADDING=5;this.m_fillColor="#CDCDCD";this.m_alpha=0.3;this.m_strokeColor="#000000";this.m_strokeWidth=1;this.m_maxWidth=230;this.m_minWidth=40;this.m_minHeight=m_maxHeight=25;this.m_roundness=
10};cp.rtInherits(cp.RuntimeDialogButton,cp.RuntimeDialogPanel);cp.RuntimeDialogButton.prototype.setButtonLabel=function(a){this.m_labelText=a};cp.RuntimeDialogButton.prototype.setButtonLabelFontName=function(a){this.m_labelFontName=a};cp.RuntimeDialogButton.prototype.setButtonLabelFontSize=function(a){this.m_labelFontSize=a};cp.RuntimeDialogButton.prototype.setButtonLabelFontColor=function(a){this.m_labelFontColor=a};
cp.RuntimeDialogButton.prototype.setButtonLabelShadowColor=function(a){this.m_labelShadowColor=a};cp.RuntimeDialogButton.prototype.setHandler=function(a){this.m_handler=a};
cp.RuntimeDialogButton.prototype.getComponentDiv=function(){var a=cp.RuntimeDialogButton.superClass.getComponentDiv.call(this);a.style.position="absolute";a.style.cursor="pointer";var b=this.m_fillColor,c=this.m_alpha;a.onmouseover=function(){a.style.background=cp.HexToRGBA(b,0.1)};a.onmouseout=function(){a.style.background=cp.HexToRGBA(b,c)};cp.registerGestureEvent(a,cp.GESTURE_EVENT_TYPES.TAP,this.m_handler);a.onkeypress=this.m_handler;var d=new cp.RuntimeDialogText(a,0,5);d.setText(this.m_labelText);
d.setFontName(this.m_labelFontName);d.setFontColor(this.m_labelFontColor);d.setFontSize(this.m_labelFontSize);d.setShadowColor(this.m_labelShadowColor);d.setMaxWidth(this.m_maxWidth-2*this.BUTTON_LABEL_LEFT_PADDING);var e=d.getComponentDiv();e.style.textAlign="center";e.style.top="0px";var f=d.getMaxPossibleWidth(this.m_labelText);f>this.m_width&&(f>this.m_maxWidth&&(f=this.m_maxWidth,e.innerHTML=d.getTruncatedText(this.m_maxWidth)),a.style.width=f+"px");a.appendChild(e);return a};
cp.RuntimeMessageBox=function(a,b,c,d,e,f,g,h,i,j){this.m_parent=a;this.m_MessageBoxElement=void 0;this.m_id="CPRuntimeMsgBox_ID";this.m_titleText="Adobe Captivate";this.m_messageText="This is Adobe Captivate Run Time Message Dialog";this.m_firstButtonText="OK";this.m_secondButtonText="CANCEL";this.m_ChkBoxText="Don't ask me again";this.m_numberOfButtons=b;this.m_secondButtonHandler=this.m_firstButtonHandler=void 0;this.m_DontAskMe=!1;this.m_foregroundFillColor=c;this.m_foregroundStrokeColor=d;this.m_buttonFillColor=
e;this.m_buttonStrokeColor=f;this.m_separatorColor=g;this.m_textColor=h;this.m_textShadowColor=i;this.m_textFontName=j;this.TITLE_DEFAULT_TOP_OFFSET=this.MESSAGE_DEFAULT_LEFT_OFFSET=this.SEPARATOR_DEFAULT_LEFT_OFFSET=this.TITLE_DEFAULT_LEFT_OFFSET=10;this.SEPARATOR_DEFAULT_TOP_OFFSET=20;this.MESSAGE_DEFAULT_TOP_OFFSET=30;this.BUTTON_BOTTOM_OFFSET=10;this.BG_DEFAULT_WIDTH=493;this.BG_DEFAULT_HEIGHT=219;this.FG_DEFAULT_WIDTH=478;this.FG_DEFAULT_HEIGHT=198;this.BUTTON_DEFAULT_WIDTH=100;this.BUTTON_DEFAULT_HEIGHT=
33;this.INTER_BUTTON_OFFSET=15};
cp.RuntimeMessageBox.prototype={getDontAskMeInput:function(){if(this.m_DontAskMe){var a=document.getElementById("dont_ask_me_chk");if(a)return a.checked}return!1},setDontAskMe:function(a){this.m_DontAskMe=a},setDontAskMeText:function(a){this.m_ChkBoxText=a},setTitleText:function(a){this.m_titleText=a},setCheckBoxText:function(a){this.m_ChkBoxText=a},setMessageText:function(a){this.m_messageText=a},setFirstButtonText:function(a){this.m_firstButtonText=a},setSecondButtonText:function(a){this.m_secondButtonText=a},
registerFirstButtonHandler:function(a){void 0!=a&&(this.m_firstButtonHandler=a)},registerSecondButtonHandler:function(a){void 0!=a&&(this.m_secondButtonHandler=a)},isVisible:function(){var a=!1;void 0!=this.m_MessageBoxElement&&"visible"==this.m_MessageBoxElement.style.visibility&&(a=!0);return a},hide:function(){var a=this.m_parent?this.m_parent:document.getElementById("cpDocument"),b=document.getElementById("CPRuntimeMsgBox_ID");void 0!=b&&a.removeChild(b)},show:function(){this.hide();this.m_MessageBoxElement=
document.createElement("div");this.m_MessageBoxElement.id=this.m_id;var a=new cp.RuntimeDialogPanel(this.m_parent,0,0,this.BG_DEFAULT_WIDTH,this.BG_DEFAULT_HEIGHT);a.showShadow(!0);var b=a.getComponentDiv();b.id="bgPanelDiv";b.style.margin="100px auto";this.m_MessageBoxElement.appendChild(b);a=new cp.RuntimeDialogPanel(b,(this.BG_DEFAULT_WIDTH-this.FG_DEFAULT_WIDTH)/2,(this.BG_DEFAULT_HEIGHT-this.FG_DEFAULT_HEIGHT)/2,this.FG_DEFAULT_WIDTH,this.FG_DEFAULT_HEIGHT);a.setFillColor(this.m_foregroundFillColor);
a.setAlpha(1);a.setStrokeColor(this.m_foregroundStrokeColor);a=a.getComponentDiv();b.id="fgPanelDiv";a.style.position="relative";b.appendChild(a);b=new cp.RuntimeDialogText(a,this.TITLE_DEFAULT_LEFT_OFFSET,this.TITLE_DEFAULT_TOP_OFFSET);b.setText(this.m_titleText);b.setFontSize(18);b.setFontColor(this.m_textColor);b.setFontName(this.m_textFontName);b.setShadowColor(this.m_textShadowColor);b=b.getComponentDiv();a.appendChild(b);b=new cp.RuntimeDialogSeparator(a,this.SEPARATOR_DEFAULT_LEFT_OFFSET,this.SEPARATOR_DEFAULT_TOP_OFFSET);
b.setColor(this.m_separatorColor);b=b.getComponentDiv();a.appendChild(b);b=new cp.RuntimeDialogText(a,this.MESSAGE_DEFAULT_LEFT_OFFSET,this.MESSAGE_DEFAULT_TOP_OFFSET);b.setText(this.m_messageText);b.setFontColor(this.m_textColor);b.setFontName(this.m_textFontName);b.setShadowColor(this.m_textShadowColor);b.setFontSize(14);b.setMultiline(!0);b=b.getComponentDiv();a.appendChild(b);this.m_DontAskMe&&(b=new cp.RuntimeDialogText(a,this.MESSAGE_DEFAULT_LEFT_OFFSET,this.MESSAGE_DEFAULT_TOP_OFFSET),b.setText(this.m_ChkBoxText),
b.setFontColor(this.m_textColor),b.setFontName(this.m_textFontName),b.setShadowColor(this.m_textShadowColor),b.setFontSize(14),b.setMultiline(!1),b=b.getComponentDiv(),a.innerHTML+='<input type="checkbox" id="dont_ask_me_chk" style="-webkit-appearance: checkbox;left:10px; bottom: 70px;width:20px; height:20px;position:absolute">',a.appendChild(b),b.style.position="absolute",b.style.top="",b.style.bottom="75px",b.style.left="40px");b=new cp.RuntimeDialogButton(a,0,0,this.BUTTON_DEFAULT_WIDTH,this.BUTTON_DEFAULT_HEIGHT);
b.setFillColor(this.m_buttonFillColor);b.setStrokeColor(this.m_buttonStrokeColor);b.setButtonLabel(this.m_firstButtonText);b.setButtonLabelFontSize(16);b.setButtonLabelFontColor(this.m_textColor);b.setButtonLabelFontName(this.m_textFontName);b.setButtonLabelShadowColor(this.m_textShadowColor);b.setHandler(this.m_firstButtonHandler);b=b.getComponentDiv();b.style.top="auto";b.tabIndex=0;b.style.bottom=this.BUTTON_BOTTOM_OFFSET+"px";a.appendChild(b);var c=void 0;2==this.m_numberOfButtons&&(lSecondButton=
new cp.RuntimeDialogButton(a,0,0,this.BUTTON_DEFAULT_WIDTH,this.BUTTON_DEFAULT_HEIGHT),lSecondButton.setFillColor(this.m_buttonFillColor),lSecondButton.setStrokeColor(this.m_buttonStrokeColor),lSecondButton.setButtonLabel(this.m_secondButtonText),lSecondButton.setButtonLabelFontSize(16),lSecondButton.setButtonLabelFontColor(this.m_textColor),lSecondButton.setButtonLabelFontName(this.m_textFontName),lSecondButton.setButtonLabelShadowColor(this.m_textShadowColor),lSecondButton.setHandler(this.m_secondButtonHandler),
c=lSecondButton.getComponentDiv(),c.tabIndex=0,c.style.top="auto",c.style.bottom=this.BUTTON_BOTTOM_OFFSET+"px",a.appendChild(c));this.m_parent.appendChild(this.m_MessageBoxElement);this.m_MessageBoxElement.style.visibility="visible";this.m_MessageBoxElement.style.position="absolute";this.m_MessageBoxElement.style.left="0px";this.m_MessageBoxElement.style.top="0px";this.m_MessageBoxElement.style.width="100%";this.m_MessageBoxElement.style.height="100%";this.m_MessageBoxElement.style.textAlign="center";
this.m_MessageBoxElement.style.zIndex="1000";this.m_MessageBoxElement.style.background="rgba(240,240,240,0.2)";this.m_MessageBoxElement.style.zIndex=10020;a=a.clientWidth-b.clientWidth;c&&(a=a-this.INTER_BUTTON_OFFSET-c.clientWidth);a/=2;b.style.left=a+"px";c&&(c.style.left=a+b.clientWidth+this.INTER_BUTTON_OFFSET+"px");setTimeout(function(){var a=document.getElementById("dont_ask_me_chk");a&&a.focus()},500)},close:function(){var a=document.getElementById("cpDocument"),b=document.getElementById("CPRuntimeMsgBox_ID");
a.removeChild(b)}};cp.RuntimeMessageBoxDefault=function(a,b){var c=cp.D.rtDialog;cp.RuntimeMessageBoxDefault.baseConstructor.call(this,a,b,c.rtbgfc,c.rtbgsc,c.rtbtnfc,c.rtbtnsc,c.rtsc,c.rttc,c.rttsc,c.rtfn)};cp.rtInherits(cp.RuntimeMessageBoxDefault,cp.RuntimeMessageBox);cp.PostResultsMessageBox=function(a){this.m_StudentNameTextInputLabel="";this.m_StringsMap=a;a=document.getElementById("div_Slide");cp.PostResultsMessageBox.baseConstructor.call(this,a,2)};cp.rtInherits(cp.PostResultsMessageBox,cp.RuntimeMessageBoxDefault);
cp.PostResultsMessageBox.prototype.getLearnerName=function(){return this.m_studentNameTextInput.getValue()};cp.PostResultsMessageBox.prototype.getLearnerID=function(){return this.m_studentIDTextInput.getValue()};cp.PostResultsMessageBox.prototype.hide=function(){var a=document.getElementById("CPRuntimeMsgBox_ID");void 0!=a&&this.m_parent.removeChild(a)};
cp.PostResultsMessageBox.prototype.show=function(){this.setTitleText(this.m_StringsMap.ISRPostResultStr);this.setMessageText(this.m_StringsMap.ISRResultCalculatedStr);this.m_numberOfButtons=2;this.setFirstButtonText("Cancel");this.setSecondButtonText(this.m_StringsMap.ISRSendStr);this.hide();this.m_MessageBoxElement=document.createElement("div");this.m_MessageBoxElement.id=this.m_id;var a=new cp.RuntimeDialogPanel(this.m_parent,0,0,350,230);a.showShadow(!0);var b=a.getComponentDiv();b.id="bgPanelDiv";
b.style.margin="100px auto";this.m_MessageBoxElement.appendChild(b);a=new cp.RuntimeDialogPanel(b,0,0,350,230);a.setFillColor(this.m_foregroundFillColor);a.setAlpha(1);a.setStrokeColor(this.m_foregroundStrokeColor);a=a.getComponentDiv();a.id="fgPanelDiv";a.style.position="relative";b.appendChild(a);b=new cp.RuntimeDialogText(a,0,0);b.setText(this.m_titleText);b.setFontSize(18);b.setFontColor("#ffffff");b.setFontName(this.m_textFontName);b.setShadowColor(this.m_textShadowColor);b=b.getComponentDiv();
b.style.backgroundColor="#000000";b.style.borderTopLeftRadius="20px";b.style.borderTopRightRadius="20px";b.style.textAlign="center";a.appendChild(b);b=new cp.RuntimeDialogText(a,this.MESSAGE_DEFAULT_LEFT_OFFSET,10);b.setText(this.m_messageText);b.setFontColor(this.m_textColor);b.setFontName(this.m_textFontName);b.setShadowColor(this.m_textShadowColor);b.setFontSize(14);b.setMultiline(!0);b=b.getComponentDiv();b.style.left="20px";b.style.width="300px";b.style.wordWrap="break-word";a.appendChild(b);
b=new cp.RuntimeDialogTextInput(a,10,10);b.setLabel(this.m_StringsMap.ISREnterNameStr);b.setText("");b.setFontColor(this.m_textColor);b.setFontName(this.m_textFontName);b.setFontSize(14);this.m_studentNameTextInput=b;b=b.getComponentDiv();b.id="studentNameTextInput";b.style.left="20px";b.style.width="300px";a.appendChild(b);b=new cp.RuntimeDialogTextInput(a,10,0);b.setLabel(this.m_StringsMap.ISREmailIDStr);b.setText("");b.setFontColor(this.m_textColor);b.setFontName(this.m_textFontName);b.setFontSize(14);
this.m_studentIDTextInput=b;b=b.getComponentDiv();b.id="studentNameTextInput";b.style.left="20px";b.style.width="300px";a.appendChild(b);b=new cp.RuntimeDialogButton(a,0,0,this.BUTTON_DEFAULT_WIDTH,20);b.setFillColor(this.m_buttonFillColor);b.setStrokeColor(this.m_buttonStrokeColor);b.setButtonLabel(this.m_firstButtonText);b.setButtonLabelFontSize(16);b.setButtonLabelFontColor(this.m_textColor);b.setButtonLabelFontName(this.m_textFontName);b.setButtonLabelShadowColor(this.m_textShadowColor);b.setHandler(this.m_firstButtonHandler);
b=b.getComponentDiv();b.style.top="auto";b.style.bottom=this.BUTTON_BOTTOM_OFFSET+"px";b.style.width=parseFloat(b.style.width)+20+"px";a.appendChild(b);var c=void 0;2==this.m_numberOfButtons&&(lSecondButton=new cp.RuntimeDialogButton(a,0,0,this.BUTTON_DEFAULT_WIDTH,20),lSecondButton.setFillColor(this.m_buttonFillColor),lSecondButton.setStrokeColor(this.m_buttonStrokeColor),lSecondButton.setButtonLabel(this.m_secondButtonText),lSecondButton.setButtonLabelFontSize(16),lSecondButton.setButtonLabelFontColor(this.m_textColor),
lSecondButton.setButtonLabelFontName(this.m_textFontName),lSecondButton.setButtonLabelShadowColor(this.m_textShadowColor),lSecondButton.setHandler(this.m_secondButtonHandler),c=lSecondButton.getComponentDiv(),c.style.top="auto",c.style.bottom=this.BUTTON_BOTTOM_OFFSET+"px",c.style.width=parseFloat(c.style.width)+20+"px",a.appendChild(c));this.m_parent.appendChild(this.m_MessageBoxElement);this.m_MessageBoxElement.style.visibility="visible";this.m_MessageBoxElement.style.position="absolute";this.m_MessageBoxElement.style.left=
"0px";this.m_MessageBoxElement.style.top="0px";this.m_MessageBoxElement.style.width="100%";this.m_MessageBoxElement.style.height="100%";this.m_MessageBoxElement.style.textAlign="center";this.m_MessageBoxElement.style.zIndex="1000";this.m_MessageBoxElement.style.background="rgba(240,240,240,0.5)";a=a.clientWidth-b.clientWidth;c&&(a=a-this.INTER_BUTTON_OFFSET-c.clientWidth);a/=2;b.style.left=a+"px";c&&(c.style.left=a+b.clientWidth+this.INTER_BUTTON_OFFSET+"px")};
(function(a){function aa(c){var b=c;(c=a.D[c])&&c.sicbs&&void 0!==c.bstiid&&-1!==c.bstiid&&(b=a.getDisplayObjNameByCP_UID(c.bstiid));return b}function X(a){a.stopPropagation();a.preventDefault()}var W={};a.ropMap={};var G={};a.cpIDMap={};a.inherits=function(a,b){function d(){}d.prototype=b.prototype;a.prototype=new d;a.prototype.constructor=a;a.baseConstructor=b;a.superClass=b.prototype};a.getParameterByName=function(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");a=RegExp("[\\?&]"+a+"=([^&#]*)").exec(window.location.search);
return null==a?"":decodeURIComponent(a[1].replace(/\+/g," "))};a.getCorrectMediaPath=function(c){var b=c;a.pg&&(window.device&&"Android"===window.device.platform)&&(b=a.Phonegap.getResourcePath(c));return b};a.log=function(c){a.customConsole?a.customConsole.value+=c:a.consolidateLogs&&a.logArray?a.logArray.push(c):console.log(c)};a.logObject=function(c,b){b||(b="");var d="object "+b+" : {",e;for(e in c)d+=e+":"+c[e]+"; ";a.log(d+"}")};a.IsValidObj=function(a){return void 0!=a&&null!=a};a.getCurrentBrowserVersion=
function(c,b){var d=c.indexOf(b);return-1==d?a.UNKNOWN:parseFloat(c.substring(d+b.length+1))};a.showColoredNonModalWarning=function(c){var b=a.newElem("div");b.style.position="fixed";b.style.right="10px";b.style.bottom="10px";b.style.backgroundColor="#7f7f7f";b.style.border="10px solid #FF0000";b.style.padding="10px";b.style.fontSize="22px";b.style.zIndex="10000";b.innerHTML=c;a.parentWindow.document.body.appendChild(b);setTimeout(function(){a.parentWindow.document.body.removeChild(b)},1E3)};a.getRoundedValue=
function(a,b){void 0==b&&(b=2);var d=Math.pow(10,b);return a=Math.round(a*d)/d};a.resetDisplayAndIdMap=function(){G={};a.cpIDMap={}};a.getDisplayObjByCP_UID=function(c){return G[a.cpIDMap[c]]};a.getDisplayObjByKey=function(a){return G[a]};a.getDisplayObjNameByCP_UID=function(c){var c=a.cpIDMap[c],b="";c&&(b=a.D[c].dn);return b};a.getParentStateObjectForItem=function(c){var b=void 0,d=c.baseStateItemID;if(d&&-1!=d&&(d=a.getDisplayObjByCP_UID(d)))if(d=d.states)for(var e=0;e<d.length;++e){var f=d[e];
if(f)for(var h=f.stsi,g=0;g<h.length;++g)if(h[g]==c.getAttribute("uid")){b=f;break}}return b};a.getCurrentStateObjectForItem=function(a){var b=void 0;if(a){var d=a.states,a=a.currentState;0<=a&&a<d.length&&(b=d[a])}return b};a.hasStateOfType=function(a,b){var d=!1;if(a){var e=a.states;if(e)for(var f=0;f<e.length;++f){var h=e[f];if(h&&h.stt==b){d=!0;break}}}return d};a.getStateName=function(a,b){var d="";if(a){var e=a.states;e&&0<=b&&b<e.length&&(e=e[b])&&(d=e.stn)}return d};a.getBaseStateItem=function(c){var b=
c;c&&-1!==c.baseStateItemID&&(c=a.getDisplayObjByCP_UID(c.baseStateItemID))&&(b=c);return b};a.isVisible=function(c){var b=!1;if(c){var b=c.visible,d=c.states&&0<c.states.length;if(-1!==c.baseStateItemID||d)if(d=c.getAttribute("uid"),c=a.getBaseStateItem(c)){var b=c.getAttribute("effectiveVi"),e=!1,f=c.states,c=c.currentState;f&&0<=c&&c<f.length&&(e=-1!=f[c].stsi.indexOf(d));b=b&&e}}return b};a.isBaseItemInState=function(a){var b=!1;a&&(-1==a.baseStateItemID?b=!0:a.cloneOfBaseStateItem&&(b=!0));return b};
a.getInfoForStateChange=function(c,b){var d={bFound:!1,stateIndex:-1,showItemList:[],hideItemList:[]},e=a.D[c];if(!e)return d;if(e=a.getDisplayObjByKey(e.mdi)){for(var e=e.states,f=[],h=[],g=0;g<e.length;g++){var k=e[g];k.stn==b?(d.stateIndex=g,f=f.concat(k.stsi),d.bFound=!0):h=h.concat(k.stsi)}d.showItemList=f;d.hideItemList=h}return d};a.CanPauseAudioDuringHide=function(c){var b=!0;if(c){var d=!1,e="",f=a.kSTTNone;if(-1===c.baseStateItemID)d=!0,e="Normal";else if(c.cloneOfBaseStateItem){var d=!0,
h=a.getParentStateObjectForItem(c);h&&(e=h.stn,f=h.stt)}if(d&&(c=a.getBaseStateItem(c))){d=a.getCurrentStateObjectForItem(c);if(void 0!==d&&(d.stt===a.kSTTRollOver||d.stt===a.kSTTDown))(d=c.stateAtStartOfMouseEvents)&&e===d&&(b=!1);if(f===a.kSTTDragOver||f===a.kSTTDragStart||f===a.kSTTDropReject)if(f=a.GetCurrentInteractionManager())(f=f.getActiveInteraction())&&(f.m_DsFrameSetDataID===c.parentId&&f.m_DragSourceCurrentTransientState===e)&&(b=!1)}}return b};a.GetBaseItemsInAllStates=function(c,b){void 0===
b&&(b=!0);var d=[];if(c)for(var e=c.states,f=0;f<e.length;f++){var h=e[f];if(h&&(h=h.stsi))for(var g=0;g<h.length;g++){var k=a.getDisplayObjByCP_UID(h[g]);(b||k!=c)&&a.isBaseItemInState(k)&&d.push(k)}}return d};a.dispatchClickEvent=function(c,b,d){b&&c&&(a.MSIE!=a.browser&&window.MouseEvent?(b=new MouseEvent("click",{bubbles:!0,cancelable:!0,screenX:b.screenX,screenY:b.screenY,clientX:b.clientX,clientY:b.clientY,ctrlKey:b.ctrlKey,altKey:b.altKey,shiftKey:b.shiftKey,metaKey:b.metaKey}),b.cpCustomData=
d,c.dispatchEvent(b)):document&&document.createEventObject&&(b=document.createEventObject(window.event),b.button=1,b.cpCustomData=d,b.target=c,c.fireEvent("onclick",b)))};a.BringBaseItemToFrontWithinState=function(c,b){function d(a,c){return a.zIndex>c.zIndex?1:a.zIndex<c.zIndex?-1:0}if(c){var e=[],f=c.states;if(f)for(var h=0;h<f.length;h++){var g=f[h];if(g&&g.stn==b)for(var g=g.stsi,k=0;k<g.length;k++){var l=a.getDisplayObjNameByCP_UID(g[k]),j=a.getDisplayObjByCP_UID(g[k]);if((l=a.D[l])&&j){var m=
a.isBaseItemInState(j);(j=j.actualParent)&&e.push({frameSetDiv:j,zIndex:l.zIndex,isBaseItem:m})}}}if(0!=e.length){e.sort(d);f=e[e.length-1].zIndex;g=e[0].zIndex;k=!1;for(h=0;h<e.length;h++)if((j=e[h])&&j.frameSetDiv)k&&(j.frameSetDiv.style.zIndex=g),j.isBaseItem&&(j.frameSetDiv.style.zIndex=f,k=!0),g=j.zIndex}}};a.ResetItemZIndicesWithinState=function(c,b){if(c){var d=c.states;if(d)for(var e=0;e<d.length;e++){var f=d[e];if(f&&f.stn==b&&(f=f.stsi))for(var h=0;h<f.length;h++){var g=a.getDisplayObjNameByCP_UID(f[h]),
k=a.getDisplayObjByCP_UID(f[h]);if((g=a.D[g])&&k)if(k=k.actualParent)k.style.zIndex=g.zIndex}}}};a.scaleItem=function(c,b,d){a.applyTransform(c,"scaleX("+b+") scaleY("+d+")")};a.getCorrectBreakpoint=function(c){if(a.responsiveWidths&&!(0>=a.responsiveWidths.length)){var b=a.responsiveWidths.length;if(c<=a.responsiveWidths[0])return a.responsiveWidths[0];if(c>=a.responsiveWidths[a.responsiveWidths.length-1])return a.responsiveWidths[a.responsiveWidths.length-1];for(var d=0;d<=b-1;++d)if(c<=a.responsiveWidths[d])return a.responsiveWidths[d]}};
a.getResponsiveCSS=function(c){if(c&&a.responsiveWidths&&!(0>=a.responsiveWidths.length)){if(a.ResponsiveProjWidth)return c[a.ResponsiveProjWidth];var b=a.responsiveWidths.length,d=window.innerWidth;if(d<=a.responsiveWidths[0])return c[a.responsiveWidths[0]];if(d>=a.responsiveWidths[a.responsiveWidths.length-1])return c[a.responsiveWidths[a.responsiveWidths.length-1]];for(var e=0;e<=b-1;++e)if(d<=a.responsiveWidths[e])return c[a.responsiveWidths[e]]}};a.getMaxWHBpt=function(c,b){var d=a("cpTempElemForMaxWidth_123456"),
e=a("cpTempInnerElemForMaxWidth_123456");d||(d=a.newElem("div"),d.id="cpTempElemForMaxWidth_123456",d.style.display="block",d.style.zIndex="-1",d.tabIndex=-1,document.body.insertBefore(d,document.body.firstChild));d.style.display="block";d.style.position="absolute";d.style.left="0px";d.style.top="0px";d.style.width=b+"px";d.style.height=a.getCurrentSlideResponsiveHeight(b)+"px";e||(e=a.newElem("cpTempInnerElemForMaxWidth_123456"),e.id="cpTempInnerElemForMaxWidth_123456",d.appendChild(e));a.applyResponsiveStyles(e,
c);e={w:e.clientWidth,h:e.clientHeight};d.style.display="none";return e};a.getAccessibilityString=function(c){if(!c||!c.accstr)return"";var b=c.accstr;if(void 0==b)return"";c=c.traccstr;"string"!=typeof b&&(b=b[a.ResponsiveProjWidth]);c&&(b+=" "+c);return b};a.createTempElemAndGetBoundingRect=function(c,b,d){var e=a.newElem("div");b||(b=a("div_Slide"));b.appendChild(e);a.applyResponsiveStyles(e,c,d);c=e.getBoundingClientRect();b.removeChild(e);return c};a.createTempTextElemAndGetBoundingRect=function(c,
b,d){if(""==d||void 0==d)d=b.rpvt[a.ResponsiveProjWidth].vt;b=a("cpTempTextElem_123456");b||(b=a.newElem("div"),b.id="cpTempTextElem_123456",b.style.overflow="hidden",b.style.wordWrap="break-word",b.style.whiteSpace="pre-wrap",b.style.lineHeight="90%",b.style.left="-1999px",b.tabIndex="-1",document.body.insertBefore(b,document.body.firstChild));b.style.width="";b.style.display="block";b.style.width=c+"px";b.setAttribute("aria-hidden","true");b.innerHTML=d;b.offsetHeight=b.offsetHeight;c=b.getBoundingClientRect();
b.innerHTML="";b.style.display="none";return c};a.getExpectedWindowWidthToFitText=function(a,b,d){var e=d;-1!=a.h.indexOf("%")||-1!=a.h.indexOf("px")?e=-1!=a.w.indexOf("%")?Math.floor(100*b/parseFloat(a.w)):window.innerWidth:-1!=a.h.indexOf("H%")?(a=a.h.split("H%")[0],e=Math.floor(100*d/parseFloat(a))):-1!=a.h.indexOf("auto")&&(parseFloat(a.apr),e=-1!=a.w.indexOf("H%")?Math.floor(100*d/parseFloat(a.h)):-1!=a.w.indexOf("%")?Math.floor(100*b/parseFloat(a.w)):window.innerWidth);return e};a.getInterpolatedFontSize=
function(a,b,d){return window.innerWidth>a.winW?b:b*d/a.expw};a.applyResponsiveStylesWRTItem=function(c,b,d){if(b)for(var e=a.rCSSProps.length,f=0;f<e;++f){var h=a.rCPProps[f],g=b[h];if(g){"h"==h?-1!=g.indexOf("auto")?(g=b.w,g=-1!=g.indexOf("%")?parseFloat(g)*d.clientWidth/100:parseFloat(g),g=a.getRoundedValue(g/parseFloat(b.apr))+"px"):-1!=g.indexOf("H%")?(g=g.split("H%")[0],g=a.getRoundedValue(g*d.clientWidth/100)+"px"):-1!=g.indexOf("%")&&(g=g.split("%")[0],g=a.getRoundedValue(g*d.clientHeight/
100)+"px"):"w"==h&&(-1!=g.indexOf("auto")?(g=b.h,g=-1!=g.indexOf("%")?parseFloat(g)*d.clientHeight/100:parseFloat(g),g=a.getRoundedValue(g*parseFloat(b.apr))+"px"):-1!=g.indexOf("H%")?(g=g.split("H%")[0],g=a.getRoundedValue(g*d.clientHeight/100)+"px"):-1!=g.indexOf("%")&&(g=g.split("%")[0],g=a.getRoundedValue(g*d.clientWidth/100)+"px"));var k=d.getBoundingClientRect(),l=a.movie.stage.mainSlideDiv.getBoundingClientRect();if("auto"!=g){if("t"==h||"b"==h)-1!=g.indexOf("H%")?(g=g.split("H%")[0],g=a.getRoundedValue(g*
d.clientWidth/100)):-1!=g.indexOf("%")?(g=g.split("%")[0],g=a.getRoundedValue(g*d.clientHeight/100)):g=parseFloat(g);if("l"==h||"r"==h)-1!=g.indexOf("H%")?(g=g.split("H%")[0],g=a.getRoundedValue(g*d.clientHeight/100)):-1!=g.indexOf("%")?(g=g.split("%")[0],g=a.getRoundedValue(g*d.clientWidth/100)):g=parseFloat(g);"l"==h&&(g=g+k.left+"px");"r"==h&&(g=g+l.right-k.right+"px");"t"==h&&(g=g+k.top+"px");"b"==h&&(g=g+l.bottom-k.bottom+"px")}b.rpmm&&("width"==a.rCSSProps[f]?(k=b.rpmm.mw,l=b.rpmm.Mw,h=g,-1!=
k.indexOf("%")&&(k=parseFloat(k)*d.clientWidth/100),-1!=l.indexOf("%")&&(l=parseFloat(l)*d.clientWidth/100),-1!=h.indexOf("%")&&(h=parseFloat(h)*d.clientWidth/100),k=parseFloat(k),l=parseFloat(l),h=parseFloat(h),!isNaN(k)&&h<k?g=-1!=g.indexOf("%")?100*k/d.clientWidth+"%":k+"px":!isNaN(l)&&h>l&&(g=-1!=g.indexOf("%")?100*l/d.clientWidth+"%":l+"px")):"height"==a.rCSSProps[f]&&(k=b.rpmm.mh,l=b.rpmm.Mh,h=g,-1!=k.indexOf("%")&&(k=parseFloat(k)*d.clientHeight/100),-1!=l.indexOf("%")&&(l=parseFloat(l)*d.clientHeight/
100),-1!=h.indexOf("%")&&(h=parseFloat(h)*d.clientHeight/100),k=parseFloat(k),l=parseFloat(l),h=parseFloat(h),!isNaN(k)&&h<k?g=-1!=g.indexOf("%")?100*k/d.clientHeight+"%":k+"px":!isNaN(l)&&h>l&&(g=-1!=g.indexOf("%")?100*l/d.clientHeight+"%":l+"px")));c.style[a.rCSSProps[f]]=g}}};a.resetStyles=function(c){if(c)for(var b=a.rCSSProps.length,d=0;d<b;++d)c.style[a.rCSSProps[d]]=""};a.getMinMaxHeight=function(c){if(a.responsive){var b={},d=a("project").clientHeight;c.sh&&(d=parseFloat(c.sh));var e=c.rpmm.mh,
c=c.rpmm.Mh;-1!=e.indexOf("%")&&(e=parseFloat(e)*d/100);-1!=c.indexOf("%")&&(c=parseFloat(c)*d/100);b.minH=parseFloat(e);b.maxH=parseFloat(c);return b}};a.applyResponsiveStyles=function(c,b,d,e,f){if(b){b.ipiv||(b.w="0.000%",b.h="0.000%",b.rpmm={mw:"0px",mh:"0px",Mw:"",Mh:""});var h=a.rCSSProps.length,g=!1,e=g?a.RespDefaultBptW:a("project").clientWidth,k=g?a.RespDefaultBptH:a("project").clientHeight;b.sh&&(k=parseFloat(b.sh),g=!0);var l=a("div_Slide").getBoundingClientRect(),j=b.cah,m=b.cav,n=!1,
o=!1,p=void 0,s=void 0;if(d&&(b.lhID||b.lvID))p=a.getDisplayObjByCP_UID(b.lhID),s=b.lhID==b.lvID?p:a.getDisplayObjByCP_UID(b.lvID),p&&(n=p.isStarted&&p.isDrawnComplete),s&&(o=s.isStarted&&s.isDrawnComplete);for(d=0;d<h;++d){c.style[a.rCSSProps[d]]="";var u=a.rCPProps[d],q=b[u];if(q){f||("h"==u?-1!=q.indexOf("auto")?(q=b.w,q=-1!=q.indexOf("H%")?parseFloat(q)*k/100:-1!=q.indexOf("%")?parseFloat(q)*e/100:parseFloat(q),q=a.getRoundedValue(q/parseFloat(b.apr))+"px"):-1!=q.indexOf("H%")?(q=q.split("H%")[0],
q=a.getRoundedValue(q*e/100)+"px"):g&&-1!=q.indexOf("%")&&(q=q.split("%")[0],q=a.getRoundedValue(q*k/100)+"px"):"w"==u&&(-1!=q.indexOf("auto")?(q=b.h,q=-1!=q.indexOf("%")?parseFloat(q)*k/100:parseFloat(q),q=a.getRoundedValue(q*parseFloat(b.apr))+"px"):-1!=q.indexOf("H%")?(q=q.split("H%")[0],q=a.getRoundedValue(q*k/100)+"px"):g&&-1!=q.indexOf("%")&&(q=q.split("%")[0],q=a.getRoundedValue(q*e/100)+"px")));if(!j&&("l"==u||"r"==u))if(-1!=q.indexOf("H%")?(q=q.split("H%")[0],q=a.getRoundedValue(q*k/100)+
"px"):g&&-1!=q.indexOf("%")&&(q=q.split("%")[0],q=a.getRoundedValue(q*e/100)+"px"),"auto"!=q&&n&&-1!=b.lhID){var r=p.actualParent;if(r){var w=r.getBoundingClientRect();if(r.tr){var z=p.actualParent.style.transform||p.actualParent.style.msTransform||p.actualParent.style.MozTransform||p.actualParent.style.WebkitTransform||p.actualParent.style.OTransform;a.applyTransform(p.actualParent,"");p.actualParent.offsetHeight=p.actualParent.offsetHeight;w=r.getBoundingClientRect();a.applyTransform(p.actualParent,
z)}w&&(q=b.lhV,-1!=q.indexOf("H%")?(q=q.split("H%")[0],q=a.getRoundedValue(q*k/100)+"px"):-1!=q.indexOf("%")&&(q=q.split("%")[0],q=a.getRoundedValue(q*e/100)+"px"),w=w[a.rLinkEdges[b.lhEID]],w="r"==u?l.right-w:w-l.left,q=w+parseFloat(q)+"px")}}if(!m&&("t"==u||"b"==u))if(-1!=q.indexOf("H%")?(q=q.split("H%")[0],q=a.getRoundedValue(q*e/100)+"px"):g&&-1!=q.indexOf("%")&&(q=q.split("%")[0],q=a.getRoundedValue(q*k/100)+"px"),"auto"!=q&&o&&-1!=b.lvID)if(r=s.actualParent)if(w=r.getBoundingClientRect(),r.tr&&
(z=s.actualParent.style.transform||s.actualParent.style.msTransform||s.actualParent.style.MozTransform||s.actualParent.style.WebkitTransform||s.actualParent.style.OTransform,a.applyTransform(s.actualParent,""),s.actualParent.offsetHeight=s.actualParent.offsetHeight,w=r.getBoundingClientRect(),a.applyTransform(s.actualParent,z)),w)q=b.lvV,-1!=q.indexOf("H%")?(q=q.split("H%")[0],q=a.getRoundedValue(q*e/100)+"px"):-1!=q.indexOf("%")&&(q=q.split("%")[0],q=a.getRoundedValue(q*k/100)+"px"),w=w[a.rLinkEdges[b.lvEID]],
w="b"==u?l.bottom-w:w-l.top,q=w+parseFloat(q)+"px";b.rpmm&&("width"==a.rCSSProps[d]?(w=b.rpmm.mw,r=b.rpmm.Mw,u=q,-1!=w.indexOf("%")&&(w=parseFloat(w)*e/100),-1!=r.indexOf("%")&&(r=parseFloat(r)*e/100),-1!=u.indexOf("%")&&(u=parseFloat(u)*e/100),w=parseFloat(w),r=parseFloat(r),u=parseFloat(u),!isNaN(w)&&u<w?q=-1!=q.indexOf("%")?100*w/e+"%":w+"px":!isNaN(r)&&u>r&&(q=-1!=q.indexOf("%")?100*r/e+"%":r+"px")):"height"==a.rCSSProps[d]&&(w=b.rpmm.mh,r=b.rpmm.Mh,u=q,-1!=w.indexOf("%")&&(w=parseFloat(w)*k/
100),-1!=r.indexOf("%")&&(r=parseFloat(r)*k/100),-1!=u.indexOf("%")&&(u=parseFloat(u)*k/100),w=parseFloat(w),r=parseFloat(r),u=parseFloat(u),!isNaN(w)&&u<w?q=-1!=q.indexOf("%")?100*w/k+"%":w+"px":!isNaN(r)&&u>r&&(q=-1!=q.indexOf("%")?100*r/k+"%":r+"px")));c.style[a.rCSSProps[d]]=q}}j&&(b=c.getBoundingClientRect(),c.style.right="auto",c.style.left=(e-b.width)/2+"px");m&&(b=c.getBoundingClientRect(),c.style.bottom="auto",c.style.top=(k-b.height)/2+"px")}};a.createResponsiveStyleObj=function(c,b,d,e,
f,h,g,k,l){for(var j={},m=0;m<arguments.length;++m)c?c[a.rCPProps[m]]&&(j[a.rCPProps[m]]=arguments[m+1]):j[a.rCPProps[m]]=arguments[m+1];for(var m=a.rCPLinkProps.length,n=0;n<m;++n)c&&c[a.rCPLinkProps[n]]&&(j[a.rCPLinkProps[n]]=c[a.rCPLinkProps[n]]);c&&(j.ipiv=c.ipiv);return j};a.getCenterForRotation=function(c){var b={x:0,y:0};if(!c)return 0;var d=a("div_Slide").getBoundingClientRect(),c=c.getBoundingClientRect(),e=c.top-d.top+c.height/2;b.X=c.left-d.left+c.width/2;b.Y=e;return b};a.RotatePoint=
function(a,b,d,e,f){var f=f*Math.PI/180,a=a-d,h=b-e,b=Math.atan2(h,a),a=Math.sqrt(a*a+h*h),b=b+f,f=Math.cos(b)*a,a=Math.sin(b)*a;return{x:f+d,y:a+e}};a.getBoundsForRotatedItem=function(c,b,d,e,f){var h={};if(void 0==e)return h;var e=Math.PI*-e/180,g=-c/2,k=c/2,l=c/2,c=-c/2,j=-b/2,m=-b/2,n=b/2,o=b/2,b=g*Math.cos(e)+j*Math.sin(e),g=-g*Math.sin(e)+j*Math.cos(e),j=k*Math.cos(e)+m*Math.sin(e),k=-k*Math.sin(e)+m*Math.cos(e),m=l*Math.cos(e)+n*Math.sin(e),l=-l*Math.sin(e)+n*Math.cos(e),n=c*Math.cos(e)+o*
Math.sin(e),e=-c*Math.sin(e)+o*Math.cos(e),c=Math.min(b,j,m,n),o=Math.max(b,j,m,n),b=Math.min(g,k,l,e);y_max=Math.max(g,k,l,e);f||(f=0);e=Math.round(100*(o-c+2*f))/100;f=Math.round(100*(y_max-b+2*f))/100;b=a("div_Slide").getBoundingClientRect();h.l=Math.round(100*(d.X-e/2))/100+"px";h.r=b.width-Math.round(100*(d.X+e/2))/100+"px";h.t=Math.round(100*(d.Y-f/2))/100+"px";h.b=b.height-Math.round(100*(d.Y+f/2))/100+"px";h.w=e+"px";h.h=f+"px";return h};a.getBoundsForRotatedItem1=function(c,b,d,e,f,h,g){var k=
{};if(void 0==h)return k;var l={x:c,y:b},j={x:c+d,y:b},d={x:c+d,y:b+e},e={x:c,y:b+e},l=a.RotatePoint(l.x,l.y,f.X,f.Y,h),j=a.RotatePoint(j.x,j.y,f.X,f.Y,h),d=a.RotatePoint(d.x,d.y,f.X,f.Y,h),e=a.RotatePoint(e.x,e.y,f.X,f.Y,h),f=a("div_Slide").getBoundingClientRect(),h=Math.min(l.x,j.x,d.x,e.x),c=Math.max(l.x,j.x,d.x,e.x),b=Math.min(l.y,j.y,d.y,e.y);y_max=Math.max(l.y,j.y,d.y,e.y);g||(g=0);d=Math.round(100*(c-h+2*g))/100;e=Math.round(100*(y_max-b+2*g))/100;k.l=h+"px";k.r=f.width-c+"px";k.t=b+"px";k.b=
f.height-y_max+"px";k.w=d+"px";k.h=e+"px";return k};a.isCaptionItem=function(c){return c==a.kCPOTCaptionItem||c==a.kCPOTSuccessCaptionItem||c==a.kCPOTFailureCaptionItem||c==a.kCPRolloverCaptionItem||c==a.kCPOTStageCorrectFeedback||c==a.kCPOTStageIncorrectFeedback||c==a.kCPOTStagePartialCorrectFeedback||c==a.kCPOTTimeoutFeedbackItem||c==a.kCPOTRetryFeedbackItem||c==a.kCPOTHintCaptionItem};a.isSupportedWebkitBasedBrowser=function(){var c=0,b=/( AppleWebKit\/)([^ ]+)/.exec(navigator.userAgent);if(!b||
3>b.length)return!1;var d=b[2],e=/[^\\.0-9]/.exec(d);e&&(d=d.slice(0,e.index));b&&(c=parseFloat(d));a.verbose&&a.log("Webkit version : "+c);return 534<=c};a.canUseWebkitAnimations=function(){var c=a.isSupportedWebkitBasedBrowser();return!c?!1:c&&a.device==a.IDEVICE};a.getIsBrowserSupported=function(){var c=!1;a.browser==a.MSIE&&a.browserVersion>=a.MSIE_MIN_SUPPORTED_VERSION?c=!0:a.browser==a.CHROME&&a.browserVersion>=a.CHROME_MIN_SUPPORTED_VERSION?c=!0:a.browser==a.SAFARI&&a.browserVersion>=a.SAFARI_MIN_SUPPORTED_VERSION?
c=!0:a.browser==a.FIREFOX&&a.browserVersion>=a.FF_MIN_SUPPORTED_VERSION&&(c=!0);return c};a.ShowWarning=function(c,b,d,e){var f=a.D.rtDialog,h=f.rtbgfc,g=f.rtbgsc,k=f.rtbtnfc,l=f.rtbtnsc,j=f.rtsc,m=f.rttc,n=f.rttsc,o=f.rtfn,p=f.rtokb,f=f.rtcb,s=1;e&&++s;e=new a.RuntimeMessageBox(document.getElementById("cpDocument"),s,h,g,k,l,j,m,n,o);e.setTitleText(b);e.setMessageText(c);e.setFirstButtonText(p);e.registerFirstButtonHandler(e.hide);e.setSecondButtonText(f);d||e.show();return e};a.alert=function(c,
b){b||(b="Adobe Captivate");c||(c="");a.ShowWarning(c,b)};window.alert=a.alert;a.modifyAlternativeAccessibleText=function(c,b){if(""!=b&&c&&"undefined"!=c)if(a.SAFARI===a.browser)c.setAttribute("aria-label",b);else{if(0===a.D.pref.acc||""===b)b=" ";var d=c.firstChild;if(d){if("DIV"!==d.tagName||"cp-accessibility"!=d.className)d=d.nextSibling;if(d&&(d=d.firstChild))d.innerHTML=b}}};a.removeAccessibilityOutline=function(c){if(c){switch(a.browser){case a.CHROME:case a.SAFARI:case a.FIREFOX:c.style.outlineStyle=
"none"}switch(a.device){case a.IDEVICE:case a.ANDROID:c.style.outlineStyle="none"}}};a.complete=function(){if(a.initiated&&(!a.loadedModules.playbar||a.PB.playbarCreated))if(!a.loadedModules.toc||a.toc.tocCreated)if(!a.loadedModules.border||a.borderCreated){var c=a("initialLoading");c&&c.parentElement.removeChild(c);a.unblockFromLMS();a.passwordAccepted&&!a.completed&&(a.completed=!0,a.responsive&&a.adjustResponsiveItems(a.ReasonForDrawing.kRegularDraw),a.fireModuleReadyEvent(a.currentWindow),a.device==
a.DESKTOP&&a.D.project_main.autoplay&&(a.currentWindow.cpAPIInterface&&a.currentWindow.cpAPIInterface.canPlay())&&a.movie.play())}};a.newElem=function(c){c=document.createElement(c);a.shouldScale&&a.fixWebkitScaling(c);return c};a.fixWebkitScaling=function(c){if(a.shouldScale&&c&&c.style){var b=c.style.WebkitTransform;b&&-1!=b.toString().indexOf("translate3d")||(c.style.WebkitTransform+="translate3d(0px, 0px, 0px)")}};a.addDCHDiv=function(c,b){var d=document.createElement("div");d.style.width=c.style.width;
d.style.height=c.style.height;d.style.display="block";d.style.position="absolute";d.style.left="0px";d.style.top="0px";d.style.backgroundColor="#ffffff";d.style.opacity=0;a.registerGestureEvent(d,a.GESTURE_EVENT_TYPES.TAP,b);c.appendChild(d);return d};a.clearCanvasProperly=function(a){a.element.width=a.element.width};a.cloneObject=function(c){if(null==c||"object"!=typeof c)return c;var b=c.constructor(),d;for(d in c)c.hasOwnProperty(d)&&(b[d]=a.cloneObject(c[d]));return b};a.showHint=function(c,b){a.disableInteractions||
(b.hintFeedback=new a.Feedback(c,null,!1,a.FeedbackType.HINT),b.hintFeedback.onRollover())};a.hideHint=function(c,b){if(!a.disableInteractions&&b&&b.hintFeedback)b.hintFeedback.onRollout()};a.addRewrapObjectAsPerRestOfProjectItem=function(c){if(c){var b=a.movie.stage.getSlideDiv().firstChild;if(b){var d=a.movie.stage.m_lowestRewrapElementThatIsRestOfProjectAndOnTop;d?b.insertBefore(c,d):b.appendChild(c)}}};a.addDivObjectAsPerRestOfProjectItem=function(c){if(c){var b=a.movie.stage.getSlideDiv();if(b){var d=
a.movie.stage.m_lowestElementThatIsRestOfProjectAndOnTop;d?b.insertBefore(c,d):b.appendChild(c)}}};a.moveRewrapElemToTop=function(c){c&&(c.parentNode.removeChild(c),a.addRewrapObjectAsPerRestOfProjectItem(c))};a.moveDivElemToTop=function(c){c&&(c.parentNode.removeChild(c),a.addDivObjectAsPerRestOfProjectItem(c))};a.redrawItem=function(c,b){void 0===b&&(b=!1);var d=a(c);if(d&&!a("dummyStyle")){var e=d.style.display,f;f=!1==b?document.createElement("style"):document.createTextNode("");f.id="dummyStyle";
document.body.appendChild(f);setTimeout(function(){document.body.removeChild(f);d.style.display=e},50)}};a.g_clickTimer=0;a.isClickTimerRunning=function(){return 0!=a.g_clickTimer};a.startClickTimer=function(c,b){a.isClickTimerRunning()||(a.g_clickTimer=setInterval(b,c))};a.stopClickTimer=function(){a.isClickTimerRunning()&&(clearInterval(a.g_clickTimer),a.g_clickTimer=0)};a.getGradientSvgStr=function(a,b,d,e,f){var h="";if(!a.cs||2>a.cs.length)return"";if(0==a.t){if(h="linearGradient",void 0==a.x1||
void 0==a.x2||void 0==a.y1||void 0==a.y2)return""}else if(1==a.t){if(h="radialGradient",void 0==a.cx||void 0==a.cy||void 0==a.r)return""}else return"";if(void 0==e||0==e)e=1;if(void 0==f||0==f)f=1;var g="<"+h+' id="grad1" gradientUnits="userSpaceOnUse"';0==a.t?g+=' x1="'+a.x1*e+'" y1="'+a.y1*f+'" x2="'+a.x2*e+'" y2="'+a.y2*f+'"':(g+=' cx="'+a.cx*e+'" cy="'+a.cy*f+'" r="'+a.r*e+'"',void 0!=a.tf&&(void 0!=a.tf.x&&void 0!=a.tf.y)&&(g+=' gradientTransform="translate('+a.tf.x*e+" "+a.tf.y*f+')"'));var k=
"pad";void 0!=a.s&&(1==a.s?k="reflect":2==a.s&&(k="repeat"));for(var l="",j=0;j<a.cs.length;++j)var m=a.cs[j],l=l+('<stop offset="'+m.p+'%" style="stop-color:'+m.c+";stop-opacity:"+m.o+'" />');return'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="'+b*e+'" height="'+d*f+'"><defs>'+(g+(' spreadMethod="'+k+'">'))+l+"</"+h+"></defs>"+('<rect x="0" y="0" width="'+b*e+'" height="'+d*f+'" fill="url(#grad1)"/>')+"</svg>"};a.getGradientFill=function(c,b,d,e){if(!b||!c.cs||2>c.cs.length)return null;
void 0==d&&(d=1);void 0==e&&(e=1);var f=null;if(0==c.t){if(void 0==c.x1||void 0==c.x2||void 0==c.y1||void 0==c.y2)return null;f=b.createLinearGradient(c.x1*d,c.y1*e,c.x2*d,c.y2*e)}else if(1==c.t){if(void 0==c.cx||void 0==c.cy||void 0==c.r)return null;var f=c.cx,h=c.cy;void 0!=c.tf&&(void 0!=c.tf.x&&void 0!=c.tf.y)&&(f+=c.tf.x,h+=c.tf.y);f=b.createRadialGradient(f*d,h*e,0,f*d,h*e,c.r*d)}else return null;for(b=0;b<c.cs.length;++b)d=c.cs[b],e=a.getRGBA(d.c,d.o),f.addColorStop(d.p/100,e);return f};a.drawLineCapStyle=
function(c,b,d,e,f,h,g,k,l){if(0!=Math.sqrt((e-b)*(e-b)+(f-d)*(f-d)))switch(k){case 1:a.drawSquareCap(c,b,d,e,f,h,g,l);break;case 2:a.drawRoundCap(c,b,d,e,f,h,g,l);break;case 3:a.drawDiamondCap(c,b,d,e,f,h,g,l);break;case 4:a.drawArrowCap(c,b,d,e,f,h,g,l)}};a.drawRoundCap=function(a,b,d,e,f,h,g,k){var l=0,j=0,m=0,l=0,l=Math.sin(0.349),m=(4+g/(2*l))/2;0==k?(l=b,j=d):(l=e,j=f);a.save();a.beginPath();a.arc(l,j,m,0,2*Math.PI,!1);a.closePath();a.fillStyle=h;a.fill();a.restore()};a.drawSquareCap=function(a,
b,d,e,f,h,g,k){var l=0,j=0,m=0,n=0,o=n=0,p=0,s=l=0,j=0,j=Math.sin(0.349),l=(4+g/(2*j))/2;0==k?(j=b,m=d):(j=e,m=f);n=e-b;0==n?(n=0,p=o=l,l=0):(s=(f-d)/n,0!=s?(n=Math.sqrt(l*l/(s*s+1)),o=s*n,s=-1/s,p=Math.sqrt(l*l/(s*s+1)),l=s*p):(n=l,p=o=0));a.save();a.beginPath();a.moveTo(j-n-p,m-o-l);a.lineTo(j+n-p,m+o-l);a.lineTo(j+n+p,m+o+l);a.lineTo(j-n+p,m-o+l);a.lineTo(j-n-p,m-o-l);a.closePath();a.fillStyle=h;a.fill();a.restore()};a.drawDiamondCap=function(a,b,d,e,f,h,g,k){var l=0,j=0,m=0,n=0,o=n=0,p=0,s=l=
0,j=0,j=Math.sin(0.349),l=(4+g/(2*j))/2;0==k?(j=b,m=d):(j=e,m=f);n=e-b;0==n?(n=0,p=o=l,l=0):(s=(f-d)/n,0!=s?(n=Math.sqrt(l*l/(s*s+1)),o=s*n,s=-1/s,p=Math.sqrt(l*l/(s*s+1)),l=s*p):(n=l,p=o=0));a.save();a.beginPath();a.moveTo(j-n,m-o);a.lineTo(j-p,m-l);a.lineTo(j+n,m+o);a.lineTo(j+p,m+l);a.lineTo(j-n,m-o);a.closePath();a.fillStyle=h;a.fill();a.restore()};a.drawArrowCap=function(a,b,d,e,f,h,g,k){var l=0,j=0,m=0,n=0,o=l=n=0,p=0,s=0,u=0,q=p=u=s=0,n=0,n=Math.sqrt((e-b)*(e-b)+(f-d)*(f-d));if(0!=n){s=(e-
b)/n;u=(f-d)/n;p=Math.cos(0.349);q=Math.sin(0.349);l=1;1<g&&(l=Math.sqrt(g));var n=g/(2*q),j=6*l+n,m=4+n,n=j*(s*p-u*q),l=j*(u*p+s*q),o=j*(s*p+u*q),p=j*(u*p-s*q),s=m*s,u=m*u,r=j=q=m=g=0,w=0;0==k?(g=b-s,m=d-u,q=b+n-s,j=d+l-u,r=b+o-s,w=d+p-u):(g=e+s,m=f+u,q=e-n+s,j=f-l+u,r=e-o+s,w=f-p+u);a.save();a.beginPath();a.moveTo(g,m);a.lineTo(q,j);a.lineTo(r,w);a.lineTo(g,m);a.closePath();a.fillStyle=h;a.fill();a.restore()}};a.getPattern=function(a,b,d){var e=[];switch(a){case 1:e[0]=d*b;e[1]=b;break;case 2:e[0]=
b;e[1]=b;break;case 3:e[0]=d*b;e[1]=b;e[2]=b;e[3]=b;break;case 4:e[0]=d*b;e[1]=b;e[2]=b;e[3]=b;e[4]=b;e[5]=b;break;default:e[0]=1E4*b,e[1]=0}return e};a.dashStruct=function(){this.m_drawingDash=!0;this.m_offset=this.m_patternIndex=0};a.drawDashedLineImpl=function(a,b,d,e,f,h,g){var h=h-e,g=g-f,k=Math.sqrt(h*h+g*g),l=0,j=0,m=0,n=0,o=0;if(0!=k){h/=k;g/=k;l=k;j=-d.m_offset;k=d.m_drawingDash;for(m=d.m_patternIndex;j<l;)j+=b[m],j>=l&&(d.m_offset=b[m]-(j-l),d.m_patternIndex=m,d.m_drawingDash=k,j=l),n=e+
j*h,o=f+j*g,k?a.lineTo(n,o):a.moveTo(n,o),k=!k,m=(m+1)%b.length}};a.drawDashedLine=function(c,b,d,e,f,h){var h=a.getPattern(h,7,3),g=new a.dashStruct;a.drawDashedLineImpl(c,h,g,b,d,e,f)};a.drawDashedCurve=function(a,b,d,e,f,h,g,k,l,j,m,n){var o=j=0,p=m=0,s=p=0,u=0,q=-d.m_offset,r=d.m_drawingDash,w=d.m_patternIndex,z=u=0,v=0,D=s=0,A=o=0,F=0;if(0>n){n=0;j=e;o=f;for(u=1;100>u;++u)p=u/100,s=1-p,m=s*s*j+2*p*s*h+p*p*k,p=s*s*o+2*p*s*g+p*p*l,n+=Math.sqrt((m-j)*(m-j)+(p-o)*(p-o)),j=m,o=p;if(0>n||0==n)return}Math.sqrt((h-
e)*(h-e)+(g-f)*(g-f));m=e;p=f;j=h;for(o=g;q<n;)q+=b[w],q>=n&&(d.m_offset=b[w]-(q-n),d.m_patternIndex=w,d.m_drawingDash=r,q=n),A=m,F=p,u=p-o,z=j-m,v=m*o-p*j,p=q/n,1<p&&(p=1),s=1-p,j=s*e+p*h,o=s*f+p*g,m=s*s*e+2*p*s*h+p*p*k,p=s*s*f+2*p*s*g+p*p*l,s=p-o,D=j-m,o=m*o-p*j,0!=D*u-z*s?(j=(z*o-D*v)/(D*u-z*s),o=(u*o-s*v)/(z*s-D*u)):(j=A,o=F),r?a.quadraticCurveTo(j,o,m,p):a.moveTo(m,p),r=!r,w=(w+1)%b.length};a.drawDashedOval=function(c,b,d,e,f,h){var g=0,k=0,l=0,j=0,m=0,n=m=0,o=0,p=0,s=0,u=0,q=0,r=new a.dashStruct,
h=a.getPattern(h,7,3);0>f&&(f=e);g=Math.PI/4;k=e/Math.cos(g/2);l=f/Math.cos(g/2);c.beginPath();j=0;c.moveTo(b+e,d);s=b+e;u=d;for(q=0;8>q;++q)j+=g,m=j-g/2,o=b+Math.cos(m)*k,p=d+Math.sin(m)*l,m=b+Math.cos(j)*e,n=d+Math.sin(j)*f,a.drawDashedCurve(c,h,r,s,u,o,p,m,n,e,f,-1),s=m,u=n;c.closePath()};a.drawDashedArc=function(c,b,d,e,f,h,g,k,l){var j=0,m=0,n=0,o=0,p=0,s=p=0,u=0,q=0,r=e-h,w=f,z=0;0>g&&(g=h);j=Math.PI/4;m=h/Math.cos(j/2);n=g/Math.cos(j/2);o=0;c.moveTo(e-h,f);for(z=0;16>z;++z)if(o+=j,p=o-j/2,
u=e+Math.cos(p)*m,q=f+Math.sin(p)*n,p=e+Math.cos(o)*h,s=f+Math.sin(o)*g,o>k&&o<=l)a.drawDashedCurve(c,b,d,r,w,u,q,p,s,h,g,Math.PI*h/4),r=p,w=s;else if(o<=k)r=p,w=s,c.moveTo(r,w);else if(o>l)break};a.drawDashedRectangle=function(c,b,d,e,f,h,g){var k=new a.dashStruct,g=a.getPattern(g,7,3);0>=h&&(h=0);c.beginPath();c.moveTo(b,d+f-h);a.drawDashedLineImpl(c,g,k,b,d+f-h,b,d+h);0<h&&a.drawDashedArc(c,g,k,b+h,d+h,h,h,Math.PI,3*Math.PI/2);a.drawDashedLineImpl(c,g,k,b+h,d,b+e-h,d);0<h&&a.drawDashedArc(c,g,
k,b+e-h,d+h,h,h,3*Math.PI/2,2*Math.PI);a.drawDashedLineImpl(c,g,k,b+e,d+h,b+e,d+f-h);0<h&&a.drawDashedArc(c,g,k,b+e-h,d+f-h,h,h,2*Math.PI,5*Math.PI/2);a.drawDashedLineImpl(c,g,k,b+e-h,d+f,b+h,d+f);0<h&&a.drawDashedArc(c,g,k,b+h,d+f-h,h,h,Math.PI/2,Math.PI);c.closePath()};a.drawDashedPolyLine=function(c,b,d,e,f){var h=new a.dashStruct,d=a.getPattern(d,7,3),g=0,k=0,l=0,j=0,m=0;if(0!=b.length){g=b[0].x;k=b[0].y;c.beginPath();c.moveTo(g,k);for(m=1;m<b.length;++m)l=b[m].x,j=b[m].y,a.drawDashedLineImpl(c,
d,h,g*e,k*f,l*e,j*f),g=l,k=j;l=b[0].x;j=b[0].y;a.drawDashedLineImpl(c,d,h,g*e,k*f,l*e,j*f);c.closePath()}};a.moveTo=function(a,b,d){a.moveTo(b,d)};a.lineTo=function(a,b,d){a.lineTo(b,d)};a.bezierCurveTo=function(a,b,d,e,f,h,g){a.bezierCurveTo(b,d,e,f,h,g)};a.getBezierLength=function(a,b,d,e,f,h,g,k,l){for(var j=0,m=0,n=0,o=0,p=0,m=0,s=a,u=b,j=1;j<l;++j)m=j/l,n=1-m,p=n*n*n*a+3*m*n*n*d+3*m*m*n*f+m*m*m*g,m=n*n*n*b+3*m*n*n*e+3*m*m*n*h+m*m*m*k,o+=Math.sqrt((p-s)*(p-s)+(m-u)*(m-u)),s=p,u=m;return o};a.getCPSlideData=
function(){var c=[],b=a.movie.stage.slides.length;for(i=0;i<b;++i){var d=a.D[a.movie.stage.slides[i]],e={};e.slideNumber=i+1;e.title=d.lb;e.idealTime=(d.to-d.from+1)/cpInfoFPS;e.isQuestionSlide=!1;if(a.movie.playbackController&&(d=a.movie.playbackController.GetQuizController()))d=d.GetSlideType(i),e.isQuestionSlide="Question"==d?!0:!1;e.isEndSlide=!1;c[i]=e}e.isEndSlide=!0;return c};a.doesCourseHasQuiz=function(){return!a.movie.playbackController?!1:a.movie.playbackController.HasQuiz()};a.drawDashedBezierCurve=
function(c,b,d,e,f,h,g,k,l,j,m){var n=0,o=0,p=0,s=0,u=n=0,q=3,u=-d.m_offset,r=d.m_drawingDash,w=d.m_patternIndex,z=0,v=0,D=0,s=0,A=!1,p=a.getBezierLength(e,f,h,g,k,l,j,m,100);if(!(0>=p))for(;u<p;){D=u;z=b[w];if(u+z>=p){if(d.m_offset=b[w]-(u+z-p),d.m_patternIndex=w,d.m_drawingDash=r,z=p-u,z>p&&(z=p),A=!0,!r){c.moveTo(j,m);break}}else{if(0>u){for(s=u;0>s;)s+=z;z=s;u=0}d.m_offset=0;d.m_patternIndex=0;d.m_drawingDash=!0}0>D&&(D=0);if(r&&0<z){z>p&&(z=p);q=3<z?3:z;v=z;do D=v>q?D+q:D+v,n=D/p,o=1-n,1<=n?
(s=j,n=m):(s=o*o*o*e+3*n*o*o*h+3*n*n*o*k+n*n*n*j,n=o*o*o*f+3*n*o*o*g+3*n*n*o*l+n*n*n*m),c.lineTo(s,n),v-=q;while(0<v);if(A)break}else n=(u+z)/p,o=1-n,1<=n?(s=j,n=m):(s=o*o*o*e+3*n*o*o*h+3*n*n*o*k+n*n*n*j,n=o*o*o*f+3*n*o*o*g+3*n*n*o*l+n*n*n*m),c.moveTo(s,n);r=!r;w=(w+1)%b.length;0>u&&(u=0);u+=z}};a.handleQuizzingItemsInReviewMode=function(c,b,d){if(a.movie.playbackController){var e=a.movie.playbackController.GetQuizController();if(e){var f=b.iqb,e=e.GetIsInReviewMode();if(f)switch(b.qbt){case "submit":case "submitAll":case "clear":case "skip":case "back":if(!0==
e){b=a.movie.stage.currentSlide;if("Question Slide"==b.st){if((b=a.getQuestionObject(b.qs))&&b.getIsKnowledgeCheck())break;a.hide(d)}c.tabIndex=-1}break;case "reviewModeNext":case "reviewModeBack":!1==e?(a.hide(d),c.tabIndex=-1):a.show(d);break;case "postResult":if(b=a.movie.playbackController.GetLMSType(),!a.movie.playbackController.CanPostResults()||b&&"INTERNALSERVER"==b.toUpperCase())a.hide(d),c.tabIndex=-1}}}};a.createCanvas=function(c,b,d,e,f,h,g){f||(f=a.newElem("canvas"));f.width=d;f.height=
e;f.style.width=void 0==h?d+"px":h;f.style.height=void 0==g?e+"px":g;f.left=c;f.top=b;f.style.left=c+"px";f.style.top=b+"px";return new a.Canvas(f)};a.createResponsiveCanvas=function(c,b,d,e,f){e||(e=a.newElem("canvas"));c.ipiv?(e.width=b,e.height=d):(e.width=0,e.height=0);a.applyResponsiveStyles(e,c,f,!0);return new a.Canvas(e)};a.preventEventDefault=function(a){a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)};a.getHitTestingRect=function(c){var b={minX:0,minY:0,maxX:0,maxY:0};if(!c)return b;
var d=c.getBoundingClientRect(),c=a.getScaledPosition(d.left,d.top),d=a.getScaledPosition(d.right,d.bottom);b.minX=c.X;b.minY=c.Y;b.maxX=d.X;b.maxY=d.Y;b.width=b.maxX-b.minX;b.height=b.maxY-b.minY;return b};a.IsPointWithElem=function(a,b,d,e,f,h,g){var k=0,l=0,j=0;a.rotateAngle&&(k=a.rotateAngle);a=b-(e+h)/2;d-=(f+g)/2;l=a*Math.cos(Math.PI*-k/180)-d*Math.sin(Math.PI*-k/180);j=a*Math.sin(Math.PI*-k/180)+d*Math.cos(Math.PI*-k/180);l+=(e+h)/2;j+=(f+g)/2;return l>=e&&l<=h&&j>=f&&j<=g?!0:!1};a.handleDblClick=
function(c){var b=null,d=null,b=null,b=a.getScaledPosition(getPageX(c),getPageY(c)),c=b.X,e=b.Y,f=null,h=0,b=a.movie.stage.getClickManager(),d=b.getDoubleClickArr(cpInfoCurrentFrame);if(!(null==d||0==d.length)){a.stopClickTimer();for(h=0;h<d.length;++h)if(b=d[h])if(f=b.m_htmlElem,!b.m_obj||!b.m_obj.actionInProgress){var g=a.getHitTestingRect(f);if(b.m_obj&&a.IsPointWithElem(f,c,e,g.minX,g.minY,g.maxX,g.maxY)){var c=0,k,l,e=b.m_obj.currentAttempt;void 0!=e&&(c=e);b.m_obj.mdi&&(l=a.D[b.m_obj.mdi]);
void 0!=l&&(k=l.dn);k&&a.SubmitInteractions(k,a.QuestionStatusEnum.CORRECT,c);a.clickSuccessHandler(b.m_obj);b.m_obj.handled=!0;return}}if((b=d[0])&&b.m_obj&&!b.m_obj.actionInProgress)if(c=a.D[b.m_obj.mdi].visible,d=0,e=b.m_obj.currentAttempt,void 0!=e&&(d=e),d+=1,b.m_obj.currentAttempt=d,e=b.m_obj.ma,f=-1!=e&&d==e&&c,h=(-1==e||d<=e)&&c,b.m_obj.mdi&&(l=a.D[b.m_obj.mdi]),void 0!=l&&(k=l.dn),k&&a.SubmitInteractions(k,a.QuestionStatusEnum.INCORRECT,d-1),a.clickFailureHandler(b.m_obj,f,h),!b.m_obj.handled)b.m_obj.handled=
-1!=e&&d>=e&&c}};a.handleRightClick=function(c){var b=null,d=null,b=null,b=a.getScaledPosition(getPageX(c),getPageY(c)),e=b.X,f=b.Y,h=null,d=!1,g=0,b=a.movie.stage.getClickManager(),d=b.getRightClickArr(cpInfoCurrentFrame);if(!(null==d||0==d.length)){a.stopClickTimer();for(g=0;g<d.length;++g)if((b=d[g])&&(!b.m_obj||!b.m_obj.actionInProgress)){var h=b.m_htmlElem,k=a.getHitTestingRect(h);if(b.m_obj&&a.IsPointWithElem(h,e,f,k.minX,k.minY,k.maxX,k.maxY)){var e=0,l,j,f=b.m_obj.currentAttempt;void 0!=f&&
(e=f);b.m_obj.mdi&&(j=a.D[b.m_obj.mdi]);void 0!=j&&(l=j.dn);l&&a.SubmitInteractions(l,a.QuestionStatusEnum.CORRECT,e);d=a.clickSuccessHandler(b.m_obj);b.m_obj.handled=!0;d&&a.preventEventDefault(c);return}}if((b=d[0])&&b.m_obj&&!b.m_obj.actionInProgress)if(c=a.D[b.m_obj.mdi].visible,e=0,f=b.m_obj.currentAttempt,void 0!=f&&(e=f),e+=1,b.m_obj.currentAttempt=e,f=b.m_obj.ma,d=-1!=f&&e==f&&c,h=(-1==f||e<=f)&&c,b.m_obj.mdi&&(j=a.D[b.m_obj.mdi]),void 0!=j&&(l=j.dn),l&&a.SubmitInteractions(l,a.QuestionStatusEnum.INCORRECT,
e-1),a.clickFailureHandler(b.m_obj,d,h),!b.m_obj.handled)b.m_obj.handled=-1!=f&&e>=f&&c}};a.handleMouseOut=function(){if(a.device==a.DESKTOP){var c=a.movie.stage.getSlideDiv();c&&(c.touchstartX=null,c.isMoving=!1)}};a.handleMouseMove=function(c){c=c.pageX+","+c.pageY;a.LastMousePosition!=c&&(a.LastMousePosition=c,c=document.getElementById("playbar"),void 0!=c&&c.animator&&c.animator.showPlaybar(cpInfoCurrentFrame>=a.movie.stage.lastFrame?!0:!1))};a.handleMouseOver=function(){var c=document.getElementById("playbar");
void 0!=c&&c.animator&&c.animator.showPlaybar(cpInfoCurrentFrame>=a.movie.stage.lastFrame?!0:!1)};var v={};a.initObjectFactory=function(){v.questionSlideReviewLabel=a.QuestionSlideReviewLabel;v.progressSlideLabel=a.ProgressSlideLabel;v.fibAnswer=a.FIBAnswer;v.shortAnswer=a.ShortAnswer;v.sequenceInput=a.SequenceInput;v.matchingAnswer=a.MatchingAnswer;v.matchingItem=a.MatchingItem;v.likertItem=a.LikertItem;v.hotspotInput=a.HotspotInput;v.multipleChoiceInput=a.MCQInput;v.resultSlideLabel=a.ResultSlideLabel;
v.singleChoiceInput=a.MCQInput;v.input=a.TextInput;v.textbutton=a.TextButton;v.shape=a.Shape;v.image=a.DisplayObject;v.group=a.Group;v.svg=a.DisplayObject;v.text=a.DisplayObject;v.placeholder=a.Placeholder;v.hb=a.HighlightBox;v.rai=a.RolloverAreaItem;v.mc=a.MouseClick;v.gf=a.Gradient;v.imgf=a.ImageFill;v.typingtext=a.TypingText;v.line=a.Line;v.drawingItem=a.DrawingItem;v.answerArea=a.AnswerArea;v.rectWithText=a.RectWithText;v.autoShape=a.AutoShape;v.widget=a.Widget;v.WebObject=a.WebObject;v.eventVideo=
a.EventVideo;v.slideVideo=a.SlideVideo;v.fmrVideo=a.FMRVideo;v.cpvcVideo=a.CPVCVideo;v.zoom=a.Zoom;v.ta=a.TextAnimation;v.animationItem=a.AnimationItem;if(a.extObjInfo&&a.IsValidObj(a.extObjInfo))for(var c=0;c<a.extObjInfo.length;++c)a.IsValidObj(a.extObjInfo[c])&&(v[a.extObjInfo[c].n]=a.extObjInfo[c].cls)};a.parseChildren=function(c,b){var d=[],e=c.id+"c";W[e]&&d.push(W[e]);for(e=c.firstChild;e;e=e.nextSibling){var f=e,h=!1;"cp-rewrap"==e.className&&(f=e.firstChild,h=!0);if(f.nodeType==Node.ELEMENT_NODE){for(var g=
(f.className+"").split(" "),k=null,l,j=!1,m="",n=0;n<g.length&&null==k;++n)if("cp-"==g[n].substr(0,3)){l=g[n].substr(3);var k=v[l],o=g[n].substr(3);if("gf"==o||"imgf"==o||"drawingItem"==o||"answerArea"==o||"rectWithText"==o||"autoShape"==o)j=!0;if(("gf"==o||"imgf"==o)&&f.parentElement)m=f.parentElement.id}if(k){if(g=a.ropMap[f.id])g.restOfProjectDoOnNewSlide(),a.verbose&&a.log("resued childObj from cp.ropMap for "+f.id);else{j?(0==m.length&&(m=f.id),g=new k(f,m,b)):g=new k(f,b);a.verbose&&a.log("created new "+
l);k=0;if(j=g.getAttribute("dn"))k=a.D[j].rp;f.id&&1==k&&(a.ropMap[f.id]=g,a.verbose&&a.log("added "+f.id+" to cp.ropMap"))}G[f.id]=g;h?W[f.id]=g:d.push(g)}}}return d};a.removeFromDisplayObjectMap=function(a){G[a]=void 0};a.parseFrameset=function(c){a.verbose&&a.log("parseFrameset "+c.id);var b=a.parseChildren(c);PPTXLib.instanceManager&&PPTXLib.addToInstanceManager(c.id,b[0]);if(a.device==a.IDEVICE||a.device==a.ANDROID){var d=a.D[c.id];if(d&&(d=d.type,a.kCPOTFLVItem==d||a.kCPOTVideo==d||a.kCPFullMotion==
d||a.kCPOTVideoResource==d))return new a.VideoFrameSet(c,b)}b=new a.FrameSet(c,b);return G[c.id]=b};a.parseTimeline=function(c){return new a.Timeline(c)};a.shouldMoveTo=function(c){return a.movie.stage.canUpdateToFrame(c)};a.getCpInfoOriginalFPS=function(){return a.movie.fps};a.getCpInfoSpeed=function(){return a.movie.speed};a.getCpElapsedMovieTime=function(){return a.movie.elapsedMovieTime};a.getCpIsPlaying=function(){return!a.movie.paused};a.showValue=function(c){a.showHideElements();a.movie.pause(a.ReasonForPause.SHOW_VALUE_AT_FRAME);
a.movie.jumpToFrame(c)};a.hyperlinkClick=function(c){if(c=a.D[c])c=c.oca,a.movie.paused&&(c=c.replace("cpCmndResume = 1;",""),c=c.replace("cp.actionChoiceContinueMovie();","")),a.movie.executeAction(c)};a.SubmitInteractions=function(c,b,d,e,f){var h=a.D[c],c=aa(c),h=a.D[c],g=h.type,k=b==a.QuestionStatusEnum.CORRECT||b==a.QuestionStatusEnum.PARTIAL_CORRECT;if(h){var l=void 0!=h.siq&&h.siq;if(l){var j=a.getQuestionObject(c);if(j){if(!a.movie.playbackController)return;var m=a.movie.playbackController.GetQuizController();
if(!m)return;var n=j.isDisabled,o=!1;!m.GetIsInReviewMode()&&!m.GetIsQuizCompleted()&&j.setCurrentAttempt(d+1);d=e;if(void 0==d||void 0==f)if(!j.getIsInteractiveWidget()&&"fill-in"==j.getInteractionType()){f=document.getElementById(c+"_inputField");if(!f)return!1;d=h.exp;f=f.value}else d=["1"],f=k?"1":"0";j.questionData.cal=d;j.setSelectedAnswers(f);b==a.QuestionStatusEnum.CORRECT||b==a.QuestionStatusEnum.PARTIAL_CORRECT?o=!0:j.getCurrentAttempt()>=j.getNumberOfAttempts()&&(o=!0);j.setShouldAddToTotal(void 0!=
h.sat&&h.sat);!m.GetIsInReviewMode()&&!m.GetIsQuizCompleted()&&(o?(k?j.setQuestionStatus(j.QuestionStatusEnum.CORRECT):j.setQuestionStatus(j.QuestionStatusEnum.INCORRECT),n||j.endQuestion(!0)):j.endQuestion(!1))}}c={itemname:c,frameNumber:cpInfoCurrentFrame,objecttype:g,issuccess:k,slideNumber:cpInfoCurrentSlideIndex+1,includedInQuiz:l};j&&(c.questioneventdata=j.getQuestionEventData());a.em.fireEvent("CPInteractiveItemSubmit",c)}};a.hotspotQuestionSlideHandler=function(c){a.m_gestureHandler.disableGestures();
var b=c.currentTarget,d=a.getQuestionObject(b.childNodes[0].id);d&&d.hotspotQuestionHandler(b,getPageX(c),getPageY(c));a.m_gestureHandler.enableGestures()};a.handleClickExternal=function(c){function b(c){return a.kCPOTClickBoxItem==c.type||a.kCPOTScorableButtonItem==c.type||a.kCPOTAutoShape==c.type}function d(c,d,e){function f(){a.stopClickTimer();h+=1;g.currentAttempt=h;var d=g.ma,e=g.mdi,j=a.D[e].visible,e=a.showHideFeedbackCaptionsClickHandler(c,-1!=d&&h==d&&j,a.D[e].dn,(-1==d||h<=d)&&j);b(g)&&
!g.handled&&(g.handled=-1!=d&&h>=d&&j);return e}var g=d,h=e;a.isClickTimerRunning()||a.startClickTimer(500,f)}function e(){j=!0;if(null==n&&(k.ofc||-1!=k.ma))o=m,n=k,q=s,u=p,r=currElementDivData}if(a.isClickTimerRunning())return c.cpCustomData&&c.cpCustomData.asPartOfStateChange?a.handleDblClick(c):!1;for(var f=a.getScaledPosition(getPageX(c),getPageY(c)),h=f.X-window.pageXOffset,g=f.Y-window.pageYOffset,k=null,l=a("div_Slide").childNodes,j=!1,m="",n=null,o="",p=-1,s=0,u=-1,q=0,r=null,w=l.length-
1;0<=w;--w)if(f=l[w],"DIV"==f.nodeName&&"block"==f.style.display&&("feedbackClickDiv"==f.id&&f.remover(),currElementDivData=a.D[f.id])){var z=currElementDivData.mdi;if(a.D[z].visible&&currElementDivData.chfn&&void 0==currElementDivData.val){z=currElementDivData.mdi;drawingItemDivData=a.D[z];var s=0,p=-1,v=currElementDivData.currentAttempt;void 0!=v&&(s=v);p=currElementDivData.ma;k=currElementDivData;m=f.id;if(void 0==k.amc||k.amc||!(a.device!=a.IDEVICE||a.device==a.ANDROID))if(currElementDivData&&
drawingItemDivData&&a.kCPOTWidgetItem==currElementDivData.type&&drawingItemDivData.iiw)a.HandleInteractiveWidget(c,z);else{var D=v=z=0,A=0;if(void 0==f.getBoundingClientRect)z=parseFloat(f.style.left),v=parseFloat(f.style.top),D=parseFloat(f.style.left)+parseFloat(f.style.width),A=parseFloat(f.style.top)+parseFloat(f.style.height);else{var F;f.rotateAngle&&(F=f.style.transform||f.style.msTransform||f.style.MozTransform||f.style.WebkitTransform||f.style.OTransform,a.applyTransform(f,"rotate(0)"));
f.offsetHeight=f.offsetHeight;A=a.getHitTestingRect(f);f.rotateAngle&&a.applyTransform(f,F);z=A.minX;v=A.minY;D=A.maxX;A=A.maxY}var I=0;f.rotateAngle&&(I=f.rotateAngle);var G=h,J=g,G=G-(z+D)/2,J=J-(v+A)/2,N=G*Math.cos(Math.PI*-I/180)-J*Math.sin(Math.PI*-I/180),I=G*Math.sin(Math.PI*-I/180)+J*Math.cos(Math.PI*-I/180),N=N+(z+D)/2,I=I+(v+A)/2,z=N>=z&&N<=D&&I>=v&&I<=A?!0:!1;if(z){if(currElementDivData.iqb||currElementDivData.vid)return!0;if(a.kCPOTAutoShape==k.type&&currElementDivData.isCanvasClicked&&
!currElementDivData.isCanvasClicked(c,!0))e();else{c=aa(f.id);if(a.D[c].enabled){if(k.actionInProgress)return!1;if(k.dclk||k.rclk)return d(f,k,s),!1;l=k;if(!l||a.kCPOTAutoShape!=l.type)l=!0;else{var h=a.movie.stage.currentSlide,M=!1,E=!1,c=0;h&&(c=h.from,"Question Slide"==h.st&&h.qs&&((F=a.D[h.qs])&&"Hotspot"==F.qtp&&(M=!0),(h=a.getQuestionObject(h.qs))&&h.shouldDisableOptions()&&(E=!0)));l=!M||E?!0:!l.rp||!l.rpa||l.from>c?!1:!0}if(!l)return!1;l=currElementDivData.chfn;a.SubmitInteractions(f.id,a.QuestionStatusEnum.CORRECT,
s);M=a.movie.stage.currentSlide;l(f);M==a.movie.stage.currentSlide&&b(k)&&(k.handled=!0);return!0}j=!1;break}}else currElementDivData.vid||e()}}}if(j){n&&(k=n,m=o,s=q,p=u,currElementDivData=r);if(k&&k.actionInProgress)return!1;k&&!k.iqb&&(s+=1,k.currentAttempt=s,k.mdi&&(E=a.D[k.mdi]),E&&(M=E.dn),a.SubmitInteractions(M,a.QuestionStatusEnum.INCORRECT,s-1));z=currElementDivData.mdi;f=a.D[z].visible;M=-1!=p&&s==p&&f;E=(-1==p||s<=p)&&f;c="";k&&b(k)&&(c=m);a.showHideFeedbackCaptionsClickHandler(l[0],M,
c,E);k&&(b(k)&&!k.handled)&&(k.handled=-1!=p&&s>=p&&f)}return!1};a.handleClick=function(c){if(!a.disableInteractions&&(c.preventDefault&&c.preventDefault(),c.stopPropagation&&c.stopPropagation(),!a.handleClickExternal(c))){var b=a("div_Slide").childNodes[0];if(b&&("DIV"==b.nodeName&&"block"==b.style.display)&&(a.getQuestionObjectName&&(b=a.getQuestionObjectName(b.id),(b=a.D[b])&&"Hotspot"==b.qtp&&a.hotspotQuestionSlideHandler(c)),a.extObjInfo))for(c=0;c<a.extObjInfo.length&&(!a.IsValidObj(a.extObjInfo[c].chcb)||
!a.extObjInfo[c].chcb());++c);}};a.showHideElements=function(){a("blockUserInteraction").style.display="none";a.autoplayDiv.style.display="none";a.autoplayDiv.style.visibility="hidden";a.loadedModules.playbar&&(document.getElementById("playbar").style.display="block");var c=document.getElementById("firstSlideSnapshot");c&&(c.style.display="none");a.gesturesDiv&&(a.gesturesDiv.style.display="none",a.gesturesDiv.parentElement.removeChild(a.gesturesDiv));a("gImage")&&(a("gImage").className="");a("gestureHint")&&
(a("gestureHint").style.position="absolute",a("gestureHint").style.backgroundColor="")};a.beginMovie=function(){a.showHideElements();1==cpInfoCurrentFrame&&a.movie.am.play(1,!0);a.movie.play()};a.InitMedia=function(){a.movie.vdm.deviceSpecificInit();a.movie.am.deviceSpecificInit()};a.playMovie=function(){a.movie.play()};a.pauseMovie=function(){a.movie.pause()};a.mouse_click_draw=function(a,b){var d="#000000",e=3;void 0!=b.c&&(d=b.c,e=b.r);a.save();a.fillStyle=d;a.beginPath();a.arc(e,e,e,0,2*Math.PI,
!0);a.closePath();a.fill();a.restore();return!0};a.mcd=function(c,b,d,e,f){return a.mouse_click_draw(c,b,d,e,f)};a.tcd=function(c,b,d,e,f,h,g){if(!(0>=f||0>=h)){c.clearRect(d,e,f,h);c.translate(d,e);var e=b.width,d=b.height,k=e>f,l=d>h,j=k?f:e,m=l?h:d;c.drawImage(b,0,0,Math.ceil(j/2),Math.ceil(m/2),0,0,Math.ceil(j/2),Math.ceil(m/2));c.drawImage(b,Math.floor(e-j/2),0,Math.ceil(j/2),Math.ceil(m/2),Math.floor(f-j/2),0,Math.ceil(j/2),Math.ceil(m/2));c.drawImage(b,0,Math.floor(d-m/2),Math.ceil(j/2),Math.ceil(m/
2),0,Math.floor(h-m/2),Math.ceil(j/2),Math.ceil(m/2));c.drawImage(b,Math.floor(e-j/2),Math.floor(d-m/2),Math.ceil(j/2),Math.ceil(m/2),Math.floor(f-j/2),Math.floor(h-m/2),Math.ceil(j/2),Math.ceil(m/2));c.save();c.shadowColor=a.ConvertRGBToRGBA("#ffffff","1");c.shadowOffsetX=0;c.shadowOffsetY=0;c.shadowBlur=0;c.drawImage(b,0,0,Math.ceil(j/2),Math.ceil(m/2),0,0,Math.ceil(j/2),Math.ceil(m/2));c.drawImage(b,Math.floor(e-j/2),0,Math.ceil(j/2),Math.ceil(m/2),Math.floor(f-j/2),0,Math.ceil(j/2),Math.ceil(m/
2));c.drawImage(b,0,Math.floor(d-m/2),Math.ceil(j/2),Math.ceil(m/2),0,Math.floor(h-m/2),Math.ceil(j/2),Math.ceil(m/2));c.drawImage(b,Math.floor(e-j/2),Math.floor(d-m/2),Math.ceil(j/2),Math.ceil(m/2),Math.floor(f-j/2),Math.floor(h-m/2),Math.ceil(j/2),Math.ceil(m/2));c.fillStyle="rgba("+g[0]+","+g[1]+","+g[2]+","+g[3]+")";g=k?f:e;j=l?h:d;c.fillRect(Math.floor(g/2),Math.floor(j/2),f-g+1,h-j+1);g=3;k=!k?e/2:f/2;l=!l?d/2:h/2;for(j=Math.floor(d-l-1)-1;j<h-l;){m=h-j;m<g&&(g=m);var m=0,n=l-1,o=k,g=l-1+g,
o=Math.ceil(o-m),g=Math.ceil(g-n);c.drawImage(b,Math.floor(m),Math.floor(n),o,g,0,j,o,g);m=e-k;o=e;o=Math.ceil(o-m);c.drawImage(b,Math.floor(m),Math.floor(n),o,g,Math.floor(f-k),j,o,g);g=3>h-j?h-j:3;0>=g&&(g=1);j+=g-1}g=3;for(e=Math.floor(k)-1;e<f-k;)j=f-e,j<g&&(g=j),m=k-1,n=0,o=k-1+g,g=l,o=Math.ceil(o-m),g=Math.ceil(g-n),c.drawImage(b,Math.floor(m),n,o,g,e,0,o,g),n=d-l,g=Math.ceil(l),c.drawImage(b,Math.floor(m),Math.floor(n),o,g,e,Math.floor(h-l),o,g),g=3>f-e?f-e:3,0>=g&&(g=1),e+=g-1;c.restore()}};
a.getIntersectionRect=function(a,b){var d=a[0]+a[2],e=a[1]+a[3],f=b[0]+b[2],h=b[1]+b[3],g={l:0,t:0,w:0,h:0};if(d<b[0]||e<b[1]||a[0]>f||a[1]>h)return g;g.l=a[0]>b[0]?a[0]:b[0];g.t=a[1]>b[1]?a[1]:b[1];g.w=(d<f?d:f)-g.l;g.h=(e<h?e:h)-g.t;return g};a.frameset_mc_draw=function(c,b,d,e,f,h,g){if(""==b||void 0==b)return!0;var k=!1;c.save();var l=a.D[f];l.shouldShowDisabledState&&(c.globalAlpha=0.5);var j=a.movie.im.images[b];try{if(j)if(j.complete&&j.nativeImage.complete){a.verbose&&a.log("drawing completed img "+
b);if(c.centreImage&&(h||g))if(a.responsive){c.clearRect(-c.width,-c.height,2*c.width,2*c.height);var m=l.clientWidth,n=l.clientHeight;a.isCaptionItem(l.type)?a.tcd(c,j.nativeImage,-m/2+c.tex,-n/2+c.tey,m,n,l.pixelColor):c.crop?c.drawImage(j.nativeImage,c.crop.x,c.crop.y,m,n,-m/2+c.tex,-n/2+c.tey,m,n):c.drawImage(j.nativeImage,-m/2+c.tex,-n/2+c.tey,m,n)}else c.clearRect(-c.width,-c.height,2*c.width,2*c.height),c.drawImage(j.nativeImage,-j.nativeImage.width/2+c.tex,-j.nativeImage.height/2+c.tey,j.nativeImage.width,
j.nativeImage.height);else if(a.responsive)if(a.isCaptionItem(l.type))a.tcd(c,j.nativeImage,0,0,l.clientWidth,l.clientHeight,l.pixelColor);else if(c.crop){var o=[c.crop.x,c.crop.y,l.clientWidth,l.clientHeight],p=a.getIntersectionRect([0,0,j.nativeImage.width,j.nativeImage.height],o);o[0]=0>c.crop.x?-c.crop.x:0;o[1]=0>c.crop.y?-c.crop.y:0;c.drawImage(j.nativeImage,p.l,p.t,p.w,p.h,o[0],o[1],p.w,p.h)}else c.drawImage(j.nativeImage,0,0,l.clientWidth,l.clientHeight);else c.drawImage(j.nativeImage,0,0);
k=!0;d?(a.verbose&&a.log("hiding1 "+b),a.hide(d)):e||(a.verbose&&a.log("hiding2 "+b),a._hide(f))}else a.exceptionalLogs&&!a.responsive&&console.log("**** drawing failed. img incomplete "+b);else b&&a.exceptionalLogs&&!a.responsive&&console.log("***** drawing failed. img not found "+b)}catch(s){console.log("***** drawing failed. img not found "+b)}return k};a.fd=function(c,b,d,e,f,h,g){return a.frameset_mc_draw(c,b,d,e,f,h,g)};a.setMovieLeftTopRightBottom=function(c,b,d,e){if(!a.responsive){var f=
a.getProjectContainer();f.style.width=parseFloat(f.style.width)+c+d+"px";f.style.height=parseFloat(f.style.height)+b+e+"px";var h=a.getMainContainer(),g=(a.getInnerWidth()-parseFloat(h.style.width))/2;h.style.left=(0<g?g:0)+"px";h=a.getProject();a.movie.topOffset+=b+parseFloat(f.style.top);h.style.top=b+"px";h.style.left=parseFloat(h.style.left)+c+"px";a.loadedModules.toc&&a.tocInit(a.D,c,b,d,e);a.updateBorderPosition(a.D);a.adjustWindow()}};a.setCCPosition=function(c){a.movie.cc.style.pointerEvents=
"auto";a.movie.cc.style.left=a.project.style.left;a.responsive?a.movie.cc.style.top=a("project").clientHeight-a.movie.cc.clientHeight+"px":a.movie.cc.style.bottom=c+"px"};a.ConvertRGBToRGBA=function(a,b){return a.replace(")"," ,"+(b+"")+")").replace("rgb","rgba")};a.ConvertColorToRGBA=function(a,b){return"rgba("+parseInt(a.substr(1,2),16)+" ,"+parseInt(a.substr(3,2),16)+" ,"+parseInt(a.substr(5,2),16)+" ,"+b+")"};a.getAngleFromRotateStr=function(a){a=a.replace("rotate(","");return parseFloat(a.replace("deg)",
""))};a.applyTransform=function(a,b){a.style.transform=b;a.style.msTransform=b;a.style.MozTransform=b;a.style.WebkitTransform=b;a.style.OTransform=b};a.applyShadow=function(c,b,d){c.style.mozBoxShadow=b;c.style.webkitBoxShadow=b;c.style.boxShadow=b;if(d){var e=b.a*Math.PI/180,d=a.getRoundedValue(b.d*Math.cos(e)),e=a.getRoundedValue(b.d*Math.sin(e));c.style.textShadow=d+"px "+e+"px "+b.b+"px "+b.c}};a.setFillStrokeStyle=function(c,b,d,e){var f=b.getContext("2d");if(c.gf){if(0==c.gf.t)switch(c.gf.di){case 0:b=
f.createLinearGradient(0,b.height/2,b.width,b.height/2);break;case 1:b=f.createLinearGradient(b.width,b.height/2,0,b.height/2);break;case 2:b=f.createLinearGradient(0,0,b.width,b.height);break;case 3:b=f.createLinearGradient(b.width,b.height,0,0);break;case 5:b=f.createLinearGradient(b.width/2,b.height,b.width/2,0);break;case 6:b=f.createLinearGradient(0,b.height,b.width,b.height);break;case 7:b=f.createLinearGradient(b.width,b.height,0,b.height);break;default:case 4:b=f.createLinearGradient(b.width/
2,0,b.width/2,b.height)}else{var h=0;switch(c.gf.di){case 0:b=f.createRadialGradient(b.width/2,b.height/2,0,b.width,b.height/2,b.width/2);break;case 2:h=b.width<b.height?b.width:b.height;b=f.createRadialGradient(0,0,0,h,0,h);break;case 3:b=f.createRadialGradient(b.width/2,0,0,b.width/2,b.height,b.height);break;case 4:h=b.width<b.height?b.width:b.height;b=f.createRadialGradient(b.width,0,0,b.width,h,h);break;case 5:b=f.createRadialGradient(b.width,b.height/2,0,0,b.height/2,b.width);break;case 6:h=
b.width<b.height?b.width:b.height;b=f.createRadialGradient(b.width,b.height,0,b.width-h,b.height-h,h);break;case 7:b=f.createRadialGradient(b.width/2,b.height,0,b.width/2,0,b.height);break;case 8:h=b.width<b.height?b.width:b.height;b=f.createRadialGradient(0,b.height,0,h,b.height,h);break;case 9:b=f.createRadialGradient(0,b.height/2,0,b.width,b.height/2,b.width);break;default:case 4:b=f.createRadialGradient(b.width/2,b.height/2,0,b.width,b.height,Math.sqrt(b.width*b.width+b.height*b.height))}}for(h=
0;h<c.gf.cs.length;++h){var g=c.gf.cs[h],k=a.getRGBA(g.c,g.o);b.addColorStop(g.p/100,k)}d?f.strokeStyle=b:f.fillStyle=b}else d?f.strokeStyle=c.bc:f.fillStyle=c.bc;e||(f.globalAlpha=c.alpha/100)};a.loadjscssfile=function(a,b,d){var e;if("js"==b)e=document.createElement("script"),e.setAttribute("type","text/javascript"),e.setAttribute("src",a),e.onload=d;else if("css"==b){e=document.createElement("link");e.setAttribute("rel","stylesheet");e.setAttribute("type","text/css");e.setAttribute("href",a);e.onload=
d;var f=document.styleSheets.length,h=setInterval(function(){document.styleSheets.length>f&&(clearInterval(h),d())},50)}void 0!=e&&document.getElementsByTagName("head")[0].appendChild(e);return e};a.CPPlayButtonHandle=function(c){var b;c.keyCode?b=c.keyCode:c.which&&(b=c.which);32==b&&a.movie.play()};a.handleVariablesInURLParams=function(){var c=window.location.toString();if(-1!=c.indexOf("?"))for(var c=c.split("?")[1].split("&"),b=0;b<c.length;++b){var d=c[b];-1!=d.indexOf("=")&&(d=d.split("="),
a.vm.setVariableValue(d[0],unescape(d[1]),!1))}};a.getInnerWidth=function(){a.offsetInnerWidth=!window.innerWidth||0==window.innerWidth?640:window.innerWidth;return a.offsetInnerWidth};a.getProjectContainer=function(){a.projectContainer||(a.projectContainer=a("project_container"));return a.projectContainer};a.getMainContainer=function(){a.mainContainer||(a.mainContainer=a("main_container"));return a.mainContainer};a.getProject=function(){a.project||(a.project=a("project"));return a.project};a.adjustProjectHeight=
function(c){if(a.responsive&&c){var b=a.D[c.mdi].css,c=b[a.ResponsiveProjWidth];a.RespDefaultBptH=parseFloat(b[a.RespDefaultBptW].h);parseFloat(a("project").style.height)!=c.h&&(a("project").style.height=c.h);b=a("project").clientHeight;b=0<b?b:parseFloat(c.h);c=a("playbar").clientHeight;a.PB&&(a.PB.MP&&a.PB.MP.PBP&&a.PB.MP.PBP.showOnHover&&a("playbar").animator)&&(c=0);a("project_container").style.height=b+c+"px";a("project_container").clientHeight>window.innerHeight?(a("main_container").style.height=
b+c+"px",a("cpDocument").style.height=b+c+"px"):(a("main_container").style.height="100%",a("cpDocument").style.height="100%")}};a.adjustSkins=function(c){if(a.responsive){void 0==c&&(c=a.ReasonForDrawing.kOrientationChangeOrResize);var b=a("project"),d=a("playbar");a.PB&&a.PB.playbarCreated&&(a.PB.rootObj&&(a.PB.rootObj.layoutPlaybar&&c==a.ReasonForDrawing.kOrientationChangeOrResize)&&a.PB.rootObj.layoutPlaybar(!0,b.clientWidth),a.responsive&&(c=b.clientHeight+d.clientHeight,d.style.bottom=c<window.innerHeight&&
0<b.clientHeight?window.innerHeight-c+"px":"0px",d.style.left=b.style.left,c=d.animator,a.PB&&a.PB.MP&&a.PB.MP.PBP&&a.PB.MP.PBP.showOnHover&&c?(c.resetStartEndValForResponsive(),d.style.bottom="",c.playbarHidden?(d.style.bottom="",d.style.top=a("div_Slide").getBoundingClientRect().bottom+"px"):(d.style.top="",d.style.bottom="0px"),d.style.position="absolute"):d.style.position="fixed",d.style.transform="scale(1)"));a.toc&&(a.toc.tocCreated&&a.toc.rootObj)&&a.toc.rootObj.adjustTOC();a.movie.cc&&(a("cc").style.width=
b.clientWidth+"px",a.setCCPosition(d.clientHeight));a.playImage&&(b=lPlayButtonT=0,b=a.project.clientWidth>window.innerWidth?(window.innerWidth-a.playImage.clientWidth)/2:(a.project.clientWidth-a.playImage.clientWidth)/2,lPlayButtonT=a.project.clientHeight>window.innerHeight?(window.innerHeight-a.playImage.clientHeight)/2:(a.project.clientHeight-a.playImage.clientHeight)/2,a.playImage.style.left=b+"px",a.playImage.style.top=lPlayButtonT+"px");a.autoplayImage&&(a.autoplayImage.style.left=(a.project.clientWidth-
a.movie.autoplayimagew)/2+"px",a.autoplayImage.style.top=(a.project.clientHeight-a.movie.autoplayimageh)/2+"px")}};a.getCurrentBreakpointWidth=function(c){var b=a.responsiveWidths.length;if(c<=a.responsiveWidths[0])return a.responsiveWidths[0];if(c>=a.responsiveWidths[a.responsiveWidths.length-1])return a.responsiveWidths[a.responsiveWidths.length-1];for(var d=0;d<=b-1;++d)if(c<=a.responsiveWidths[d])return a.responsiveWidths[d]};a.getCurrentBreakPointID=function(){var c=a.D.project.breakpointIdToWidthMap,
b;for(b in c)if(c[b]==a.ResponsiveProjWidth)return b};a.updateResponsiveGlobals=function(){if(a.responsive&&a.responsiveWidths&&!(0>=a.responsiveWidths.length)){var c=window.innerWidth;a.RespDefaultBptW=a.responsiveWidths[a.responsiveWidths.length-1];a.ResponsiveProjWidth=a.getCurrentBreakpointWidth(c);void 0==a.responsiveMaxWidth&&(a.responsiveMaxWidth=a.D.project.maxWidth)}};a.adjustResponsiveItems=function(c){if(a.responsive){void 0==c&&(c=a.ReasonForDrawing.kOrientationChangeOrResize);var b=a.movie.stage.getCurrentSlideInteractionManager();
b&&b.saveResponsiveInteractionState(c);var d=a.ResponsiveProjWidth;a.updateResponsiveGlobals();var e=window.innerWidth;a.responsiveMaxWidth&&window.innerWidth>a.responsiveMaxWidth?(parseFloat(a("project_container").style.width)!=a.ResponsiveProjWidth&&(a("project_container").style.width=a.ResponsiveProjWidth+"px"),a("project_container").style.left=(e-a.ResponsiveProjWidth)/2+"px"):(a("project_container").style.width="100%",a("project_container").style.left="0px");var f=a.movie.stage.currentSlide,
e=a.movie.stage.getSlideIndexForFrame(cpInfoCurrentFrame);f||(f=a.movie.stage.getSlideNameForIndex(e),f=a.D[f]);a.adjustProjectHeight(f);a.setupSlideBGDivAndCanvasInternal(f,a.movie.stage.getSlideDiv());a.adjustSkins(c);a.EventListeners&&(a.EventListeners[a.ITEMDRAWINGCOMPLETEEVENT]=[]);c==a.ReasonForDrawing.kOrientationChangeOrResize&&a.movie.pm.loadSlideAssets(cpInfoCurrentSlideIndex);var f=!0,h;for(h in G){var g=G[h];if(g&&g.isStarted&&g.drawForResponsive){g.saveState&&g.saveState(d);g.drawForResponsive(!0,
a.ReasonForDrawing.kOrientationChangeOrResize);var k=g.element?a.D[g.element.id]:void 0;if(k){var l=g.getAttribute("css");if(!l)continue;l=a.getResponsiveCSS(l);if(!l)continue;var j=l.ipiv;if(g.visible){l=a.D[k.dn];!l&&k.actid&&(l=a.D[k.actid]);if(!l)continue;j?(g.type==a.kCPOTVideo&&g.nativeVideo&&(g.nativeVideo.style.display="block"),g.element&&(k=g.element.firstElementChild)&&"VIDEO"==k.tagName&&!0==this.started&&(!1==this.ended&&!1==this.paused)&&g.play(),l.ia&&a.movie.am.showHideObjectAudio(l.ia,
!0),l.iea&&a.movie.am.playPauseEventAudio(l.iea,!0)):(g.type==a.kCPOTVideo&&(g.nativeVideo&&(g.nativeVideo.style.display="none"),g.pause&&g.pause()),l.ia&&a.movie.am.showHideObjectAudio(l.ia,!1),l.iea&&a.movie.am.playPauseEventAudio(l.iea,!1))}}f=f&&g.isDrawn}}d=a.movie.stage.currentSlide;h=!1;if(d&&(h="Question Slide"==d.st))(d=a.getQuestionObject(d.qs))&&d.adjustCustomObjects&&d.adjustCustomObjects(),d&&d.updateCustomReviewAreaTransforms&&d.updateCustomReviewAreaTransforms();a.movie.stage.forEachChild(a.updateVariableTextBounds,
!0);cpInfoCurrentFrame&&a.movie.stage.syncMotionToFrame(cpInfoCurrentFrame,!0);b&&b.adjustResponsiveInteraction(c);f||a.movie.pm.loadSlideAssets(e)}};a.getCurrentSlideResponsiveHeight=function(c){if(a.responsive){var b=void 0;!a.movie||!a.movie.stage?(b=a.D.project_main.slides.split(",")[0],b=a.D[b]):(b=a.movie.stage.currentSlide,b||(b=a.movie.stage.getSlideIndexForFrame(cpInfoCurrentFrame),b=a.movie.stage.getSlideNameForIndex(b),b=a.D[b]));c=a.D[b.mdi].css[a.getCorrectBreakpoint(c)];b=a("playbar").clientHeight;
a.PB&&(a.PB.MP&&a.PB.MP.PBP&&a.PB.MP.PBP.showOnHover)&&(b=0);return parseFloat(c.h)+b}};var Y=!1,ea=void 0,J=void 0;a.adjustWindow=function(c){a.__adjustWindow(c);if(a.lpp){var c=window.innerWidth,b=window.innerHeight;320<c&&800>c&&c>b&&0<b&&c/b>4/3?Y||(a.movie.paused||(a.movie.pause(a.ReasonForPause.BAD_ORIENTATION),a.movie.paused&&(ea=!0)),Y=!0,J||(J=document.createElement("div"),J.classList.add("curtain"),document.body.appendChild(J),c=J,c.onclick=c.ondblclick=c.onmousedown=c.onmousemove=c.onmouseup=
c.onmouseover=c.onmouseout=X,c.addEventListener("touchstart",X),c.addEventListener("touchmove",X),c.addEventListener("touchend",X),c=document.createElement("div"),c.classList.add("curtainMsg"),c.innerText=a.lpm,J.appendChild(c)),J.style.display="table"):Y&&(ea&&a.movie.play(a.ReasonForPlay.ORIENTATION_OK),J.style.display="none",Y=!1)}};a.__adjustWindow=function(c){a.useg&&a.gesturesDiv&&(a.gesturesDiv.style.position=a.responsive||window.innerWidth<a.D.project.w?"fixed":"absolute");a.playImage&&(a.playImage.style.left=
a.D.project.w<=window.innerWidth||a.shouldScale?(a.D.project.w-96)/2+"px":(window.innerWidth-96)/2+"px",a.playImage.style.top=a.D.project.h<=window.innerHeight||a.shouldScale?(a.D.project.h-96)/2+"px":(window.innerHeight-96)/2+"px");a.autoplayImage&&(a.autoplayImage.style.left=(a.D.project.w-a.movie.autoplayimagew)/2+"px",a.autoplayImage.style.top=(a.D.project.h-a.movie.autoplayimageh)/2+"px");var b=a("playbar");if(a.responsive&&a.device!=a.DESKTOP)if(a.movie&&a.movie.stage){var d=a.movie.stage.currentSlide;
if(!d)var e=a.movie.stage.getSlideIndexForFrame(cpInfoCurrentFrame),e=a.movie.stage.getSlideNameForIndex(e),d=a.D[e];e=a.getCurrentBreakpointWidth(window.innerWidth);if(d&&(d=a.D[d.mdi]))if(d=d.css)if(e=d[e])e=parseFloat(e.h)+b.clientHeight,b.style.position="fixed",b.style.bottom=e>=window.innerHeight?"0px":window.innerHeight-e+"px"}else b.style.bottom="0px",b.style.position="fixed";c=c?c.type:c;if("resize"==c){if(a.em.fireEvent("CPWindowResized"),a.device!=a.DESKTOP){if(a.isTextInputInFocus()){if(a.device!=
a.IDEVICE){if(e=document.activeElement,c=a.getMainContainer(),c.style.position="absolute",document.body.style.overflow="scroll",e=t=0,a.responsive||(e=parseFloat(c.parentElement.parentElement.style.left),t=parseFloat(c.parentElement.parentElement.style.top),window.scrollTo(e,t)),a.responsive)b.style.top=a.project.clientHeight+"px",b.style.position="absolute",b.offsetHeight=b.offsetHeight}else if(a.responsive){var f=document.activeElement.onblur;document.activeElement.onblur=function(a){setTimeout("cp.adjustSkins();if(cp.m_gestureHandler){cp.m_gestureHandler.fitMovie();}",
500);f&&f(a)}}return}if(a.responsive){b.style.top="";b.style.position="fixed";b.offsetHeight=b.offsetHeight;if(1!=a("div_Slide").scaleFactor)return;setTimeout("window.scrollTo(0,0);cp.adjustResponsiveItems();cp.em.fireEvent('CPWindowResizeCompleted');",500);return}}}else(e=document.activeElement)&&("input"==e.tagName.toLowerCase()&&"text"==e.type||"textarea"==e.tagName.toLowerCase())&&e.blur(),a.em.fireEvent("CPOrientationChanged");window.scrollTo(0,0);if(a.responsive)a.adjustResponsiveItems(),"resize"==
c?a.em.fireEvent("CPWindowResizeCompleted"):a.em.fireEvent("CPOrientationChangeCompleted"),PPTXLib&&PPTXLib.resetAnimationsDueToResizeOrOrientationChange&&(PPTXLib.resetAnimationsDueToResizeOrOrientationChange(),cpInfoCurrentFrame>=a.movie.stage.lastFrame&&(PPTXLib.updateAnimationManager(),PPTXLib.forceRedraw()));else{if(!a.SetScaleAndPosition()){a.getInnerWidth();var b=a.getMainContainer(),e=a.getProjectContainer(),d=a.getProject(),h=(a.offsetInnerWidth-parseFloat(b.style.width))/2;b.style.left=
(0<h?h:0)+"px";a.movie.offset=(0<h?h:0)+(a.movie.m_scaleFactor?a.movie.m_scaleFactor:1)*(parseFloat(d.style.left)+parseFloat(e.style.left))}a.useg&&(a.gesturesDiv&&a.shouldScale&&a.movie&&a.movie.virgin)&&(a.gesturesDiv.style.display="none",setTimeout('cp.gesturesDiv.style.display = "block";',500));a("blockUserInteraction").style.width="100%";a("blockUserInteraction").style.height="100%";"resize"==c?a.em.fireEvent("CPWindowResizeCompleted"):a.em.fireEvent("CPOrientationChangeCompleted")}};a.getOffsetPosition=
function(c,b){var d={};d.X=c-a.movie.offset;d.Y=b-a.movie.topOffset;return d};a.getScaledPosition=function(c,b){if(a.responsive)return{X:c,Y:b};var d={};if(!a.shouldScale)return a.getOffsetPosition(c,b);var e=(b-a.movie.newMainContainerT)/a.movie.newMainContainerH,f=Math.round(a.movie.oldMainContainerW*((c-a.movie.newMainContainerL)/a.movie.newMainContainerW)),e=Math.round(a.movie.oldMainContainerH*e),h=a.getProjectContainer(),g=a.getProject();d.X=f-parseFloat(h.style.left)-parseFloat(g.style.left);
d.Y=e-parseFloat(h.style.top)-parseFloat(g.style.top);return d};a.SetScaleAndPosition=function(){var c=a.getMainContainer(),b=window,d=b.innerWidth,b=b.innerHeight;a.movie.oldMainContainerW=parseFloat(c.style.width);a.movie.oldMainContainerH=parseFloat(c.style.height);var e=void 0==a.movie.oldMainContainerW||0==a.movie.oldMainContainerW?1:d/a.movie.oldMainContainerW,f=void 0==a.movie.oldMainContainerH||0==a.movie.oldMainContainerH?1:b/a.movie.oldMainContainerH;a.movie.m_scaleFactor=1;if(!a.shouldScale)return!1;
a.movie.m_scaleFactor=e<f?e:f;a.verbose&&(a.log(a.D.project.shc),a.log(a.movie.m_scaleFactor),a.log(a.shouldScale));a.movie.newMainContainerW=Math.round(a.movie.m_scaleFactor*a.movie.oldMainContainerW);a.movie.newMainContainerH=Math.round(a.movie.m_scaleFactor*a.movie.oldMainContainerH);a.movie.oldMainContainerL=parseFloat(c.style.left);a.movie.oldMainContainerT=parseFloat(c.style.top);c.style.webkitTransformOrigin="left top";c.style.MozTransformOrigin="left top";c.style.msTransformOrigin="left top";
a.movie.newMainContainerL=Math.round(0<(d-a.movie.newMainContainerW)/2?(d-a.movie.newMainContainerW)/2:0);a.movie.newMainContainerT=Math.round(0<(b-a.movie.newMainContainerH)/2?(b-a.movie.newMainContainerH)/2:0);c.style.left=a.movie.newMainContainerL+"px";c.style.top=a.movie.newMainContainerT+"px";a.getProjectContainer();a.getProject();a.movie.offset=a.movie.newMainContainerL;a.movie.topOffset=a.movie.newMainContainerT;c.style.webkitTransform="scale("+a.movie.m_scaleFactor+")";c.style.MozTransform=
"scale("+a.movie.m_scaleFactor+")";c.style.msTransform="scale("+a.movie.m_scaleFactor+")";document.body.style.overflow="hidden";c.style.position="fixed";return!0};a.trimStartingAndTrailingSpaces=function(a){var b="",b=a.replace(/^[\s|\t|\n]+/g,"");return b=b.replace(/[\s|\t|\n]+$/g,"")};a.cpJoin=function(a,b){if(a&&!(""==b||void 0==b)&&!(0>=a.length)){for(var d=a[0],e=1;e<a.length;++e)d+=b+a[e];return d}};a.getLeftTopAfterTranslate=function(a){var b=new WebKitCSSMatrix(window.getComputedStyle(a).webkitTransform),
d={};d.L=parseFloat(a.style.left)+b.m41;d.T=parseFloat(a.style.top)+b.m42;return d};a.createAlternativeAccessibleText=function(c,b,d){if(a.SAFARI===a.browser)""!==d&&c.setAttribute("role",d),c.setAttribute("aria-label",b);else{if(0===a.D.pref.acc||""===b)b=" ";d=a.newElem("p");d.innerHTML=b;b=a.newElem("div");b.id=c.id+"accStr";b.className="cp-accessibility";b.appendChild(d);c.appendChild(b)}};a.getRGBA=function(a,b){return"rgba("+parseInt(a.substring(1,3),16)+" , "+parseInt(a.substring(3,5),16)+
" , "+parseInt(a.substring(5,7),16)+" , "+b+" )"};a.IsRunningInConnect=function(){return!document.location||!document.URL||!document.referrer?!1:-1!=document.location.href.indexOf("airspeed")||-1!=document.URL.indexOf("airspeed")||-1!=document.referrer.indexOf("airspeed")};a.isBlockedForLMS=function(){return"undefined"!=typeof a.LMSDriverHolder&&a.LMSDriverHolder&&a.LMSDriverHolder.blockedForLMS};a.unblockFromLMS=function(){"undefined"!=typeof a.LMSDriverHolder&&a.LMSDriverHolder&&(a.LMSDriverHolder.blockedForLMS=
!1);a("blockUserInteraction").style.display="none"};a.closeGesturesHint=function(){a("gestureHint")&&(a.removeGestureEvent(a("gestureHint"),a.GESTURE_EVENT_TYPES.TAP,a.closeGesturesHint),a("gestureHint").style.display="none")};a.showGesturesHint=function(){var c=a("gestureHint");a.useg&&c&&(c.style.display="block",c.style.zIndex=10,a.registerGestureEvent(a("gestureHint"),a.GESTURE_EVENT_TYPES.TAP,a.closeGesturesHint))};a.getStartFrameOfMovie=function(){return a.loadedModules.toc&&a.toc.movieProperties.tocProperties.hasSelfPaced&&
-1!=a.toc.tocPersistanceManager.lastVisitedEntry&&a.toc.movieProperties["Slide"+a.toc.rootObj.tocEntries[a.toc.tocPersistanceManager.lastVisitedEntry].link]?a.toc.movieProperties["Slide"+a.toc.rootObj.tocEntries[a.toc.tocPersistanceManager.lastVisitedEntry].link].from:cpInfoCurrentFrame};a.addAndUpdateProjectBackgroundDiv=function(c){var b=a("proj_bg"),d=a("playbar"),e=a("toc"),f=c.playBarProperties;void 0==b&&(b=a.newElem("div"),b.id="proj_bg",e.parentElement.insertBefore(b,e),b.style.display="none",
b.style.cssFloat="left",b.style.position="absolute",b.style.backgroundColor=c.project.prjBgColor);if(f.hasPlayBar&&!a.responsive){if(0==f.position||2==f.position)b.style.width=f.playBarHeight+"px",b.style.height=c.project.h+"px",b.style.top="0px",b.style.left=0==f.position?d.style.left:parseFloat(d.style.left)+c.project.w+"px";else if(1==f.position||3==f.position)b.style.width=c.project.w+"px",b.style.height=f.playBarHeight+"px",b.style.top=1==f.position?"0px":c.project.h+"px",b.style.left=d.style.left;
if(0==f.position&&0==a.lBorderW||1==f.position&&0==a.tBorderW||2==f.position&&0==a.rBorderW||3==f.position&&0==a.bBorderW)b.style.display="block"}};a.updateBorderPosition=function(c,b){var d=a("main_container"),e=document.getElementById("projectBorder"),f=a.getProjectContainer(),h=c.playBarProperties;h.playBarHeight=void 0!=h.playBarHeight?h.playBarHeight:0;var g=c.borderProperties;if(g)if(!g.hasBorder&&!a.responsive)d.style.left=parseFloat(f.style.left)+"px",d.style.top=parseFloat(f.style.top)+"px",
d.style.width=parseFloat(f.style.width)+"px",d.style.height=parseFloat(f.style.height)+"px";else if(a.lBorderW=void 0!=a.lBorderW?a.lBorderW:0,a.tBorderW=void 0!=a.tBorderW?a.tBorderW:0,a.rBorderW=void 0!=a.rBorderW?a.rBorderW:0,a.bBorderW=void 0!=a.bBorderW?a.bBorderW:0,b||a.addAndUpdateProjectBackgroundDiv(c),a.responsive)a.project.style.width="auto",a.project.style.height="auto",a.project.style.left=a.lBorderW+"%",a.project.style.right=a.rBorderW+"%",a.project.style.top=a.tBorderW+"%",a.project.style.bottom=
a.bBorderW+"%";else{if(b)d.style.left=parseFloat(f.style.left)-a.lBorderW+"px";else if((0==h.position||2==h.position)&&!h.overlay){0==h.position?(h.playBarHeight>a.lBorderW&&(g.w+=h.playBarHeight-a.lBorderW,d.style.width=e.style.width=g.w+"px",a.lBorderW=h.playBarHeight),f.style.left=a.lBorderW-h.playBarHeight+"px"):(h.playBarHeight>a.rBorderW&&(g.w+=h.playBarHeight-a.rBorderW,d.style.width=e.style.width=g.w+"px",a.rBorderW=h.playBarHeight),f.style.left=a.lBorderW+"px");var k=h&&h.playBarHeight?h.playBarHeight:
0,k=0==h.position?k/2:-(k/2);d.style.left=parseFloat(d.style.left)+k+"px"}else f.style.left=a.lBorderW+"px";1!=h.position?(3==h.position&&(h.playBarHeight>a.bBorderW&&!h.overlay)&&(g.h+=h.playBarHeight-a.bBorderW,d.style.height=e.style.height=g.h+"px",a.bBorderW=h.playBarHeight),f.style.top=a.tBorderW+"px"):h.overlay?f.style.top=a.tBorderW+"px":(h.playBarHeight>a.tBorderW&&(g.h+=h.playBarHeight-a.tBorderW,d.style.height=e.style.height=g.h+"px",a.tBorderW=h.playBarHeight),f.style.top=a.tBorderW-h.playBarHeight+
"px")}};a.handleTOCOpenClose=function(){var c=a("toc");c&&c.animator&&(cpCmndTOCVisible?c.animator.hideTOC():c.animator.showTOC())};a.toggleMoviePlayPause=function(){var c="";a.movie.paused?(a.movie.play(a.ReasonForPause.PLAYBAR_ACTION),c="playAnimation"):(a.movie.pause(a.ReasonForPause.PLAYBAR_ACTION),c="pauseAnimation");a.useg&&a.showGesturesAnim&&a.showGesturesAnim(c)};a.togglePlaybarShowHide=function(){if(cpInfoHasPlaybar){var c=a("playbar");if(c){if(a.movie.playbackController){var b=a.movie.playbackController.GetQuizController();
b&&a.movie.stage&&(a.movie.stage.currentSlide&&"Question Slide"==a.movie.stage.currentSlide.st)&&b.GetHidePlaybarInQuiz()}c.animator?(c.animator.showPlaybar(cpInfoCurrentFrame>=a.movie.stage.lastFrame?!0:!1),c.shown=!0):(c.style.display=!c.shown?"block":"none",a.adjustSkins(),c.shown=!c.shown)}}};a.isTextInputInFocus=function(){var a=document.activeElement;return a&&("input"==a.tagName.toLowerCase()&&"text"==a.type||"textarea"==a.tagName.toLowerCase())};a.ccInit=function(c){if(a.ccdv){var b=a.ccdv;
b.style.width=c.w+"px";b.style.height=c.h+"px";var d=b.firstElementChild;d.style.backgroundColor=a.ConvertColorToRGBA(c.c,c.o/100);d.style.fontFamily=c.f;d.style.fontSize=c.fs+"px";d.style.color=c.tc;a.movie.ccText=d.firstElementChild;a.movie.ccLines=c.lc;c=a.getProject();b.style.left=c.style.left;b.style.bottom="0px"}};a.markTOCEntryComplete=function(c){(c=a.D[a.movie.stage.slides[c]])&&c.tocEntry&&c.tocEntry.setVisited()};a.updateTextBounds=function(c,b,d,e){if(a.responsive&&c&&d)for(var d=[d[a.ResponsiveProjWidth].l,
d[a.ResponsiveProjWidth].t,d[a.ResponsiveProjWidth].w,d[a.ResponsiveProjWidth].h],e=[e[0],e[1],-(e[0]+e[2]),-(e[1]+e[3])],f=["left","top","width","height"],b=[c.parentElement.clientWidth,c.parentElement.clientHeight,b.clientWidth,b.clientHeight],h=0;4>h;++h){var g=d[h];c.style[f[h]]=-1!=g.indexOf("%")?a.getRoundedValue(parseFloat(g)*b[h]/100)+e[h]+"px":parseFloat(g)+e[h]+"px"}};a.adjustFontSizesForVariableText=function(c,b,d){if(c){var c=c.children,e;for(e in c){var f=c[e];if(f&&f.tagName&&"span"==
f.tagName.toLowerCase()){var h=parseFloat(f.style.fontSize),h=Math.floor(a.getInterpolatedFontSize(b,h,d));8>h&&(h=8);f.style.fontSize=h+"px"}a.adjustFontSizesForVariableText(f,b,d)}}};a.updateVarText=function(c,b,d){if(a.responsive){a:{var e=0,f=0,h=0,g=0,k=0,l="",j="",m=!1,n=null,o=void 0,p=void 0,s=void 0,u=void 0,q=!1;b&&(q=!0);if(c.id){var r=a.D[c.id];if(r){var w=r.mdi,v=b=null;w&&(b=a.D[w],v=a(w));var J=a.isCaptionItem(r.type)&&a.D[r.mdi]&&a.D[r.mdi].ip,D=a.kCPOTAutoShape==r.type||a.kCPOTStageCorrectFeedbackShape==
r.type||a.kCPOTSuccessShapeItem==r.type||a.kCPOTStageIncorrectFeedbackShape==r.type||a.kCPOTFailureShapeItem==r.type||a.kCPOTHintShapeItem==r.type||a.kCPOTStagePartialCorrectFeedbackShape==r.type||a.kCPOTRetryFeedbackShape==r.type||a.kCPOTIncompleteFeedbackShape==r.type||a.kCPOTTimeoutFeedbackShape==r.type||a.kCPOTAnswerFeedbackShape==r.type,j=a.kCPOTStageAnswerLabel==r.type||a.kCPOTStageAnswerItem==r.type||a.kCPOTStageMatchingAnswerEntry==r.type||a.kCPOTStageMatchingQuestion==r.type;if((a.kCPOTScorableButtonItem==
r.type||a.kCPOTRetakeButton==r.type||a.kCPOTStageQuestionNextButton==r.type||a.kCPOTStageQuestionClearButton==r.type||a.kCPOTStageQuestionBackButton==r.type||a.kCPOTStageQuestionReviewModeNextButton==r.type||a.kCPOTStageQuestionReviewModeBackButton==r.type||a.kCPOTStageQuestionSubmitButton==r.type||a.kCPOTScoringReviewButton==r.type||a.kCPOTScoringContinueButton==r.type||a.kCPOTSubmitAllButton==r.type||a.kCPOTResetButton==r.type||a.kCPOTUndoButton==r.type||a.kCPOTDDSubmitButton==r.type||a.kCPOTTextEntryButtonItem==
r.type)&&void 0!=r.subt&&r.subt==a.kTextButton){c=void 0;break a}p=a(c.id+"_vTxtHolder");s=a(c.id+"_vTxtHandlerHolder");j&&(p=c.drawingBoard,s=c);var A=r.vt,n=r.rpvt;if(!n){c=void 0;break a}var F=[0,0,0,0],I=marginT=marginR=marginB=0;r.autoGrow=a.autoGrow&&!j;I=r.rplm?r.rplm[a.ResponsiveProjWidth]:0;marginT=r.rptm?r.rptm[a.ResponsiveProjWidth]:0;marginR=r.rprm?r.rprm[a.ResponsiveProjWidth]:0;marginB=r.rpbm?r.rpbm[a.ResponsiveProjWidth]:0;var X=r.rptl?r.rptl[a.ResponsiveProjWidth]:a.TextLayoutEnum.kTLCenter,
Y=r.rpta?r.rpta[a.ResponsiveProjWidth]:a.TextAlignmentEnum.kTACenter,A=n[a.ResponsiveProjWidth].vt,N="";if(A&&c.drawingBoard&&p){var M=rrm=rtm=rbm=0,E=r.type==a.kCPOTFillBlankCaption;if(E&&!d){c=void 0;break a}var U=b.hl;if(b&&b.b&&p){var x=null,y=null,j=w+"-vtext",x=a(j),y=a(j+"_Handler"),n=a.movie.stage.getFrameset(c.id);if(p&&!x&&!y){if(b&&(n&&n.isStarted&&1==b.visible&&"visible"==p.style.visible)&&(m=!0),x=a.newElem("div"),x.className="cp-vtxt",x.setAttribute("aria-hidden","true"),x.id=j,v&&(x.style.left=
v.style.left),x.style.cssText="word-wrap:break-word;white-space:pre-wrap;overflow:hidden;line-height:90%;",x.style.cssText+="",m||(x.style.visibility="hidden"),n&&n.htmlDependents.push(x),a.movie.stage.addToParentChildMap(c.id,p.id),a.movie.stage.addToParentChildMap(c.id,j),p.appendChild(x),U||E)if(y=a.newElem("div"),y.className="cp-vtxt",y.id=j+"_Handler",y.style.cssText="word-wrap:break-word;white-space:pre-wrap;overflow:hidden;line-height:90%;",y.style.cssText+="",m||(y.style.visibility="hidden"),
a.movie.stage.addToParentChildMap(c.id,s.id),a.movie.stage.addToParentChildMap(c.id,y.id),s.appendChild(y),E&&(a(c.id).style.overflow="visible",y.style.overflow="visible"),v)y.style.left=v.style.left}else{if(!n||!n.isStarted){c=void 0;break a}o=G[w];o||(u=G[r.qdi],o=u.answertextCanvasShape);E||(x=a(j));x&&q&&(b&&1==b.visible&&o&&o.isDrawn)&&(x.style.visibility="visible");if(U||E){if((y=document.getElementById(j+"_Handler"))&&q&&b&&1==b.visible)y.style.visibility="visible",U&&(y.style.backgroundColor=
"#ffffff",y.style.opacity=0);v&&(y.style.left=v.style.left)}x&&(v&&(x.style.left=v.style.left),x.style.width="",x.style.height="");y&&(y.style.width="",y.style.height="");o.actualParent.offsetHeight=o.actualParent.offsetHeight;D&&(m=[I+M,marginT+rtm,marginR+rrm,marginB+rbm],x&&a.updateTextBounds(x,o.actualParent,b.tb,m),y&&a.updateTextBounds(y,o.actualParent,b.tb,m));if(F&&!D&&(x&&(x.style.left=F[0]+I+M+"px",x.style.top=F[1]+marginT+rtm+"px",x.style.right=F[2]+marginR+rrm+"px",x.style.bottom=F[3]+
marginB+rbm+"px"),y))y.style.left=F[0]+I+M+"px",y.style.top=F[1]+marginT+rtm+"px",y.style.right=F[2]+marginR+rrm+"px",y.style.bottom=F[3]+marginB+rbm+"px"}}try{if(void 0!=r.vars&&void 0!=r.varLens&&void 0!=r.texts){for(var W=a.ResponsiveProjWidth,aa=r.vars[W],ea=r.varLens[W],fa=r.texts[W],h=aa.length,g=fa.length;!(N+=fa[f++],e<h&&(l=window[aa[e]],void 0==l&&(l=""),k=ea[e],l.length>k&&(l=l.substr(0,k)),++e,N+=l),f>=g););x&&!E&&(x.innerHTML=N);if(U||E){U&&(A=N);if(""==y.innerHTML||U&&y.innerHTML!=A)y.innerHTML=
A;var R={captionName:c.id,reason:"updateResponsiveVarText",callbackFn:function(){y.innerHTML=A}};a.em.fireEvent("CPInputControlReplacedEvent",R)}}else if(x&&(x.innerHTML!=A&&!E)&&(x.innerHTML=A),U||E){if(""==y.innerHTML||U&&y.innerHTML!=A)y.innerHTML=A;R={captionName:c.id,reason:"updateResponsiveVarText",callbackFn:function(){y.innerHTML=A}};a.em.fireEvent("CPInputControlReplacedEvent",R)}d&&a.movie.stage.addHyperLinks({n:c.id,t:r.type},a(c.id));if(b.sh){d=!J;void 0!=b.fa&&(d=0==b.fa);var B;x&&(B=
x.firstChild);var L;y&&(L=y.firstChild);B&&B.firstChild&&a.applyShadow(B.firstChild,b.sh,d);L&&L.firstChild&&a.applyShadow(L.firstChild,b.sh,d)}B=function(b){var c=b.clientWidth;if(E)c=b.parentElement.clientWidth;return a.createTempTextElemAndGetBoundingRect(c,r,b.innerHTML)};var K=x?x:y,O=B(K);if(o){r.variableText=K.innerHTML;parseFloat(K.style.left);parseFloat(K.style.top);parseFloat(K.style.right);parseFloat(K.style.bottom);var T=E||o&&o.currentCSS&&o.currentCSS.h&&-1==o.currentCSS.h.indexOf("H%")&&
-1==o.currentCSS.h.indexOf("auto");r.autoGrow=r.autoGrow&&!T&&!r.isPartOfInteraction;if(r.autoGrow){T=!1;if(K&&K.clientHeight<O.height){r.breakevenWidth||(r.breakevenWidth={});var P=r.breakevenWidth[a.ResponsiveProjWidth],Z=o.actualParent.clientWidth-K.clientWidth,V=o.actualParent.clientHeight-K.clientHeight;if(!P){var ba=a.getMaxWHBpt(o.responsiveCSS[a.ResponsiveProjWidth],a.ResponsiveProjWidth).w-Z,Q=a.createTempTextElemAndGetBoundingRect(ba,r,K.innerHTML),$=Q.width+Z,ca=Q.height+V,H=a.getExpectedWindowWidthToFitText(o.currentCSS,
$,ca),H=a.getExpectedWindowWidthToFitText(o.currentCSS,$,ca),P={winW:H,expw:Q.width,hOffsets:Z,vOffsets:V};r.breakevenWidth[a.ResponsiveProjWidth]=P}r.minItemHeight=O.height+V;if(a.fluidFont&&(x&&a.adjustFontSizesForVariableText(x,P,x.clientWidth),y)){var da=y.clientWidth;x&&(da=x.clientWidth);a.adjustFontSizesForVariableText(y,P,da)}O=B(K);if(K.clientHeight<O.height){var S=O.height;r.minItemHeight=S+V;var C=a.getMinMaxHeight(o.currentCSS);!isNaN(C.maxH)&&r.minItemHeight>C.maxH&&(r.minItemHeight=
C.maxH,S=r.minItemHeight-V);T=!0;x&&(x.style.height=S+"px");y&&(y.style.height=S+"px")}}T&&(u?u.drawForResponsive(!0,a.ReasonForDrawing.kTextGrow):o.drawForResponsive(!0,a.ReasonForDrawing.kTextGrow))}}P=function(b){if(b){b.style.width=O.width+"px";b.style.height=O.height+"px";b.style.position="absolute";switch(Y){case a.TextAlignmentEnum.kTARightJustify:b.style.textAlign="right";break;case a.TextAlignmentEnum.kTACenter:b.style.textAlign="center";break;default:b.style.textAlign="left"}switch(X){case a.TextLayoutEnum.kTLBottom:var c=
x.clientHeight-O.height;E&&(c=K.parentElement.clientHeight-O.height);b.style.top=(c<0?0:c)+"px";break;case a.TextLayoutEnum.kTLCenter:c=(x.clientHeight-O.height)/2;E&&(c=(K.parentElement.clientHeight-O.height)/2);if(c>0){b.style.bottom="";b.style.top=c+"px"}break;default:b.style.top="0px"}}};x&&P(x.firstChild);y&&(P(y.firstChild),E&&(R={captionName:c.id,reason:"updateResponsiveVarText:textadjust"},a.em.fireEvent("CPInputControlReplacedEvent",R)))}catch(ga){a.log(ga)}}}}c=void 0}return c}ba=V=Z=P=
R=0;$=Q="";ca=!1;L=null;L=!1;b&&(L=!0);if(c.id&&(H=a.D[c.id]))if(da=H.vt,S="",da&&c.drawingBoard&&(d=H.mdi,C=null,d&&(C=a.D[d]),T=c.drawingBoard,C&&C.b&&T)){B=null;$=d+"-vtext";if(2>T.children.length)void 0!=H.lm&&(g=H.lm,h=H.tm,k=H.rm,l=H.bm),B=a.newElem("div"),B.className="cp-vtxt",B.id=$,L=a.movie.stage.getFrameset(c.id),C&&(L&&L.isStarted&&1==C.visible)&&(ca=!0),B.style.cssText="word-wrap:break-word;white-space:pre-wrap; width: "+(C.b[2]-C.b[0]-(g+k)+"px")+";height:"+(C.b[3]-C.b[1]-(h+l)+"px")+
";line-height:90%;overflow:hidden;",d=""+("margin-left:"+(C.b[0]+g-C.vb[0])+"px;"),d+="margin-top:"+(C.b[1]+h-C.vb[1])+"px;",B.style.cssText+=d,ca||(B.style.visibility="hidden"),C.tr&&a.applyTransform(B,C.tr),C.sh&&a.applyShadow(B,C.sh),L&&L.htmlDependents.push(B),a.movie.stage.addToParentChildMap(c.id,$),T.appendChild(B);else if(c=G[d],(B=T.children[1])&&L&&C&&1==C.visible&&c&&c.isDrawn)B.style.visibility="visible";try{if(void 0!=H.vars&&void 0!=H.varLens&&void 0!=H.texts){o=a.D.project.w;u=H.vars[o];
e=H.varLens[o];f=H.texts[o];Z=u.length;for(V=f.length;!(S+=f[P++],R<Z&&(Q=window[u[R]],void 0==Q&&(Q=""),ba=e[R],Q.length>ba&&(Q=Q.substr(0,ba)),++R,S+=Q),P>=V););B.innerHTML=S}else B.innerHTML=da}catch(ha){a.log(ha)}}};a.updateVariableTextBounds=function(c,b){c.element&&a.updateVarText(c.element,!0,b)};a.updateNoSkipFramesAndUpdateVarText=function(c){c.element&&a.updateVarText(c.element,!0);c.pa&&(a.movie.stage.noSkipFrames[c.pa]=c.pa);c.psv&&(a.movie.stage.noSkipFrames[c.psv]=c.psv)};a.RegisterExternalObjects=
function(c,b,d,e){a.IsValidObj(a.extObjInfo)||(a.extObjInfo=[]);for(var f=!1,h=0;h<a.extObjInfo.length;++h)if(a.extObjInfo[h].cb==d){f=!0;break}f||(f={},f.n=c,f.cls=b,f.cb=d,f.chcb=e,a.extObjInfo.push(f))};a.AddNoSkipFrameExternal=function(c){a.movie.stage&&(a.movie.stage.noSkipFrames[c]=c)};a.AddExternalAudioCb=function(c){var b=!1;void 0==a.extAudioCallbacks&&(a.extAudioCallbacks=[]);for(var d=0;d<a.extAudioCallbacks.length;++d)if(a.extAudioCallbacks[d]==c){b=!0;break}b||a.extAudioCallbacks.push(c)};
a.showHideFeedbackCaptionsClickHandler=function(c,b,d,e){d||(d=a.D[c.id].topMostObjectInteractiveObject);return!d?!1:(c=a.D[d])&&void 0!=c.val?!1:a.clickFailureHandler(c,b,e)};a.getLocalisedStateName=function(c){return a.D.project.stateNameToLocalizedStateNameMap[c]};a.doesSupportStates=function(c){var b=!1;if(void 0==c)return b;switch(c){case a.kCPOTScorableButtonItem:case a.kCPOTTextEntryButtonItem:b=!0}return b};a.shouldRelaxBrowserCheck=function(c){var b=!1;if(void 0==c)return b;switch(c){case a.kCPOTTextEntryButtonItem:b=
!0}return b};a.toggleLMSPreviewDebugLogsColor=function(a){lBackgroundColorArray=["#FFFFFF","#D8D8D8"];a.getBackgroundColorForLogs()==lBackgroundColorArray[0]?a.setBackgroundColorForLogs(lBackgroundColorArray[1]):a.setBackgroundColorForLogs(lBackgroundColorArray[0])};a.setInitialVisibility=function(c){if(c){var b=[],d=!0,e=c.element.id,f=-1;if("undefined"!==c.baseStateItemID&&"undefined"!==c.initialState){if(-1==c.baseStateItemID)b=c.states,a.D[e]&&a.D[e].visible&&(d=a.D[e].visible),f=c.currentState;
else{var h=c.baseStateItemID,g=a.model.data,k;for(k in g){var l=g[k];if(l&&l.uid&&l.uid==h){b=a.D[l.dn].stl;d=l.effectiveVi;f=a.D[l.dn].stis;break}}}if(!(0==b.length||-1==f)){h=!1;if(c.currentState<b.length&&(k=b[f])){b=k.stsi;for(k=0;k<b.length;k++)if(f=b[k],a.D[e]&&a.D[e].uid&&f==a.D[e].uid){h=!0;break}}c.visible=h&&d;a.D[e]&&(a.D[e].visible=c.visible)}}}};a.GetMouseOverManager=function(){a.movie.mouseOverManager||(a.movie.mouseOverManager=new a.MouseOverManager);return a.movie.mouseOverManager};
a.handleMouseMoveNew=function(c){var b=a.GetMouseOverManager();b&&b.handleMouseMove(c)}})(window.cp);
(function(a){a.UNKNOWN=0;a.WINDOWS=1;a.MACOS=2;a.DESKTOP=1;a.IDEVICE=2;a.ANDROID=3;a.KINDLE=4;a.IPAD2=1;a.IPAD3=2;a.IPHONE=3;a.IOS1=1;a.IOS2=2;a.IOS3=3;a.IOS4=4;a.IOS5=5;a.IOS6=6;a.IOS7=7;a.IOS8=8;a.MSIE=1;a.FIREFOX=2;a.CHROME=3;a.SAFARI=4;a.NETSCAPE=5;a.OPERA=6;a.CAMINO=7;a.FIREBIRD=8;a.MSEDGE=9;a.MSIE_MIN_SUPPORTED_VERSION=9;a.CHROME_MIN_SUPPORTED_VERSION=17;a.SAFARI_MIN_SUPPORTED_VERSION=5.1;a.FF_MIN_SUPPORTED_VERSION_WIN=22;a.FF_MIN_SUPPORTED_VERSION_MAC=35;a.FF_MIN_SUPPORTED_VERSION_FFOS=15;
a.FF_MIN_SUPPORTED_VERSION_ANDROID=20;a.FF_MIN_SUPPORTED_VERSION=void 0;a.HAVE_NOTHING=0;a.HAVE_METADATA=1;a.HAVE_CURRENT_DATA=2;a.HAVE_FUTURE_DATA=3;a.HAVE_ENOUGH_DATA=4;a.disablePaceMaker=!1;a.verbose=!1;a.poolVerbose=!1;a.exceptionalLogs=!0;a.consolidateLogs=!1;a.dynamicLogControl=!1;a.projectContainer=null;a.project=null;a.playImage=null;a.autoplayImage=null;a.autoplayDiv=null;a.pwdv=null;a.exdv=null;a.preloaderImage=null;a.verbose&&a.log("navigator.userAgent = "+navigator.userAgent);a.OS=a.UNKNOWN;
a.device=a.DESKTOP;a.deviceFlavor=a.UNKNOWN;a.IOSMajor=a.UNKNOWN;a.IOSMinor=a.UNKNOWN;a.IOSBuild=a.UNKNOWN;a.browser=a.UNKNOWN;a.browserVersion=a.UNKNOWN;a.browser_supports_svg=!0;a.kTextButton=0;a.kTransparentButton=2;a.kImageButton=3;a.kCPRolloverCaptionItem=25;a.kCPRolloverImageItem=26;a.kCPOTRolloverAutoShape=617;a.kCPRolloverAreaItem=27;a.kCPOTAnimationItem=28;a.kCPOTCaptionItem=19;a.kCPHighlight=14;a.kCPOTImageBoxItem=15;a.kCPMouse=12;a.kCPMouseClick=15728652;a.kCPOTStageAnswerItem=80;a.kCPOTIncompleteFeedbackItem=
97;a.kCPZoomSource=99;a.kCPOTStageCorrectFeedback=10086;a.kCPOTStageIncorrectFeedback=10087;a.kCPOTStagePartialCorrectFeedback=10139;a.kCPOTTimeoutFeedbackItem=174;a.kCPOTRetryFeedbackItem=81;a.kCPOTStageSingleChoiceMultipleAnswer=10082;a.kCPOTStageMultipleChoiceMultipleAnswer=10081;a.kCPOTStageLikertQuestion=10112;a.kCPOTStageSequenceAnswer=10096;a.kCPOTStageMatchingAnswer=10097;a.kCPOTStageMatchingAnswerEntry=10098;a.kCPOTStageMatchingQuestion=10110;a.kCPOTQuestionColumn=87;a.kCPOTQuestionFillBlank=
10011;a.kCPOTStageShortAnswer=10094;a.kCPOTItemHotSpot=131;a.kCPOTFillBlankCaption=10106;a.kCPOTReviewArea=94;a.kCPOTProgressIndicator=92;a.kCPOTScoringResult=111;a.kCPOTClickBoxItem=13;a.kCPOTScorableButtonItem=177;a.kCPTypingText=64;a.kCPFullMotion=270;a.kCPOTFLVItem=98;a.kCPOTVideo=365;a.kCPOTVideoResource=359;a.kCPOTSuccessCaptionItem=21;a.kCPOTFailureCaptionItem=22;a.kCPOTHintCaptionItem=23;a.kCPOTTextEntryBoxItem=24;a.kCPOTTextEntryButtonItem=75;a.kCPOTRetakeButton=175;a.kCPOTLineItem=142;a.kCPOTOvalItem=
167;a.kCPOTRectangleItem=168;a.kCPOTPolygon=209;a.kCPOTAnswerArea=10142;a.kCPOTMatchingQuestionArea=10143;a.kCPOTMatchingAnswerArea=10144;a.kCPOTLikertHeaderArea=10146;a.kCPOTLikertQuestionArea=10147;a.kCPOTLikertTotalGroupArea=10148;a.kCPOTStageQuestionText=79;a.kCPOTStageQuestionTitle=86;a.kCPOTTitleAutoShape=589;a.kCPOTSubTitleAutoShape=590;a.kCPOTAutoShape=612;a.kCPOTWidgetItem=133;a.kCPOTWebObject=652;a.kCPOTTAItem=76;a.kCPOTStageAnswerLabel=10088;a.kCPOTStageQuestionNextButton=83;a.kCPOTStageQuestionClearButton=
84;a.kCPOTStageQuestionBackButton=85;a.kCPOTStageQuestionSubmitButton=91;a.kCPOTStageQuestionReviewModeNextButton=10180;a.kCPOTStageQuestionReviewModeBackButton=10182;a.kCPOTScoringResultItem=112;a.kCPOTScoringReviewButton=103;a.kCPOTScoringContinueButton=10119;a.kCPOTSubmitAllButton=10149;a.kCPOTResetButton=640;a.kCPOTUndoButton=639;a.kCPOTDDSubmitButton=641;a.kCPOTStageCorrectFeedbackShape=10166;a.kCPOTStageIncorrectFeedbackShape=10168;a.kCPOTStagePartialCorrectFeedbackShape=10170;a.kCPOTRetryFeedbackShape=
10172;a.kCPOTIncompleteFeedbackShape=10174;a.kCPOTAnswerFeedbackShape=10176;a.kCPOTTimeoutFeedbackShape=10178;a.kCPOTSuccessShapeItem=661;a.kCPOTFailureShapeItem=663;a.kCPOTHintShapeItem=665;a.rCSSProps="position left top right bottom width height".split(" ");a.rCPProps="p l t r b w h apr cr rpmm sh".split(" ");a.rCPLinkProps="lhEID lhV lhID lvEID lvV lvID".split(" ");a.rLinkEdges=["","left","top","right","bottom"];a.rLinkEdge={};a.rLinkEdge.UNKNOWN=0;a.rLinkEdge.LEFT=1;a.rLinkEdge.TOP=2;a.rLinkEdge.RIGHT=
3;a.rLinkEdge.BOTTOM=4;a.ReasonForDrawing={};a.ReasonForDrawing.kRegularDraw=0;a.ReasonForDrawing.kOrientationChangeOrResize=1;a.ReasonForDrawing.kTextGrow=2;a.ReasonForDrawing.kMouseEvent=3;a.ReasonForDrawing.kMoviePaused=4;a.ReasonForDrawing.kSlideChanged=5;a.ReasonForDrawing.kLinkedToItemAppeared=6;a.TextAlignmentEnum={};a.TextAlignmentEnum.kTALeftJustify=0;a.TextAlignmentEnum.kTARightJustify=1;a.TextAlignmentEnum.kTACenter=2;a.TextAlignmentEnum.kTAJustified=3;a.TextLayoutEnum={};a.TextLayoutEnum.kTLTop=
0;a.TextLayoutEnum.kTLCenter=1;a.TextLayoutEnum.kTLBottom=2;a.ReportingOptionsEnum={};a.ReportingOptionsEnum.breeze=0;a.ReportingOptionsEnum.quiz_only=1;a.ReportingOptionsEnum.quiz_and_views=2;a.ReportingOptionsEnum.views_only=3;a.ReportingOptionsEnum.access=4;a.ReportingOptionsEnum.completion_success=5;a.ReportingOptionsEnum.incompleteToPassedOrFailed=6;a.ReportingOptionsEnum.completion_only=7;a.SlideViewsTypeEnum={};a.SlideViewsTypeEnum.percent=0;a.SlideViewsTypeEnum.number=1;a.QuizCriteriaEnum=
{};a.QuizCriteriaEnum.QuizIsPassed=0;a.QuizCriteriaEnum.QuizIsAttempted=1;a.QuizCriteriaEnum.QuizIsPassedOrAttempLimitReached=2;a.kBeginPath=0;a.kMoveTo=1;a.kLineTo=2;a.kBezierTo=3;a.kClosePath=4;a.kNotClosed=5;a.kNoStroke=6;a.kPathFillData=7;a.kPathFillAlpha=8;a.KPathStrokeColor=9;a.KPathStrokeWidth=10;a.KPathStrokeAlpha=11;a.accOutlineStyleStr="";a.kPPTXSlideImagesStr="pxi";a.kPPTXSlideImagesDir="dr/pptxIm/";a.kTTNone=-1;a.kTTOnEnter=0;a.kTTOnClick=1;a.kTTOnTextEntry=2;a.kTTOnRollover=3;a.kTTOnSuccess=
4;a.kTTOnFailure=5;a.kTTOnSlideExit=6;a.kTTOnHyperlink=7;a.kTTOnDropOfType=8;a.kSTTNone=-1;a.kSTTNormal=0;a.kSTTDown=1;a.kSTTRollOver=2;a.kSTTDragOver=3;a.kSTTDragStart=4;a.kSTTDropCorrect=5;a.kSTTDropIncorrect=6;a.kSTTDropAccept=7;a.kSTTDropReject=8;a.kSTTCustom=9;a.QuestionStatusEnum={};a.QuestionStatusEnum.INCOMPLETE=0;a.QuestionStatusEnum.INCORRECT=1;a.QuestionStatusEnum.CORRECT=2;a.QuestionStatusEnum.PARTIAL_CORRECT=3;a.mouseStateOver=1;a.mouseStateOut=2;a.mouseStateDown=3;a.mouseStateUp=4;a.mouseStateTouchStart=
5;a.mouseStateTouchMove=6;a.mouseStateTouchEnd=7;a.ReasonForPause={};a.ReasonForPause.PLAYBAR_ACTION=0;a.ReasonForPause.INTERACTIVE_ITEM=1;a.ReasonForPause.MOVIE_ENDED=2;a.ReasonForPause.VIDEO_SYNC=3;a.ReasonForPause.FEEDBACK_ITEM=4;a.ReasonForPause.CANNOT_MOVE_AHEAD=5;a.ReasonForPause.WAIT_FOR_RESOURCES=6;a.ReasonForPause.MOVIE_REWIND_STOP=7;a.ReasonForPause.CPCMNDPAUSE=8;a.ReasonForPause.SHOW_VALUE_AT_FRAME=9;a.ReasonForPause.DONT_CARE_DEPRECATED_CODE=10;a.ReasonForPause.EVENT_VIDEO_PAUSE=11;a.ReasonForPause.ONLY_ONE_MEDIUM_CAN_PLAY=
12;a.ReasonForPause.PPTX_PAUSE_FOR_ONCLICK_ANIMATION=13;a.ReasonForPause.CPCMNDGOTOFRAME=14;a.ReasonForPause.BAD_ORIENTATION=15;a.ReasonForPause.WK_EXIT_FULL_SCREEN=16;a.ReasonForPause.ACTION_CHOICE=17;a.ReasonForPlay={};a.ReasonForPlay.PLAYBAR_ACTION=0;a.ReasonForPlay.INTERNAL=1;a.ReasonForPlay.ORIENTATION_OK=2;a.ReasonForPlay.MOVIE_REWIND=3;a.ReasonForPlay.ACTION_CHOICE=4;a.FeedbackType={SUCCESS:0,FAILURE:1,HINT:2,OTHER:3};a.FeedbackCloseReason={SHOW_SUCCESS:1,SHOW_FAILURE:2,SHOW_HINT:3,SLIDE_CHANGE:4,
OTHER:5};a.lastTouch=(new Date).getTime();-1!=navigator.appVersion.indexOf("Win")?a.OS=a.WINDOWS:-1!=navigator.appVersion.indexOf("Mac")&&(a.OS=a.MACOS);a.multiAudioTrack=!0;a.waitForAudio=!1;if(navigator.userAgent.match(/(iPhone|iPad)/i)){a.device=a.IDEVICE;a.browser_supports_svg=!1;a.accOutlineStyleStr="outline-style:none";var b=window.devicePixelRatio?window.devicePixelRatio:1;-1!=navigator.userAgent.indexOf("iPhone")?a.deviceFlavor=a.IPHONE:-1!=navigator.userAgent.indexOf("iPad")&&(a.deviceFlavor=
a.IPAD2,2<=b&&(a.deviceFlavor=a.IPAD3));(b=navigator.userAgent.match(/OS [1-9][0-9]*_[0-9][0-9]*_[0-9][0-9]*/))||(b=navigator.userAgent.match(/OS [1-9][0-9]*_[0-9][0-9]*/));b&&b[0]&&(b=b[0].split("_"),a.IOSMajor=parseInt(b[0].substr(2),10),a.IOSMinor=parseInt(b[1],10),3<=b.length&&(a.IOSBuild=parseInt(b[2],10)));a.IOSMajor>=a.IOS5&&(a.waitForAudio=!0)}else navigator.userAgent.match(/android/i)?(a.device=a.ANDROID,a.waitForAudio=!0,a.accOutlineStyleStr="outline-style:none"):navigator.userAgent.match(/Silk/i)&&
(a.device=a.KINDLE);navigator.userAgent.match(/MSIE/i)?(a.browser=a.MSIE,a.browserVersion=a.getCurrentBrowserVersion(navigator.userAgent,"MSIE")||a.getCurrentBrowserVersion(navigator.appVersion,"MSIE")||a.UNKNOWN):navigator.userAgent.match(/Edge/i)?(a.browser=a.MSEDGE,a.browserVersion=a.getCurrentBrowserVersion(navigator.userAgent,"Edge")||a.getCurrentBrowserVersion(navigator.appVersion,"Edge")||a.UNKNOWN):navigator.userAgent.match(/Firefox/i)?(a.browser=a.FIREFOX,a.accOutlineStyleStr="outline-style:none",
a.OS==a.WINDOWS?a.FF_MIN_SUPPORTED_VERSION=a.FF_MIN_SUPPORTED_VERSION_WIN:a.OS==a.MACOS?a.FF_MIN_SUPPORTED_VERSION=a.FF_MIN_SUPPORTED_VERSION_MAC:a.OS==a.ANDROID&&(a.FF_MIN_SUPPORTED_VERSION=a.FF_MIN_SUPPORTED_VERSION_ANDROID),a.browserVersion=a.getCurrentBrowserVersion(navigator.userAgent,"Firefox")||a.getCurrentBrowserVersion(navigator.appVersion,"Firefox")||a.UNKNOWN):navigator.userAgent.match(/Chrome/i)?(a.browser=a.CHROME,a.accOutlineStyleStr="outline-style:none",a.browserVersion=a.getCurrentBrowserVersion(navigator.userAgent,
"Chrome")||a.getCurrentBrowserVersion(navigator.appVersion,"Chrome")||a.UNKNOWN):navigator.userAgent.match(/Safari/i)?(a.browser=a.SAFARI,a.browser_supports_svg=!1,a.accOutlineStyleStr="outline-style:none",a.browserVersion=a.getCurrentBrowserVersion(navigator.userAgent,"Version")||a.getCurrentBrowserVersion(navigator.appVersion,"Version")||a.UNKNOWN):navigator.userAgent.match(/Netscape/i)?(a.browser=a.NETSCAPE,a.browserVersion=a.getCurrentBrowserVersion(navigator.userAgent,"Netscape")||a.getCurrentBrowserVersion(navigator.appVersion,
"Netscape")||a.UNKNOWN):navigator.userAgent.match(/Opera/i)?(a.browser=a.OPERA,a.browserVersion=a.getCurrentBrowserVersion(navigator.userAgent,"Version")||a.getCurrentBrowserVersion(navigator.appVersion,"Version")||a.UNKNOWN):navigator.userAgent.match(/Camino/i)?(a.browser=a.CAMINO,a.browserVersion=a.getCurrentBrowserVersion(navigator.userAgent,"Camino")||a.getCurrentBrowserVersion(navigator.appVersion,"Camino")||a.UNKNOWN):navigator.userAgent.match(/Firebird/i)&&(a.browser=a.FIREBIRD);a.verbose&&
(a.log("browser = "+a.browser),a.log("browserVersion = "+a.browserVersion),a.log("device = "+a.device),a.device==a.IDEVICE&&(a.log("device flavor = "+a.deviceFlavor),a.log("IOS Version = "+a.IOSMajor+"_"+a.IOSMinor+"_"+a.IOSBuild)),a.log("browser_supports_svg = "+a.browser_supports_svg))})(window.cp);
(function(b){function g(c,a){try{c.id?b.updateVarText(c):c(a)}catch(d){}}function h(c){if("CPVariableValueChangedEvent"==c.cpName){var a=EventListeners[b.VARIABLE_CHANGED_EVENT];d(c,a);for(a=0;a<c.cpData.notify.length;++a)for(var i=c.cpData.notify[a],f=EventListeners[b.SPECIFIC_VARIABLE_CHANGED_EVENT],e=0;e<f.length;++e)if(f[e].n==i){var h=f[e].l;f[e].r&&(c.reciever=f[e].r);g(h,c)}}else"CPVariableCreatedEvent"==c.cpName?(a=EventListeners[b.VARIABLE_CREATED_EVENT],d(c,a)):"CPTime_Update"==c.cpName?
(a=EventListeners[b.TIMEUPDATEEVENT],d(c,a)):"CPSet_ResumeData"==c.cpName?(a=EventListeners[b.SET_RESUMEDATA],d(c,a)):"CPPlaybarStateChanged"==c.cpName?(a=EventListeners[b.PLAYBARSTATECHANGED],d(c,a)):"CPTocStateChanged"==c.cpName?(a=EventListeners[b.TOCSTATECHANGED],d(c,a)):"CPSlideEnter"==c.cpName?(a=EventListeners[b.SLIDEENTEREVENT],d(c,a)):"CPSlideExit"==c.cpName?(a=EventListeners[b.SLIDEEXITEVENT],d(c,a)):"CPInteractiveItemSubmit"==c.cpName?(a=EventListeners[b.INTERACTIVEITEMSUBMITEVENT],d(c,
a)):"CPMoviePause"==c.cpName?(a=EventListeners[b.MOVIEPAUSEEVENT],d(c,a)):"CPMovieResume"==c.cpName?(a=EventListeners[b.MOVIERESUMEEVENT],d(c,a)):"CPMovieStart"==c.cpName?(a=EventListeners[b.MOVIESTARTEVENT],d(c,a)):"CPMovieStop"==c.cpName?(a=EventListeners[b.MOVIESTOPEVENT],d(c,a)):"CPMovieExit"==c.cpName?(a=EventListeners[b.MOVIEEXITEVENT],d(c,a)):"CPQuestionSkip"==c.cpName?(a=EventListeners[b.QUESTIONSKIPEVENT],d(c,a)):"CPQuestionSubmit"==c.cpName?(a=EventListeners[b.QUESTIONSUBMITEVENT],d(c,a)):
"CPStartPlaybarScrubbing"==c.cpName?(a=EventListeners[b.STARTPLAYBARSCRUBBINGEVENT],d(c,a)):"CPEndPlaybarScrubbing"==c.cpName?(a=EventListeners[b.ENDPLAYBARSCRUBBINGEVENT],d(c,a)):"CPMovieFocusIn"==c.cpName?(a=EventListeners[b.MOVIEFOCUSINEVENT],d(c,a)):"CPMovieFocusLost"==c.cpName?(a=EventListeners[b.MOVIEFOCUSLOSTEVENT],d(c,a)):"CPMovieAudioMute"==c.cpName?(a=EventListeners[b.MOVIEAUDIOMUTEEVENT],d(c,a)):"CPInputControlReplacedEvent"==c.cpName?(a=EventListeners[b.INPUTCONTROLREPLACEDEVENT],d(c,
a)):"CPWindowResized"==c.cpName?(a=EventListeners[b.WINDOWRESIZEDEVENT],d(c,a)):"CPWindowResizeCompleted"==c.cpName?(a=EventListeners[b.WINDOWRESIZECOMPLETEDEVENT],d(c,a)):"CPOrientationChanged"==c.cpName?(a=EventListeners[b.ORIENTATIONCHANGEDEVENT],d(c,a)):"CPOrientationChangeCompleted"==c.cpName?(a=EventListeners[b.ORIENTATIONCHANGECOMPLETEDEVENT],d(c,a)):"CPItemDrawingCompleteEvent"==c.cpName?(a=EventListeners[b.ITEMDRAWINGCOMPLETEEVENT],d(c,a)):"CPQuizSlideReached"==c.cpName&&(a=EventListeners[b.QUIZSLIDEREACHED],
g(c,a))}function d(b,a){for(var d=0;d<a.length;++d){var f=a[d];f.r&&(b.reciever=f.r);g(f.l,b)}}b.VARIABLE_CREATED_EVENT=0;b.VARIABLE_CHANGED_EVENT=1;b.SPECIFIC_VARIABLE_CHANGED_EVENT=2;b.SLIDEENTEREVENT=3;b.SLIDEEXITEVENT=4;b.INTERACTIVEITEMSUBMITEVENT=5;b.MOVIEPAUSEEVENT=6;b.MOVIERESUMEEVENT=7;b.MOVIESTARTEVENT=8;b.MOVIESTOPEVENT=9;b.QUESTIONSKIPEVENT=10;b.QUESTIONSUBMITEVENT=11;b.STARTPLAYBARSCRUBBINGEVENT=12;b.ENDPLAYBARSCRUBBINGEVENT=13;b.MOVIEFOCUSINEVENT=14;b.MOVIEFOCUSLOSTEVENT=15;b.MOVIEAUDIOMUTEEVENT=
16;b.INPUTCONTROLREPLACEDEVENT=17;b.WINDOWRESIZEDEVENT=18;b.WINDOWRESIZECOMPLETEDEVENT=19;b.ORIENTATIONCHANGEDEVENT=20;b.ORIENTATIONCHANGECOMPLETEDEVENT=21;b.TIMEUPDATEEVENT=22;b.SET_RESUMEDATA=23;b.PLAYBARSTATECHANGED=24;b.TOCSTATECHANGED=25;b.ITEMDRAWINGCOMPLETEEVENT=26;b.MOVIEEXITEVENT=27;b.QUIZSLIDEREACHED=28;window.EventListeners=[];window.EventListeners[b.VARIABLE_CREATED_EVENT]=[];window.EventListeners[b.VARIABLE_CHANGED_EVENT]=[];window.EventListeners[b.SPECIFIC_VARIABLE_CHANGED_EVENT]=[];
window.EventListeners[b.SLIDEENTEREVENT]=[];window.EventListeners[b.SLIDEEXITEVENT]=[];window.EventListeners[b.INTERACTIVEITEMSUBMITEVENT]=[];window.EventListeners[b.MOVIEPAUSEEVENT]=[];window.EventListeners[b.MOVIERESUMEEVENT]=[];window.EventListeners[b.MOVIESTARTEVENT]=[];window.EventListeners[b.MOVIESTOPEVENT]=[];window.EventListeners[b.QUESTIONSKIPEVENT]=[];window.EventListeners[b.QUESTIONSUBMITEVENT]=[];window.EventListeners[b.STARTPLAYBARSCRUBBINGEVENT]=[];window.EventListeners[b.ENDPLAYBARSCRUBBINGEVENT]=
[];window.EventListeners[b.MOVIEFOCUSINEVENT]=[];window.EventListeners[b.MOVIEFOCUSLOSTEVENT]=[];window.EventListeners[b.MOVIEAUDIOMUTEEVENT]=[];window.EventListeners[b.INPUTCONTROLREPLACEDEVENT]=[];window.EventListeners[b.WINDOWRESIZEDEVENT]=[];window.EventListeners[b.WINDOWRESIZECOMPLETEDEVENT]=[];window.EventListeners[b.ORIENTATIONCHANGEDEVENT]=[];window.EventListeners[b.ORIENTATIONCHANGECOMPLETEDEVENT]=[];window.EventListeners[b.TIMEUPDATEEVENT]=[];window.EventListeners[b.SET_RESUMEDATA]=[];window.EventListeners[b.PLAYBARSTATECHANGED]=
[];window.EventListeners[b.TOCSTATECHANGED]=[];window.EventListeners[b.ITEMDRAWINGCOMPLETEEVENT]=[];window.EventListeners[b.MOVIEEXITEVENT]=[];window.EventListeners[b.QUIZSLIDEREACHED]=[];b.EventManager=function(){b.em=this;(!document.createEvent||!document.addEventListener)&&alert("EVENT FIRING WILL NOT WORK");document.addEventListener("propertyChange",h,!1);this.verbose=!1};b.EventManager.prototype={fireEvent:function(b,a){if(document.createEvent){var d=document.createEvent("Events");d.initEvent("propertyChange",
!0,!0,null);d.cpName=b;d.cpData=a;window.cpAPIEventEmitter&&(d.Name=b,d.Data=a,window.cpAPIEventEmitter.trigger(d));return!document.dispatchEvent(d)}},addEventListener:function(c,a,d,f){this.verbose&&b.log("cp.em.addEventListener : "+c+" "+a+" "+d);return a==b.VARIABLE_CREATED_EVENT||a==b.VARIABLE_CHANGED_EVENT||a==b.SLIDEENTEREVENT||a==b.SLIDEEXITEVENT||a==b.STARTPLAYBARSCRUBBINGEVENT||a==b.INTERACTIVEITEMSUBMITEVENT||a==b.MOVIEPAUSEEVENT||a==b.MOVIERESUMEEVENT||a==b.MOVIESTARTEVENT||a==b.MOVIESTOPEVENT||
a==b.MOVIEEXITEVENT||a==b.QUESTIONSKIPEVENT||a==b.QUESTIONSUBMITEVENT||a==b.MOVIEFOCUSINEVENT||a==b.MOVIEFOCUSLOSTEVENT||a==b.MOVIEAUDIOMUTEEVENT||a==b.ENDPLAYBARSCRUBBINGEVENT||a==b.INPUTCONTROLREPLACEDEVENT||a==b.WINDOWRESIZEDEVENT||a==b.ORIENTATIONCHANGEDEVENT||a==b.WINDOWRESIZECOMPLETEDEVENT||a==b.ORIENTATIONCHANGECOMPLETEDEVENT||a==b.TIMEUPDATEEVENT||a==b.SET_RESUMEDATA||a==b.ITEMDRAWINGCOMPLETEEVENT||a==b.QUIZSLIDEREACHED?(a=EventListeners[a],a.push({l:c,r:f}),this.verbose&&b.log(a),!0):a==
b.SPECIFIC_VARIABLE_CHANGED_EVENT?(a=EventListeners[a],a.push({l:c,n:d,r:f}),this.verbose&&b.log(a),!0):!1},removeEventListener:function(c,a,d){this.verbose&&b.log("cp.em.removeEventListener : "+c+" "+a+" "+d);var f=!1;if(a==b.VARIABLE_CREATED_EVENT||a==b.VARIABLE_CHANGED_EVENT||a==b.SLIDEENTEREVENT||a==b.SLIDEEXITEVENT||a==b.STARTPLAYBARSCRUBBINGEVENT||a==b.INTERACTIVEITEMSUBMITEVENT||a==b.MOVIEPAUSEEVENT||a==b.MOVIERESUMEEVENT||a==b.MOVIESTARTEVENT||a==b.MOVIESTOPEVENT||a==b.MOVIEEXITEVENT||a==
b.QUESTIONSKIPEVENT||a==b.QUESTIONSUBMITEVENT||a==b.MOVIEFOCUSINEVENT||a==b.MOVIEFOCUSLOSTEVENT||a==b.MOVIEAUDIOMUTEEVENT||a==b.ENDPLAYBARSCRUBBINGEVENT||a==b.INPUTCONTROLREPLACEDEVENT||a==b.WINDOWRESIZEDEVENT||a==b.ORIENTATIONCHANGEDEVENT||a==b.WINDOWRESIZECOMPLETEDEVENT||a==b.ORIENTATIONCHANGECOMPLETEDEVENT||a==b.TIMEUPDATEEVENT||a==b.SET_RESUMEDATA||a==b.ITEMDRAWINGCOMPLETEEVENT||a==b.QUIZSLIDEREACHED){a=EventListeners[a];if(void 0!=c.id)for(var e=0;e<a.length;++e)a[e].l.id==c.id&&(a.splice(e,
1),f=!0);else for(e=0;e<a.length;++e)a[e].l==c&&(a.splice(e,1),f=!0);f&&this.verbose&&b.log(a)}else if(a==b.SPECIFIC_VARIABLE_CHANGED_EVENT){a=EventListeners[a];if(void 0!=d&&""!=d)if(void 0!=c.id)for(e=0;e<a.length;++e)a[e].l.id==c.id&&a[e].n==d&&(a.splice(e,1),f=!0);else for(e=0;e<a.length;++e)a[e].l==c&&a[e].n==d&&(a.splice(e,1),f=!0);else if(void 0!=c.id)for(e=0;e<a.length;++e)a[e].l.id==c.id&&(a.splice(e,1),f=!0);else for(e=0;e<a.length;++e)a[e].l==c&&(a.splice(e,1),f=!0);f&&this.verbose&&b.log(a)}return f}}})(window.cp);
(function(b){function P(){for(var a=b.device!=b.DESKTOP,c="blackberry;symbian;smartphone;windows ce;windows phone;webos".split(";"),d=navigator.userAgent.toLowerCase(),e="other",f=0;f<c.length;++f)-1!=d.indexOf(c[f])&&(a=!0,e=c[f],e=e.split(" ").join("_"));if(a)switch(b.device){case b.IDEVICE:return 1;case b.ANDROID:return 2;default:return e}else return 0}function h(){return vh._CaptivateVersion?vh._CaptivateVersion:""}function Q(){return vh._cpCmndVolume}function R(a){var c=a/100;0>c&&(c=0);1<c&&
(c=1);b.movie.am.setVolume(c);b.movie.vdm.setVolume(c);svvi("cpCmndVolume",a,["cpCmndVolume"])}function n(a){b.movie.am.mute(a);b.movie.vdm.mute(a);b.em.fireEvent("CPMovieAudioMute",b.movie.am.muted);svvi("cpCmndMute",a,["cpCmndMute","rdcmndMute"])}function o(){return vh._cpCmndMute}function p(){return vh._cpCmndPlaybarMoved}function q(a){svvi("cpCmndPlaybarMoved",a,["cpCmndPlaybarMoved","rdcmndPlaybarMoved"])}function S(){return vh._cpCmndShowPlaybar}function T(a){var c=void 0;b.movie&&b.movie.playbackController&&
(c=b.movie.playbackController.GetQuizController());c&&(c.m_showPlaybar=a);c=document.getElementById("playbar");if(void 0!=c){var d=document.getElementById("playbarBkGrnd");d&&(a?(c.style.display="block",d.style.visibility="visible"):(c.style.display="none",d.style.visibility="hidden"));b.adjustSkins()}svvi("cpCmndShowPlaybar",a,["cpCmndShowPlaybar"]);b.em.fireEvent("CPPlaybarStateChanged",{visible:!!a,locked:!1})}function r(){return vh._cpCmndCC}function U(a){a?(b.movie.cc.style.visibility="","auto"!=
b.movie.cc.style.pointerEvents&&(b.movie.cc.style.pointerEvents="auto")):b.movie.cc.style.visibility="hidden";svvi("cpCmndCC",a,["cpCmndCC","rdcmndCC"])}function s(){return vh._cpCmndRewindAndPlay}function t(a){a&&b.movie.rewind();svvi("cpCmndRewindAndPlay",a,["cpCmndRewindAndPlay","rdcmndRewindAndPlay"])}function u(){return vh._cpCmndRewindAndStop}function v(a){a&&(b.movie.jumpToFrame(1),b.movie.pause(b.ReasonForPause.MOVIE_REWIND_STOP));svvi("cpCmndRewindAndStop",a,["cpCmndRewindAndStop","rdcmndRewindAndStop"])}
function i(){return vh._cpCmndPreviousSlide}function j(a){a&&b.jumpToPreviousSlide();svvi("cpCmndPreviousSlide",a,["cpCmndPreviousSlide","cpCmndPrevious","rdcmndPreviousSlide","rdcmndPrevious"])}function V(a){if(a&&b.movie){var c=-1,d=!1;if(b.movie.playbackController){var e=b.movie.playbackController.GetQuizController();(d=e&&e.GetIsInReviewMode())&&(c=e.GetPreviousQuestionSlideNumber())}d&&0<=c?cpCmndGotoSlideAndResume=c:cpCmndPreviousSlide=a}}function w(){return!b.movie.paused}function x(a){a&&
b.movie.play();svvi("cpCmndResume",a,["cpCmndResume","rdcmndResume"])}function W(a){if(a&&b.movie){var c=-1,d=!1;if(b.movie.playbackController){var e=b.movie.playbackController.GetQuizController();(d=e&&e.GetIsInReviewMode())&&(c=e.GetNextQuestionSlideNumber())}d&&0<=c?cpCmndGotoSlideAndResume=c:cpCmndNextSlide=a}}function y(a){var c=!b.movie.paused;b.movie.pause(b.ReasonForPause.CPCMNDGOTOFRAME);b.movie.jumpToFrame(a)?svvi("",a,["cpCmndGotoFrame","rdcmndGotoFrame"]):c&&b.movie.play()}function z(a){b.movie.jumpToFrame(a);
b.movie.play();svvi("",a,["cpCmndGotoFrameAndResume","rdcmndGotoFrameAndResume"])}function A(a){if(0>a||a>=b.movie.stage.slides.length)cpCmndResume=!0;else{var c=b.D[b.movie.stage.slides[a]];c&&b.movie.jumpToFrame(c.from);svvi("",a,["cpCmndGotoSlide","rdcmndGotoSlide"])}}function X(a){var c=b.movie.speed;switch(b.movie.speed){case 1:case 2:b.movie.speed*=2;break;default:b.movie.speed=1}c!=b.movie.speed&&(b.movie.resetFPS(),1==b.movie.speed?(b.movie.am.seekTo(cpInfoCurrentFrame),b.movie.vdm.seekTo(cpInfoCurrentFrame,
!1)):b.movie.am.pause(b.ReasonForPause.PLAYBAR_ACTION),0!=g&&(0!=g&&(clearInterval(g),g=0),B()),svvi("",cpInfoFPS,["cpInfoFPS","rdinfoFPS"]),svvi("cpCmndFastForward",a,["cpCmndFastForward"]))}function Y(a){svvi("cpLockTOC",a,["cpLockTOC"]);b.em.fireEvent("CPTocStateChanged",{visible:!!cpCmndTOCVisible,locked:!!a})}function Z(){return vh._cpLockTOC}function $(a){var c=document.getElementById("toc");void 0!=c&&b.D.tocProperties.overlay&&(c.animator&&(a?c.animator.showTOC():c.animator.hideTOC()),svvi("cpCmndTOCVisible",
a,["cpCmndTOCVisible"]),b.em.fireEvent("CPTocStateChanged",{visible:!!a,locked:!!cpLockTOC}))}function aa(){var a=document.getElementById("toc");return void 0!=a&&a.animator?a.animator.isVisible():!1}function ba(a){if(0>a||a>=b.movie.stage.slides.length)cpCmndResume=!0;else{var c=b.D[b.movie.stage.slides[a]];c&&(b.movie.jumpToFrame(c.from),b.movie.play());svvi("",a,["cpCmndGotoSlideAndResume"])}}function ca(a){var c=b.D["Slide"+a];c&&(b.movie.jumpToFrame(c.from),b.movie.play(),svvi("",a,["cpCmndGotoSlideByUIDAndResume"]))}
function C(){return vh._cpCmndExit}function D(a){svvi("cpCmndExit",a,["cpCmndExit","rdcmndExit"]);DoCPExit&&DoCPExit()}function k(a){a&&b.jumpToNextSlide();svvi("cpCmndNextSlide",a,["cpCmndNextSlide","cpCmndNext","rdcmndNextSlide","rdcmndNext"])}function E(a){a&&b.movie.pause(b.ReasonForPause.CPCMNDPAUSE);svvi("cpCmndPause",a,["cpCmndPause","rdcmndPause"])}function F(){return b.movie.paused}function G(a){svvi("cpCmndInfo",a,["cpCmndInfo","rdcmndInfo"])}function H(){return vh._cpCmndInfo}function da(){return vh._cpInfoAuthor}
function ea(){return vh._cpInfoDescription}function fa(){return vh._cpQuizInfoLastSlidePointScored}function ga(a){svvi("cpQuizInfoLastSlidePointScored",a,["cpQuizInfoLastSlidePointScored"])}function ha(){return vh._cpQuizInfoPointsPerQuestionSlide}function ia(a){svvi("cpQuizInfoPointsPerQuestionSlide",a,["cpQuizInfoPointsPerQuestionSlide"])}function ja(){return vh._cpQuizInfoNegativePointsOnCurrentQuestionSlide}function ka(a){svvi("cpQuizInfoNegativePointsOnCurrentQuestionSlide",a,["cpQuizInfoNegativePointsOnCurrentQuestionSlide"])}
function la(){return!!vh._cpQuizInfoQuestionPartialScoreOn}function ma(a){svvi("cpQuizInfoQuestionPartialScoreOn",a,["cpQuizInfoQuestionPartialScoreOn"])}function na(){return vh._cpInfoCurrentSlideLabel}function oa(a){svvi("cpInfoCurrentSlideLabel",a,["cpInfoCurrentSlideLabel"])}function pa(){return vh._cpQuizInfoQuizPassPercent}function qa(a){svvi("cpQuizInfoQuizPassPercent",a,["cpQuizInfoQuizPassPercent"])}function ra(){return vh._cpQuizInfoTotalProjectPoints}function sa(a){svvi("cpQuizInfoTotalProjectPoints",
a,["cpQuizInfoTotalProjectPoints"])}function ta(){return vh._cpInfoPrevSlide}function ua(a){svvi("cpInfoPrevSlide",a,["cpInfoPrevSlide"])}function va(){if(!b.movie)return 0;if(b.movie.playbackController){var a=b.movie.playbackController.GetQuizController();if(a)return a.GetTotalCorrectQuestions()}return 0}function wa(a){svvi("cpQuizInfoTotalCorrectAnswers",a,["cpQuizInfoTotalCorrectAnswers"])}function xa(){if(!b.movie)return 0;if(b.movie.playbackController){var a=b.movie.playbackController.GetQuizController();
if(a)return a.GetTotalPretestCorrectQuestions()}return 0}function ya(a){svvi("cpQuizInfoPreTestTotalQuestions",a,["cpQuizInfoPreTestTotalQuestions"])}function za(){return vh._cpQuizInfoPreTestTotalQuestions}function Aa(a){svvi("cpQuizInfoPreTestTotalCorrectAnswers",a,["cpQuizInfoPreTestTotalCorrectAnswers"])}function Ba(){if(!b.movie)return 0;if(b.movie.playbackController){var a=b.movie.playbackController.GetQuizController();if(a){var c=a.GetScore(),a=a.GetMaxScore();if(0!=a)return Math.round(100*
c/a)}}return 0}function Ca(a){svvi("cpInfoPercentage",a,["cpInfoPercentage"])}function Da(){return vh._cpQuizInfoTotalQuestionsPerProject}function Ea(a){svvi("cpQuizInfoTotalQuestionsPerProject",a,["cpQuizInfoTotalQuestionsPerProject"])}function Fa(){return vh._cpQuizInfoQuizPassPoints}function Ga(a){svvi("cpQuizInfoQuizPassPoints",a,["cpQuizInfoQuizPassPoints"])}function Ha(){return vh._cpQuizInfoQuestionSlideType}function Ia(a){svvi("cpQuizInfoQuestionSlideType",a,["cpQuizInfoQuestionSlideType"])}
function Ja(){return!b.movie||!b.movie.playbackController?0:b.movie.playbackController.GetTotalUnansweredQuestions()}function Ka(a){svvi("cpQuizInfoTotalUnansweredQuestions",a,["cpQuizInfoTotalUnansweredQuestions"])}function La(){return vh._cpInfoLastVisitedSlide}function Ma(a){svvi("cpInfoLastVisitedSlide",a,["cpInfoLastVisitedSlide"])}function Na(){return vh._cpQuizInfoMaxAttemptsOnCurrentQuestion}function Oa(a){svvi("cpQuizInfoMaxAttemptsOnCurrentQuestion",a,["cpQuizInfoMaxAttemptsOnCurrentQuestion"])}
function Pa(){return vh._cpQuizInfoQuestionSlideTiming}function Qa(a){svvi("cpQuizInfoQuestionSlideTiming",a,["cpQuizInfoQuestionSlideTiming"])}function Ra(){return vh._cpInfoCompany}function Sa(){return vh._cpQuizInfoAnswerChoice}function Ta(a){svvi("cpQuizInfoAnswerChoice",a,["cpQuizInfoAnswerChoice"])}function Ua(){return vh._cpQuizInfoNoQuestionsPerQuiz}function Va(a){svvi("cpQuizInfoNoQuestionsPerQuiz",a,["cpQuizInfoNoQuestionsPerQuiz"])}function Wa(){if(!b.movie)return 0;if(b.movie.playbackController){var a=
b.movie.playbackController.GetQuizController();if(a)return a.GetScore()}return 0}function Xa(a){svvi("cpQuizInfoPointsscored",a,["cpQuizInfoPointsscored"])}function Ya(){return vh._cpInfoCopyright}function Za(){return vh._cpInfoWebsite}function $a(){return vh._cpInfoProjectName}function ab(){return vh._cpInfoEmail}function bb(){return!1}function cb(){return vh._cpInfoHasPlaybar}function db(){return vh._cpQuizInfoAttempts}function eb(a){svvi("cpQuizInfoAttempts",a,["cpQuizInfoAttempts"])}function fb(){return b.D.project_main.to}
function gb(){return vh._cpQuizInfoTotalQuizPoints}function hb(a){svvi("cpQuizInfoTotalQuizPoints",a,["cpQuizInfoTotalQuizPoints"])}function l(a){var b=""+a;0<=a&&10>a&&(b="0"+b);return b}function I(){var a=new Date;vh._cpInfoEpochMS!=a.getTime()&&svvi("cpInfoEpochMS",a.getTime(),["cpInfoEpochMS"]);vh._cpInfoElapsedTimeMS!=cpInfoEpochMS-b.movie.startTime&&svvi("cpInfoElapsedTimeMS",cpInfoEpochMS-b.movie.startTime,["cpInfoElapsedTimeMS"]);vh._cpInfoCurrentMinutes!=a.getMinutes()&&svvi("cpInfoCurrentMinutes",
a.getMinutes(),["cpInfoCurrentMinutes"]);vh._cpInfoCurrentHour!=a.getHours()&&svvi("cpInfoCurrentHour",a.getHours(),["cpInfoCurrentHour"]);var c=a.getHours()+":"+l(a.getMinutes())+":"+l(a.getSeconds());vh._cpInfoCurrentTime!=c&&svvi("cpInfoCurrentTime",c,["cpInfoCurrentTime"]);vh._cpInfoCurrentDay!=a.getDay()+1&&svvi("cpInfoCurrentDay",a.getDay()+1,["cpInfoCurrentDay"]);vh._cpInfoCurrentYear!=a.getFullYear()&&svvi("cpInfoCurrentYear",a.getFullYear(),["cpInfoCurrentYear"]);vh._cpInfoCurrentMonth!=
a.getMonth()+1&&svvi("cpInfoCurrentMonth",l(a.getMonth()+1),["cpInfoCurrentMonth"]);vh._cpInfoCurrentDate!=a.getDate()&&svvi("cpInfoCurrentDate",l(a.getDate()),["cpInfoCurrentDate"]);c=a.getMonth()+1+"/"+a.getDate()+"/"+a.getFullYear();vh._cpInfoCurrentDateString!=c&&svvi("cpInfoCurrentDateString",c,["cpInfoCurrentDateString"]);c=a.getDate()+"/"+(a.getMonth()+1)+"/"+a.getFullYear();vh._cpInfoCurrentDateStringDDMMYYYY!=c&&svvi("cpInfoCurrentDateStringDDMMYYYY",c,["cpInfoCurrentDateStringDDMMYYYY"]);
a=a.toLocaleDateString();vh._cpInfoCurrentLocaleDateString!=a&&svvi("cpInfoCurrentLocaleDateString",a,["cpInfoCurrentLocaleDateString"])}function B(){0==g&&(I(),g=setInterval(I,1E3/cpInfoFPS))}function ib(){return vh._cpInfoCurrentDateString}function jb(){return vh._cpInfoCurrentDateStringDDMMYYYY}function kb(){return vh._cpInfoCurrentLocaleDateString}function lb(){return vh._cpInfoCurrentDate}function mb(){return vh._cpInfoCurrentMonth}function nb(){return vh._cpInfoCurrentYear}function ob(){return vh._cpInfoCurrentDay}
function pb(){return vh._cpInfoCurrentTime}function qb(){return vh._cpInfoCurrentHour}function rb(){return vh._cpInfoCurrentMinutes}function sb(){return vh._cpInfoEpochMS}function tb(){return vh._cpInfoElapsedTimeMS}function ub(){var a=b.movie.stage.currentSlide,c="";if(a&&(c=a.st)&&"Question Slide"==c)a=a.qnq,void 0!=a&&(a=b.movie.questionObjs[a].questionData)&&(a.ikc&&!0==a.ikc)&&(c="Normal Slide");return c}function vb(){if(!b.movie)return!1;if(b.movie.playbackController){var a=b.movie.playbackController.GetQuizController();
if(a)return a.GetIsPassed()}return!1}function J(){return 0}function wb(){return vh._cpInfoPrevFrame}function m(){return vh._cpInfoCurrentFrame}function xb(a){var c=a.smoothAdvance,a=c?a.currFrame:a,d=m();svvi("cpInfoPrevFrame",d,[]);svvi("cpInfoCurrentFrame",a,["cpInfoCurrentFrame","rdinfoCurrentFrame"]);c||b.movie.resetMovieElapsedTime()}function K(){return cpInfoCurrentSlide-1}function yb(){return vh._cpInfoCurrentSlide}function zb(a){svvi("cpInfoCurrentSlide",a,["cpInfoCurrentSlide"])}function L(){return b.movie.stage.slides.length}
function M(){return b.movie.fps*b.movie.speed}function Ab(){return vh._cpQuizScopeSlide}function Bb(a){svvi("cpQuizScopeSlide",a,["cpQuizScopeSlide"])}function Cb(){return vh._cpInQuizScope}function Db(a){if(cpInfoHasPlaybar&&b.movie&&b.movie.playbackController){var c=b.movie.playbackController.GetQuizController();c&&c.GetHidePlaybarInQuiz()&&(cpCmndShowPlaybar=a&&!c.GetIsInReviewMode()?0:1)}svvi("cpInQuizScope",a,["cpInQuizScope"])}function Eb(){if(!b.movie||!b.movie.playbackController)return 0;
var a=b.movie.playbackController.GetQuizController();return a?a.GetPretestScore():0}function Fb(){return!b.movie||!b.movie.playbackController?!1:(lQuizController=b.movie.playbackController.GetQuizController())?!!lQuizController.GetIsInReviewMode():!1}function Gb(){if(!b.movie||!b.movie.playbackController)return 0;var a=b.movie.playbackController.GetQuizController();return a?a.GetMaxPretestScore():0}function Hb(){if(!b.movie||!b.movie.playbackController)return 0;var a=b.movie.playbackController.GetQuizController();
if(a){var c=a.GetMaxPretestScore(),a=a.GetPretestScore();return void 0==c||0>=c||void 0==a||0>=a?0:Math.round(100*a/c)}return 0}function Ib(a){if(b.movie&&b.movie.playbackController){var c=b.movie.playbackController.GetQuizController();c&&c.GotoQuizScopeSlide(a)}}function Jb(){return vh._cpInfoCourseID}function Kb(){return vh._cpInfoCourseName}function N(){return vh._cpInfoGeoLocation?vh._cpInfoGeoLocation:""}function O(a){svvi("cpInfoGeoLocation",a,["cpInfoGeoLocation"]);b.movie&&(!b.movie.virgin&&
b.D.geoProps.geoAct&&0<b.D.geoProps.geoAct.length)&&b.movie.executeAction(b.D.geoProps.geoAct)}function Lb(){}function Mb(){return null}window.vh={};window.svvi=function(a,c,d){var e=null;if(""!=a){e=null;if(a&&""!=a){var f="_"+a,e=vh[f];e!==c&&(vh[f]=c)}b.em&&e!=c&&(a={captivateVersion:h(),varName:a,oldVal:e,newVal:c,notify:d},b.em.fireEvent("CPVariableValueChangedEvent",a))}else b.em&&(a={captivateVersion:h(),varName:"",newVal:c,notify:d},b.em.fireEvent("CPVariableValueChangedEvent",a))};var g=
0;window.asg=function(a,c,d){try{null==c&&(c=Lb),null==d&&(d=Mb),Object.defineProperty?Object.defineProperty(window,a,{get:d,set:c}):window.__defineGetter__&&(d&&window.__defineGetter__(a,d),c&&window.__defineSetter__(a,c))}catch(e){b.m_isPreview&&b.alert("Please correct the variable name. This might be a javascript variable. : '"+a+"'")}};b.VarInfo=function(a,b,d){this.name=a;this.len=b;this.systemDefined=d};b.VariablesManager=function(){b.vm=this;this.varInfos=[];this.geoVarIndexes=[];!Object.defineProperty&&
!window.__defineGetter__?alert("VARIABLES SETTER GETTER WILL NOT WORK"):(asg("_registerForUpdateTimeBasedSystemVariables",B,null),asg("cpCmndVolume",R,Q),asg("cpCmndMute",n,o),asg("rdcmndMute",n,o),asg("cpCmndCC",U,r),asg("rdcmndCC",null,r),asg("cpCmndNext",k,null),asg("rdcmndNext",k,null),asg("cpCmndNextSlide",k,null),asg("rdcmndNextSlide",k,null),asg("cpCmndPrevious",j,i),asg("rdcmndPrevious",j,i),asg("cpCmndNextOnReview",W,null),asg("cpCmndPreviousSlide",j,i),asg("rdcmndPreviousSlide",j,i),asg("cpCmndPreviousOnReview",
V,null),asg("cpCmndPlaybarMoved",q,p),asg("rdcmndPlaybarMoved",q,p),asg("cpCmndShowPlaybar",T,S),asg("cpCmndFastForward",X,null),asg("cpCmndRewindAndPlay",t,s),asg("rdcmndRewindAndPlay",t,s),asg("cpCmndRewindAndStop",v,u),asg("rdcmndRewindAndStop",v,u),asg("cpCmndGotoFrame",y,null),asg("rdcmndGotoFrame",y,null),asg("cpCmndGotoFrameAndResume",z,null),asg("rdcmndGotoFrameAndResume",z,null),asg("cpCmndGotoSlide",A,null),asg("rdcmndGotoSlide",A,null),asg("cpCmndGotoSlideAndResume",ba,null),asg("cpCmndGotoSlideByUIDAndResume",
ca,null),asg("cpCmndResume",x,w),asg("rdcmndResume",x,w),asg("cpCmndPause",E,F),asg("rdcmndPause",E,F),asg("cpCmndExit",D,C),asg("rdcmndExit",D,C),asg("cpLockTOC",Y,Z),asg("cpCmndInfo",G,H),asg("rdcmndInfo",G,H),asg("cpCmndTOCVisible",$,aa),asg("cpInfoSlidesInProject",null,J),asg("rdinfoSlidesInProject",null,J),asg("rdinfoCurrentSlideInProject",null,function(){return 0}),asg("cpInfoFPS",null,M),asg("rdinfoFPS",null,M),asg("cpInfoAuthor",null,da),asg("cpInfoCompany",null,Ra),asg("cpInfoEmail",null,
ab),asg("cpInfoWebsite",null,Za),asg("cpInfoCopyright",null,Ya),asg("cpInfoProjectName",null,$a),asg("cpInfoDescription",null,ea),asg("cpInfoCurrentFrame",null,m),asg("rdinfoCurrentFrame",null,m),asg("_cpInfoCurrentFrame",xb,null),asg("_rdinfoCurrentFrame",m,null),asg("cpInfoPrevFrame",null,wb),asg("cpInfoFrameCount",null,fb),asg("cpInfoPrevSlide",null,ta),asg("_cpInfoPrevSlide",ua,null),asg("cpInfoLastVisitedSlide",null,La),asg("_cpInfoLastVisitedSlide",Ma,null),asg("cpInfoCurrentSlide",null,yb),
asg("rdinfoCurrentSlide",null,K),asg("cpInfoCurrentSlideIndex",null,K),asg("_cpInfoCurrentSlide",zb,null),asg("cpInfoCurrentSlideLabel",null,na),asg("_cpInfoCurrentSlideLabel",oa,null),asg("cpInfoSlideCount",null,L),asg("rdinfoSlideCount",null,L),asg("cpInfoIsStandalone",null,bb),asg("cpInfoHasPlaybar",null,cb),asg("cpInfoCurrentSlideType",null,ub),asg("cpInfoElapsedTimeMS",null,tb),asg("cpInfoEpochMS",null,sb),asg("cpInfoCurrentMinutes",null,rb),asg("cpInfoCurrentHour",null,qb),asg("cpInfoCurrentTime",
null,pb),asg("cpInfoCurrentDay",null,ob),asg("cpInfoCurrentYear",null,nb),asg("cpInfoCurrentMonth",null,mb),asg("cpInfoCurrentDate",null,lb),asg("cpInfoCurrentDateString",null,ib),asg("cpInfoCurrentDateStringDDMMYYYY",null,jb),asg("cpInfoCurrentLocaleDateString",null,kb),asg("cpCmndGotoQuizScopeSlide",Ib,null),asg("cpQuizInfoLastSlidePointScored",ga,fa),asg("cpQuizInfoQuestionSlideType",Ia,Ha),asg("cpQuizInfoAnswerChoice",Ta,Sa),asg("cpQuizInfoMaxAttemptsOnCurrentQuestion",Oa,Na),asg("cpQuizInfoPointsPerQuestionSlide",
ia,ha),asg("cpQuizInfoNegativePointsOnCurrentQuestionSlide",ka,ja),asg("cpQuizInfoQuestionSlideTiming",Qa,Pa),asg("cpQuizInfoQuizPassPoints",Ga,Fa),asg("cpQuizInfoQuizPassPercent",qa,pa),asg("cpQuizInfoTotalProjectPoints",sa,ra),asg("cpQuizInfoTotalUnansweredQuestions",Ka,Ja),asg("cpQuizInfoNoQuestionsPerQuiz",Va,Ua),asg("cpQuizInfoPointsscored",Xa,Wa),asg("cpQuizInfoPretestPointsscored",null,Eb),asg("cpQuizInfoPretestScorePercentage",null,Hb),asg("cpQuizInfoTotalCorrectAnswers",wa,va),asg("cpInfoPercentage",
Ca,Ba),asg("cpQuizInfoTotalQuizPoints",hb,gb),asg("cpQuizInfoAttempts",eb,db),asg("cpQuizInfoTotalQuestionsPerProject",Ea,Da),asg("cpQuizInfoQuestionPartialScoreOn",ma,la),asg("cpQuizScopeSlide",null,Ab),b._cpQuizScopeSlide=Bb,asg("cpInQuizScope",null,Cb),b._cpInQuizScope=Db,asg("cpQuizInfoPassFail",null,vb),asg("cpInfoCourseID",null,Jb),asg("cpInfoCourseName",null,Kb),asg("cpQuizInfoPreTestTotalCorrectAnswers",Aa,xa),asg("cpInReviewMode",null,Fb),asg("cpQuizInfoPreTestTotalQuestions",ya,za),asg("cpQuizInfoPreTestMaxScore",
null,Gb),asg("CaptivateVersion",null,h),asg("cpInfoMobileOS",null,P),b.geo&&b.startWatchingGeoLocationChange?(asg("cpInfoGeoLocation",O,N),b.startWatchingGeoLocationChange()):b.m_isPreview&&!b.m_isEdgeInspectPreview&&asg("cpInfoGeoLocation",O,N));b.initVariables();b.vm.createVariable("cpQuizScopeSlide",-1,!0,100,!1);b.initVariables=null};window.DefineProperty=function(a){eval("(function(){function get"+a+"(){return vh._"+a+";}function set"+a+'(val){svvi("'+a+'", val, ["'+a+'"]);} asg("'+a+'",set'+
a+",get"+a+");})();")};b.VariablesManager.prototype={hasOwnProperty:function(a){try{return void 0==eval("vh._"+a)?!1:!0}catch(b){return!1}},getVariableValue:function(a){var b=null;a&&""!=a&&(b=eval("vh._"+a));return b},createVariable:function(a,c,d,e,f){void 0==d&&(d=!0);return a&&""!=a&&!1==this.hasOwnProperty(a)?(this.addVarInfo(a,e,d,f),vh["_"+a]=c,b.em&&!0!=d&&(DefineProperty(a),a={captivateVersion:h(),varName:a,varVal:c},b.em.fireEvent("CPVariableCreatedEvent",a)),!0):!1},setVariableValue:function(a,
b,d){void 0==d&&(d=!0);var e=!0;d?!0==this.createVariable(a,b,!0,1E4,!1)&&(e=!1):!1==this.hasOwnProperty(a)&&(e=!1);e&&(vh["_"+a]=b)},addVarInfo:function(a,c,d,e){a=this.varInfos.push(new b.VarInfo(a,c,d));e&&this.geoVarIndexes.push(a-1)},getVariableLength:function(a){for(var b=0,b=0;b<this.varInfos.length;++b)if(a==this.varInfos[b].name)return this.varInfos[b].len;return 1E3},getGeoVarsInfo:function(){var a=[],b;for(b in this.geoVarIndexes)a.push(this.varInfos[this.geoVarIndexes[b]]);return a}}})(window.cp);
(function(b){b.ImageObject=function(a,c,d){this.im=a;this.nativeImage=new Image;this.nativeImage.cpImage=this;this.src=c;this.complete=!1;this.loaders={};this.preloaded=!1;this.isProjectImage=d;this.includedInViews={};this.monitorFunc=function(a){a.target.cpImage.complete=!0;b.responsive&&b.movie.stage&&b.movie.stage.lastFrame<cpInfoCurrentFrame&&b.movie.im&&!b.movie.im.imagesNotLoaded()&&b.adjustResponsiveItems();b.movie.im.verbose&&b.log("loaded "+a.target.src)}};b.ImageObject.prototype={isIncludedInView:function(){var a=
!b.responsive;if(b.responsive){if(this.isProjectImage)return!0;var c=b.ResponsiveProjWidth;b.DESKTOP!=b.device?(window.innerWidth>window.innerHeight?(a=window.innerWidth,c=window.innerHeight):(a=window.innerHeight,c=window.innerWidth),a=b.getCorrectBreakpoint(a),c=b.getCorrectBreakpoint(c),a=1==this.includedInViews[a]||1==this.includedInViews[c]):b.m_isPreview?a=!0:(a=b.getCorrectBreakpoint(window.innerWidth),a=1==this.includedInViews[a])}return a},load:function(a,c){if(!(void 0==this.src||""==this.src||
null==this.src))if(!b.responsive||this.isIncludedInView())if(this.im.verbose&&(b.log("load (monitor = "+c+") "+this.src),this.complete&&b.log("completed"),this.nativeImage.onload&&b.log("onload is set")),!this.complete&&!this.nativeImage.onload&&(this.monitor=!0==c?!0:!1,this.nativeImage.onload=this.monitorFunc),!this.complete&&this.nativeImage.onload&&!0==c&&(this.monitor=!0),this.loaders[a]=1,this.im.verbose&&b.log("loaded by = "+a),!0!=c&&(this.preloaded=!0),""==this.nativeImage.src)return this.im.verbose&&
b.log("loading "+this.src),this.nativeImage.src=this.src,!0},unload:function(a){this.im.verbose&&b.log("unload "+this.src+" preloaded = "+this.preloaded);this.loaders[a]&&delete this.loaders[a];var a=0,c;for(c in this.loaders)++a;return 0==a?(this.im.verbose&&b.log("unloading "+this.src),this.nativeImage=new Image,this.nativeImage.cpImage=this,this.monitor=this.preloaded=this.complete=!1,!0):!1}};b.ImageManager=function(){b.movie.im=this;this.images={};this.preloadingProjectImages=!1;this.m_projectImages=
{};this.verbose=!1;this.reset();for(var a=b.model.projectImages,c=0;c<a.length;++c)this.m_projectImages[a[c]]=new b.ImageObject(this,a[c],!0);a=b.model.images;for(c=0;c<a.length;++c){var d=a[c],e=b.responsive?d.ip:d,f=new b.ImageObject(this,e,!1);b.responsive&&(f.includedInViews=d.ipiv);this.images[e]=f}};b.ImageManager.prototype={imagesNotLoaded:function(){var a=0;if(this.preloadingProjectImages)for(var c in this.m_projectImages)this.m_projectImages[c].monitor&&!this.m_projectImages[c].complete&&
++a;else for(c in this.images)this.images[c].monitor&&!this.images[c].complete&&++a;this.verbose&&0<a&&b.log(a+" imaged pending");return 0<a},loadImages:function(a,c,d,e){if(0!=c.length){this.preloadingProjectImages=e?!0:!1;for(var f=0;f<c.length;++f){var g=c[f],h=e?this.m_projectImages[g]:this.images[g];h||(h=new b.ImageObject(this,g,e),e?this.m_projectImages[g]=h:this.images[g]=h);h.load(a,d)}}},unloadImage:function(a,b){var d=this.images[b];d&&d.unload(a)},reset:function(){if(this.preloadingProjectImages)for(var a in this.m_projectImages)this.m_projectImages[a].monitor=
!1;else for(a in this.images)this.images[a].monitor=!1}}})(window.cp);
(function(a){a.redrawVideo=function(b){a.DESKTOP==a.device&&a.SAFARI===a.browser&&7<=a.browserVersion&&setTimeout(function(){b.controls=!1},40)};a.MediaSeeker=function(){a.movie.ms=this;this.retryQueue={};this.enabled=this.verbose=!1;if(a.browser==a.MSIE&&a.browserVersion>=a.MSIE_MIN_SUPPORTED_VERSION||a.browser==a.FIREFOX&&a.browserVersion>=a.FF_MIN_SUPPORTED_VERSION||a.OS==a.WINDOWS&&a.browser==a.CHROME&&a.browserVersion>=a.CHROME_MIN_SUPPORTED_VERSION||a.device==a.IDEVICE&&a.IOSMajor>=a.IOS4||
a.device==a.ANDROID)this.enabled=!0;this.verbose&&a.log("MediaSeeker enabled = "+this.enabled)};a.MediaSeeker.prototype={resetFlags:function(b){delete b.retryCount;delete b.lastKnownBuffered;delete b.thulped;delete b.resting;delete b.rested;delete b.failure1;delete b.failure2},addToQueue:function(b){this.enabled&&(this.retryQueue[b.id]=b,b.retryCount=1,b.lastKnownBuffered=0,b.thulped=!1,b.resting=!1,b.rested=!1,b.failure1=0,b.failure2=0)},removeFromQueue:function(b){this.enabled&&(this.resetFlags(b),
delete this.retryQueue[b.id])},inQueue:function(b){return!this.enabled?!1:this.retryQueue[b.id]?!0:!1},hasSeeked:function(b){if(!this.enabled)return!0;++b.retryCount;var c=b.nativeAudio;c||(c=b.nativeVideo);if(!c)return this.verbose&&a.log("MediaSeeker: no native media to seek "+b.id),!0;if(void 0==b.seekToTime)return this.verbose&&a.log("MediaSeeker: seekToTime is undefined "+b.id),!0;if(b.thulped)return 3>b.retryCount||(this.verbose&&a.log("retrying thulped media "+b.id+" seekToTime = "+b.seekToTime),
b.thulped=!1,b.retryCount=0,c.src=b.src,c.load()),!1;if(b.resting)return 3<=b.retryCount&&(this.verbose&&a.log("retrying rested media "+b.id+" seekToTime = "+b.seekToTime),b.resting=!1,b.rested=!0,b.retryCount=0),!1;0>b.seekToTime&&(b.seekToTime=0);if(isNaN(c.duration)||!isFinite(c.duration)){this.verbose&&a.log("MediaSeeker: duration is NAN "+b.id);if(0==b.seekToTime)return!0;if(b.rested){b.rested=!1;++b.failure1;if(2<=b.failure1)return a.exceptionalLogs&&console.log(b.id+" gotStuck while seeking (NAN). gave up seeking"),
!0;b.thulped=!0;try{c.src="_cp_n_m_"}catch(e){}try{c.load()}catch(d){}}else b.resting=!0;return!1}b.seekToTime>c.duration&&(b.seekToTime=c.duration);var f=!0;try{c.currentTime=b.seekToTime;var g=Math.abs(c.currentTime-b.seekToTime);if(0.05<=g){var f=!1,h=c.buffered;h.end(h.length-1);if(b.lastKnownBuffered==h)if(b.rested){b.rested=!1;++b.failure2;if(2<=b.failure2)return a.exceptionalLogs&&console.log(b.id+" gotStuck while seeking (CONST BUFF). gave up seeking"),!0;b.thulped=!0;try{c.src="_cp_n_m_"}catch(i){}try{c.load()}catch(j){}}else b.resting=
!0;else b.lastKnownBuffered=h}}catch(k){g=Math.abs(c.currentTime-b.seekToTime),f=0.05<=g?!1:!0}this.verbose&&f&&a.log("MediaSeeker: "+b.id+" currentTime = "+c.currentTime);return f},pendingItems:function(){if(!this.enabled)return 0;var b=0,c;for(c in this.retryQueue){var e=this.retryQueue[c];this.hasSeeked(e)?(delete e.seekToTime,this.removeFromQueue(e),e.revoke&&(delete e.revoke,this.verbose&&a.log("MediaSeeker revoking play of "+e.id),e.play())):++b}this.verbose&&(b&&this.numPending!=b)&&a.log("MediaSeeker: "+
b+" items pending seek");this.numPending=b;a.verbose&&0<b&&a.log(b+" pendingForSeek");return b},reset:function(){for(var b in this.retryQueue){var a=this.retryQueue[b];delete a.seekToTime;delete a.revoke;this.resetFlags(a)}this.retryQueue={}}};a.NativeAudio=function(){var a=function(){this.duration=this.currentTime=0;this.ended=this.paused=!0;this.defaultPlaybackRate=0;this.playbackRate=1;this.fastSeek=this.seekable=this.seeking=this.played=!1;this.src="";this.autoplay=this.preload=this.crossorigin=
!1;this.mediagroup="";this.controls=this.muted=this.loop=!1};a.prototype={load:function(){},play:function(){},pause:function(){},addEventListener:function(){},removeEventListener:function(){}};if("undefined"===typeof Audio||!Audio){var c=document.createElement("audio");return void 0==c.load||void 0==c.play||void 0==c.pause||void 0==c.addEventListener?new a:c}return new Audio};a.AudioObject=function(b,c,e,d,f,g,h){this.am=b;this.id=c;this.nativeAudio=null;this.src=a.getCorrectMediaPath(e);this.from=
d;this.to=f;g&&(this.duration=g/1E3);this.hidden=this.ended=!1;this.paused=!0;this.cploop=this.loop=!1;this.gotStuck=0;this.rp=h};a.AudioObject.prototype={load:function(){this.nativeAudio&&this.nativeAudio.load()},setSrc:function(b){this.src=a.getCorrectMediaPath(b);this.nativeAudio&&(this.nativeAudio.cpSrc=a.getCorrectMediaPath(b),this.nativeAudio.src=a.getCorrectMediaPath(b),this.load())},play:function(){if(!(!0==this.ended||this.hidden))if(this.paused)if(this.paused&&this.am.webAudio&&this.am.playWebAudio(this))this.paused=
!1;else if(a.lastMediaPlayReqTime&&50>(new Date).getTime()-a.lastMediaPlayReqTime.getTime())if(a.movie.paused){this.am.verbose&&a.log("crowded request postponed "+this.id);var b=this;setTimeout(function(){b.play()},50)}else this.am.verbose&&a.log("crowded request denied "+this.id);else this.paused=!1,this.am.verbose&&a.log("AdObjPlay "+this.id+" "+this.src),this.nativeAudio||this.am.allocAudioChannel(this,a.IDEVICE!=a.device&&a.device!=a.ANDROID),this.nativeAudio&&(this.isSeekPending()?this.finishPendingSeek():
(a.device==a.IDEVICE&&a.multiAudioTrack&&(a.lastMediaPlayReqTime=new Date),this.nativeAudio.play()));else if(a.device==a.IDEVICE&&!a.multiAudioTrack&&this.nativeAudio)if(this.lastTime==this.nativeAudio.currentTime){if(++this.gotStuck,30<=this.gotStuck){a.exceptionalLogs&&a.log(this.id+" "+this.src+" gotStuck @"+this.nativeAudio.currentTime);this.gotStuck=0;try{this.nativeAudio.src="_cp_n_m_"}catch(c){}this.nativeAudio.src=this.src;this.nativeAudio.load();this.nativeAudio.play()}}else this.lastTime=
this.nativeAudio.currentTime,this.gotStuck=0},resetAndPlay:function(){this.am.verbose&&a.log("AudioObject "+this.id+" resetAndPlay()");this.ended=!1;this.setCurrentTime(0);this.play()},show:function(){this.am.verbose&&a.log("AudioObject "+this.id+" show()");this.hidden=!1;this.shownAt=cpInfoCurrentFrame;this.resetAndPlay()},hide:function(){this.am.verbose&&a.log("AudioObject "+this.id+" hide()");this.hidden=!0;delete this.shownAt;this.pause()},pause:function(){if(!this.paused&&this.am.webAudio&&this.am.pauseWebAudio(this.src))this.paused=
!0,this.am.verbose&&a.log("webAudio:pause "+this.id+" "+this.src);else if(this.isSeekPending()&&(this.am.verbose&&this.revoke&&a.log("AdObjPause deleting revoke "+this.id),delete this.revoke),!this.paused)this.paused=!0,this.am.verbose&&a.log("AdObjPause "+this.id+" "+this.src),this.nativeAudio&&(this.nativeAudio.pause(),this.nativeAudio.pausedAt=(new Date).getTime())},setLoop:function(b,c){this.loop=b;this.loopFrames=c;a.IDEVICE==a.device||a.device==a.ANDROID?this.cploop=b:this.nativeAudio&&(b?this.nativeAudio.loop=
!0:delete this.nativeAudio.loop)},setCurrentTime:function(b){if(!(-1==this.from&&-1==this.to))if(this.am.verbose&&a.log("AudioObject "+this.id+" setCurrentTime("+b+")"),this.nativeAudio)if(this.am.verbose&&a.log("this.nativeAudio.currentTime = "+this.nativeAudio.currentTime),0.1>Math.abs(this.nativeAudio.currentTime-b))this.am.verbose&&a.log("not seeking delta < 0.1"),a.movie.ms.inQueue(this)||delete this.seekToTime;else{delete this.seekToTime;this.paused||(this.am.verbose&&a.log("setting revoke to true"),
this.revoke=!0,this.pause());var c=!0;try{this.nativeAudio.currentTime=b;var e=Math.abs(this.nativeAudio.currentTime-b);0.05<=e&&(c=!1)}catch(d){e=Math.abs(this.nativeAudio.currentTime-b),c=0.05<=e?!1:!0}this.am.verbose&&a.log("seekSuccess = "+c);a.movie.ms.enabled?c?this.revoke&&(this.am.verbose&&a.log("revoking play"),delete this.revoke,this.play()):(this.am.verbose&&a.log("pause movie and add to seekQueue"),this.seekToTime=b,a.movie.ms.addToQueue(this)):this.revoke&&(this.am.verbose&&a.log("revoking play"),
delete this.revoke,this.play())}else this.seekToTime=b,this.am.verbose&&a.log("no native audio. Kept in pending...")},isSeekPending:function(){return-1==this.from&&-1==this.to?!1:void 0!=this.seekToTime},finishPendingSeek:function(){this.nativeAudio&&this.isSeekPending()&&(this.am.verbose&&a.log("AudioObject "+this.id+" finishPendingSeek"),this.setCurrentTime(this.seekToTime))},seekTo:function(b){if(-1==this.from&&-1==this.to)return!0;this.am.verbose&&a.log("AudioObject "+this.id+" seekTo("+b+")");
if(this.loop&&this.loopFrames){if(this.from<=b)return this.setCurrentTime((b-this.from)%this.loopFrames/cpInfoFPS),this.ended=!1,!0}else{if(this.from<=b&&this.to>=b)return this.setCurrentTime((b-this.from)/cpInfoFPS),this.ended=!1,!0;this.to>=b&&(this.setCurrentTime(0),this.ended=!1)}"bga"==this.id&&!this.loop&&(this.ended=!0);return!1}};a.ExtAudioObject=function(b,c,e,d,f){this.am=b;this.id=c;this.nativeAudio=null;this.src=a.getCorrectMediaPath(e);this.from=d;this.to=f;this.hidden=this.ended=!1;
this.paused=!0;this.cploop=this.loop=!1;this.gotStuck=0};a.ExtAudioObject.prototype={load:function(){this.nativeAudio&&this.nativeAudio.load()},play:function(){},pause:function(){this.paused||(this.paused=!0,this.nativeAudio&&(this.nativeAudio.pause(),this.nativeAudio.pausedAt=(new Date).getTime()))},isSeekPending:function(){return!1},finishPendingSeek:function(){},seekTo:function(){return!0},reset:function(){}};a.MediaView=function(b){this.a=b;a.MediaView.PROGRESS_WIDTH||(a.MediaView.PROGRESS_WIDTH=
300,a.MediaView.STATUS1_WIDTH=100,a.MediaView.STATUS2_WIDTH=100,a.MediaView.STATUS3_WIDTH=100,a.MediaView.STATUS4_WIDTH=50,a.MediaView.STATUS_WIDTH=a.MediaView.STATUS1_WIDTH+a.MediaView.STATUS2_WIDTH+a.MediaView.STATUS3_WIDTH+a.MediaView.STATUS4_WIDTH,a.MediaView.LEFT_OFFSET=260,a.MediaView.TOP_OFFSET=5,a.MediaView.HEIGHT=15,a.MediaView.GAP=5,a.MediaView.NUM_MEDIA_VIEWS=0);this.view=a.newElem("div");this.status=a.newElem("div");this.status2=a.newElem("div");this.status3=a.newElem("div");this.status4=
a.newElem("div");this.progressBar=a.newElem("div");this.srcNameBar=a.newElem("div");this.downloaded=a.newElem("div");this.playHead=a.newElem("div");document.body.appendChild(this.view);this.view.appendChild(this.status);this.view.appendChild(this.status2);this.view.appendChild(this.status3);this.view.appendChild(this.status4);this.view.appendChild(this.progressBar);this.progressBar.appendChild(this.downloaded);this.progressBar.appendChild(this.playHead);this.progressBar.appendChild(this.srcNameBar);
this.view.style.cssText="z-index:100;display:block; position:fixed; left:"+a.MediaView.LEFT_OFFSET+"px; top:"+(a.MediaView.TOP_OFFSET+a.MediaView.NUM_MEDIA_VIEWS*(a.MediaView.HEIGHT+a.MediaView.GAP))+"px; width:"+(a.MediaView.STATUS_WIDTH+a.MediaView.PROGRESS_WIDTH)+"px; height:"+a.MediaView.HEIGHT+"px; background-color:#555555;opacity:0.5";this.status.style.cssText="z-index:100;display:block; position:absolute; left:0px; top:0px; width:"+a.MediaView.STATUS1_WIDTH+"px; height:"+a.MediaView.HEIGHT+
"px;background-color:#0000ff";this.status2.style.cssText="z-index:100;display:block; position:absolute; left:"+a.MediaView.STATUS1_WIDTH+"px; top:0px; width:"+a.MediaView.STATUS2_WIDTH+"px; height:"+a.MediaView.HEIGHT+"px;background-color:#ffffff";this.status3.style.cssText="z-index:100;display:block; position:absolute; left:"+(a.MediaView.STATUS1_WIDTH+a.MediaView.STATUS2_WIDTH)+"px; top:0px; width:"+a.MediaView.STATUS3_WIDTH+"px; height:"+a.MediaView.HEIGHT+"px;background-color:#ffffff";this.status4.style.cssText=
"z-index:100;display:block; position:absolute; left:"+(a.MediaView.STATUS1_WIDTH+a.MediaView.STATUS2_WIDTH+a.MediaView.STATUS3_WIDTH)+"px; top:0px; width:"+a.MediaView.STATUS4_WIDTH+"px; height:"+a.MediaView.HEIGHT+"px;background-color:#ffffff";this.progressBar.style.cssText="z-index:100;display:block; position:absolute; left:"+a.MediaView.STATUS_WIDTH+"px; top:0px; width:"+a.MediaView.PROGRESS_WIDTH+"px; height:"+a.MediaView.HEIGHT+"px;background-color:#888888";this.srcNameBar.style.cssText="z-index:100;display:block; position:absolute; left:0px; top:0px; width:"+
a.MediaView.PROGRESS_WIDTH+"px; height:"+a.MediaView.HEIGHT+"px;white-space: nowrap; overflow: hidden;";this.downloaded.style.cssText="z-index:100;display:block; position:absolute; left:0px; top:0px; width:0px; height:"+a.MediaView.HEIGHT/3+"px;background-color:#10ff10;";this.playHead.style.cssText="z-index:100;display:block; position:absolute; left:0px; top:0px; width:2px; height:"+a.MediaView.HEIGHT/3+"px;background-color:#101010";++a.MediaView.NUM_MEDIA_VIEWS};a.MediaView.prototype={update:function(){var b=
this.a.cpAudio;b||(b=this.a.cpVideo);var c=this.a.src.indexOf("/ar/");-1==c&&(c=this.a.src.indexOf("/vr/"));-1==c&&(c=this.a.src.indexOf("_cp_n_m_"));-1==c&&(c=0);c=this.a.src.substr(c);b&&(c+="|"+b.src+"|"+b.id);this.srcNameBar.innerHTML="<font style='font-size:9px'>"+c+"</font>";c=this.a.paused?"paused":"playing";this.a.ended&&(c+=" end");this.status2.innerHTML="<font color='#000000' style='font-size:8px'>"+c+"</font>";b?(c=b.paused?"paused":"playing",b.ended&&(c+=" end"),b.hidden&&(c+=" hdn")):
c="NULL";this.status3.innerHTML="<font color='#000000' style='font-size:8px'>"+c+"</font>";switch(this.a.readyState){case a.HAVE_NOTHING:c="HaveNone";this.status4.style.backgroundColor="#ff0000";break;case a.HAVE_METADATA:c="HaveMeta";this.status4.style.backgroundColor="#ffaa00";break;case a.HAVE_CURRENT_DATA:c="HaveCurr";this.status4.style.backgroundColor="#aacc00";break;case a.HAVE_FUTURE_DATA:c="HaveMore";this.status4.style.backgroundColor="#55ff00";break;case a.HAVE_ENOUGH_DATA:c="HaveAll";this.status4.style.backgroundColor=
"#00ff00";break;default:c="???",this.status4.style.backgroundColor="#555555"}this.status4.innerHTML="<font color='#000000' style='font-size:8px'>"+c+"</font>";this.a.ended?(this.status.style.backgroundColor="#ffff00",this.status.innerHTML="<font color='#000000' style='font-size:8px'>Ended</font>"):this.a&&this.a.networkState==this.a.NETWORK_EMPTY?(this.status.style.backgroundColor="#000000",this.status.innerHTML="<font color='#ffffff' style='font-size:8px'>Empty</font>"):this.a&&this.a.networkState==
this.a.NETWORK_IDLE?(this.status.style.backgroundColor="#aaaaaa",this.status.innerHTML="<font color='#000000' style='font-size:8px'>Idle</font>"):this.a&&this.a.networkState==this.a.NETWORK_LOADING?(this.status.style.backgroundColor="#00ff00",this.status.innerHTML="<font color='#000000' style='font-size:8px'>Loading</font>"):this.a&&this.a.networkState==this.a.NETWORK_NO_SOURCE&&(this.status.style.backgroundColor="#ff0000",this.status.innerHTML="<font color='#ffffff' style='font-size:8px'>NoSrc</font>");
var e;this.a&&!isNaN(this.a.duration)&&isFinite(this.a.duration)?e=this.a.duration:b&&b.duration&&(e=b.duration);e?(b=this.a.buffered,b.length&&(b=b.end(b.length-1),this.downloaded.style.width=b/e*a.MediaView.PROGRESS_WIDTH+"px"),this.playHead.style.left=this.a.currentTime/e*a.MediaView.PROGRESS_WIDTH+"px"):(this.downloaded.style.width="0px",this.playHead.style.left="0px")}};a.AudioView=a.MediaView;a.VideoView=a.MediaView;a.AudioManager=function(){a.movie.am=this;this.volume=1;this.viewAudio=this.verbose=
this.loaded=this.muted=!1;if("http"==window.location.protocol.substr(0,4)){var b=window.AudioContext||window.webkitAudioContext;b&&(this.webAudio=new b,this.webAudioCache={},this.webAudioLoaded=this.webAudioReq=0)}this.errorCallBackFn=function(b){-1==this.src.indexOf("_cp_n_m_")&&(a.exceptionalLogs&&(a.log("src = "+this.src+" error code = "+(this.error?this.error.code:"NULL")+" n/w state = "+this.networkState),a.log(b)),this.waitCount=0)};this.waitingFn=function(b){var c;!isNaN(this.duration)&&isFinite(this.duration)?
c=this.duration:this.cpAudio&&this.cpAudio.duration&&(c=this.cpAudio.duration);if(c){var f=Math.abs(this.currentTime-c);a.movie.am.verbose&&a.log(this.cpSrc+" wait came when delta = "+f+" duration = "+c);if(0.3>f){0.3>c||(a.movie.am.verbose&&a.log("simulating arrival of ended event"),a.movie.am.onEndedCallBackFn.call(this,b));return}}++this.waitCount;a.movie.am.verbose&&(b="wait "+this.waitCount+" "+this.cpSrc+" currTime = "+this.currentTime+" duration = "+c+" curFrame = "+cpInfoCurrentFrame,this.cpAudio&&
(b+=" id = "+this.cpAudio.id,b+=" from "+this.cpAudio.from,b+=" to "+this.cpAudio.to),a.log(b))};this.canPlayCallBackFn=function(){this.waitCount=0;a.movie.am.verbose&&a.log("cnPly "+this.cpSrc+" "+(this.cpAudio?this.cpAudio.id:""))};this.onEndedCallBackFn=function(){this.waitCount=0;this.cploop?(a.movie.am.verbose&&a.log(this.cpSrc+" loop"),this.cpAudio&&(this.cpAudio.pause(),this.cpAudio.seekTo(this.cpAudio.from),this.cpAudio.play())):(a.movie.am.verbose&&a.log(this.cpSrc+" ended"),this.endedAt=
(new Date).getTime(),this.cpAudio&&(this.cpAudio.ended=!0,this.cpAudio.pause(),this.cpAudio.onEndAutoPlayMovie&&(delete this.cpAudio.onEndAutoPlayMovie,a.movie.play())))};this.onWebAudioEndedCallBackFn=function(b){b&&(a.movie.am.verbose&&a.log(b.cpSrc+" ended"),b.ended=!0,b.pause(),b.onEndAutoPlayMovie&&(delete b.onEndAutoPlayMovie,a.movie.play()))};this.PlayPauseCallBackFn=function(){this.paused&&(this.pausedAt=(new Date).getTime());this.cpAudio&&(this.cpAudio.paused=this.paused)};this.MAX_AUDIO_CHANNELS=
a.multiAudioTrack?10:1;this.audioChannels=[];for(b=0;b<this.MAX_AUDIO_CHANNELS;++b){var c=a.NativeAudio();c.cpSrc="";c.cpAudio=null;c.ended=!1;c.addEventListener("ended",this.onEndedCallBackFn,!1);c.addEventListener("error",this.errorCallBackFn,!1);a.waitForAudio&&(c.addEventListener("waiting",this.waitingFn,!1),c.addEventListener("canplay",this.canPlayCallBackFn,!1));c.addEventListener("play",this.PlayPauseCallBackFn,!1);c.addEventListener("pause",this.PlayPauseCallBackFn,!1);c.waitCount=0;c.muted=
this.muted;c.volume=this.volume;this.audioChannels[b]=c}this.verbose&&(b=a.NativeAudio(),a.log("NetworkStates: NETWORK_EMPTY = "+b.NETWORK_EMPTY+" NETWORK_IDLE = "+b.NETWORK_IDLE+" NETWORK_LOADING = "+b.NETWORK_LOADING+" NETWORK_NO_SOURCE = "+b.NETWORK_NO_SOURCE),b=null)};a.AudioManager.prototype={unlockWebAudio:function(){if(this.webAudio){var b=this.webAudio.createBuffer(1,1,22050),c=this.webAudio.createBufferSource();c.buffer=b;c.connect(this.webAudio.destination);c.noteOn=c.noteOn||c.start;c.noteOn(0);
var e=this;setTimeout(function(){if(c.playbackState===c.PLAYING_STATE||c.playbackState===c.FINISHED_STATE)e.webAudioUnlocked=!0,e.verbose&&a.log("web audio unlocked")},100)}},loadWebAudio:function(b){function c(d){try{e.webAudio.decodeAudioData(d.buf,function(a){var c={};c.buffer=a;e.webAudioCache[b]=c},function(){a.exceptionalLogs&&a.log(b+" Error decoding. Attempting to sync stream");var e;var f=new Uint8Array(d.buf);f.indexOf=Array.prototype.indexOf;for(e=d.sync;;){++d.retry;e=f.indexOf(255,e);
if(-1==e||f[e+1]&1)break;++e}-1!=e?(f=d.buf.slice(e),delete d.buf,d.buf=f,d.sync=e,e=!0):e=!1;e&&c(d)})}catch(f){a.exceptionalLogs&&a.log(b+" Error decoding2 "+f)}}var e=this,d={sync:0,retry:0};if(this.webAudio&&!this.webAudioCache[b]){++this.webAudioReq;this.webAudioCache[b]={};var f=new XMLHttpRequest;f.open("GET",b,!0);f.responseType="arraybuffer";f.onload=function(f){e.verbose&&a.log("webAudio:loaded "+b);++e.webAudioLoaded;d.buf=f.target.response;c(d)};f.send()}},playWebAudio:function(b){if(this.webAudio){var c=
b.src,e=this.webAudioCache[c];if(e&&e.buffer)return e.source=this.webAudio.createBufferSource(),e.source.buffer=e.buffer,e.source.loop=!1,e.source.connect(this.webAudio.destination),e.source.noteOn=e.source.noteOn||e.source.start,e.source.noteOn(0),setTimeout(function(){a.movie.am.onWebAudioEndedCallBackFn(b)},1E3*e.buffer.duration),this.verbose&&a.log("webAudio:play "+c),!0}return!1},pauseWebAudio:function(b){if(this.webAudio){var c=this.webAudioCache[b];if(c)return c.source&&(c.source.noteOff=c.source.noteOff||
c.source.stop,c.source.noteOff(0),delete c.source),this.verbose&&a.log("webAudio:pause "+b),!0}return!1},pendingAudios:function(){var b=0;this.webAudio&&(b=this.webAudioReq-this.webAudioLoaded);for(var c=0;c<this.MAX_AUDIO_CHANNELS;++c){var e=this.audioChannels[c];0<e.waitCount&&(!e.ended&&!e.paused)&&++b}0<b?this.numPending!=b&&(this.numPending=b,a.verbose&&a.log(b+" audios pending")):(this.numPending&&a.verbose&&a.log("no audios pending"),this.numPending=0);return b},resetAllWaitingAudios:function(){for(var b=
0;b<this.MAX_AUDIO_CHANNELS;++b)this.audioChannels[b].waitCount=0},LRUAudioIndex:function(){for(var b=(new Date).getTime(),a=-1,e=cpInfoCurrentFrame,d=0;d<this.MAX_AUDIO_CHANNELS;++d){var f=this.audioChannels[d];if(f.ended||f.paused)f.ended&&f.endedAt?b>f.endedAt&&(b=f.endedAt,a=d):f.paused&&f.pausedAt?b>f.pausedAt&&(b=f.pausedAt,a=d):-1==a&&e>f.cpTo&&(a=d)}return a},allocAudioChannel:function(b){this.verbose&&a.log("allocAudioChannel "+b.id+" "+b.src);if(this.webAudio&&this.webAudioCache[b.src])this.verbose&&
a.log("found in web-audio cache");else{if(a.multiAudioTrack){for(var c=cpInfoCurrentFrame,e=0;e<this.MAX_AUDIO_CHANNELS;++e){var d=this.audioChannels[e],f=d.cpAudio&&d.cpAudio.from<=c&&d.cpAudio.to>=c;if(d.cpSrc==b.src&&(d.ended||d.paused)&&!f)return null!=d.cpAudio&&(d.cpAudio.nativeAudio=null,d.cpAudio=null),b.nativeAudio=d,d.cpAudio=b,a.device==a.IDEVICE||a.device==a.ANDROID?d.cploop=b.cploop:d.loop=b.loop,d.ended=!1,d.cpTo=b.to,b.isSeekPending()||b.seekTo(b.from),b.finishPendingSeek(),a.DESKTOP!=
a.device&&d.load(),this.verbose&&a.log("allocAudioChannel found existing @ "+e),!0}for(e=0;e<this.MAX_AUDIO_CHANNELS;++e)if(d=this.audioChannels[e],""==d.cpSrc)return d.waitCount=0,d.cpSrc=b.src,d.src=b.src,b.nativeAudio=d,d.cpAudio=b,a.device==a.IDEVICE||a.device==a.ANDROID?d.cploop=b.cploop:d.loop=b.loop,d.ended=!1,d.cpTo=b.to,b.finishPendingSeek(),d.load(),this.verbose&&a.log("allocAudioChannel found empty slot @ "+e),!0;c=this.LRUAudioIndex();return-1!=c?(d=this.audioChannels[c],null!=d.cpAudio&&
(d.cpAudio.nativeAudio=null,d.cpAudio=null),b.nativeAudio=d,d.cpAudio=b,a.device==a.IDEVICE||a.device==a.ANDROID?d.cploop=b.cploop:d.loop=b.loop,d.ended=!1,d.cpTo=b.to,d.cpSrc!=b.src?(d.waitCount=0,d.cpSrc=b.src,d.src=b.src):b.isSeekPending()||b.seekTo(b.from),b.finishPendingSeek(),d.load(),this.verbose&&a.log("allocAudioChannel re-used LRU slot @ "+c),!0):!1}d=this.audioChannels[0];d.paused||(null!=d.cpAudio?d.cpAudio.pause():d.pause());null!=d.cpAudio&&(d.cpAudio.nativeAudio=null);b.nativeAudio=
d;d.cpAudio=b;d.cploop=b.cploop;d.ended=!1;if(d.cpSrc!=b.src){d.waitCount=0;d.cpSrc=b.src;d.src=b.src;0<d.currentTime&&this.verbose&&a.log("currentTime after changing src = "+d.currentTime+" going to wait...");if(a.IOSFlavor<=a.IOS5)for(;0<d.currentTime;)d.load();else for(c=0;0<d.currentTime&&100>++c;)a.verbose&&a.log("waiting for "+c+" time"),d.load();this.verbose&&a.log("finished waiting")}else b.isSeekPending()||b.seekTo(b.from);b.finishPendingSeek();d.load()}},allocSingletonAudioChannelForPlayAudioAction:function(b){this.verbose&&
a.log("allocSingletonAudioChannelForPlayAudioAction "+b);var c=a.NativeAudio();c.addEventListener("ended",this.onEndedCallBackFn,!1);c.addEventListener("error",this.errorCallBackFn,!1);a.waitForAudio&&(c.addEventListener("waiting",this.waitingFn,!1),c.addEventListener("canplay",this.canPlayCallBackFn,!1));c.addEventListener("play",this.PlayPauseCallBackFn,!1);c.addEventListener("pause",this.PlayPauseCallBackFn,!1);c.waitCount=0;c.cpSrc=b;c.src=b;a.movie.am.singletonPlayAudio.nativeAudio=c;c.cpAudio=
a.movie.am.singletonPlayAudio;c.muted=this.muted;c.volume=this.volume;c.ended=!1;c.load();this.audioViews&&this.audioViews.push(new a.AudioView(c))},load:function(){var b=a.D.pbga;b&&(this.bgAudio=new a.AudioObject(this,"bga",b.src,1,b.to,b.du),b.l&&this.bgAudio.setLoop(!0),this.bgAudio.stopAtProjectEnd=b.spe,this.bgAudio.lowerVolumeOnSlidesWithAudio=b.lv,this.bgAudio.lowerVolumePercentage=b.vp);b=(a.D.project_main.slideAudios||"").split(",");this.slideAudios={};for(var c=0;c<b.length;++c)if(""!=
b[c]){var e=a.D[b[c]],d=new a.AudioObject(this,b[c],e.src,e.from,e.to,e.du);e.l&&d.setLoop(!0,e.lf);this.slideAudios[b[c]]=d}b={};this.objectAudios={};this.eventAudios={};c=(a.D.project_main.slides||"").split(",");for(e=0;e<c.length;++e){for(var f=a.D[c[e]],g=(f.oa||"").split(","),h={},i=!1,d=0;d<g.length;++d)if(""!=g[d]){var j=a.D[g[d]],i=j.rp?b[g[d]]:void 0;i||(i=new a.AudioObject(this,g[d],j.src,j.from,j.to,j.du,j.rp),i.mouseAudio=j.msa,j.rp&&(b[g[d]]=i));h[g[d]]=i;i=!0}i&&(this.objectAudios[c[e]]=
h);f=(f.ea||"").split(",");g={};i=!1;for(d=0;d<f.length;++d)""!=f[d]&&(h=a.D[f[d]],i=h.rp?b[f[d]]:void 0,i||(i=new a.AudioObject(this,f[d],h.src,-1,-1,h.du,h.rp),h.rp&&(b[f[d]]=i)),g[f[d]]=i,i=!0);i&&(this.eventAudios[c[e]]=g)}a.movie.playKeyTap&&(this.keyTap=new a.AudioObject(this,"pkt","ar/KeyClick.mp3",-1,-1,void 0));this.singletonPlayAudio=new a.AudioObject(this,"spa","",-1,-1,void 0);this.extAudios={};if(a.extAudioCallbacks)for(b=0;b<a.extAudioCallbacks.length;++b)a.extAudioCallbacks[b](this);
this.loaded=!0},deviceSpecificFlush:function(){if((a.IDEVICE==a.device||a.device==a.ANDROID)&&a.multiAudioTrack){for(var b=0,c=0;c<this.MAX_AUDIO_CHANNELS;++c){var e=this.audioChannels[c];if(-1!=e.src.indexOf("_cp_n_m_")&&(++b,b>=this.MAX_AUDIO_CHANNELS/2))return}for(c=0;c<this.MAX_AUDIO_CHANNELS;++c)if(e=this.audioChannels[c],e.ended||e.paused)if(null!=e.cpAudio&&(e.cpAudio.nativeAudio=null,e.cpAudio=null),e.cpSrc="",e.waitCount=0,delete e.cploop,e.ended=!1,delete e.cpTo,-1==e.src.indexOf("_cp_n_m_")){try{e.src=
"_cp_n_m_"}catch(d){}try{e.load()}catch(f){}}}},deviceSpecificInit:function(){if(a.IDEVICE==a.device||a.device==a.ANDROID)for(var b=0;b<this.MAX_AUDIO_CHANNELS;++b){var c=this.audioChannels[b];if(!c.cpSrc)try{c.src="_cp_n_m_"}catch(e){}try{c.load()}catch(d){}}},playKeyTap:function(){this.verbose&&a.log("playKeyTap");if(!this.playWebAudio(this.keyTap)){if(a.device==a.IDEVICE||a.device==a.ANDROID)if(!a.multiAudioTrack&&(this.audioPlaying||a.movie.stage.VideoPlaying)){this.verbose&&a.log("audioPlaying "+
this.audioPlaying+" videoPlaying "+this.videoPlaying);return}!this.muted&&1==a.movie.speed&&(this.eventAudioPlaying=this.keyTap.id,this.keyTap.resetAndPlay())}},seekTo:function(b,c){if(!this.loaded)return-1;var e=a.movie.stage.getSlideIndexForFrame(b);if(-1==e)return-1;this.ssc=0;this.changeCurrentSlide(e,b,!1);if(this.currentSlide){var d=this.objectAudios[this.currentSlide];if(d)for(var f in d){var g=d[f];g&&(g.seekTo(b)||g.pause())}}this.currentSlideAudio&&(d=this.slideAudios[this.currentSlideAudio])&&
(d.seekTo(b)||d.pause());this.bgAudio&&(this.bgAudio.paused||this.bgAudio.ended)&&this.bgAudio.seekTo(b);this.singletonPlayAudio&&c&&this.singletonPlayAudio.pause();return e},changeCurrentSlide:function(b,c,e){this.deviceSpecificFlush();b=a.movie.stage.getSlideNameForIndex(b);if(!(""==b||this.currentSlide==b)){this.verbose&&a.log("am changing slide from "+this.currentSlide+" to "+b+" seek = "+e);this.interactiveItemFound=!1;this.ssp=this.ssc=0;if(this.currentSlide){var d=this.objectAudios[this.currentSlide];
if(d)for(var f in d){var g=d[f];g.mouseAudio?setTimeout(function(b){return function(){b.pause()}}(g),500):g.pause()}if(d=this.eventAudios[this.currentSlide])for(var h in d)g=d[h],5>=g.id.length||"ClkAd"!=g.id.substring(g.id.length-5)?g.pause():setTimeout(function(b){return function(){b.pause()}}(g),500);this.singletonPlayAudio.pause();this.currentSlideAudio&&((h=this.slideAudios[this.currentSlideAudio],h.from>c||h.to<c)?(h.pause(),h.nativeAudio&&(h.nativeAudio.cpAudio=null,h.nativeAudio=null),h.ended&&
(h.ended=!1),delete this.currentSlideAudio):e&&cpInfoPrevFrame!=c-1&&h.seekTo(c));if(h=this.extAudios[this.currentSlide])for(f in h)h[f].reset()}this.currentSlide=b;this.currentSlideAudio||(this.currentSlideAudio=a.D[this.currentSlide].audioName,(h=this.slideAudios[this.currentSlideAudio])&&h.seekTo(c));if(e&&this.currentSlide&&(d=this.objectAudios[this.currentSlide]))for(f in d)g=d[f],g.rp?g.ended&&g.seekTo(g.from):g.seekTo(g.from);this.stopBGAudio=(c=a.D[this.currentSlide])&&c.sba?!0:!1}},preload:function(b){if(this.webAudio){var c=
this.eventAudios[b];if(c)for(var e in c){var d=c[e];d&&this.loadWebAudio(d.src)}this.keyTap&&a.movie.playKeyTap&&this.loadWebAudio(this.keyTap.src);var c=this.objectAudios[b],f;for(f in c)(d=c[f])&&d.mouseAudio&&this.loadWebAudio(d.src)}if(!(a.device==a.IDEVICE||a.device==a.ANDROID||a.device==a.KINDLE)&&this.loaded&&1==a.movie.speed){this.verbose&&a.log("audio manager preload "+b);if(c=a.D[b])if((c=this.slideAudios[c.audioName])&&!c.nativeAudio&&!this.allocAudioChannel(c,!1))return;c=this.objectAudios[b];
for(f in c)if(d=c[f],!d||!d.rp||!d.nativeAudio)if(d&&(!d.mouseAudio||!this.webAudio)&&!this.allocAudioChannel(d,!1))return;if(!this.webAudio){if(c=this.eventAudios[b])for(e in c)if((d=c[e])&&(!d.rp||!d.nativeAudio)&&!this.allocAudioChannel(d,!1))return;if(this.keyTap&&a.movie.playKeyTap&&!this.allocAudioChannel(this.keyTap,!1))return}b=this.extAudios[b];for(f in b)if((e=b[f])&&!this.allocAudioChannel(e,!1))break}},play:function(b,c){this.pace=null;if(this.loaded&&1==a.movie.speed){if((a.device==a.IDEVICE||
a.device==a.ANDROID)&&!a.multiAudioTrack){var e=this.audioChannels[0];if(!e.paused&&!e.ended&&e.cpAudio&&e.cpAudio.id==this.eventAudioPlaying||a.movie.stage.VideoPlaying)return}var e=!1,d=null,f=null;if(!c){if(this.currentSlide){var g=this.objectAudios[this.currentSlide];if(g)for(var h in g){var i=g[h];i&&!i.ended&&(i.from<=b&&i.to>=b||i.shownAt&&i.shownAt<=b&&i.shownAt+i.to-i.from>=b?((a.device==a.IDEVICE||a.device==a.ANDROID)&&!a.multiAudioTrack?null==d&&(d=i):(null==d&&(d=i),i.play()),e=!0):i.mouseAudio?
this.webAudio&&i.pause():i.pause())}}if(this.currentSlideAudio&&(h=this.slideAudios[this.currentSlideAudio])&&!h.ended)h.from<=b&&h.to>=b?(a.device==a.IDEVICE||a.device==a.ANDROID)&&!a.multiAudioTrack?(null==d&&(f=d=h),1!=this.ssc&&1!=this.ssp&&(e=!0)):1!=this.ssc&&1!=this.ssp?(h.play(),null==d&&(d=h),f=h,e=!0):h.pause():h.pause()}this.bgAudio&&((e?this.bgAudio.lowerVolumeOnSlidesWithAudio&&this.bgAudio.nativeAudio&&(this.bgAudio.nativeAudio.volume=this.volume*(this.bgAudio.lowerVolumePercentage/
100)):this.bgAudio.nativeAudio&&(this.bgAudio.nativeAudio.volume=this.volume),(a.device==a.IDEVICE||a.device==a.ANDROID)&&!a.multiAudioTrack)?null==d&&(d=this.bgAudio):this.stopBGAudio?this.bgAudio.pause():this.bgAudio.play());this.audioPlaying=null;if((a.device==a.IDEVICE||a.device==a.ANDROID)&&d&&!a.multiAudioTrack)f==d?1!=this.ssc&&1!=this.ssp&&(this.audioPlaying=d.id,d.play()):this.bgAudio==d?this.stopBGAudio?d.pause():(this.audioPlaying=d.id,d.play()):(this.audioPlaying=d.id,d.play());a.IDEVICE==
a.device||a.device==a.ANDROID?1==a.movie.speed&&(d&&d!=this.bgAudio&&!d.shownAt&&!d.ended&&!d.paused&&!d.loop&&d.nativeAudio&&0<d.nativeAudio.currentTime?(this.pace=d.from+d.nativeAudio.currentTime*cpInfoFPS,this.pace>d.to&&(this.pace=d.to)):this.pace=a.movie.vdm.pace()):1==a.movie.speed&&!this.interactiveItemFound&&(f&&!f.ended&&!f.paused&&!f.loop&&f.nativeAudio&&0<f.nativeAudio.currentTime?(this.pace=f.from+f.nativeAudio.currentTime*cpInfoFPS,this.pace>f.to&&(this.pace=a.movie.vdm.pace()?null:f.to)):
this.pace=a.movie.vdm.pace())}},pause:function(b){this.reasonForPause=b;if((b==a.ReasonForPause.PLAYBAR_ACTION||b==a.ReasonForPause.CPCMNDPAUSE||b==a.ReasonForPause.MOVIE_REWIND_STOP||b==a.ReasonForPause.EVENT_VIDEO_PAUSE||b==a.ReasonForPause.ONLY_ONE_MEDIUM_CAN_PLAY||b==a.ReasonForPause.PPTX_PAUSE_FOR_ONCLICK_ANIMATION||b==a.ReasonForPause.CPCMNDGOTOFRAME||b==a.ReasonForPause.ACTION_CHOICE)&&this.currentSlide){var c=this.objectAudios[this.currentSlide];if(c&&b!=a.ReasonForPause.ACTION_CHOICE)for(var e in c)c[e].pause();
if(c=this.extAudios[this.currentSlide])for(e in c)c[e].pause(b)}e=cpInfoCurrentFrame;this.currentSlideAudio&&(c=this.slideAudios[this.currentSlideAudio])&&(c.from<=e&&c.to>=e?b==a.ReasonForPause.INTERACTIVE_ITEM?1==this.ssp&&c.pause():(b==a.ReasonForPause.PLAYBAR_ACTION||b==a.ReasonForPause.CPCMNDPAUSE||b==a.ReasonForPause.MOVIE_REWIND_STOP||b==a.ReasonForPause.EVENT_VIDEO_PAUSE||b==a.ReasonForPause.ONLY_ONE_MEDIUM_CAN_PLAY||b==a.ReasonForPause.PPTX_PAUSE_FOR_ONCLICK_ANIMATION||b==a.ReasonForPause.CPCMNDGOTOFRAME||
b==a.ReasonForPause.WK_EXIT_FULL_SCREEN)&&c.pause():c.pause());this.bgAudio&&(b==a.ReasonForPause.MOVIE_ENDED?this.bgAudio.stopAtProjectEnd&&this.bgAudio.pause():(b==a.ReasonForPause.PLAYBAR_ACTION||b==a.ReasonForPause.MOVIE_REWIND_STOP||b==a.ReasonForPause.EVENT_VIDEO_PAUSE||b==a.ReasonForPause.ONLY_ONE_MEDIUM_CAN_PLAY)&&this.bgAudio.pause())},pauseCurrentSlideAudioForInteractiveClick:function(){this.verbose&&a.log("pause currentSlide Audio for SSC");var b=cpInfoCurrentFrame;if(this.currentSlideAudio){var c=
this.slideAudios[this.currentSlideAudio];c&&(c.from<=b&&c.to>=b)&&(this.ssc=1,c.pause())}},mute:function(b){var b=!0==b||0<b?!0:!1,a=document.getElementById("playbar");b&&void 0!=a.mute&&a.mute();!b&&void 0!=a.unmute&&a.unmute();for(a=0;a<this.MAX_AUDIO_CHANNELS;++a)this.audioChannels[a].muted=b;this.muted=b},setVolume:function(a){0>a&&(a=0);1<a&&(a=1);this.volume=a;for(var c=0;c<this.MAX_AUDIO_CHANNELS;++c)this.audioChannels[c].volume=a},playPauseEventAudio:function(b,c){if(c&&(a.device==a.IDEVICE||
a.device==a.ANDROID)&&!a.multiAudioTrack)if(this.audioPlaying||a.movie.stage.VideoPlaying)return;if((!c||!(this.muted||1!=a.movie.speed))&&this.currentSlide){var e=this.eventAudios[this.currentSlide];if(e){var d=e[b];d&&(c?(this.eventAudioPlaying=d.id,d.resetAndPlay(),5<d.id.length&&"ClkAd"==d.id.substring(d.id.length-5)&&(d.duration?setTimeout(function(){d.pause()},1E3*(d.duration+0.2)):setTimeout(function(){d.pause()},500))):d.pause())}}},showHideObjectAudio:function(a,c){if(this.currentSlide){var e=
this.objectAudios[this.currentSlide];e&&(e=e[a])&&(c?e.hidden&&e.show():e.hidden||e.hide())}},doesAudioStartBetween:function(b,c){if(this.currentSlide){var e=this.objectAudios[this.currentSlide];if(e)for(var d in e){var f=e[d];if(f&&!f.ended&&f.from>=b&&f.from<=c)return this.verbose&&a.log("objAudio "+f.id+" starts between "+b+" & "+c),!0}}return this.currentSlideAudio&&(e=this.slideAudios[this.currentSlideAudio])&&!e.ended&&e.from>=b&&e.from<=c?(this.verbose&&a.log("slideAudio "+e.id+" starts between "+
b+" & "+c),!0):!1},updateAudioViews:function(){if(this.viewAudio&&this.audioViews)for(var a in this.audioViews)this.audioViews[a].update()}};a.NativeVideo=function(b){makeItDummyNativeVideo=function(a){a.currentTime=0;a.duration=0;a.paused=!0;a.ended=!0;a.defaultPlaybackRate=0;a.playbackRate=1;a.played=!1;a.seeking=!1;a.seekable=!1;a.fastSeek=!1;a.src="";a.crossorigin=!1;a.preload=!1;a.autoplay=!1;a.mediagroup="";a.loop=!1;a.muted=!1;a.controls=!1;a.style={};a.load=function(){};a.play=function(){};
a.pause=function(){};a.addEventListener=function(){};a.removeEventListener=function(){}};var c=a.newElem("video");if("undefined"===typeof Video||!Video)(void 0==c.load||void 0==c.play||void 0==c.pause||void 0==c.addEventListener)&&makeItDummyNativeVideo(c);b&&(c.id=b);return c};a.VideoManager=function(){a.movie.vdm=this;this.viewVideo=this.verbose=this.loaded=!1;this.errorCallBackFn=function(b){-1==this.src.indexOf("_cp_n_m_")&&(a.exceptionalLogs&&(a.log("src = "+this.src+" error code = "+(this.error?
this.error.code:"NULL")+" n/w state = "+this.networkState),a.log(b)),this.cpVideo&&(b=a.D[this.cpVideo.id],b.psv&&(b.pausedOnce=!0)),this.waitCount=0)};this.waitingFn=function(){++this.waitCount;a.movie.vdm.verbose&&a.log("wait "+this.waitCount+" "+this.cpSrc+" "+(this.cpVideo?this.cpVideo.id:""))};this.canPlayCallBackFn=function(){if(!1==this.CPcanPlay){var b=100;a.device==a.ANDROID?b=2E3:(this.CPcanPlay=!0,this.waitCount=0);var c=this;setTimeout(function(){c.CPcanPlay=true;c.waitCount=0;var b=cpInfoCurrentFrame;
if(c.from<=b&&b<=c.to){c.style.position="static";c.style.left="0px";c.CPtoc&&a.toc.rootObj.showVideo(true)}},b)}else this.waitCount=0;this.cpVideo&&this.cpVideo.displayForDurationOfVideo&&(a.D[this.cpVideo.parentDivName].to=this.duration*a.movie.fps);a.movie.vdm.verbose&&a.log("cnPly "+this.cpSrc+" "+(this.cpVideo?this.cpVideo.id:""))};this.onEndedCallBackFn=function(){this.waitCount=0;this.cploop?(a.movie.vdm.verbose&&a.log(this.cpSrc+" loop"),this.cpVideo&&(this.cpVideo.pause(),this.cpVideo.seekTo(this.cpVideo.from),
this.cpVideo.play())):(a.movie.vdm.verbose&&a.log(this.cpSrc+" ended"),this.cpVideo?this.cpVideo.autoRewind?(this.cpVideo.pause(),this.cpVideo.seekTo(this.cpVideo.from)):(this.cpVideo.ended=!0,this.endedAt=(new Date).getTime(),this.cpVideo.pause()):this.endedAt=(new Date).getTime(),a.movie.paused?a.ReasonForPause.EVENT_VIDEO_PAUSE==a.movie.reasonForPause&&(this.cpVideo.nativeVideo&&(Document&&Document.exitFullscreen?Document.exitFullscreen():Document&&Document.webkitExitFullscreen?Document.webkitExitFullscreen():
this.cpVideo.nativeVideo.exitFullscreen?this.cpVideo.nativeVideo.exitFullscreen():this.cpVideo.nativeVideo.msExitFullscreen?this.cpVideo.nativeVideo.msExitFullscreen():this.cpVideo.nativeVideo.mozCancelFullScreen?this.cpVideo.nativeVideo.mozCancelFullScreen():this.cpVideo.nativeVideo.webkitExitFullscreen&&this.cpVideo.nativeVideo.webkitExitFullscreen()),a.movie.play()):this.cpVideo&&(this.cpVideo.actualParent.pausedOnce=!0),this.cpVideo&&this.cpVideo.displayForDurationOfVideo&&this.cpVideo.reset())};
this.PlayPauseCallBackFn=function(){this.paused&&(this.pausedAt=(new Date).getTime());this.cpVideo&&(this.cpVideo.paused=this.paused)};if(a.device==a.IDEVICE||a.device==a.ANDROID){this.slideVideoChannel=new a.NativeVideo;this.slideVideoChannel.cpSrc="";this.slideVideoChannel.cpVideo=null;this.slideVideoChannel.ended=!1;this.slideVideoChannel.addEventListener("error",this.errorCallBackFn,!1);if(a.IOSMajor>=a.IOS5||a.device==a.ANDROID)this.slideVideoChannel.addEventListener("waiting",this.waitingFn,
!1),this.slideVideoChannel.addEventListener("canplay",this.canPlayCallBackFn,!1);this.slideVideoChannel.addEventListener("play",this.PlayPauseCallBackFn,!1);this.slideVideoChannel.addEventListener("pause",this.PlayPauseCallBackFn,!1);this.slideVideoChannel.waitCount=0;var b=this.slideVideoChannel;this.slideVideoChannel.addEventListener("webkitbeginfullscreen",function(){""!=b.src&&("_cp_n_m_"!=b.src&&!b.paused)&&(b.pauseMovieOnExitFullScreen=!0)},!1);this.slideVideoChannel.addEventListener("webkitendfullscreen",
function(){b.pauseMovieOnExitFullScreen&&(b.pauseMovieOnExitFullScreen=!1,a.movie.pause(a.ReasonForPause.WK_EXIT_FULL_SCREEN))},!1)}else this.slideVideoChannel0=new a.NativeVideo,this.slideVideoChannel0.cpSrc="",this.slideVideoChannel0.cpVideo=null,this.slideVideoChannel0.ended=!1,this.slideVideoChannel0.addEventListener("error",this.errorCallBackFn,!1),this.slideVideoChannel0.addEventListener("waiting",this.waitingFn,!1),this.slideVideoChannel0.addEventListener("canplay",this.canPlayCallBackFn,!1),
this.slideVideoChannel0.addEventListener("play",this.PlayPauseCallBackFn,!1),this.slideVideoChannel0.addEventListener("pause",this.PlayPauseCallBackFn,!1),this.slideVideoChannel0.waitCount=0,this.slideVideoChannel1=new a.NativeVideo,this.slideVideoChannel1.cpSrc="",this.slideVideoChannel1.cpVideo=null,this.slideVideoChannel1.ended=!1,this.slideVideoChannel1.addEventListener("error",this.errorCallBackFn,!1),this.slideVideoChannel1.addEventListener("waiting",this.waitingFn,!1),this.slideVideoChannel1.addEventListener("canplay",
this.canPlayCallBackFn,!1),this.slideVideoChannel1.addEventListener("play",this.PlayPauseCallBackFn,!1),this.slideVideoChannel1.addEventListener("pause",this.PlayPauseCallBackFn,!1),this.slideVideoChannel1.waitCount=0,this.slideVideoChannel=this.slideVideoChannel0;if(a.loadedModules.toc)if(a.device==a.IDEVICE||a.device==a.ANDROID){this.tocVideoChannel=document.getElementById("tocVideo");this.tocVideoChannel||(this.tocVideoChannel=new a.NativeVideo("tocVideo"));this.tocVideoChannel.cpSrc="";this.tocVideoChannel.cpVideo=
null;this.tocVideoChannel.ended=!1;this.tocVideoChannel.addEventListener("error",this.errorCallBackFn,!1);if(a.IOSMajor>=a.IOS5||a.device==a.ANDROID)this.tocVideoChannel.addEventListener("waiting",this.waitingFn,!1),this.tocVideoChannel.addEventListener("canplay",this.canPlayCallBackFn,!1);this.tocVideoChannel.addEventListener("play",this.PlayPauseCallBackFn,!1);this.tocVideoChannel.addEventListener("pause",this.PlayPauseCallBackFn,!1);this.tocVideoChannel.waitCount=0}else this.tocVideoChannel0=document.getElementById("tocVideo"),
this.tocVideoChannel0||(this.tocVideoChannel0=new a.NativeVideo("tocVideo")),this.tocVideoChannel0.cpSrc="",this.tocVideoChannel0.cpVideo=null,this.tocVideoChannel0.ended=!1,this.tocVideoChannel0.addEventListener("error",this.errorCallBackFn,!1),this.tocVideoChannel0.addEventListener("waiting",this.waitingFn,!1),this.tocVideoChannel0.addEventListener("canplay",this.canPlayCallBackFn,!1),this.tocVideoChannel0.addEventListener("play",this.PlayPauseCallBackFn,!1),this.tocVideoChannel0.addEventListener("pause",
this.PlayPauseCallBackFn,!1),this.tocVideoChannel0.waitCount=0,this.tocVideoChannel1=new a.NativeVideo("tocVideo"),this.tocVideoChannel1.cpSrc="",this.tocVideoChannel1.cpVideo=null,this.tocVideoChannel1.ended=!1,this.tocVideoChannel1.addEventListener("error",this.errorCallBackFn,!1),this.tocVideoChannel1.addEventListener("waiting",this.waitingFn,!1),this.tocVideoChannel1.addEventListener("canplay",this.canPlayCallBackFn,!1),this.tocVideoChannel1.addEventListener("play",this.PlayPauseCallBackFn,!1),
this.tocVideoChannel1.addEventListener("pause",this.PlayPauseCallBackFn,!1),this.tocVideoChannel1.waitCount=0,this.tocVideoChannel=this.tocVideoChannel0;this.MAX_VIDEO_CHANNELS=a.device==a.IDEVICE||a.device==a.ANDROID?2:10;this.videoChannels=[];for(var c=0;c<this.MAX_VIDEO_CHANNELS;++c){var e=new a.NativeVideo;e.cpSrc="";e.cpVideo=null;e.ended=!1;e.addEventListener("ended",this.onEndedCallBackFn,!1);e.addEventListener("error",this.errorCallBackFn,!1);if(a.device==a.DESKTOP||a.device==a.IDEVICE&&a.IOSMajor>=
a.IOS5||a.device==a.ANDROID)e.addEventListener("waiting",this.waitingFn,!1),e.addEventListener("canplay",this.canPlayCallBackFn,!1);e.addEventListener("play",this.PlayPauseCallBackFn,!1);e.addEventListener("pause",this.PlayPauseCallBackFn,!1);e.waitCount=0;this.videoChannels[c]=e}};a.VideoManager.prototype={pendingVideos:function(){var b=0,c=this.slideVideoChannel;0<c.waitCount&&(!c.ended&&!c.paused)&&++b;(c=this.tocVideoChannel)&&(0<c.waitCount&&!c.ended&&!c.paused)&&++b;for(c=0;c<this.MAX_VIDEO_CHANNELS;++c){var e=
this.videoChannels[c];0<e.waitCount&&(!e.ended&&!e.paused)&&++b}0<b?this.numPending!=b&&(this.numPending=b,a.verbose&&a.log(b+" videos pending")):(this.numPending&&a.verbose&&a.log("no videos pending"),this.numPending=0);return b},resetAllWaitingVideos:function(){for(var a=0;a<this.MAX_VIDEO_CHANNELS;++a)this.videoChannels[a].waitCount=0},mute:function(a){var a=!0==a||0<a?!0:!1,c;for(c in this.videoChannels)this.videoChannels[c].muted=a;this.slideVideoChannel.muted=a;this.tocVideoChannel&&(this.tocVideoChannel.muted=
a);this.muted=a},setVolume:function(a){0>a&&(a=0);1<a&&(a=1);this.volume=a;for(var c in this.videoChannels)this.videoChannels[c].volume=a;this.slideVideoChannel.volume=a;this.tocVideoChannel&&(this.tocVideoChannel.volume=a)},LRUVideoIndex:function(){for(var a=(new Date).getTime(),c=-1,e=cpInfoCurrentFrame,d=0;d<this.MAX_VIDEO_CHANNELS;++d){var f=this.videoChannels[d];if(f.ended||f.paused)f.ended&&f.endedAt?a>f.endedAt&&(a=f.endedAt,c=d):f.paused&&f.pausedAt?a>f.pausedAt&&(a=f.pausedAt,c=d):-1==c&&
e>f.cpTo&&(c=d)}return c},allocVideoChannel:function(b){this.verbose&&a.log("allocVideoChannel "+b.id+" "+b.src);if(a.IDEVICE==a.device||a.device==a.ANDROID){this._LRUVideoIndex=void 0==this._LRUVideoIndex?0:1-this._LRUVideoIndex;this.verbose&&a.log("picking video @ index "+this._LRUVideoIndex);var c=this.videoChannels[this._LRUVideoIndex];null!=c.cpVideo&&(c.cpVideo.nativeVideo=null);b.nativeVideo=c;c.cpVideo=b;c.cploop=b.cploop;c.ended=!1;c.waitCount=0;c.cpSrc=b.src;c.src=b.src;c.load()}else{for(var e=
cpInfoCurrentFrame,d=0;d<this.MAX_VIDEO_CHANNELS;++d){var c=this.videoChannels[d],f=c.cpVideo&&c.cpVideo.from<=e&&c.cpVideo.to>=e;if(c.cpSrc==b.src&&(c.ended||c.paused)&&!f)return null!=c.cpVideo&&(c.cpVideo.nativeVideo=null,c.cpVideo=null),b.nativeVideo=c,c.cpVideo=b,c.loop=b.loop,c.ended=!1,c.cpTo=b.to,b.isSeekPending()||b.seekTo(b.from),b.finishPendingSeek(),this.verbose&&a.log("allocVideoChannel found existing @ "+d),!0}for(d=0;d<this.MAX_VIDEO_CHANNELS;++d)if(c=this.videoChannels[d],""==c.cpSrc)return c.waitCount=
0,c.cpSrc=b.src,c.src=b.src,b.nativeVideo=c,c.cpVideo=b,c.loop=b.loop,c.ended=!1,c.cpTo=b.to,b.finishPendingSeek(),c.load(),this.verbose&&a.log("allocVideoChannel found empty slot @ "+d),!0;e=this.LRUVideoIndex();return-1!=e?(c=this.videoChannels[e],null!=c.cpVideo&&(c.cpVideo.nativeVideo=null,c.cpVideo=null),b.nativeVideo=c,c.cpVideo=b,c.loop=b.loop,c.ended=!1,c.cpTo=b.to,c.cpSrc!=b.src?(c.waitCount=0,c.cpSrc=b.src,c.src=b.src):b.isSeekPending()||b.seekTo(b.from),b.finishPendingSeek(),c.load(),this.verbose&&
a.log("allocVideoChannel re-used LRU slot @ "+e),!0):!1}},preallocVideoChannel:function(b){b=a.getCorrectMediaPath(b);this.verbose&&a.log("preallocVideoChannel "+b);for(var c=0;c<this.MAX_VIDEO_CHANNELS;++c){var e=this.videoChannels[c];if(e.cpSrc==b)return this.verbose&&a.log("preallocVideoChannel found existing @ "+c),!0}for(c=0;c<this.MAX_VIDEO_CHANNELS;++c)if(e=this.videoChannels[c],""==e.cpSrc)return e.waitCount=0,e.cpSrc=b,e.src=b,e.ended=!1,delete e.cpTo,e.load(),this.verbose&&a.log("preallocVideoChannel found empty slot @ "+
c),!0;return!1},deviceSpecificInit:function(){function b(a){if(!a.cpSrc)try{a.src="_cp_n_m_"}catch(b){}try{a.load()}catch(c){}}if(a.IDEVICE==a.device||a.device==a.ANDROID){for(var c=0;c<this.MAX_VIDEO_CHANNELS;++c)b(this.videoChannels[c]);b(this.slideVideoChannel);this.tocVideoChannel&&b(this.tocVideoChannel)}},load:function(){this.loaded=!0},preload2:function(b){if(this.loaded&&1==a.movie.speed&&(this.verbose&&a.log("video manager preload "+b),b=a.D[b],b.videos))for(var c=!0,e=!0,d=!0,f=0;f<b.videos.length;++f){var g=
a.D[b.videos[f]];g.type==a.kCPFullMotion||g.type==a.kCPOTVideoResource||g.type==a.kCPOTFLVItem?c&&(g=a.D[g.mdi],c=this.preallocVideoChannel(g.mp4)):g.type==a.kCPOTVideo&&(g=a.D[g.mdi],g.sit?e&&(g=a.getCorrectMediaPath(g.mp4),this.tocVideoChannel0.cpSrc==g||this.tocVideoChannel1.cpSrc==g?this.verbose&&a.log("vdm preload found existing "+g):this.tocVideoChannel0.cpVideo?this.tocVideoChannel1.cpVideo?e=!1:(this.tocVideoChannel1.cpSrc=g,this.tocVideoChannel1.src=g,this.tocVideoChannel1.load(),this.verbose&&
a.log("vdm preloaded tocV1 with "+g)):(this.tocVideoChannel0.cpSrc=g,this.tocVideoChannel0.src=g,this.tocVideoChannel0.load(),this.verbose&&a.log("vdm preloaded tocV0 with "+g))):d&&(g=a.getCorrectMediaPath(g.mp4),this.slideVideoChannel0.cpSrc==g||this.slideVideoChannel1.cpSrc==g?this.verbose&&a.log("vdm preload found existing "+g):this.slideVideoChannel0.cpVideo?this.slideVideoChannel1.cpVideo?d=!1:(this.slideVideoChannel1.cpSrc=g,this.slideVideoChannel1.src=g,this.slideVideoChannel1.load(),this.verbose&&
a.log("vdm preloaded SV1 with "+g)):(this.slideVideoChannel0.cpSrc=g,this.slideVideoChannel0.src=g,this.slideVideoChannel0.load(),this.verbose&&a.log("vdm preloaded SV0 with "+g))))}},preload:function(b){if(!(a.device==a.IDEVICE||a.device==a.ANDROID))return this.preload2(b)},seekTo:function(a,c){var e,d,f;this.slideVideoChannel&&(e=this.slideVideoChannel.cpVideo);this.tocVideoChannel&&(d=this.tocVideoChannel.cpVideo);this.demoVideo&&(f=this.demoVideo.cpVideo);c&&(e&&e.pause(),d&&d.pause(),f&&f.pause());
e&&e.seekTo(a);d&&d.seekTo(a);f&&f.seekTo(a)},pause:function(b){this.reasonForPause=b;if(b==a.ReasonForPause.PLAYBAR_ACTION||b==a.ReasonForPause.CPCMNDPAUSE||b==a.ReasonForPause.MOVIE_REWIND_STOP||b==a.ReasonForPause.EVENT_VIDEO_PAUSE||b==a.ReasonForPause.PPTX_PAUSE_FOR_ONCLICK_ANIMATION||b==a.ReasonForPause.INTERACTIVE_ITEM||b==a.ReasonForPause.CPCMNDGOTOFRAME)this.slideVideoChannel&&this.slideVideoChannel.cpVideo&&this.slideVideoChannel.cpVideo.pause(),this.tocVideoChannel&&this.tocVideoChannel.cpVideo&&
this.tocVideoChannel.cpVideo.pause(),this.demoVideo&&this.demoVideo.cpVideo&&this.demoVideo.cpVideo.pause()},pace:function(){if((a.device==a.IDEVICE||a.device==a.ANDROID)&&!a.movie.stage.VideoPlaying)return null;var b=this.slideVideoChannel;if(b){var c=b.cpVideo;if(c&&!c.ended&&!c.paused&&!c.loop&&0<b.currentTime)return c.pacedAt=(new Date).getTime(),c.from+(b.currentTime-c.seek_From)*cpInfoFPS}if(b=this.tocVideoChannel)if((c=b.cpVideo)&&!b.ended&&!b.paused&&!c.loop&&0<b.currentTime)return c.from+
(b.currentTime-c.seek_From)*cpInfoFPS;if(b=this.demoVideo)if((c=b.cpVideo)&&!b.ended&&!b.paused&&!c.loop&&0<b.currentTime)return c.from+b.currentTime*cpInfoFPS;return null},updateVideoViews:function(){if(this.viewVideo&&this.videoViews)for(var a in this.videoViews)this.videoViews[a].update()}}})(window.cp);
(function(a){a.enable=function(c){if(c=a.D[c])if(c.enabled=1,c.mdi){if(c.type==a.kCPOTTextEntryBoxItem){var b=a(c.mdi);if(b&&(b=b.firstChild)&&("INPUT"==b.tagName||"TEXTAREA"==b.tagName))b.disabled=!1}if(b=a.getDisplayObjByKey(c.mdi))b.enabled=1;c.type==a.kCPOTAutoShape&&c.canvasPainterObject&&c.canvasPainterObject.addMouseHandlers()}};a.animateItem=function(c,b,d,e,f){d=a.getDisplayObjByKey(e);e=a.D[e];if(void 0!=e&&(void 0!=e.qtp&&(d=a.getDisplayObjByKey(e.sn)),void 0!=d))if("Self"!=f){d.m_triggerTimelineIds=
e["JSONTT_"+f];f=c.split("CPGroupTriggerEffectsDelimiterString");for(i=0;i<f.length;i++)""!=f[i]&&(c=f[i]+"_"+b,console.log(c),console.log(d),e=!0,PPTXLib.processTriggerForObject(d,c,e))}else{f=e.selfAnimationTrigger.split(";");d.m_triggerTimelineIds=f;f=c.split("CPGroupTriggerEffectsDelimiterString");for(i=0;i<f.length;i++)c=f[i]+"_"+b,console.log(c),console.log(d),e=!1,PPTXLib.processTriggerForObject(d,c,e)}};a.disable=function(c){if(c=a.D[c])if(c.enabled=0,c.mdi){if(c.type==a.kCPOTTextEntryBoxItem){var b=
a(c.mdi);if(b&&(b=b.firstChild)&&("INPUT"==b.tagName||"TEXTAREA"==b.tagName))b.disabled=!0}if(b=a.getDisplayObjByKey(c.mdi))b.enabled=0;c.type==a.kCPOTAutoShape&&c.canvasPainterObject&&c.canvasPainterObject.removeMouseHandlers()}};a.contains=function(a,b){"string"==typeof a||a instanceof String||(a=""+a+"");"string"==typeof b||b instanceof String||(b=""+b+"");return-1!=a.indexOf(b)};a.actionChoicePauseMovie=function(){a.movie.pause(a.ReasonForPause.ACTION_CHOICE)};a.actionChoiceContinueMovie=function(){a.movie.play(a.ReasonForPlay.ACTION_CHOICE)};
a.show=function(c){var b=0,d=[],e;e=null;d.push(c);a.getDisplayObjByKey(c);a.movie.stage.getChildrenForParent(c,d);for(b=0;b<d.length;++b)if(e=d[b],e=a.D[e])if(e.effectiveVi=1,e.mdi&&(e=a.D[e.mdi]))e.effectiveVi=1;a._show(c);a._showCurrentState(c)};a._show=function(c,b,d){void 0===b&&(b=!0);var e=0,f=[],h,g=null;f.push(c);var j=a.getDisplayObjByKey(c);a.movie.stage.getChildrenForParent(c,f);for(var k=cpInfoCurrentFrame>a.movie.stage.lastFrame?a.movie.stage.lastFrame:cpInfoCurrentFrame,l=!1,e=0;e<
f.length;++e){c=f[e];if(h=a.D[c]){h.visible=1;var m=!0;if(h.mdi){if(g=a.D[h.mdi])g.visible=1;if(g=a.getDisplayObjByKey(h.mdi))if(g.visible=1,!b&&a.isBaseItemInState(g)&&(m=!1),g.type==a.kCPOTVideo&&g.nativeVideo&&(l=!0,g.nativeVideo.style.display="block"),g.element){var n=g.element.firstElementChild;n&&"VIDEO"==n.tagName&&((l=!0,g.nativeVideo.style.display="block",g.seekTo(g.from),g.showControls&&g.nativeVideo&&(a.IDEVICE!=a.device||a.IOSMajor>=a.IOS8?(a.movie.stage.NativeVideoElement&&(a.movie.stage.NativeVideoElement.style.backgroundColor=
"#000000"),a.addVideoSkin(g.actualParent,g,g.autoPlay)):g.nativeVideo.controls=!0),g.autoPlay)?g.play():(g.nativeVideo.style.position="static",g.nativeVideo.style.left="0px"))}}if(g=a(c)){if(l||j&&j.isInRange(k))g.style.visibility="visible",g.style.display="block";if(h.type==a.kCPOTWebObject&&(g=g.getElementsByTagName("iframe")[0]))g.style.visibility="visible",g.style.display="block"}h.ia&&m&&a.movie.am.showHideObjectAudio(h.ia,!0);h.iea&&m&&a.movie.am.playPauseEventAudio(h.iea,!0)}else if((g=a(c))&&
(l||j&&j.isInRange(k)))if(g.style.visibility="visible",h=c.indexOf("-vtext_Handler"),a.responsive&&-1!=h&&(h=c.substr(0,h),(h=a.D[h])&&h.hl))g.style.backgroundColor="#ffffff",g.style.opacity=0;a.redrawItem(c,d)}};a.hide=function(c){var b=0,d=[],e;d.push(c);a.movie.stage.getChildrenForParent(c,d);for(b=0;b<d.length;++b)if(e=d[b],e=a.D[e])if(e.effectiveVi=0,e.mdi&&(canvasDataItem=a.D[e.mdi]))canvasDataItem.effectiveVi=0;a._hide(c);a._hideCurrentState(c)};a._hide=function(c,b){void 0===b&&(b=!0);var d=
0,e=[],f,h;e.push(c);a.movie.stage.getChildrenForParent(c,e);for(d=0;d<e.length;++d)if(h=e[d],f=a.D[h]){f.visible=0;var g=!0;if(f.mdi){if(canvasDataItem=a.D[f.mdi])canvasDataItem.visible=0;var j=a.getDisplayObjByKey(f.mdi);if(j){j.visible=0;!b&&a.isBaseItemInState(j)&&(g=!1);a.CanPauseAudioDuringHide(j)||(g=!1);var k=!1;if(j.type==a.kCPOTVideo)k=!0;else if(j.element){var l=j.element.firstElementChild;l&&"VIDEO"==l.tagName&&(k=!0)}k&&(j.nativeVideo&&(j.nativeVideo.style.display="none"),j.pause&&j.pause())}}if(h=
a(h))if(h.style.visibility="hidden",f.type==a.kCPOTWebObject&&(h=h.getElementsByTagName("iframe")[0]))h.style.visibility="hidden",h.style.display="none";f.ia&&g&&a.movie.am.showHideObjectAudio(f.ia,!1);f.iea&&g&&a.movie.am.playPauseEventAudio(f.iea,!1)}else if(h=a(h))h.style.visibility="hidden"};a.jumpToPreviousSlide=function(){var c=a.movie.stage.previousSlideStartFrame;0>=c&&(c=1);a.movie.jumpToFrame(c)&&a.movie.play()};a.jumpToNextSlide=function(){var c=a.movie.stage.nextSlideStartFrame;-1!=c?
a.movie.jumpToFrame(c)&&a.movie.play():!a.movie.virgin&&a.movie.stage.slides.length-1==cpInfoCurrentSlideIndex&&a.movie.play()};a.jumpToLastVisitedSlide=function(){a.movie.jumpToFrame("cpInfoLastVisitedSlide");a.movie.play()};a.openURL=function(c,b){var d=c;a.MSIE!=a.browser&&(d=encodeURI(c));if(a.m_isPreview)a.parentWindow.open(d,b);else{var e;if(e=a.IsRunningInACAP)if(e="_self"==b)e=d,e=-1!=e.search("http:")||-1!=e.search("https:")||-1!=e.search("www.")?!0:!1;e?a.parentWindow.open(d,"_blank"):a.currentWindow.open(d,
b)}};a.openMovie=function(c,b){return a.openURL(c,b)};a.sendEmail=function(c){(c=a.m_isPreview?a.parentWindow.open("mailto:"+c,"_blank"):a.currentWindow.open("mailto:"+c,"_blank"))&&c.close()};a.showMessage=function(c){a.alert(c)};a.runJavascript=function(c,b){a.verbose&&a.log("runJavascript ["+c+"]");try{var d=window;switch(b){case "_self":d=window;break;case "_blank":d=window.open("");break;case "_parent":d=window.parent;break;case "_top":d=window.top}d.execScript?d.execScript(c):d.eval.call(d,
c)}catch(e){a.log(e)}};a.stopMovie=function(){};a.loopMovie=function(){cpCmndGotoSlideAndResume=0};a.closeMovie=function(){DoCPExit&&DoCPExit()};a.playAudio2=function(c){return a.playAudio(c,!1)};a.playAudio=function(c,b){var d=a.movie.am;if(a.lastMediaPlayReqTime&&50>(new Date).getTime()-a.lastMediaPlayReqTime.getTime())d.verbose&&a.log("crowded request postponed "+c),setTimeout(function(){a.playAudio(c,b)},50);else if(!(d.muted||1!=a.movie.speed)){d.verbose&&a.log("cp.playAudio "+c+", "+b);if(a.device==
a.IDEVICE||a.device==a.ANDROID)if(!a.multiAudioTrack&&(d.audioPlaying||a.movie.stage.VideoPlaying)){d.verbose&&a.log("audioPlaying "+d.audioPlaying+" videoPlaying "+a.movie.stage.VideoPlaying);return}var e=a.D["PA"+c].src;void 0==b&&(b=!0);d=d.singletonPlayAudio;d.pause();null!=d.nativeAudio&&(d.nativeAudio.cpAudio=null,d.nativeAudio=null);d.onEndAutoPlayMovie=b;d.setSrc(e);d.resetAndPlay()}};a.stopAudio=function(){a.movie.am.singletonPlayAudio.pause()};a.cv=function(c,b,d,e,f){return a.vm.createVariable(c,
b,1==d?!0:!1,e,1==f?!0:!1)};a.ho=function(a){if("string"==typeof a){var b;try{isNaN(Number(a))&&(b=window[a])}catch(d){}if(void 0!=b)return b;try{isNaN(Number(a))||(b=eval(a))}catch(e){}if(void 0!=b){if("string"==typeof b){var f;try{f=eval(b)}catch(h){}if(void 0!=f)return f}return b}}return a};a.playPause=function(c){var b;a.movie.paused?(!0==c&&(b=a.ReasonForPlay.PLAYBAR_ACTION),a.movie.play(b)):(!0==c&&(b=a.ReasonForPause.PLAYBAR_ACTION),a.movie.pause(b))};a.goToPreviousSlide=function(){a.jumpToPreviousSlide()};
a.goToNextSlide=function(){a.jumpToNextSlide()};a.jumpToSlide=function(a){cpCmndGotoSlideByUIDAndResume=a};a.rewind=function(){cpCmndRewindAndPlay=1};a.showHideCC=function(){cpCmndCC=cpCmndCC?0:1};a.showHideTOC=function(){var a=document.getElementById("toc");void 0!=a&&a.animator&&(0==a.animator.direction?a.animator.showTOC():a.animator.hideTOC())};a.fastForward=function(){cpCmndFastForward=1};a.handleCCClick=function(c){if(a.DESKTOP==a.device){var b=document.getElementById("div_Slide");if(a.ccdv)if(document.getElementById("cc").style.display=
"none",b=document.elementFromPoint(c.clientX,c.clientY),document.getElementById("cc").style.display="block",c.initMouseEvent){var d=document.createEvent("MouseEvent");d.initMouseEvent("click",!0,!0,window,0,c.screenX,c.screenY,c.clientX,c.clientY,c.ctrlKey,c.altKey,c.shiftKey,c.metaKey,0,null);b.dispatchEvent(d)}else document.createEventObject&&(d=document.createEventObject(window.event),d.button=1,b.fireEvent("onclick",d))}};a.showInfoDialog=function(){var c=!1;a.movie.paused||(a.movie.pause(a.ReasonForPause.PLAYBAR_ACTION),
c=!0);var b=a.infoBgImg,d=a.newElem("div");a.project.appendChild(d);d.id="infoDialog";d.style.position="absolute";d.style.backgroundImage="url("+b.src+")";var e=a.D.project.w,f=a.D.project.h;a.responsive&&(f=a("div_Slide"),e=f.clientWidth,f=f.clientHeight>window.innerHeight?window.innerHeight:f.clientHeight);d.style.left=(e-b.width)/2+"px";d.style.top=(f-b.height)/2+"px";d.style.width=b.width+"px";d.style.height=b.height+"px";d.style.zIndex=1E4;b=a.newElem("div");a.registerGestureEvent(b,a.GESTURE_EVENT_TYPES.TAP,
function(){a.project.removeChild(d);c&&a.movie.play()});b.style.cursor="pointer";b.style.backgroundColor="#ffffff";b.style.opacity=0;b.style.left="170px";b.style.top="5px";b.style.width="15px";b.style.height="15px";b.style.position="absolute";b.style.display="block";b.style.zIndex=1E4;d.appendChild(b);b=a.newElem("div");e="<ul style='padding-left:15px;padding-right:15px;padding-top:20px;list-style-type: none;text-indent: 0em;'>"+("<li style='overflow:hidden'>"+cpInfoAuthor+"</li>");e+="<li style='overflow:hidden'>"+
cpInfoCompany+"</li>";e+="<li style='overflow:hidden;cursor:pointer;' onclick='cp.sendEmail(\""+cpInfoEmail+"\")'>"+cpInfoEmail+"</li>";f="http://";f=-1==cpInfoWebsite.indexOf("://")?f+cpInfoWebsite:cpInfoWebsite;e+="<li style='overflow:hidden;cursor:pointer;' onclick='cp.openURL(\""+f+"\")'>"+cpInfoWebsite+"</li>";e+="<li style='overflow:hidden'>"+cpInfoCopyright+"</li>";b.innerHTML=e+"</ul>";d.appendChild(b);b=a.newElem("div");a.registerGestureEvent(b,a.GESTURE_EVENT_TYPES.TAP,function(){a.openURL("http://www.adobe.com/products/captivate")});
b.style.cursor="pointer";b.style.backgroundColor="#ffffff";b.style.opacity=0;b.style.left="10px";b.style.bottom="10px";b.style.width="170px";b.style.height="25px";b.style.position="absolute";b.style.display="block";d.appendChild(b)};a.toggleMute=function(){a.movie.am.muted?a.movie.am.mute(!1):a.movie.am.mute(!0);a.movie.vdm.muted?a.movie.vdm.mute(!1):a.movie.vdm.mute(!0);a.em.fireEvent("CPMovieAudioMute",a.movie.am.muted)};a.playbarMoved=function(){cpCmndPlaybarMoved=1};document.Captivate=window.cp;
window.m_VarHandle=window;a.cpEIGetValue=function(a){return eval.call(window,a)};a.cpEISetValue=function(a,b){eval.call(window,a+'="'+b+'"')};a.goToNextState=function(c){var b=a.D[c];if(b){var d=a.getDisplayObjByKey(b.mdi);if(d&&(b=d.states,d=d.currentState,!(0>d||d>b.length-1))){for(d=d==b.length-1?0:d+1;d<b.length&&a.isInbuiltState(b[d]);)d++;d!=b.length&&(b=b[d])&&a.changeState(c,b.stn)}}};a.isInbuiltState=function(a){a=a.stn;return"RollOver"==a||"Down"==a||"DragStart"==a||"DragOver"==a||"DropAccept"==
a||"DropReject"==a||"DropCorrect"==a||"DropIncorrect"==a?!0:!1};a.goToPreviousState=function(c){var b=a.D[c];if(b){var d=a.getDisplayObjByKey(b.mdi);if(d&&(b=d.states,d=d.currentState,!(0>d||d>=b.length))){for(d=0==d?b.length-1:d-1;0<=d&&a.isInbuiltState(b[d]);)d--;0>d||(b=b[d])&&a.changeState(c,b.stn)}}};a.changeState=function(c,b,d,e){var f=a.D[c];if(f){var h=a.getDisplayObjByKey(f.mdi);if(h)f=a.getInfoForStateChange(c,b),f.bFound&&(h.getAttribute("effectiveVi")?a._changeState(c,b,!1,d,e):h.currentState=
f.stateIndex);else{c=f.stl;d=-1;if(0<c.length)for(e=0;e<c.length;e++)if(c[e].stn==b){d=e;break}f.temporaryInitialState=d}}};a._changeState=function(c,b,d,e,f){var h=a.D[c];if(h){void 0===e&&(e=!0);var g=a.getDisplayObjByKey(h.mdi);if(g&&(b=a.getInfoForStateChange(c,b),b.bFound&&(h=g.currentState,d||h!==b.stateIndex))){d=!1;h=a.movie.stage.getCurrentSlideInteractionManager();null!=h&&(d=h.DoNecessaryStuffBeforeChangeState(c));g.currentState=b.stateIndex;for(g=0;g<b.showItemList.length;++g){var j=a.getDisplayObjNameByCP_UID(b.showItemList[g]);
a._show(j,e,f);if(a.D[j]){var k=a.D[j].selfAnimationScript;if(k&&(eval(k),j=a.D[j]))(j=a.getDisplayObjByKey(j.mdi))&&j.updateEffects&&j.updateEffects(!0)}}for(g=0;g<b.hideItemList.length;++g)j=a.getDisplayObjNameByCP_UID(b.hideItemList[g]),(k=a.D[j].selfAnimationScript)&&PPTXLib.resetObjects&&PPTXLib.resetObjects(j),a._hide(j,e);null!=h&&h.DoNecessaryStuffAfterChangeState(c,d)}}};a._showCurrentState=function(c){var b=a.D[c];if(b){var d=a.getDisplayObjByKey(b.mdi);d&&(b=d.currentState,d=d.states,0<=
b&&b<d.length&&(b=d[b])&&a._changeState(c,b.stn,!0))}};a._hideCurrentState=function(c){if(c=a.D[c]){var b=a.getDisplayObjByKey(c.mdi);if(b&&(c=b.currentState,b=b.states,0<=c&&c<b.length&&(c=b[c]))){c=c.stsi;for(b=0;b<c.length;++b){var d=a.getDisplayObjNameByCP_UID(c[b]);a._hide(d)}}}}})(window.cp);
(function(a){a.Canvas=function(a){this.element=a;this.gc=a.getContext("2d")};if("undefined"==typeof PPTXLib||void 0==PPTXLib)a.dummyPPTXLib={},PPTXLib=a.dummyPPTXLib,PPTXLib.PptxAnimatableDisplayItem=function(){},PPTXLib.PptxAnimatableDisplayItem.prototype.updateEffects=function(){},PPTXLib.PptxAnimatableDisplayItem.prototype.updateFrameData=function(){},PPTXLib.initializeAnimationManagerForCPSlide=function(){},PPTXLib.hasAnimationInfo=function(){return!1},PPTXLib.updateNoSkipFramesFromEffectData=
function(){},PPTXLib.updateAnimationManager=function(){},PPTXLib.initializePPTXLibrary=function(){},PPTXLib.processTriggerForObject=function(){};a.DisplayObject=function(c){var d=a.D[c.id];d&&(this.isCpObject=!0,d.isCpObject=!0);a.DisplayObject.baseConstructor.call(this,c.id,d);this.element=c;this.hasEffect=this.getAttribute("JSONEffectData");a.responsive&&(this.isStarted=!1);if(d&&(c=a.D[this.getAttribute("dn")]))this.states=c.stl,void 0!==this.states?(this.initialState=this.currentState=c.stis,
c.temporaryInitialState&&-1!=c.temporaryInitialState&&(this.currentState=c.temporaryInitialState,c.temporaryInitialState=-1),this.baseStateItemID=c.bstiid,this.parentStateType=c.sipst,this.cloneOfBaseStateItem=c.sicbs,this.itemOrParentHasHoverState=c.sihhs,this.itemOrParentHasDownState=c.sihds):(this.parentStateType=this.baseStateItemID=this.initialState=this.currentState=-1,this.itemOrParentHasDownState=this.itemOrParentHasHoverState=this.cloneOfBaseStateItem=!1,this.states=[]);a.setInitialVisibility(this)};
a.inherits(a.DisplayObject,PPTXLib.PptxAnimatableDisplayItem);a.DisplayObject.prototype.updateInputFontStyle=function(c){if(c&&(this.ResponsiveFontProp=this.getAttribute("rpfont"),this.font=this.ResponsiveFontProp[a.ResponsiveProjWidth].font))c.style.fontFamily=this.font.n,c.style.fontSize=this.font.s+"px",c.style.color=this.font.c,c.style.fontWeight=this.font.B?"bold":"normal",c.style.textDecoration=this.font.u?"underline":"none",c.style.fontStyle=this.font.i?"italic":"normal"};a.DisplayObject.prototype.subscribeToItemDrawingCompleteHandler=
function(){if(a.responsive){var c=this,d=a.getResponsiveCSS(c.getAttribute("css"));d&&(d.lhID&&d.lvID&&(-1!=d.lhID||-1!=d.lvID))&&a.em.addEventListener(function(a){c.linkedItemDrawingCompleteHandler(a)},a.ITEMDRAWINGCOMPLETEEVENT)}};a.DisplayObject.prototype.linkedItemDrawingCompleteHandler=function(c){if(a.responsive&&this.drawForResponsive&&this.isStarted){var d=a.getResponsiveCSS(this.getAttribute("css"));c.cpData&&c.cpData.uid&&!(c.cpData.uid!=d.lhID&&c.cpData.uid!=d.lvID)&&(a.linksVerbose&&a.log("drawing "+
this.element.id+", for "+c.cpData.uid),this.drawForResponsive(!0,a.ReasonForDrawing.kLinkedToItemAppeared),a.updateVarText(this.actualParent.id,!0,!0))}};a.DisplayObject.prototype.forEachChild=function(a,d){if(this.children)for(var e=this.children,g=e.length,h=0;h<g;++h)a(e[h],d)};a.DisplayObject.prototype.updateFrame=function(){this.updateEffects(this.hasEffect);this.forEachChild(function(c){a.responsive&&!c.isDrawn&&c.drawIfNeeded?c.drawIfNeeded():c.updateFrame()})};a.DisplayObject.prototype.updateEffects=
function(c){if(c&&this&&this.actualDrawingElement&&this.actualDrawingElement.className&&"cp-WebObject"==this.actualDrawingElement.className){var d=a.DisplayObject.superClass.updateFrameData.call(this);d&&(!0==d[0]?this.replaceSVGWithPNG():this.replacePNGGWithSVG())}a.DisplayObject.superClass.updateEffects.call(this,c);this.actualParent&&c&&(c=a.D[this.actualParent.id],d=c.from,!c.rp&&!c.rpa&&(cpInfoCurrentFrame<=d+2?(a.verbose&&a.log("hiding "+this.parentDivName),d=a.isVisible(this),a._hide(this.parentDivName),
c.hiddenFromFrame=cpInfoCurrentFrame,c.hiddenFromFlicker=!0,this.visible=d):c.hiddenFromFlicker&&this.visible&&(a.verbose&&a.log("showing "+this.parentDivName),a._show(this.parentDivName),c.hiddenFromFlicker=!1)))};a.DisplayObject.prototype.isSizeNPositionUpdated=function(c,d){return!a.responsive?!1:!c||!d?(a.linksVerbose&&a.log("first time initialization. lastSizeNPosition = null"),!0):c.l!=d.l?(a.linksVerbose&&a.log(c.l+"!="+d.l),!0):c.t!=d.t?(a.linksVerbose&&a.log(c.t+"!="+d.t),!0):c.r!=d.r?(a.linksVerbose&&
a.log(c.r+"!="+d.r),!0):c.b!=d.b?(a.linksVerbose&&a.log(c.b+"!="+d.b),!0):c.w!=d.w?(a.linksVerbose&&a.log(c.w+"!="+d.w),!0):c.h!=d.h?(a.linksVerbose&&a.log(c.h+"!="+d.h),!0):!1};a.DisplayObject.prototype.drawComplete=function(c){if(!this.isRegistered){a.verbose&&a.log("draw completed: "+this.element.id);var d=a.movie.stage.getCurrentSlideInteractionManager();null!=d&&d.registerDisplayObject(this.element.id,c)}if(a.responsive){if(d=a.D[this.element.id]){var e=a.D[d.dn],g=!0;e&&e.type==a.kCPOTStageMatchingAnswerEntry&&
(g=!1);d&&g&&d&&(d=a.getAccessibilityString(d),void 0!=d&&a.modifyAlternativeAccessibleText(this.actualParent,d))}if(c==a.ReasonForDrawing.kRegularDraw||c==a.ReasonForDrawing.kOrientationChangeOrResize)a.linksVerbose&&a.log("subscribeToItemDrawingCompleteHandler : "+this.element.id),this.subscribeToItemDrawingCompleteHandler();d=this.actualParent.getBoundingClientRect();e=a("div_Slide").getBoundingClientRect();d={l:d.left-e.left,t:d.top-e.top,r:d.right-e.right,b:d.bottom-e.bottom,w:d.width,h:d.height};
if(c==a.ReasonForDrawing.kMoviePaused&&!this.isStarted||c==a.ReasonForDrawing.kRegularDraw||c==a.ReasonForDrawing.kOrientationChangeOrResize||c==a.ReasonForDrawing.kTextGrow||c==a.ReasonForDrawing.kLinkedToItemAppeared)if(c={uid:this.getAttribute("uid")},this.isStarted=this.isDrawnComplete=!0,this.isSizeNPositionUpdated(this.lastSizeNPosition,d))return a.linksVerbose&&a.log("firing event for : "+this.actualParent.id),this.lastSizeNPosition=d,a.em.fireEvent("CPItemDrawingCompleteEvent",c);this.lastSizeNPosition=
d}};a.DisplayObject.prototype.setTransformOrigin=function(c){if(c){var d=a.D[a.D[c.id].dn],e=0,g=0;a.responsive?(g=a.getCurrentBreakPointID(),e=d["xorig_"+g],g=d["yorig_"+g]):(e=d.xorig,g=d.yorig);var h=d="0px";this.actualParent&&(d=100*e+"%",h=100*g+"%");e=d+" "+h;void 0!=c&&(c.parentElement.style["-ms-transform-origin"]=e,c.parentElement.style["-moz-transform-origin"]=e,c.parentElement.style["-webkit-transform-origin"]=e,c.parentElement.style["-o-transform-origin"]=e,c.parentElement.style["transform-origin"]=
e)}};a.DisplayObject.prototype.start=function(c,d){if(!this.effectIsStarted||c)this.updateEffects(),this.effectIsStarted=!0;this.forEachChild(function(e){e.start(c,d);a.responsive&&(e.isStarted=!0)})};a.DisplayObject.prototype.reset=function(c){this.isRegistered=!1;this.forEachChild(function(d){d.reset(c);a.responsive&&(d.currentCSS=void 0,d.isStarted=!1)});this.effectIsStarted=!1};a.DisplayObject.prototype.onEndOfMovie=function(){this.forEachChild(function(a){a.onEndOfMovie()})};a.DisplayObject.prototype.getAttribute=
function(c){var d=a.D[this.element.id];return!d?null:d[c]};a.DisplayObject.prototype.setAttribute=function(c,d){var e=a.D[this.element.id];e&&(e[c]=d)};a.DisplayObject.prototype.restOfProjectDoOnNewSlide=function(){};a.DisplayObject.prototype.deleteFromRopMap=function(c){delete a.ropMap[c.id]};a.DisplayObject.prototype.ForceMouseOut=function(){if(a.DESKTOP===a.device){var c=a.kSTTNone;if(0<=this.currentState&&this.currentState<this.states.length){var d=this.states[this.currentState];d&&(c=d.stt)}this.HandleMouseEventOnStateItems&&
this.HandleMouseEventOnStateItems("mouseout",c,void 0)}};a.Shape=function(c,d){function e(c){f.visible=f.getAttribute("visible");f.isDrawn=!1;a.responsive&&(f.currentCSS=void 0);!1==f.supportsStates?a.device==a.IDEVICE||a.device==a.ANDROID?f.downImage&&(f.currImage=f.downImage):f.hoverImage&&(f.currImage=f.hoverImage):f.changeStateOnMouseEvents&&(a.device==a.IDEVICE||a.device==a.ANDROID?f.changeStateOnMouseEvents("mousedown",c):f.changeStateOnMouseEvents("mouseover",c));var c=f.transIn,d=f.modifyParent;
f.modifyParent=a.responsive;f.transIn=null;f.drawIfNeeded();f.transIn=c;f.modifyParent=d}function g(c){f.visible=f.getAttribute("visible");f.isDrawn=!1;a.responsive&&(f.currentCSS=void 0);!1==f.supportsStates?f.currImage=f.normalImage:f.changeStateOnMouseEvents&&(a.device==a.IDEVICE||a.device==a.ANDROID?f.changeStateOnMouseEvents("mouseup",c):f.changeStateOnMouseEvents("mouseout",c));var c=f.transIn,d=f.modifyParent;f.modifyParent=a.responsive;f.transIn=null;f.drawIfNeeded();f.transIn=c;f.modifyParent=
d}function h(c){f.isDrawn=!1;a.responsive&&(f.currentCSS=void 0);!1==f.supportsStates?f.downImage&&(f.currImage=f.downImage):f.changeStateOnMouseEvents&&f.changeStateOnMouseEvents("mousedown",c);var c=f.transIn,d=f.modifyParent;f.modifyParent=a.responsive;f.transIn=null;f.drawIfNeeded();f.transIn=c;f.modifyParent=d}function m(c){f.isDrawn=!1;a.responsive&&(f.currentCSS=void 0);!1==f.supportsStates?f.currImage=f.hoverImage&&a.device!=a.IDEVICE&&a.device!=a.ANDROID?f.hoverImage:f.normalImage:f.changeStateOnMouseEvents&&
f.changeStateOnMouseEvents("mouseup",c);var c=f.transIn,d=f.modifyParent;f.modifyParent=a.responsive;f.transIn=null;f.drawIfNeeded();f.transIn=c;f.modifyParent=d}function o(c,d,e,g){return function(h){if(!a.disableInteractions&&(!(f.parentData&&void 0!=f.parentData.enabled)||f.parentData.enabled))g&&g(),e&&f.mouseState==c||(f.mouseState=c,d(h))}}var f=this;this.mouseState=a.mouseStateOut;a.Shape.baseConstructor.call(this,c);var n=this.getAttribute("sr");n&&(this.shape=n);a.responsive&&(this.responsiveCSS=
this.getAttribute("css"));n=this.getAttribute("b");this.bounds={minX:n[0],minY:n[1],maxX:n[2],maxY:n[3]};n=this.getAttribute("vb");this.vbounds=null;this.vbounds=n?{minX:n[0],minY:n[1],maxX:n[2],maxY:n[3]}:this.bounds;this.args=d;this.isDrawn=!1;this.canvas=null;this.visible=this.getAttribute("visible");this.divName=this.getAttribute("dns")?this.getAttribute("dns"):this.getAttribute("dn");this.tex=this.getAttribute("tex")?this.getAttribute("tex"):0;this.tey=this.getAttribute("tey")?this.getAttribute("tey"):
0;this.parentData=a.D[this.divName];this.isParentOfTypeSlide=void 0==this.parentData.type;this.modifyParent=!this.isParentOfTypeSlide;this.transIn=this.parentData.trin;this.normalImage=this.getAttribute("ip");a.responsive&&(!this.normalImage&&this.parentData.subt&&this.parentData.subt==a.kImageButton)&&(this.normalImage=this.getAttribute("uImg"));if(!this.normalImage&&(a.device==a.IDEVICE||a.device==a.ANDROID))this.normalImage=this.getAttribute("aip");this.currImage=this.normalImage;this.isMouse=
!1;this.parentData.mp&&(this.isMouse=!0);var n=this.getAttribute("hImg"),j=this.getAttribute("pImg"),i=a.doesSupportStates(this.parentData.type),p=!0;if(a.device==a.IDEVICE||a.device==a.ANDROID)if(this.itemOrParentHasHoverState||this.itemOrParentHasDownState)p=!1;a.kSTTDown==this.parentStateType&&(a.kCPOTScorableButtonItem==this.parentData.type&&a.kImageButton==this.parentData.subt&&j)&&(this.currImage=this.normalImage=j,n&&(n=j));var k=document.getElementById(this.divName);k&&(k.drawingBoard=this.element.parentElement,
k.bounds=this.bounds,k.drawingBoard.bounds=this.vbounds);this.actualParent=k;if(n||i)if(n&&(this.hoverImage=n),k){p&&(k.onmouseover=o(a.mouseStateOver,e,!1,k.onmouseover),k.onmouseout=o(a.mouseStateOut,g,!1,k.onmouseout));if(a.device==a.IDEVICE||a.device==a.ANDROID)k.ontouchstart=o(a.mouseStateTouchStart,e);if(a.device==a.IDEVICE||a.device==a.ANDROID)k.ontouchend=o(a.mouseStateTouchEnd,g);if(j||i)if(j&&(this.downImage=j),p)if(k.onmousedown=o(a.mouseStateDown,h),k.onmouseup=o(a.mouseStateUp,m),a.device==
a.IDEVICE||a.device==a.ANDROID)k.ontouchmove=o(a.mouseStateTouchMove,h,!0)}this.shouldShowRollOver=!0;this.tr=this.getAttribute("tr");this.sh=this.getAttribute("sh");this.re=this.getAttribute("re");!1==this.cloneOfBaseStateItem&&-1!=this.baseStateItemID&&(this.playEffectsOnStart=!0);this.supportsStates=a.doesSupportStates(this.parentData.type);a.setInitialVisibility(this)};a.inherits(a.Shape,a.DisplayObject);a.Shape.prototype.start=function(a,d){this.drawIfNeeded(a,d);if(!this.effectIsStarted||a)this.updateEffects(this.hasEffect),
this.effectIsStarted=!0};a.Shape.prototype.reset=function(){delete a.ropMap[this.element.id];this.canvas=null;this.isDrawn=!1;var c=!0;this.parentData&&this.parentData.st&&(c=!1);c&&(this.element.width="0",this.element.height="0",this.element.style.width="0px",this.element.style.height="0px",this.element.left="0",this.element.top="0",this.element.style.left="0px",this.element.style.top="0px");this.effectIsStarted=!1};a.Shape.prototype.drawIfNeeded=function(c,d){if((!a.responsive||!this.drawForResponsive(c,
d))&&!this.isDrawn){var e=this.getAttribute("dn"),g=a.D[e];this.parentDivName=e;var e=this.bounds,h=-e.minX+e.maxX,m=-e.minY+e.maxY;if(0==h||0==m)this.isDrawn=!0,this.drawComplete();else{this.args&&(h+=Number(this.args[1])+Number(this.args[2]),m+=Number(this.args[1])+Number(this.args[3]));var o=g.type,h=(o==a.kCPOTClickBoxItem?this.canvas=a.createCanvas(e.minX,e.minY,0,0,this.element):this.canvas=a.createCanvas(e.minX,e.minY,Math.ceil(h),Math.ceil(m),this.element)).gc;this.element.style.left=e.minX+
"px";this.element.style.top=e.minY+"px";this.element.style.width=e.maxX-e.minX+"px";this.element.style.height=e.maxY-e.minY+"px";var m=!1,m=this.re||this.sh&&!this.sh.i,f=void 0!=this.tr,n=this.currImage,j=this.modifyParent&&!this.isParentOfTypeSlide;h.save();if(!this.isMouse){var i=e.minX,p=e.minY,k=e.maxX-e.minX,s=e.maxY-e.minY,q=this.actualParent;if(q){j&&(q.style.left=i+"px",q.style.top=p+"px",q.style.width=k+"px",q.style.height=s+"px");var l=0;this.tr&&(j&&(a.applyTransform(q,this.tr),q.tr=this.tr),
l=a.getAngleFromRotateStr(this.tr));this.element.style.display="block";this.element.style.position="absolute";j&&(q.rotateAngle=l,a.movie.stage.addToParentChildMap(q.id,this.element.id),this.element.parentElement.style.left=this.vbounds.minX+"px",this.element.parentElement.style.top=this.vbounds.minY+"px",this.element.parentElement.style.width=this.vbounds.maxX-this.vbounds.minX+"px",this.element.parentElement.style.height=this.vbounds.maxY-this.vbounds.minY+"px",this.re&&(this.element.parentElement.style.webkitBoxReflect=
"below "+this.re.d+"px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop("+(1-this.re.s/100)+", transparent), to(rgba(255, 255, 255, "+(1-this.re.p/100)+")))"))}this.init=!0;this.element.originalParent=q;i=0<this.vbounds.minX&&m?0:this.vbounds.minX;p=0<this.vbounds.minY&&m?0:this.vbounds.minY;j=m&&a.D.project.h>this.vbounds.maxY?a.D.project.h:this.vbounds.maxY;k=(m&&a.D.project.w>this.vbounds.maxX?a.D.project.w:this.vbounds.maxX)-i;s=j-p;this.canvas=o==a.kCPOTClickBoxItem?
a.createCanvas(0,0,0,0,this.element):a.createCanvas(void 0!=g.st?i:0,void 0!=g.st?p:0,k,s,this.element);this.element.style.display="block";this.element.style.position="absolute";this.isParentOfTypeSlide||(this.element.style.marginLeft=i-this.vbounds.minX+"px",this.element.style.marginTop=p-this.vbounds.minY+"px");this.sh&&!this.sh.i&&(h.shadowOffsetX=this.sh.d*Math.cos(Math.PI*this.sh.a/180),h.shadowOffsetY=this.sh.d*Math.sin(Math.PI*this.sh.a/180),h.shadowBlur=this.sh.b,h.shadowColor=a.ConvertRGBToRGBA(this.sh.c,
this.sh.o));l=0;this.tr&&(l=a.getAngleFromRotateStr(this.tr));m?(h.setTransform(1,0,0,1,0>i?-i:0,0>p?-p:0),h.translate((e.minX+e.maxX)/2,(e.minY+e.maxY)/2)):f&&h.translate(k/2,s/2);h.rotate(Math.PI*l/180);h.tex=this.tex;h.tey=this.tey;h.centreImage=!0;h.width=k;h.height=s}if(this.shape)try{var u=this.getAttribute("objectToBeHidden");if(this.shape(h,n,u,a.isVisible(this),this.divName,m,f)||o==a.kCPOTClickBoxItem)this.isDrawn=!0,this.drawComplete()}catch(v){}h.restore();a.handleQuizzingItemsInReviewMode(this.element,
g,this.divName);this.transIn&&(this.element.parentElement.style.opacity=0);a.isVisible(this)||a._hide(this.divName);a.isVisible(this)&&this.playEffectsOnStart&&(e=this.parentDivName,(g=a.D[e].selfAnimationScript)&&eval(g),this.playEffectsOnStart=!1)}}};a.Shape.prototype.drawForResponsive=function(c,d){if(!this.responsiveCSS)return!1;if(this.isDrawn&&!c)return!0;var e=a.getResponsiveCSS(this.responsiveCSS),g=!1,g=this.sh&&!this.sh.i,h=void 0!=this.tr;if(this.isDrawn&&this.currentCSS==e&&(!c||d==a.ReasonForDrawing.kMoviePaused))return!0;
var m=!0;this.currentCSS=e;var o=this.getAttribute("dn"),f=a.D[o];this.parentDivName=o;var n=this.getAttribute("aan"),j=e,o=this.modifyParent&&!this.isParentOfTypeSlide,i=0,p=this.actualParent.style.transform||this.actualParent.style.msTransform||this.actualParent.style.MozTransform||this.actualParent.style.WebkitTransform||this.actualParent.style.OTransform,k=this.element.parentElement.style.transform||this.element.parentElement.style.msTransform||this.element.parentElement.style.MozTransform||this.element.parentElement.style.WebkitTransform||
this.element.parentElement.style.OTransform;a.applyTransform(this.actualParent,"");a.applyTransform(this.element.parentElement,"");this.parentElementClientBoundingRect=this.element.parentElement.getBoundingClientRect();var s=a.movie.stage.mainSlideDiv.getBoundingClientRect();if(!this.isMouse){if(o){a.applyResponsiveStyles(this.actualParent,e,m);if(f.rpvt&&f.autoGrow&&(d==a.ReasonForDrawing.kTextGrow||d==a.ReasonForDrawing.kMoviePaused)){var q=f.minItemHeight;q&&this.actualParent.clientHeight<q&&(this.actualParent.style.height=
q+"px");j=a.createResponsiveStyleObj(e,e.p,e.l,e.t,e.r,e.b,this.actualParent.clientWidth+"px",this.actualParent.clientHeight+"px",e.crop)}a.adjustPositionWithAnswerArea&&(f.type==a.kCPOTStageAnswerLabel||f.type==a.kCPOTStageAnswerItem||f.type==a.kCPOTFillBlankCaption||f.type==a.kCPOTStageMatchingAnswerEntry)&&a.adjustPositionWithAnswerArea(e,this.actualParent,n);this.actualParent.offsetHeight=this.actualParent.offsetHeight;this.actualParentClientBoundingRect=this.actualParent.getBoundingClientRect();
if(this.tr){i=a.getAngleFromRotateStr(this.tr);if(!this.m_centrePoint||d==a.ReasonForDrawing.kOrientationChangeOrResize||d==a.ReasonForDrawing.kLinkedToItemAppeared)this.m_centrePoint=a.getCenterForRotation(this.actualParent);m=a.getBoundsForRotatedItem1(this.actualParentClientBoundingRect.left-s.left,this.actualParentClientBoundingRect.top-s.top,this.actualParentClientBoundingRect.width,this.actualParentClientBoundingRect.height,this.m_centrePoint,i,this.strokeWidth);q=t=r=b=void 0;"auto"!=e.l&&
(q=m.l);"auto"!=e.t&&(t=m.t);"auto"!=e.r&&(r=m.r);"auto"!=e.b&&(b=m.b);j=a.createResponsiveStyleObj(e,e.p,q,t,r,b,m.w,m.h,e.crop);m=!1}}this.isParentOfTypeSlide||a.applyResponsiveStyles(this.element.parentElement,j,m)}q=m=0;this.m_centrePoint&&(m=this.m_centrePoint.X-(this.actualParentClientBoundingRect.left-s.left),q=this.m_centrePoint.Y-(this.actualParentClientBoundingRect.top-s.top));if(f.rpvt){(i=f.offsets)||(i=[0,0,0,0]);var j=this.actualParent.id+"_vTxtHandlerHolder",l=a(j);l||(l=a.newElem("div"),
l.id=j,l.style.display="block",l.style.position="absolute",l.style.width=this.actualParent.clientWidth+"px",l.style.height=this.actualParent.clientHeight+"px",l.style.visibility="hidden",this.actualParent.appendChild(l));l.style.left=i[0]+"px";l.style.top=i[1]+"px";l.style.width=this.actualParent.clientWidth-(i[0]+i[2])+"px";l.style.height=this.actualParent.clientHeight-(i[1]+i[3])+"px";l=this.actualParent.id+"_vTxtHolder";j=a(l);j||(j=a.newElem("div"),j.id=l,j.style.display="block",j.style.position=
"absolute",j.style.width=this.actualParent.clientWidth+"px",j.style.height=this.actualParent.clientHeight+"px",this.element.parentElement.appendChild(j));a.applyTransform(j,"rotate(0)");j.style.left=i[0]+"px";j.style.top=i[1]+"px";j.style.width=this.actualParent.clientWidth-(i[0]+i[2])+"px";j.style.height=this.actualParent.clientHeight-(i[1]+i[3])+"px";d==a.ReasonForDrawing.kOrientationChangeOrResize&&a.updateVarText(this.actualParent,!0,!0);this.tr&&(j.style.left=(this.element.parentElement.clientWidth-
j.clientWidth)/2+"px",j.style.top=(this.element.parentElement.clientHeight-j.clientHeight)/2+"px",i="center center",j.style["-ms-transform-origin"]=i,j.style["-moz-transform-origin"]=i,j.style["-webkit-transform-origin"]=i,j.style["-o-transform-origin"]=i,j.style["transform-origin"]=i,a.applyTransform(j,this.tr))}a.applyTransform(this.actualParent,p);a.applyTransform(this.element.parentElement,k);a.adjustPositionWithAnswerArea&&(f.type==a.kCPOTStageAnswerLabel||f.type==a.kCPOTStageAnswerItem||f.type==
a.kCPOTFillBlankCaption||f.type==a.kCPOTStageMatchingAnswerEntry)&&a.adjustPositionWithAnswerArea(e,this.element.parentElement,n);this.parentElementClientBoundingRect=this.element.parentElement.getBoundingClientRect();n=f.type;i=k=0;p=this.parentElementClientBoundingRect.left-s.left;s=this.parentElementClientBoundingRect.top-s.top;if(n==a.kCPOTClickBoxItem)j=a.createResponsiveStyleObj(e,void 0,"0px","0px","0px","0px","0px","0px",void 0);else if(g)k=a("div_Slide").clientWidth,i=a("div_Slide").clientHeight,
j=a.createResponsiveStyleObj(e,void 0,"0px","0px","0px","0px",k+"px",i+"px",void 0);else if(this.isMouse){k=this.bounds.maxX-this.bounds.minX;i=this.bounds.maxY-this.bounds.minY;f.clientWidth=k;f.clientHeight=i;var u=l="0px";if(j=f.mpa)u=(l=a.movie.stage.isSlideBGCropped())?a.RespDefaultBptW:a.project.clientWidth,j=j.b[a.ResponsiveProjWidth],l=l?j[0]:a.getRoundedValue(u*j[0]/a.ResponsiveProjWidth),l+="px",u=a.getRoundedValue(j[1])+"px";j=a.createResponsiveStyleObj(e,void 0,l,u,"0px","0px",k+"px",
i+"px",void 0)}else k=this.element.parentElement.clientWidth,i=this.element.parentElement.clientHeight,j=a.createResponsiveStyleObj(e,void 0,"0px","0px","0px","0px","100%","100%",void 0);this.canvas=this.isParentOfTypeSlide?a.movie.stage.isSlideBGCropped()?a.createCanvas(0,0,a("div_Slide").clientWidth,a("div_Slide").clientHeight,this.element):a.createCanvas((a("project").clientWidth-this.element.clientWidth)/2,(a("project").clientHeight-this.element.clientHeight)/2,this.element.clientWidth,this.element.clientHeight,
this.element):a.createResponsiveCanvas(j,k,i,this.element);k=this.canvas.gc;k.crop=e.crop?e.crop:void 0;!this.isParentOfTypeSlide&&g&&(this.element.style.marginLeft=(0>p?1:-1)*p+"px",this.element.style.marginTop=(0>s?1:-1)*s+"px");j=this.currImage;k.save();if(!this.isMouse){if(l=this.actualParent)if(i=0,this.tr&&(o&&(i=m?100*m/l.clientWidth+"%":"center",i+=" ",i=q?i+(100*q/l.clientHeight+"%"):i+"center",l.style["-ms-transform-origin"]=i,l.style["-moz-transform-origin"]=i,l.style["-webkit-transform-origin"]=
i,l.style["-o-transform-origin"]=i,l.style["transform-origin"]=i,a.applyTransform(l,this.tr),l.tr=this.tr),i=a.getAngleFromRotateStr(this.tr)),o)l.rotateAngle=i,a.movie.stage.addToParentChildMap(l.id,this.element.id),this.re&&(this.element.parentElement.style.webkitBoxReflect="below "+this.re.d+"px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop("+(1-this.re.s/100)+", transparent), to(rgba(255, 255, 255, "+(1-this.re.p/100)+")))");this.init=!0;this.element.originalParent=
l;this.sh&&!this.sh.i&&(k.shadowOffsetX=this.sh.d*Math.cos(Math.PI*this.sh.a/180),k.shadowOffsetY=this.sh.d*Math.sin(Math.PI*this.sh.a/180),k.shadowBlur=this.sh.b,k.shadowColor=a.ConvertRGBToRGBA(this.sh.c,this.sh.o));i=0;this.tr&&(i=a.getAngleFromRotateStr(this.tr));g?(k.setTransform(1,0,0,1,0>p?-p:0,0>s?-s:0),k.translate(p+this.element.parentElement.clientWidth/2,s+this.element.parentElement.clientHeight/2)):h&&k.translate(this.element.parentElement.clientWidth/2,this.element.parentElement.clientHeight/
2);k.rotate(Math.PI*i/180);k.tex=this.tex;k.tey=this.tey;k.centreImage=!0;k.width=this.element.clientWidth;k.height=this.element.clientHeight;this.isParentOfTypeSlide?(f.clientWidth=this.element.clientWidth,f.clientHeight=this.element.clientHeight):h?(f.clientWidth=this.actualParent.clientWidth,f.clientHeight=this.actualParent.clientHeight):(f.clientWidth=this.element.parentElement.clientWidth,f.clientHeight=this.element.parentElement.clientHeight);a.isCaptionItem(f.type)&&(this.shape?f.pixelColor=
this.getAttribute("bc"):(this.isDrawn=!0,this.drawComplete(d)))}if(this.shape)try{var v=this.getAttribute("objectToBeHidden");if(this.shape(k,j,v,a.isVisible(this),this.divName,g,h)||n==a.kCPOTClickBoxItem||!e.ipiv)this.isDrawn=!0,this.drawComplete(d);else return!1}catch(w){}if(f.type==a.kCPOTScoringResultItem||f.type==a.kCPOTStageAnswerLabel||f.type==a.kCPOTStageAnswerItem||f.type==a.kCPOTFillBlankCaption||f.type==a.kCPOTStageMatchingAnswerEntry||f.type==a.kCPOTQuestionColumn)this.isDrawn=!0,this.drawComplete(d);
k.restore();a.handleQuizzingItemsInReviewMode(this.element,f,this.divName);this.transIn&&d==a.ReasonForDrawing.kRegularDraw&&(this.element.parentElement.style.opacity=0);a.isVisible(this)||a._hide(this.divName);a.isVisible(this)&&this.playEffectsOnStart&&(o=this.parentDivName,(e=a.D[o].selfAnimationScript)&&eval(e),this.playEffectsOnStart=!1);return!0};a.Shape.prototype.playPath=function(a){var d=a.length,e=0,g=this.canvas.gc;for(g.beginPath();e<d;)switch(a[e++]){case "M":g.moveTo(a[e++],a[e++]);
break;case "L":g.lineTo(a[e++],a[e++]);break;case "Z":g.closePath();break;case "Q":g.quadraticCurveTo(a[e++],a[e++],a[e++],a[e++]);break;case "C":g.bezierCurveTo(a[e++],a[e++],a[e++],a[e++],a[e++],a[e++])}};a.Shape.prototype.changeStateOnMouseEvents=function(c,d){var e=null;-1==this.baseStateItemID?e=this:this.cloneOfBaseStateItem&&(e=a.getDisplayObjByCP_UID(this.baseStateItemID));e&&void 0!==e.HandleMouseEventOnStateItems&&e.HandleMouseEventOnStateItems(c,this.parentStateType,d)};a.Shape.prototype.HandleMouseEventOnStateItems=
function(c,d,e){if(this.parentStateType==a.kSTTNormal&&(!(this.parentData&&void 0!=this.parentData.enabled)||this.parentData.enabled)){var g=a.kSTTNone,h="";if(0<=this.currentState&&this.currentState<this.states.length){var m=this.states[this.currentState];m&&(g=m.stt,h=m.stn)}m=!(a.device==a.IDEVICE||a.device==a.ANDROID)||"mouseup"!=c;if(!(m&&g!=d)){var d=!1,o="",f=!1;if("mouseover"==c){if((g==a.kSTTNormal||g==a.kSTTCustom)&&this.shouldShowRollOver)if(d=!0,o=a.getLocalisedStateName("kCPRolloverState"),
this.stateAtStartOfMouseEvents=h,a.BringBaseItemToFrontWithinState(this,a.getLocalisedStateName("kCPRolloverState")),a.device===a.DESKTOP&&(c=a.GetMouseOverManager())){var n=this;c.addMouseOverItem(this,function(){n.ForceMouseOut()})}}else if("mouseout"==c){if(g==a.kSTTRollOver||g==a.kSTTDown)d=!0,o=this.stateAtStartOfMouseEvents,a.device===a.DESKTOP&&(c=a.GetMouseOverManager())&&c.removeMouseOverItem(this);if(g==a.kSTTNormal||g==a.kSTTCustom)a.browser==a.CHROME&&this.ignoreMouseOutEventOnNormal?
this.ignoreMouseOutEventOnNormal=!1:this.shouldShowRollOver=!0}else if("mousedown"==c){if(g==a.kSTTNormal||g==a.kSTTRollOver||g==a.kSTTCustom)if(d=!0,o=a.getLocalisedStateName("kCPDownState"),this.bShouldListenForMouseUpOnDownState=!0,g==a.kSTTNormal||g==a.kSTTCustom)this.stateAtStartOfMouseEvents=h,this.ignoreMouseOutEventOnNormal=!0}else if("mouseup"==c&&(!m||g==a.kSTTDown))d=!0,o=this.stateAtStartOfMouseEvents,this.shouldShowRollOver=!1,this.bShouldListenForMouseUpOnDownState&&(f=!0);d&&(o!==a.getLocalisedStateName("kCPRolloverState")&&
a.ResetItemZIndicesWithinState(this,a.getLocalisedStateName("kCPRolloverState")),a.changeState(this.actualParent.id,o,!1));f&&(!a.IsGestureSupportedDevice()&&(a.shouldRelaxBrowserCheck(this.parentData.type)||a.CHROME!=a.browser&&a.MSIE!=a.browser||a.m_isLMSPreview))&&a.dispatchClickEvent(this.actualParent,e,{asPartOfStateChange:!0})}}};a.FrameSet=function(c,d){function e(c,d,e,g,h,i){var d=new a.Shortcut(d.k,d.c?!0:!1,d.s?!0:!1,d.a?!0:!1),p="";void 0!=e.eh&&(p=g.dn);return new a.KeyHandler(function(a){return c(e,
g,a)},d,h,i,p)}a.FrameSet.baseConstructor.call(this,c);this.children=d;this.from=this.getAttribute("from");this.to=this.getAttribute("to");this.afrom=this.getAttribute("afrom");this.ato=this.getAttribute("ato");this.transIn=this.getAttribute("trin");this.transIn||(this.transIn=0);this.transOut=this.getAttribute("trout");this.transOut||(this.transOut=0);this.element.drawingBoard&&(this.element.drawingBoard.style.display="block",this.element.drawingBoard.style.opacity=0<this.transIn?0:1);"mouse"==this.getAttribute("mp")&&
(this.motionPathMover=a.movie.mousePath,this.motionPathArgs=this.getAttribute("mpa"));this.type=this.getAttribute("type");this.itemData=a.D[this.element.id];this.itemCanvasData=null;this.itemData&&this.itemData.mdi&&(this.itemCanvasData=a.D[this.itemData.mdi]);this.itemCanvasData&&(a.cpIDMap[this.itemCanvasData.uid]=this.itemData.mdi);this.pa=this.getAttribute("pa");this.alwaysPause=this.getAttribute("cpa");var g=this.getAttribute("psv");g&&(this.psv=g);if(void 0!=this.pa){this.element.style.WebkitTapHighlightColor=
"rgba(0,0,0,0.3)";this.setAttribute("handled",!1);this.setAttribute("clickedOnce",!1);this.setAttribute("currentAttempt",0);this.setAttribute("actionInProgress",!1);if(void 0!=this.getAttribute("iqb")&&this.getAttribute("iqb")){var g=this.getAttribute("sn"),g=a.D[g].qs,h;g&&-1==g.indexOf(",")&&(h=a.getQuestionObject(g));g=this.getAttribute("qbt");this.element.style.cursor="pointer";if(g)switch(g){case "submit":h.registerSubmitButton(this.element);break;case "back":h.registerBackButton(this.element);
break;case "skip":h.registerSkipButton(this.element);break;case "clear":h.registerClearButton(this.element);break;case "submitAll":h.registerSubmitAllButton(this.element);break;case "reviewModeNext":h.registerReviewModeNextButton(this.element);break;case "reviewModeBack":h.registerReviewModeBackButton(this.element);break;default:a.registerGestureEvent(this.element,a.GESTURE_EVENT_TYPES.TAP,a.QuizButtonCH)}}this.dependents=this.getAttribute("dep");if(a.kCPOTAutoShape==this.type&&1==this.getAttribute("rp")&&
(h=a.movie.stage.currentSlide)&&h.from>this.pa)this.rp_pa=h.from+this.pa-this.from}this.htmlDependents=[];void 0!=this.psv&&this.setAttribute("pausedOnce",!1);if(h=this.getAttribute("onShow"))this.onShow=window[h];if(this.keyHandler=this.getAttribute("kh"))if(this.keyShortcut=this.getAttribute("sc"))(h=e(this.keyHandler,this.keyShortcut,a.D[this.element.id],a.D[this.element.id+"c"],this.from,this.to))&&a.movie.stage.addKeyHandler(h);if(!this.keyHandler&&(this.keyHandler=this.getAttribute("eh")))(h=
e(this.keyHandler,"",a.D[this.element.id],a.D[this.element.id+"c"],this.from,this.to))&&a.movie.stage.addKeyHandler(h);this.isStarted=!1;if(a.kCPOTClickBoxItem==this.type||a.kCPOTScorableButtonItem==this.type||a.kCPOTAutoShape==this.type)(this.dblClick=this.getAttribute("dclk"))?a.movie.stage.getClickManager().addDoubleClick(a.D[this.element.id],a.D[this.element.id+"c"],this.element):a.kCPOTClickBoxItem==this.type&&(this.rightClick=this.getAttribute("rclk"))&&a.movie.stage.getClickManager().addRightClick(a.D[this.element.id],
a.D[this.element.id+"c"],this.element);a.kCPOTTextEntryButtonItem==this.type&&(this.parentId=this.getAttribute("vid"))&&a.movie.stage.addToParentChildMap(this.parentId,this.element.id);if(a.MSIE==a.browser&&void 0!=this.type)switch(this.type){case a.kCPOTStageShortAnswer:case a.kCPOTQuestionFillBlank:case a.kCPOTFillBlankCaption:case a.kCPOTWidgetItem:case a.kCPOTProgressIndicator:case a.kCPOTReviewArea:case a.kCPOTScoringResult:case a.kCPOTStageAnswerItem:case a.kCPOTStageAnswerLabel:case a.kCPOTStageMatchingQuestion:case a.kCPOTStageMatchingAnswerEntry:case a.kCPOTFLVItem:break;
case a.kCPOTWebObject:if(this.itemCanvasData&&(h=this.itemCanvasData.wosvg)&&""!=h)c.style.backgroundColor="#FFFFFF",c.style.opacity=0;break;default:c.style.backgroundColor="#FFFFFF",c.style.opacity=0}};a.inherits(a.FrameSet,a.DisplayObject);a.FrameSet.prototype.isInRange=function(c){if(0==this.from&&0==this.to)return!0;var d=a.getDisplayObjByKey(this.itemData.mdi);return d&&-1!==d.baseStateItemID&&(d=a.getBaseStateItem(d))&&d.parentData&&(a.kCPOTSuccessCaptionItem==d.parentData.type||a.kCPOTFailureCaptionItem==
d.parentData.type||a.kCPOTHintCaptionItem==d.parentData.type||a.kCPRolloverCaptionItem==d.parentData.type||a.kCPRolloverImageItem==d.parentData.type||a.kCPOTRolloverAutoShape==d.parentData.type||a.kCPOTSuccessShapeItem==d.parentData.type||a.kCPOTFailureShapeItem==d.parentData.type||a.kCPOTHintShapeItem==d.parentData.type)?!0:a.kCPOTSuccessCaptionItem==this.type||a.kCPOTFailureCaptionItem==this.type||a.kCPOTHintCaptionItem==this.type||a.kCPRolloverCaptionItem==this.type||a.kCPRolloverImageItem==this.type||
a.kCPOTRolloverAutoShape==this.type||a.kCPOTSuccessShapeItem==this.type||a.kCPOTFailureShapeItem==this.type||a.kCPOTHintShapeItem==this.type?!0:this.from<=c&&this.to>=c};a.FrameSet.prototype.updateOpacity=function(){if(this.element.drawingBoard&&!(a.kCPOTSuccessCaptionItem==this.type||a.kCPOTFailureCaptionItem==this.type||a.kCPOTHintCaptionItem==this.type||a.kCPOTSuccessShapeItem==this.type||a.kCPOTFailureShapeItem==this.type||a.kCPOTHintShapeItem==this.type)){var c=cpInfoCurrentFrame-this.from+1,
d=this.to-cpInfoCurrentFrame;this.element.drawingBoard.style.opacity=c<=this.transIn?c/this.transIn:c>this.to-this.from-this.transOut?d/this.transOut:1}};a.FrameSet.prototype.updateFrame=function(c){this.updateOpacity();a.FrameSet.superClass.updateFrame.call(this);c==a.Timeline.ReasonForUpdate.JUMP&&this.setAttribute("clickedOnce",!1)};a.FrameSet.prototype.start=function(c,d){var e=0,g=!this.isStarted;this.isStarted=!0;this.element.style.display="block";this.element.drawingBoard&&(this.element.drawingBoard.style.display=
"block");void 0!=this.pa&&null!=a.movie.stage.currentSlide&&((e=-1!=this.pa)||(e=a.kCPOTClickBoxItem==this.type||a.kCPOTScorableButtonItem==this.type||a.kCPOTAutoShape==this.type||a.kCPOTTextEntryBoxItem==this.type),e&&(a.movie.stage.currentSlide.topMostObjectInteractiveObject=this.element.id));a.FrameSet.superClass.start.call(this,c,d);if(this.itemCanvasData&&1==this.itemCanvasData.visible)for(e=0;e<this.htmlDependents.length;++e)this.htmlDependents[e].style.visibility="visible";this.updateOpacity();
if(this.onShow)try{this.onShow.call(this.timeline)}catch(h){}if("undefined"!=typeof cptb&&!cptb.isObjectDrawn(this))cptb.onObjectEnter(this);a.responsive&&g&&(a.updateVarText(this.element,!0,!0),this.element&&(g=a.D[this.element.id])&&(void 0!=g.rpvt||void 0!=g.vt)&&a.updateVarText(this.element,!0,!0))};a.FrameSet.prototype.reset=function(c){if("undefined"!=typeof cptb&&!cptb.isObjectReset(this))cptb.onObjectExit(this);var d=0;delete a.ropMap[this.element.id];a.FrameSet.superClass.reset.call(this,
c);this.isStarted=!1;var e=!0;this.itemData.st&&(e=!1);c&&this.children&&(this.children[0]&&this.children[0].continueToNextSlide)&&(e=!1);e&&(this.element.style.display="none");if(void 0!=this.pa&&(this.setAttribute("handled",!1),this.setAttribute("clickedOnce",!1),void 0!=this.dependents))for(d=0;d<this.dependents.length;++d)a.hide(this.dependents[d]);for(d=0;d<this.htmlDependents.length;++d)this.htmlDependents[d].style.visibility="hidden";void 0!=this.psv&&this.setAttribute("pausedOnce",!1);e&&
this.element.drawingBoard&&(this.element.drawingBoard.style.opacity=0,this.element.drawingBoard.style.display="none")};a.FrameSet.prototype.ApplyMotion=function(a,d){if(null!=this.motionPathMover)try{this.motionPathMover(this,a,d)}catch(e){}};a.FrameSet.prototype.handleRewind=function(){void 0!=this.pa&&(this.setAttribute("handled",!1),this.setAttribute("clickedOnce",!1));void 0!=this.psv&&this.setAttribute("pausedOnce",!1);void 0!=this.type&&a.kCPOTWidgetItem==this.type&&!this.itemData.rp&&1==this.children.length&&
this.reset()};a.FrameSet.prototype.onEndOfSlide=function(c){var d=this.isStarted&&!this.isInRange(cpInfoCurrentFrame);d||(d=a.kCPOTSuccessCaptionItem==this.type||a.kCPOTFailureCaptionItem==this.type||a.kCPOTHintCaptionItem==this.type||a.kCPOTAutoShape==this.type&&1!=this.getAttribute("rp")||a.kCPRolloverCaptionItem==this.type||a.kCPRolloverImageItem==this.type||a.kCPOTRolloverAutoShape==this.type||a.kCPOTSuccessShapeItem==this.type||a.kCPOTFailureShapeItem==this.type||a.kCPOTHintShapeItem==this.type)||
this.type==a.kCPOTWidgetItem&&!this.itemData.rp&&(d=!0);d?this.reset(c==a.Timeline.ReasonForUpdate.PROGRESS):a.kCPOTAutoShape==this.type&&1==this.getAttribute("uab")&&(c=this.children[0])&&c.removeMouseHandlers()}})(window.cp);
(function(a){a.Timeline=function(b){a.Timeline.baseConstructor.call(this,b);this.updateTimeline();this.pools=this.getAttribute("pools");this.currentSlideStartFrame=this.nextSlideStartFrame=this.previousSlideStartFrame=-1;this.movieEndAction=this.getAttribute("endAction");this.fadeInAtStart=this.getAttribute("fadeInAtStart");this.fadeOutAtEnd=this.getAttribute("fadeOutAtEnd");this.noSkipFrames={};this.m_useWidgetVersion7=this.getAttribute("useWidgetVersion7");var c=this;this.paused=!1;this.cStart=
this.lastFrame+1;this.cEnd=-1;this.imagesToBeCleared=[];this.slideDiv=null;this.eventListeners=[];this.feedbacks=[];this.m_keyManager=new a.KeyManager;this.m_clickManager=new a.ClickManager;this.parentChildMap=[];this.videoCCItems=this.audioCCItems=null;this.curVidCCItem=this.curAudCCItem=-1;this.itemsNotLoaded=[];this.interactivePauseFrame=-1;this.m_interactionManagers=[];this.mainSlideDiv=this.element.children[0];this.mainSlideDiv.style.display="block";if(b=document.getElementById("cpDocument"))jQuery(document).keydown(function(a){c.m_keyManager.handleKeyDown(a)}),
jQuery(document).keyup(function(a){c.m_keyManager.handleKeyUp(a)}),jQuery(document).focusout(function(a){c.m_keyManager.handleFocusOut(a)});b.style.backgroundColor=a.D.project.htmlBgColor;this.verbose=!1};a.inherits(a.Timeline,a.DisplayObject);a.Timeline.prototype.updateTimeline=function(){this.slides=(this.getAttribute("slides")||"").split(",");this.questions=[];var a=this.getAttribute("questions")||"";0<a.length&&(this.questions=a.split(","));this.lastFrame=this.getAttribute("to")};a.Timeline.prototype.addToItemNotLoaded=
function(a){this.itemsNotLoaded.push(a)};a.Timeline.prototype.removeFromItemNotLoaded=function(a){for(var c=0;c<this.itemsNotLoaded.length;++c)if(a==this.itemsNotLoaded[c]){this.itemsNotLoaded.splice(c,1);break}};a.Timeline.prototype.hasItemsLoaded=function(){var b=0<this.itemsNotLoaded.length;a.verbose&&0<b&&a.log(b+" widgets pending");return!b};a.Timeline.prototype.addToParentChildMap=function(a,c){var d=0,e="",d=null;if(!(""==a||""==c)){for(d=0;d<this.parentChildMap.length;++d)if(e=this.parentChildMap[d].m_parent,
e==a){this.parentChildMap[d].m_childArr.push(c);return}d={};d.m_parent=a;d.m_childArr=[];d.m_childArr.push(c);this.parentChildMap.push(d)}};a.Timeline.prototype.clearParentChildMap=function(){this.parentChildMap=[]};a.Timeline.prototype.getChildrenForParent=function(a,c){var d=0,e="";if(""!=a)for(d=0;d<this.parentChildMap.length;++d)if(e=this.parentChildMap[d].m_parent,e==a)for(e=e=0;e<this.parentChildMap[d].m_childArr.length;++e)c.push(this.parentChildMap[d].m_childArr[e]),this.getChildrenForParent(this.parentChildMap[d].m_childArr[e],
c)};a.Timeline.prototype.addKeyHandler=function(a){a&&this.m_keyManager.addHandler(a)};a.Timeline.prototype.getClickManager=function(){return this.m_clickManager};a.Timeline.prototype.setupSlideItemDiv=function(b,c,d,e,f,h,i){var j="canvas",h="cp-shape",d=!0;if(a.kCPHighlight==b.t)h="cp-hb";else if(a.kCPRolloverAreaItem==b.t)h="cp-rai";else if(a.kCPZoomSource==b.t)h="cp-zoom";else if(a.kCPMouse==b.t)d=!0;else if(a.kCPMouseClick==b.t)h="cp-mc",d=!0;else if(a.kCPOTReviewArea==b.t)j="div",h="cp-questionSlideReviewLabel",
d=!1;else if(a.kCPOTProgressIndicator==b.t)j="div",h="cp-progressSlideLabel",d=!1;else if(a.kCPOTScoringResult==b.t)j="div",h="cp-resultSlideLabel",d=!1;else if(a.kCPTypingText==b.t)j="div",h="cp-typingtext";else if(a.kCPOTTextEntryBoxItem==b.t)j="div",h="cp-input",d=!1;else if(a.kCPOTLineItem==b.t)h="cp-line";else if(a.kCPOTAnswerArea==b.t||a.kCPOTMatchingQuestionArea==b.t||a.kCPOTMatchingAnswerArea==b.t||a.kCPOTLikertQuestionArea==b.t||a.kCPOTLikertTotalGroupArea==b.t)h="cp-answerArea";else if(a.kCPOTStageQuestionText==
b.t||a.kCPOTStageQuestionTitle==b.t)h="cp-rectWithText";else if(a.kCPOTWidgetItem==b.t)j="div",h="cp-widget",d=this.m_useWidgetVersion7;else if(a.kCPOTWebObject==b.t){if(j="div",h="cp-WebObject",d=this.m_useWidgetVersion7,c.mdi){var g=a.D[c.mdi];g&&(d=void 0!=g.wosvg)}}else if(a.kCPOTTAItem==b.t)j="div",h="cp-ta";else if(a.kCPOTFLVItem==b.t)j="div",h="cp-eventVideo",d=!0;else if(a.kCPOTVideo==b.t)j="div",h="cp-slideVideo",d=!0;else if(a.kCPFullMotion==b.t)j="div",h="cp-fmrVideo",d=!0;else if(a.kCPOTVideoResource==
b.t)j="div",h="cp-cpvcVideo",d=!0;else if(a.kCPOTAnimationItem==b.t)j="div",h="cp-animationItem",d=!0;else if(a.extObjInfo)for(g=0;g<a.extObjInfo.length;++g)if(a.IsValidObj(a.extObjInfo[g].cb)){var k={};k.elemType=j;k.classType=h;k.rewrap=d;if(a.extObjInfo[g].cb(b.t,k)){j=k.elemType;h=k.classType;d=k.rewrap;break}}g="c";a.kCPOTStageAnswerItem==b.t&&(k=a.D[b.n+"c"],k=k.at,k==a.kCPOTStageSingleChoiceMultipleAnswer?(g="r",h="cp-singleChoiceInput"):k==a.kCPOTStageMultipleChoiceMultipleAnswer?(g="ch",
h="cp-multipleChoiceInput"):k==a.kCPOTStageSequenceAnswer?(g="seq",h="cp-sequenceInput"):k==a.kCPOTStageMatchingAnswer&&(g="mtcha",h="cp-matchingAnswer"),j="div",d=!1);a.kCPOTQuestionFillBlank==b.t&&(h="cp-fibAnswer",g="fib",j="div",d=!1);a.kCPOTStageShortAnswer==b.t&&(h="cp-shortAnswer",g="sha",j="div",d=!1);a.kCPOTItemHotSpot==b.t&&(h="cp-hotspotInput",g="hotspot",j="div",d=!1);a.kCPOTStageMatchingQuestion==b.t&&(h="cp-matchingItem",g="mtchi",j="div",d=!1);if(a.kCPOTStageLikertQuestion==b.t)h="cp-likertItem",
g="li",j="div",d=!1;else if(a.kCPOTOvalItem==b.t||a.kCPOTRectangleItem==b.t||a.kCPOTPolygon==b.t||a.kCPOTAnswerArea==b.t||a.kCPOTMatchingQuestionArea==b.t||a.kCPOTMatchingAnswerArea==b.t||a.kCPOTLikertQuestionArea==b.t||a.kCPOTLikertTotalGroupArea==b.t)h="cp-drawingItem";else if(a.kCPOTTitleAutoShape==b.t||a.kCPOTSubTitleAutoShape==b.t||a.kCPOTAutoShape==b.t||a.kCPOTRolloverAutoShape==b.t||a.kCPOTStageCorrectFeedbackShape==b.t||a.kCPOTSuccessShapeItem==b.t||a.kCPOTStageIncorrectFeedbackShape==b.t||
a.kCPOTFailureShapeItem==b.t||a.kCPOTHintShapeItem==b.t||a.kCPOTStagePartialCorrectFeedbackShape==b.t||a.kCPOTRetryFeedbackShape==b.t||a.kCPOTIncompleteFeedbackShape==b.t||a.kCPOTTimeoutFeedbackShape==b.t||a.kCPOTAnswerFeedbackShape==b.t)h="cp-autoShape";else if(a.responsive&&(a.kCPOTScorableButtonItem==b.t||a.kCPOTRetakeButton==b.t||a.kCPOTStageQuestionNextButton==b.t||a.kCPOTStageQuestionClearButton==b.t||a.kCPOTStageQuestionBackButton==b.t||a.kCPOTStageQuestionReviewModeNextButton==b.t||a.kCPOTStageQuestionReviewModeBackButton==
b.t||a.kCPOTStageQuestionSubmitButton==b.t||a.kCPOTScoringReviewButton==b.t||a.kCPOTScoringContinueButton==b.t||a.kCPOTSubmitAllButton==b.t||a.kCPOTResetButton==b.t||a.kCPOTUndoButton==b.t||a.kCPOTDDSubmitButton==b.t||a.kCPOTTextEntryButtonItem==b.t))k=a.D[b.n],k.subt!=a.kImageButton&&(k.subt==a.kTextButton?(j="div",h="cp-textbutton"):h="cp-drawingItem");this.SetItemVisibility(b);i?j=a(b.n+g):(j=a.newElem(j),j.id=b.n+g,j.setAttribute("class",h));a.kCPOTStageAnswerItem==b.t&&(c=a.D[b.n+"c"],k=c.at,
k==a.kCPOTStageSequenceAnswer&&(j.setAttribute("tabIndex","-1"),j.setAttribute("aria-label",c.accstr),a.removeAccessibilityOutline(j),j.setAttribute("role","img")));if(a.kCPOTTextEntryBoxItem==b.t&&b.d&&(b.d.hc&&(0<b.d.hc.length&&a.device!=a.IDEVICE&&a.device!=a.ANDROID)&&(j.setAttribute("onmouseover",'cp.showHint("'+b.d.hc+'",this)'),f.setAttribute("onmousemove",'cp.showHint("'+b.d.hc+'",this)'),j.setAttribute("onmouseout",'cp.hideHint("'+b.d.hc+'",this)')),b.d.cur))j.style.cursor="text";h=void 0;
d?(i?f=a("re-"+j.id):(f=a.newElem("div"),f.id="re-"+j.id,f.setAttribute("tabIndex",-1),f.setAttribute("class","cp-rewrap"),f.appendChild(j)),a.removeAccessibilityOutline(f),h=f,(!i||!(a.kCPOTWidgetItem==b.t||a.kCPOTWebObject==b.t))&&e.appendChild(f)):(h=f,i?a.kCPOTWidgetItem!=b.t&&a.kCPOTWebObject!=b.t&&e.appendChild(f):f.appendChild(j));h.style.zIndex=c.zIndex;a.fixWebkitScaling(h)};a.Timeline.prototype.SetItemVisibility=function(b){if(b&&a.kCPOTRetakeButton==b.t&&a.movie.playbackController&&(b=
a.D[b.n])){var b=a.D[b.mdi],c=a.movie.playbackController.GetQuizController();b&&c&&(c=c.CanShowRetakeButton(),b.visible=c,b.effectiveVi=c)}};a.setupSlideBGDivAndCanvasInternal=function(b,c,d){var e=a.D.project.w,f=a.D.project.h,h=!1,i=c.firstChild;i||(i=a.newElem("div"),i.setAttribute("class","cp-frameset"),h=!0);var j=i.id;i.id="Slide"+b.id;i.style.zIndex="0";a.responsive?(i.style.width="100%",i.style.height="100%"):(i.style.left="0px",i.style.width=e+"px",i.style.height=f+"px");h&&c.appendChild(i);
var g,c=!1;h?c=!1:i.firstChild&&"__bgDiv__"==i.firstChild.id&&(g=i.firstChild,c=!0);var k=!1,l=!1;if(b.gf)if(l=!0,c||(g=a.newElem("div"),g.id="__bgDiv__",k=!0),a.browser_supports_svg){var n=a.getGradientSvgStr(b.gf,e,f,a("project").clientWidth/e,a("project").clientHeight/f);0<n.length&&(g.setAttribute("class",""),g.style.position="absolute",a.responsive?(g.style.width="100%",g.style.height="100%"):(g.style.width=e+"px",g.style.height=f+"px"),g.innerHTML=n)}else g.setAttribute("class","cp-gf"),g.style.position=
"absolute",a.responsive?(g.style.width="100%",g.style.height="100%"):(g.style.width=e+"px",g.style.height=f+"px"),g.firstChild&&"CANVAS"==g.firstChild.nodeName?g.firstChild.id="Slide"+b.id+"gf":g.innerHTML='<canvas id="Slide'+b.id+'gf"></canvas>';else b.imgf&&(l=!0,c||(g=a.newElem("div"),g.id="__bgDiv__",k=!0),g.setAttribute("class","cp-imgf"),g.style.position="absolute",a.responsive?(g.style.width="100%",g.style.height="100%"):(g.style.width=e+"px",g.style.height=f+"px"),g.firstChild&&"CANVAS"==
g.firstChild.nodeName?g.firstChild.id="Slide"+b.id+"imgf":g.innerHTML='<canvas id="Slide'+b.id+'imgf"></canvas>');l?k&&(i.firstChild?i.insertBefore(g,i.firstChild):i.appendChild(g)):c&&i.removeChild(g);var m;h||(m=document.getElementById(j+"c"));m||(m=a.newElem("canvas"),m.setAttribute("class","cp-shape"),i.appendChild(m));m.id="Slide"+b.id+"c";f=a.D[m.id];g=f.b;h=g[2]-g[0];j=g[3]-g[1];e=!0;if(a.responsive){k=a("project").clientWidth;l=a("project").clientHeight;g=h;var c=j,n=k/h,q=l/j,n=n<q?n:q;f.aip?
(e=!0,g*=n,c*=n):(h>k&&(g=k),j>l&&(c=l));if(k=f.css[a.ResponsiveProjWidth].crop)if((l=a.movie.im.images[f.ip])&&l.nativeImage&&l.nativeImage.complete)if(k=a.getIntersectionRect([0,0,l.nativeImage.width,l.nativeImage.height],[k.x,k.y,g,c]),0<=k.w&&k.w<g||0<=k.h&&k.h<c)e=!0;m.style.width=g+"px";m.style.height=c+"px";m.style.left=(a("project").clientWidth-g)/2+"px";m.style.top=(a("project").clientHeight-c)/2+"px"}else m.style.width=h+"px",m.style.height=j+"px",m.style.left=g[0]+"px",m.style.top=g[1]+
"px";if(d&&(0<h&&0<j)&&(d=f.aip?f.aip:f.ip))(d=a.movie.im.images[d])&&d.nativeImage.complete&&m.getContext("2d").drawImage(d.nativeImage,0,0,m.clientWidth,m.clientHeight);i.style.backgroundColor!=b.bc&&e&&(i.style.backgroundColor=b.bc)};a.Timeline.prototype.isSlideBGCropped=function(){if(!a.responsive||!this.currentSlide||!a.D[this.currentSlide.mdi])return!1;var b=a.D[this.currentSlide.mdi];if(!b)return!1;b=b.css;if(!b)return!1;b=b[a.ResponsiveProjWidth];if(!b)return!1;var c=void 0!=b.crop;c&&(this.currentSlide.cropX=
b.crop.x,this.currentSlide.cropY=b.crop.y);return c};a.Timeline.prototype.setupSlideDiv=function(b,c){a.setupSlideBGDivAndCanvasInternal(b,c,!1);var d=c.firstChild,e=document.getElementById("Slide"+b.id+"c");d.offsetHeight=d.offsetHeight;e.offsetHeight=e.offsetHeight;if("Question Slide"==b.st){c.onclick=void 0;var f=a.getQuestionObjectName(d.id);(f=a.D[f])&&("Hotspot"!=f.qtp?a.removeGestureEvent(c,a.GESTURE_EVENT_TYPES.TAP):a.registerGestureEvent(c,a.GESTURE_EVENT_TYPES.TAP,a.handleClick))}else a.registerGestureEvent(c,
a.GESTURE_EVENT_TYPES.TAP,a.handleClick),a.device==a.DESKTOP&&(c.onmousemove=a.handleMouseMoveNew);this.m_EffectAnimationManager=void 0;if(this.m_SlideHasEffects||a.movie.PPTXSlide)this.m_EffectAnimationManager=PPTXLib.initializeAnimationManagerForCPSlide(b);if(0<b.si.length)for(var f=b.si,h=0;h<f.length;++h){var i=f[h],j=a.D[i.n];j.zIndex=h;var g,k=document.getElementById(i.n);if(k)g=k,this.setupSlideItemDiv(i,j,b,d,g,e,!0),1==j.rp&&-1!==g.tabIndex&&(1==j.rpa?g.setAttribute("tabIndex",2499):g.setAttribute("tabIndex",
2500+j.zIndex));else{g=a.newElem("div");g.id=i.n;a.device==a.IDEVICE||a.device==a.ANDROID?a.kCPOTFLVItem==i.t||a.kCPOTVideo==i.t||a.kCPFullMotion==i.t||a.kCPOTVideoResource==i.t?g.setAttribute("class","cp-videoframeset"):g.setAttribute("class","cp-frameset"):g.setAttribute("class","cp-frameset");this.setupAccessibility(i,g);this.addHyperLinks(i,g);a.kCPOTTextEntryButtonItem==i.t&&a.registerGestureEvent(g,a.GESTURE_EVENT_TYPES.TAP,function(b){return function(){a.disableInteractions||a.TEBValidator(b)}}(g));
if((a.kCPOTScorableButtonItem==i.t||a.kCPOTClickBoxItem==i.t||a.kCPOTAutoShape==i.t)&&i.d)if(i.d.hc&&(0<i.d.hc.length&&a.device!=a.IDEVICE&&a.device!=a.ANDROID)&&(g.setAttribute("onmouseover",'cp.showHint("'+i.d.hc+'",this)'),g.setAttribute("onmouseout",'cp.hideHint("'+i.d.hc+'",this)')),i.d.cur)a.kCPOTAutoShape==i.t?j.handCursor=!0:g.style.cursor="pointer";this.setupSlideItemDiv(i,j,b,d,g,e);!0===j.immo&&-1!==g.tabIndex&&(b.mmot?g.setAttribute("tabIndex",2499):g.setAttribute("tabIndex",2500+f.length))}j=
j.zIndex;a.kCPOTWidgetItem==i.t||a.kCPOTWebObject==i.t?(this.m_useWidgetVersion7||!k)&&c.appendChild(g):c.appendChild(g);g.style.zIndex=j;a.fixWebkitScaling(g)}a.createAlternativeAccessibleText(d,b.accstr,"img");a.removeAccessibilityOutline(d);f=b.accstr;0===a.D.pref.acc&&(f=" ");a.SAFARI===a.browser?(d.setAttribute("role","img"),d.setAttribute("aria-label",f)):(e=a.newElem("p"),e.innerHTML=f,f=a.newElem("div"),f.id=d.id+"accStr2",f.style.opacity=0,f.style.width="0px",f.style.height="0px",f.style.left=
"-1999px",f.style.position="fixed",f.appendChild(e),f.setAttribute("tabIndex","2400"),d.appendChild(f))};a.Timeline.prototype.addHyperLinks=function(b,c){var d=function(b){return function(){a.hyperlinkClick(b)}};if(b){var e=a.D[b.n+"c"];if(void 0!=e&&!1!=e.hasOwnProperty("hl"))for(var e=e.hl.split(","),f=0;f<e.length;++f){var h=e[f];if(""!=h){var i=a.D[h];if(void 0==i)break;if(""==i.oca)break;var j=i.b;if(""==j)break;var g;if(a.responsive){if(g=a(h))break;g=h.split("_");g=g[0].substr(2);g=document.getElementsByClassName(g);
g=g[0];if(!g)continue}else g=a.newElem("div");g.id=h;g.setAttribute("tabIndex",i.ti);g.setAttribute("aria-label",i.accstr);1===a.D.pref.hsr&&a.removeAccessibilityOutline(g);g.setAttribute("role","link");a.responsive||(g.style.display="block",g.style.position="absolute",g.style.width=j[2]-j[0]+"px",g.style.height=j[3]-j[1]+"px",g.style.top=j[1]+"px",g.style.left=j[0]+"px",g.style.backgroundColor="#FFFFFF",g.style.opacity=0,c.appendChild(g));a.responsive||a.registerGestureEvent(g,a.GESTURE_EVENT_TYPES.TAP,
d(h));g.style.cursor="pointer"}}}};a.Timeline.prototype.setupAccessibility=function(b,c){if(b){var d=a.D[b.n+"c"];if(void 0!=d&&!1!==d.hasOwnProperty("accstr")){var e=d.ti,f=a.getAccessibilityString(d);b.t==a.kCPOTCaptionItem||b.t==a.kCPOTTitleAutoShape||b.t==a.kCPOTScoringResultItem||a.kCPOTSuccessCaptionItem==b.t||a.kCPOTImageBoxItem==b.t||a.kCPOTFailureCaptionItem==b.t||a.kCPOTHintCaptionItem==b.t||a.kCPOTIncompleteFeedbackItem==b.t||a.kCPOTStageCorrectFeedback==b.t||a.kCPOTStageIncorrectFeedback==
b.t||a.kCPOTStagePartialCorrectFeedback==b.t||a.kCPOTTimeoutFeedbackItem==b.t||a.kCPOTRetryFeedbackItem==b.t||a.kCPOTFillBlankCaption==b.t||a.kCPOTStageMatchingQuestion==b.t||a.kCPOTStageMatchingAnswer==b.t||a.kCPOTStageAnswerItem==b.t||a.kCPOTQuestionColumn==b.t||a.kCPRolloverCaptionItem==b.t||a.kCPRolloverImageItem==b.t||a.kCPOTStageCorrectFeedbackShape==b.t||a.kCPOTSuccessShapeItem==b.t||a.kCPOTStageIncorrectFeedbackShape==b.t||a.kCPOTFailureShapeItem==b.t||a.kCPOTHintShapeItem==b.t||a.kCPOTStagePartialCorrectFeedbackShape==
b.t||a.kCPOTRetryFeedbackShape==b.t||a.kCPOTIncompleteFeedbackShape==b.t||a.kCPOTTimeoutFeedbackShape==b.t?(c.setAttribute("tabIndex",-1),a.kCPOTFillBlankCaption==b.t?a.createAlternativeAccessibleText(c,d.fibText,"img"):a.createAlternativeAccessibleText(c,f,"img"),a.removeAccessibilityOutline(c)):a.kCPOTStageMatchingAnswerEntry==b.t?(c.setAttribute("tabIndex",-1),a.createAlternativeAccessibleText(c,"","img"),a.removeAccessibilityOutline(c)):b.t==a.kCPOTScorableButtonItem||b.t==a.kCPOTRetakeButton||
b.t==a.kCPOTScoringReviewButton||b.t==a.kCPOTScoringContinueButton?(c.setAttribute("tabIndex",e),a.createAlternativeAccessibleText(c,f,"button"),1===a.D.pref.hsr&&a.removeAccessibilityOutline(c)):b.t==a.kCPOTTextEntryButtonItem?(c.setAttribute("tabIndex",e),a.createAlternativeAccessibleText(c,f,"button"),1===a.D.pref.hsr&&a.removeAccessibilityOutline(c)):b.t==a.kCPOTClickBoxItem?(c.setAttribute("tabIndex",-1),a.removeAccessibilityOutline(c),a.createAlternativeAccessibleText(c,f,"button")):b.t==a.kCPOTLineItem||
b.t==a.kCPOTOvalItem||b.t==a.kCPOTRectangleItem||b.t==a.kCPOTPolygon||b.t==a.kCPOTAutoShape||b.t==a.kCPOTWebObject?(c.setAttribute("tabIndex",e),a.createAlternativeAccessibleText(c,f,"img"),1===a.D.pref.hsr&&a.removeAccessibilityOutline(c)):b.t==a.kCPOTStageQuestionText||b.t==a.kCPOTStageQuestionTitle?(c.setAttribute("tabIndex",-1),a.removeAccessibilityOutline(c),a.createAlternativeAccessibleText(c,f,"img")):b.t==a.kCPOTStageQuestionNextButton||b.t==a.kCPOTStageQuestionClearButton||b.t==a.kCPOTStageQuestionBackButton||
b.t==a.kCPOTStageQuestionReviewModeBackButton||b.t==a.kCPOTStageQuestionReviewModeNextButton||b.t==a.kCPOTStageQuestionSubmitButton||b.t==a.kCPOTSubmitAllButton?(c.setAttribute("tabIndex",e),a.createAlternativeAccessibleText(c,f,"button"),1===a.D.pref.hsr&&a.removeAccessibilityOutline(c)):b.t==a.kCPOTAnimationItem||b.t==a.kCPOTTAItem||b.t==a.kCPOTTitleAutoShape||b.t==a.kCPOTSubTitleAutoShape?(c.setAttribute("tabIndex",-1),a.removeAccessibilityOutline(c),a.createAlternativeAccessibleText(c,f,"img")):
b.t==a.kCPOTFLVItem?(c.setAttribute("tabIndex",e),a.createAlternativeAccessibleText(c,f,"presentation")):b.t==a.kCPOTWidgetItem&&(c.setAttribute("tabIndex",e),a.createAlternativeAccessibleText(c,f,"application"),1===a.D.pref.hsr&&a.removeAccessibilityOutline(c))}}};a.Timeline.prototype.getSlideDiv=function(){return this.mainSlideDiv};a.Timeline.prototype.canUpdateToFrame=function(a,c){var d=c;d||(d=this.getSlideIndexForFrame(a));return this.canUpdateToSlide(d)};a.Timeline.prototype.canUpdateToSlide=
function(b){return b>=this.slides.length||0>b?!1:a.movie.playbackController?""==a.movie.playbackController.AllowedToGoToSlide(cpInfoCurrentSlideIndex,b):!0};a.Timeline.prototype.getSlideIndexForFrame=function(b){for(var c=0;c<this.slides.length;++c){var d=a.D[this.slides[c]],e=d.to;if(b>=d.from&&b<=e)return c}return-1};a.Timeline.prototype.getSlideNameForIndex=function(a){return 0<=a&&a<this.slides.length?this.slides[a]:""};a.Timeline.prototype.getSlideIndexForName=function(a){if(void 0==a||""==a)return-1;
for(var c=0;c<this.slides.length;++c)if(a==this.slides[c])return c;return-1};a.Timeline.prototype.updatePlaybar=function(b){a.verbose&&a.log("update playbar "+b);a.responsive&&(a.PB&&a.PB.playbarCreated&&a.PB.rootObj&&a.PB.rootObj.slider)&&(this.frameSlider=a.PB.rootObj.slider);this.frameSlider||(this.frameSlider=document.getElementById("playbarSlider"));void 0!=this.frameSlider&&this.frameSlider.updateSlider&&this.frameSlider.updateSlider(b-(Math.floor(a.movie.framesToSkipForPlaybar)-a.movie.framesToSkipForPlaybar))};
a.Timeline.prototype.updateToc=function(b){a.loadedModules.toc&&a.D.tocProperties.showTotalD&&(this.toc||(this.toc=document.getElementById("tocFooterText")),void 0!=this.toc&&this.toc.updateTime(b))};a.Timeline.prototype.updateSlideNumber=function(){};a.Timeline.prototype.setAdjacentSlidesStartFrames=function(b,c){this.updateSlideNumber(c);var d=a.D[b[c-1]];this.previousSlideStartFrame=d?d.from:-1;this.nextSlideStartFrame=(d=a.D[b[c+1]])?d.from:-1};a.Timeline.prototype.AddEventListeners=function(b){if(0<
b.si.length)for(var b=b.si,c=0;c<b.length;++c){var d=b[c],e=a.D[d.n];if((d=a(d.n))&&e){var f=!1,h={};if(a.responsive){if(e.rpvt){var i=e.rpvt,j;for(j in i){var g=i[j].vt;h[j]=[];h[j].push(g)}}}else h[a.D.project.w]=[],h[a.D.project.w].push(e.vt);for(var k in h){i=h[k];void 0==e.vars&&(void 0==e.varLens&&void 0==e.texts)&&(e.vars={},e.varLens={},e.texts={});for(g=0;g<i.length;++g)if(text=i[g],void 0!=text&&""!=text)if(void 0==e.vars[k]&&void 0==e.varLens[k]&&void 0==e.texts[k]){var l=[],n=[],m=[],
q=text.split("$$");if(3<=q.length)for(var o=0;o<q.length;o+=2){if(m.push(q[o]),o+1<q.length){var p=q[o+1];if(!a.vm||!a.vm.hasOwnProperty(p))m.push("$$"+p+"$$");else{var r=0;p&&""!=p&&(f=a.em.addEventListener(d,a.SPECIFIC_VARIABLE_CHANGED_EVENT,p),r=a.vm.getVariableLength(p));void 0==p&&(p="");l.push(p);n.push(r)}}}else m.push(text);e.vars[k]=l;e.varLens[k]=n;e.texts[k]=m}else for(var s in e.vars)if(l=e.vars[s])for(o=0;o<l.length;++o)a.em.addEventListener(d,a.SPECIFIC_VARIABLE_CHANGED_EVENT,l[o])}f&&
this.eventListeners.push(d)}}};a.Timeline.prototype.AddFeedback=function(a){a&&this.feedbacks.push(a)};a.Timeline.prototype.RemoveFeedbacks=function(b){for(var c=0,d=[],c=0;c<this.feedbacks.length;++c)a.FeedbackCloseReason.SLIDE_CHANGE==b||this.feedbacks[c].canHide(b)?this.feedbacks[c].hide():d.push(this.feedbacks[c]);this.feedbacks=[];for(c=0;c<d.length;++c)this.feedbacks.push(d[c])};a.Timeline.prototype.RemoveFeedback=function(a){for(var c=0;c<this.feedbacks.length;++c)if(this.feedbacks[c]==a){this.feedbacks.splice(c,
1);break}};a.Timeline.prototype.UpdateFeedbacks=function(){for(var a=0;a<this.feedbacks.length;++a)this.feedbacks[a].update()};a.Timeline.prototype.RemoveEventListeners=function(){for(var b=0;b<this.eventListeners.length;++b)a.em.removeEventListener(this.eventListeners[b],a.SPECIFIC_VARIABLE_CHANGED_EVENT);this.eventListeners.length=0};a.Timeline.prototype.getFrameset=function(a){for(var c=0,c=0;c<this.children.length;++c)if(a==this.children[c].element.id)return this.children[c];return null};a.Timeline.prototype.correctReWrapZOrder=
function(b,c){if(b&&(c&&b.id!=c.id)&&!("cp-rewrap"!=c.className||"cp-rewrap"!=b.className)){var d=c.parentElement;if(d)for(var e=d.firstChild;e.id!=c.id;e=e.nextSibling)if(e.id!=b.id&&"cp-rewrap"==e.className){var f=e.firstChild;if(f&&(f=f.firstChild)&&"VIDEO"==f.tagName)continue;a.verbose&&a.log("inserting "+e.id+" before "+b.id);d.insertBefore(e,b)}}};a.Timeline.prototype.correctParentZOrder=function(b,c){if(b&&(c&&b.id!=c.id)&&!("cp-frameset"!=c.className||"cp-frameset"!=b.className)){var d=c.parentElement;
if(d)for(var e=d.firstChild;e.id!=c.id;e=e.nextSibling)e.id!=b.id&&"cp-frameset"==e.className&&(a.verbose&&a.log("inserting "+e.id+" before "+b.id),d.insertBefore(e,b))}};a.Timeline.prototype.selectivelyRemoveHTMLObjects=function(b){var c=b.firstChild;if(c){var d={};if(this.children)for(var e=1;e<this.children.length;++e){var f=this.children[e],h=!1;if(f.itemData.rp||f.itemData.ddv)f.itemData.from<=cpInfoCurrentFrame&&f.itemData.to>=cpInfoCurrentFrame&&(h=!0);if(a.kCPOTVideo==f.type){var i=f.children[0];
i&&i.element&&(i=i.element.firstChild)&&"VIDEO"==i.tagName&&(h=!0)}else if(a.IDEVICE==a.device||a.device==a.ANDROID)if(a.kCPOTFLVItem==f.type||a.kCPFullMotion==f.type||a.kCPOTVideo==f.type||a.kCPOTVideoResource==f.type)if((i=f.children[0])&&i.element)(i=i.element.firstChild)&&"VIDEO"==i.tagName&&(h=!0);if(h){for(var j in f.children)i=f.children[j],i.element&&(h=i.element.parentElement)&&("cp-rewrap"==h.className?d[h.id]=1:d[i.element.id]=1);f.element&&(d[f.element.id]=1);if(a.IDEVICE==a.device||a.device==
a.ANDROID)f.suppliedElement&&(d[f.suppliedElement.id]=1)}}for(f=c.firstChild;f;f=e)if(e=f.nextSibling,f&&!("__bgDiv__"==f.id||c.id+"c"==f.id||d[f.id]))f.onmouseover=null,f.onmouseout=null,f.ontouchstart=null,f.ontouchend=null,f.onmousedown=null,f.onmouseup=null,f.ontouchmove=null,f.onclick=null,a.removeGestureEvent(f,a.GESTURE_EVENT_TYPES.TAP),a.verbose&&a.log("removing "+f.id),c.removeChild(f);for(c=c.nextSibling;c;c=e)e=c.nextSibling,d[c.id]||(c.onmouseover=null,c.onmouseout=null,c.ontouchstart=
null,c.ontouchend=null,c.onmousedown=null,c.onmouseup=null,c.ontouchmove=null,c.onclick=null,a.removeGestureEvent(c,a.GESTURE_EVENT_TYPES.TAP),a.verbose&&a.log("removing "+c.id),b.removeChild(c));for(e=this.parentChildMap.length-1;0<=e;--e)d[this.parentChildMap[e].m_parent]||this.parentChildMap.splice(e,1)}};a.Timeline.prototype.loadAssetsForSlideAtIndex=function(b){a.verbose&&a.log("loadAssetsForSlideAtIndex "+b);a.movie.pm.loadSlideAssets(b);var c=a.movie.pm.numSlidesToAttemptPreloaded(),d=!1,e=
a.D.sgMgr;if(e&&(e=e.sg)&&e.length>b)for(var e=e[b][1],f=e.length,h=0;0<c--&&h<f;)b<this.slides.length-1&&a.movie.pm.preloadSlideAssets(e[h][0]),++h,d=!0;d||b<this.slides.length-1&&a.movie.pm.preloadSlideAssets(b+1)};a.Timeline.prototype.addFramesetsForSlideAtIndex=function(b){a.verbose&&a.log("addFramesetsForSlideAtIndex "+b);var c=a.D[this.slides[b]],d=this.getSlideDiv();this.RemoveFeedbacks(a.FeedbackCloseReason.SLIDE_CHANGE);this.m_keyManager.clearHandlers();this.m_clickManager.clearClicks();
this.selectivelyRemoveHTMLObjects(d);this.m_lowestRewrapElementThatIsRestOfProjectAndOnTop=this.m_lowestElementThatIsRestOfProjectAndOnTop=null;this.itemsNotLoaded=[];this.setupSlideDiv(c,d);var e=c.qs.split(",");if(this.m_GraphManager)this.m_GraphManager.onSlideJump(b);if(a.movie.playbackController){var f=a.movie.playbackController.GetQuizController();if(e&&""!=e&&0<e.length){if(!f)return;for(var h=0;h<e.length;++h){var i=a.getQuestionObject(e[h]);i&&(this.verbose&&a.log("Starting question for : "+
e[h]),i.m_isStarted=!1)}}f&&(b==f.GetAnyScoreSlideIndex()?(f.GetScore(),!f.GetIsAllowReviewMode()&&f.GetIsQuizCompleted()&&(a.movie.paused=!0,shouldShowSlide=!1),f.GetCurrentAttempt()>=f.GetNumberOfQuizAttempts()&&(f.GetIsAllowReviewMode()&&f.SetIsInReviewMode(!0),f.SetIsQuizCompleted(!0)),f.GetIsPassed()&&f.SetIsQuizCompleted(!0),f.GetScore()):shouldShowSlide=!1)}rewrapChildrenMap={};b=[];for(d=d.firstChild;d;d=d.nextSibling)if(d.nodeType==Node.ELEMENT_NODE&&"IMG"!=d.nodeName){e=!1;if("Slide"+c.id==
d.id)e=!0;else for(f=0;f<c.si.length;++f)if(c.si[f].n==d.id){e=!0;break}h=(d.className+"").split(" ");f=-1!=h.indexOf("cp-frameset")||-1!=h.indexOf("cp-videoframeset");h=-1!=h.indexOf("cp-mask");if((f||h)&&f)f=a.parseFrameset(d),f.considerForUpdate=e,f.timeline=self,b.push(f)}this.children=b;c=null;b=a.D[this.slides[cpInfoCurrentSlideIndex]].iph;null!=b&&0<b.length&&(c=this.m_interactionManagers[this.slides[cpInfoCurrentSlideIndex]],void 0==c&&(c=a.CreateInteractionManager(b))&&(this.m_interactionManagers[this.slides[cpInfoCurrentSlideIndex]]=
c),a.SetCurrentInteractionManager(c));this.m_EffectAnimationManager&&this.m_EffectAnimationManager.start()};a.Timeline.prototype.getCurrentSlideInteractionManager=function(){return this.m_interactionManagers[this.slides[cpInfoCurrentSlideIndex]]};a.Timeline.prototype.handleRewindForFramesets=function(){for(var a=0;a<this.children.length;++a)this.children[a].handleRewind()};a.Timeline.prototype.initializeGraphManager=function(){a.D.baq&&void 0!=a.D.sgMgr&&(this.m_GraphManager=a.movie.playbackController?
a.movie.playbackController.GetGraphManager():new a.SlideGraphManager,void 0!=this.m_GraphManager&&this.m_GraphManager.initialize())};a.Timeline.prototype.createQuestionObjs=function(){this.questions=[];var b=this.getAttribute("questions")||"";0<b.length&&(this.questions=b.split(","));for(b=0;b<this.questions.length;++b){var c=this.questions[b];if(""!=c){var d=a.D[c],e=d.sn;switch(d.qtp){case "MCQ":c=new a.MultipleChoiceQuestion(c,e);break;case "Hotspot":c=new a.HotspotQuestion(c,e);break;case "Sequence":c=
new a.SequenceQuestion(c,e);break;case "Matching":c=new a.MatchingQuestion(c,e);break;case "FIB":c=new a.FIBQuestion(c,e);break;case "ShortAnswer":c=new a.ShortAnswerQuestion(c,e);break;case "Widget":c=new a.WidgetQuestion(c,e);break;case "InteractiveItemQuestion":c=new a.InteractiveItemQuestion(c,e);break;case "InteractiveWidgetQuestion":c=new a.InteractiveWidgetQuestion(c,e);break;case "DragDropQuestion":d=d.itn;c=new a.DragDropQuestion(c,e,d);break;case "LIKERT":d=d.itn;c=new a.LikertQuestion(c,
e,d);break;default:c=new a.Question(c,e)}if(!c)break;a.movie.questionObjs[b]=c}}};a.Timeline.prototype.getNextBoundForNoLoad=function(b){b=b<this.slides.length?b:this.slides.length-1;return a.D[this.slides[b]].to};a.Timeline.prototype.getPreviousBoundForNoLoad=function(b){return a.D[this.slides[0<=b?b:0]].from};a.Timeline.prototype.loadSlideAtIndex=function(b){if(!(0>=this.slides.length)){a.resetDisplayAndIdMap();var c=this.slides[b],d=a.D[c],e=d.from,f=d.to;_cpInfoCurrentSlide=b+1;_cpInfoCurrentSlideLabel=
d.lb;this.currentSlide=d;a.adjustProjectHeight(this.currentSlide);this.cStart=e;this.cEnd=f;this.audioCCItems=d.audCC;this.videoCCItems=d.vidCC;this.curVidCCItem=this.curAudCCItem=-1;a.movie.ccText.innerHTML="";a.movie.PPTXSlide="PPTX Slide"==d.st;this.m_SlideHasEffects=PPTXLib.hasAnimationInfo(d);a.movie.resetMovieElapsedTime(a.movie.PPTXSlide);a.movie.am.changeCurrentSlide(b,e,!0);d.v=!0;a.D.project_main.currentFrame=e;this.slideEnterAction=d.sea;this.slideExitAction=d.sxa;this.currentSlideStartFrame=
e;this.currentSlideStartTime=1E3*this.currentSlideStartFrame/a.getCpInfoOriginalFPS();this.setAdjacentSlidesStartFrames(this.slides,b);try{this.RemoveEventListeners();this.addFramesetsForSlideAtIndex(b);this.AddEventListeners(d);this.noSkipFrames={};this.forEachChild(a.updateNoSkipFramesAndUpdateVarText);PPTXLib.updateNoSkipFramesFromEffectData(d);this.noSkipFrames[this.cEnd]=this.cEnd;this.noSkipFrames[this.cEnd+1]=this.cEnd+1;var h=this.m_interactionManagers[c];if(h){var i=h.PauseAtFrame();-1!=
i&&(this.noSkipFrames[i]=i)}}catch(j){a.log(j),j.stack&&a.log(j.stack)}}};a.Timeline.ReasonForUpdate={};a.Timeline.ReasonForUpdate.PROGRESS=1;a.Timeline.ReasonForUpdate.JUMP=2;a.Timeline.prototype.fallsOutsideCurrentSlide=function(){return this.cEnd<cpInfoCurrentFrame||this.cStart>cpInfoCurrentFrame};a.Timeline.prototype.updateSlideTransition=function(){this.currentSlide&&this.currentTransition&&(this.cStart+15<cpInfoCurrentFrame?this.currentTransition.reset():this.currentTransition.update(cpInfoCurrentFrame))};
a.Timeline.prototype.updateFrame=function(b){var c=!0;this.updatingFrame=cpInfoCurrentFrame;a.movie.executedActionOnFrame!=this.updatingFrame&&(a.movie.executedActionOnFrame=void 0);this.updatePlaybar(cpInfoCurrentFrame);this.updateToc(cpInfoCurrentFrame);var d={};d.frame=cpInfoCurrentFrame;d.timeInMillSecs=1E3*(cpInfoCurrentFrame/cpInfoFPS);a.em.fireEvent("CPTime_Update",d);if(cpInfoCurrentFrame>this.lastFrame)this.onEndOfMovie();else{if(this.cEnd==cpInfoCurrentFrame){if(a.movie.playbackController&&
(d=a.movie.playbackController.GetQuizController())){var e=a.movie.playbackController.GetLMSType();e&&(e=e.toUpperCase());d.GetIsReportingEnabled()&&("EMAIL"!=e&&"ACROBAT"!=e&&"INTERNALSERVER"!=e)&&(a.m_isLMSPreview&&void 0!=a.LMSDriverHolder&&a.toggleLMSPreviewDebugLogsColor(a.LMSDriverHolder),a.movie.playbackController.SendCourseData(!1))}e=1;cpInfoCurrentSlideIndex&&(e=cpInfoCurrentSlideIndex+1);if(e>=this.slides.length&&a.movie.playbackController&&(d=a.movie.playbackController.GetQuizController())&&
d.DoSubmitAll(cpInfoCurrentSlideIndex)){a.movie.pause(a.ReasonForPause.CANNOT_MOVE_AHEAD);return}if(!this.canUpdateToSlide(e)&&e<this.slides.length){a.movie.pause(a.ReasonForPause.CANNOT_MOVE_AHEAD);return}a.movie.play();var e=cpInfoCurrentFrame,f=!1;if(a.movie.playbackController&&(d=a.movie.playbackController.GetQuizController())){var h=d.GetSlideType(cpInfoCurrentSlideIndex);if("Question"==h||"AnyScoreSlide"==h)f=d.LeaveSlide(cpInfoCurrentSlideIndex)}if("undefined"!=typeof cptb&&cptb.onSlideExit)cptb.onSlideExit(a.D[this.slides[cpInfoCurrentSlideIndex]]);
f||a.movie.frameBasedExecuteAction(this.slideExitAction);if(e!=cpInfoCurrentFrame)return}d=!1;if(this.fallsOutsideCurrentSlide(cpInfoCurrentFrame)){this.currentTransition&&this.currentTransition.reset&&(this.currentTransition.reset(),this.currentTransition=void 0);-1!=this.cEnd&&(c=this.slides[cpInfoCurrentSlideIndex],(d=this.m_interactionManagers[c])&&d.handleSlideExit(),c=a.D[c],c.slideNumber=cpInfoCurrentSlideIndex+1,c.lcpversion=CaptivateVersion,c.frameNumber=cpInfoCurrentFrame,f=-1,a.movie&&
(h=a.movie.playbackController)&&(f=h.GetPercentageSlidesSeen()),c.percentageSlideSeen=f,a.IsRunningInACAP&&(c.navid=this.slides[cpInfoCurrentSlideIndex]),a.em.fireEvent("CPSlideExit",c));this.onEndOfSlide(b);_cpInfoLastVisitedSlide=_cpInfoPrevSlide=cpInfoCurrentSlideIndex;a.movie.cpInfoLastVisitedSlideStartFrame=this.currentSlideStartFrame;e=this.getSlideIndexForFrame(cpInfoCurrentFrame);a.movie.playbackController&&a.movie.playbackController.LeaveCurrentSlide(e);this.loadSlideAtIndex(e);d=!0;a.movie.playbackController&&
a.movie.playbackController.SetCurrentSlide(e);if("undefined"!=typeof cptb&&cptb.onSlideEnter)cptb.onSlideEnter(a.D[this.slides[cpInfoCurrentSlideIndex]]);a.movie.frameBasedExecuteAction(this.slideEnterAction);c=a.D[this.slides[cpInfoCurrentSlideIndex]];c.slideNumber=cpInfoCurrentSlideIndex+1;c.frameNumber=cpInfoCurrentFrame;c.lcpversion=CaptivateVersion;f=-1;a.movie&&(h=a.movie.playbackController)&&(f=h.GetPercentageSlidesSeen());c.percentageSlideSeen=f;a.IsRunningInACAP&&(c.navid=this.slides[cpInfoCurrentSlideIndex]);
a.em.fireEvent("CPSlideEnter",c);"Question Slide"==c.st&&(f={},f.slideNum=c.slideNumber,a.em.fireEvent("CPQuizSlideReached",f));if(c=document.getElementById(this.slides[e]))(c=document.getElementById(c.id+"accStr2"))&&c.focus();c=!1;this.currentTransition=a.getSlideTransition(this.currentSlide)}this.syncMotionToFrame(cpInfoCurrentFrame);this.updateSlideTransition(cpInfoCurrentFrame);this.updateToFrame(cpInfoCurrentFrame,!1,b);a.responsive&&!c&&a.adjustResponsiveItems(a.ReasonForDrawing.kSlideChanged);
b==a.Timeline.ReasonForUpdate.JUMP&&(a.movie.am.seekTo(cpInfoCurrentFrame,c),a.movie.vdm.seekTo(cpInfoCurrentFrame,!0));d&&(b=this.getSlideIndexForFrame(cpInfoCurrentFrame)+1,c=a.movie.stage.getSlideNameForIndex(b),a.multiAudioTrack&&""!=c&&a.movie.am.preload(c),""!=c&&a.movie.vdm.preload(c));c=a.D[this.slides[cpInfoCurrentSlideIndex]];if(0<c.si.length){b=c.si;c=-1;for(d=0;d<b.length;++d)f=b[d],e=document.getElementById(f.n),f.t===a.kCPOTTextEntryBoxItem&&(-1===c?c=d:(f=document.getElementById(b[c].n),
e.tabIndex<f.tabIndex&&(c=d)));-1!==c&&(this.inputField=document.getElementById(b[c].n+"_inputField"))&&this.inputField.focus()}this.pauseAtFrame(cpInfoCurrentFrame);a.movie.paused?1==cpInfoCurrentFrame&&a.movie.am.play(1,!0):a.movie.am.play(cpInfoCurrentFrame)}};a.Timeline.prototype.getNextSkipFrame=function(){if(!1==a.getCpIsPlaying())return cpInfoCurrentFrame;var b=cpInfoCurrentFrame,c=-1,d;for(d in this.noSkipFrames){var e=this.noSkipFrames[d];if(e>=b){c=e;break}}return c};a.Timeline.prototype.canAdvanceCurrentFrameForEffects=
function(b){var c=cpInfoCurrentFrame,d=-1,e;for(e in this.noSkipFrames){var f=this.noSkipFrames[e];if(f>=c){d=f;break}}c=1E3*(d-a.movie.stage.currentSlideStartFrame)/a.getCpInfoOriginalFPS();return b>c?!1:!0};a.Timeline.prototype.attemptToAdvanceCurrentFrameByOffset=function(a){if(!(0>=a)){var c=!0,a=cpInfoCurrentFrame+a,d;for(d in this.noSkipFrames){var e=this.noSkipFrames[d];if(cpInfoCurrentFrame<e&&a>e){a=e;c=!1;break}}d=a;c&&(d={currFrame:a,smoothAdvance:!0});_cpInfoCurrentFrame=d}};a.Timeline.prototype.updateFrameCurrentOnPause=
function(){this.updateToFrame(cpInfoCurrentFrame,!0)};a.Timeline.prototype.pauseAtFrame=function(b){if(!this.paused){this.paused=!1;this.forEachChild(function(c){var e=a.D[(c.suppliedElement||c.element).id],f=a.D[e.mdi].visible;if(b!=a.movie.stage.interactivePauseFrame)if(f&&(c.pa==b||c.rp_pa&&b==c.rp_pa)){if((f=e.handled)&&(a.kCPOTClickBoxItem==e.type||a.kCPOTScorableButtonItem==e.type||a.kCPOTAutoShape==e.type))f=!1;if(!f&&(!e.iqb&&!e.clickedOnce)&&(void 0==e.enabled||e.enabled))if(a.movie.am.interactiveItemFound=
!0,a.D[c.element.id].ssp&&(a.movie.am.ssp=1),a.movie.pause(a.ReasonForPause.INTERACTIVE_ITEM),a.movie.paused&&null!=a.movie.stage.currentSlide)a.movie.stage.currentSlide.topMostObjectInteractiveObject=c.element.id}else if(c.psv==b&&f&&!e.pausedOnce&&(void 0==e.enabled||e.enabled)){if(c=c.children[0])if(f=c.element)if((f=f.firstChild)&&"VIDEO"==f.tagName&&c.started&&(c.paused||c.ended))return;e.pausedOnce=!0;a.movie.pause(a.ReasonForPause.EVENT_VIDEO_PAUSE)}});var c=this.m_interactionManagers[this.slides[cpInfoCurrentSlideIndex]];
void 0!=c&&b!=a.movie.stage.interactivePauseFrame&&c.CheckInteractionPause(b)&&a.movie.pause(a.ReasonForPause.INTERACTIVE_ITEM)}};a.Timeline.prototype.updateAudioCC=function(){if(this.audioCCItems){var b=a.movie.am.slideAudios[a.movie.am.currentSlideAudio];if(b&&b.nativeAudio){var c=b.nativeAudio.currentTime*a.movie.fps,d=0;0!=c&&(d=c+b.from);this.updateCC(this.audioCCItems,this.curAudCCItem,d)}}};a.Timeline.prototype.updateVideoCC=function(a){this.videoCCItems&&this.updateCC(this.videoCCItems,this.curVidCCItem,
a)};a.Timeline.prototype.updateCC=function(b,c,d){if(cpCmndCC){var e=a.movie.ccText,f=a.movie.ccLines,d=d-(this.cStart-1),h=b.length-1,i=1,j=this.cEnd-this.cStart+1;0<=h&&(i=b[h].sf,j=b[h].ef);for(;0<=h;--h)if(i>b[h].sf&&(i=b[h].sf),j<b[h].ef&&(j=b[h].ef),b[h].sf<=d&&b[h].ef>=d){if(c==h)return;var g="",k=b[h].t.split("<br/>");if(0<k.length)for(var g=k[0],l=1;l<k.length&&l<f;++l)g=g+"<br/>"+k[l];e.innerHTML=g}if(d<i||d>j)e.innerHTML=""}};a.Timeline.prototype.updateToFrame=function(b,c,d){if(!(b>this.lastFrame)&&
(this.updateAudioCC(),!this.paused&&!this.yield)){var e=this.lastFrame-b;if(this.fadeInAtStart&&b<=this.fadeInAtStart)this.mainSlideDiv.style.opacity=b/this.fadeInAtStart;else if(this.fadeOutAtEnd&&b>this.lastFrame-this.fadeOutAtEnd)this.mainSlideDiv.style.opacity=e/this.fadeOutAtEnd;else if(!this.currentTransition||!(this.currentTransition.type==a.SlideTransitionType.kFTFade||this.currentTransition.type==a.SlideTransitionType.kFTPhoto))this.mainSlideDiv.style.opacity=1;this.updateVideoCC(b);a.movie.waitingForResources()||
(this.interactivePauseFrame!=b&&(this.interactivePauseFrame=-1),this.forEachChild(function(e){e.considerForUpdate&&(e.isInRange(b)?e.isStarted?c?e.start(c,a.ReasonForDrawing.kMoviePaused):e.updateFrame(d):e.start(c,a.ReasonForDrawing.kRegularDraw):e.isStarted&&e.reset())}),void 0!=this.m_EffectAnimationManager&&(a.movie.PPTXSlide||this.m_SlideHasEffects)&&PPTXLib.updateAnimationManager())}};a.Timeline.prototype.onEndOfSlide=function(a){this.forEachChild(function(c){c.onEndOfSlide(a)})};a.Timeline.prototype.onEndOfMovie=
function(){void 0!=this.onEndOfMovieExecutedFrame&&this.onEndOfMovieExecutedFrame<this.updatingFrame||(this.onEndOfMovieExecutedFrame=this.updatingFrame,a.em.fireEvent("CPMovieStop"),this.forEachChild(function(a){a.onEndOfMovie()}),a.movie.pause(a.ReasonForPause.MOVIE_ENDED),a.movie.frameBasedExecuteAction(this.movieEndAction))};a.Timeline.prototype.syncMotionToFrame=function(a,c){this.forEachChild(function(d){d.isStarted&&d.isInRange(a)&&d.ApplyMotion(a,c)})};a.Timeline.prototype.start=function(){this.paused=
!1;this.element.style.display="block";this.m_keyManager.clearHandlers();this.m_clickManager.clearClicks();1>=cpInfoCurrentFrame&&(_cpInfoCurrentFrame=1);this.updateToFrame(cpInfoCurrentFrame);this.RemoveFeedbacks(a.FeedbackCloseReason.SLIDE_CHANGE);this.clearParentChildMap()};a.Timeline.prototype.reset=function(){this.paused=!1;this.element.style.display="none";this.m_keyManager.clearHandlers();this.m_clickManager.clearClicks();_cpInfoCurrentFrame=0;this.updateToFrame(cpInfoCurrentFrame);this.RemoveFeedbacks(a.FeedbackCloseReason.SLIDE_CHANGE);
this.clearParentChildMap()};a.Timeline.prototype.stop=function(){this.paused=!0}})(window.cp);
(function(a){a.SlideTransitionType={};a.SlideTransitionType.kFTNone=0;a.SlideTransitionType.kFTBlinds=1;a.SlideTransitionType.kFTFade=2;a.SlideTransitionType.kFTFly=3;a.SlideTransitionType.kFTIris=4;a.SlideTransitionType.kFTPhoto=5;a.SlideTransitionType.kFTPixelDissolve=6;a.SlideTransitionType.kFTRotate=7;a.SlideTransitionType.kFTSqeeze=8;a.SlideTransitionType.kFTWipe=9;a.SlideTransitionType.kFTZoom=10;a.getSlideTransition=function(b){if(b){var c=b.transition;if(c)switch(c.type){case a.SlideTransitionType.kFTFade:return new a.FadeInTransition(b);
case a.SlideTransitionType.kFTFly:return new a.FlyTransition(b);case a.SlideTransitionType.kFTIris:return new a.IrisTransition(b);case a.SlideTransitionType.kFTPhoto:return new a.PhotoTransition(b);case a.SlideTransitionType.kFTRotate:return new a.RotateTransition(b);case a.SlideTransitionType.kFTSqeeze:return new a.SqueezeTransition(b);case a.SlideTransitionType.kFTZoom:return new a.ZoomTransition(b);case a.SlideTransitionType.kFTBlinds:return new a.BlindsTransition(b);case a.SlideTransitionType.kFTPixelDissolve:return new a.PixelTransition(b);
case a.SlideTransitionType.kFTWipe:return new a.WipeTransition(b);default:return new a.SlideTransition(b)}}};a.SlideTransition=function(b){this.item=a("div_Slide");this.data=b.transition;this.duration=15;this.from=b.from;this.type=a.SlideTransitionType.kFTNone};a.SlideTransition.prototype={update:function(){},isCompleted:function(a){return 0<a-this.from-this.duration},reset:function(){}};a.FadeInTransition=function(b){a.FadeInTransition.baseConstructor.call(this,b);a("div_Slide");this.finalOpacity=
1;this.type=a.SlideTransitionType.kFTFade};a.inherits(a.FadeInTransition,a.SlideTransition);a.FadeInTransition.prototype.reset=function(){this.item.style.opacity="1"};a.FadeInTransition.prototype.update=function(a){this.isCompleted(a)||(this.item.style.opacity=((a-this.from)*this.finalOpacity/this.duration).toString())};a.FlyTransition=function(b){a.FlyTransition.baseConstructor.call(this,b);this.steps=this.item.clientWidth/this.duration;this.type=a.SlideTransitionType.kFTFly};a.inherits(a.FlyTransition,
a.SlideTransition);a.FlyTransition.prototype.reset=function(){this.item.style.left="0px"};a.FlyTransition.prototype.update=function(a){this.isCompleted(a)||(this.item.style.left=(a-this.from)*this.steps-this.item.clientWidth+"px")};a.IrisTransition=function(b){a.IrisTransition.baseConstructor.call(this,b);this.stepsH=1/this.duration;this.stepsV=1/this.duration;this.item.style["-ms-transform-origin"]="center";this.item.style["-moz-transform-origin"]="center";this.item.style["-webkit-transform-origin"]=
"center";this.item.style["-o-transform-origin"]="center";this.item.style["transform-origin"]="center";a.applyTransform(this.item,"scale(0,0)");this.type=a.SlideTransitionType.kFTIris};a.inherits(a.IrisTransition,a.SlideTransition);a.IrisTransition.prototype.reset=function(){a.applyTransform(this.item,"")};a.IrisTransition.prototype.update=function(b){this.isCompleted(b)||a.applyTransform(this.item,"scale("+(b-this.from)*this.stepsH+","+(b-this.from)*this.stepsV+")")};a.PhotoTransition=function(b){a.PhotoTransition.baseConstructor.call(this,
b);this.type=a.SlideTransitionType.kFTPhoto};a.inherits(a.PhotoTransition,a.SlideTransition);a.PhotoTransition.prototype.reset=function(){this.item.style.opacity="1"};a.PhotoTransition.prototype.update=function(a){this.isCompleted(a)||(a-=this.from,this.item.style.opacity=10>=a?(a/this.duration).toString():13>=a?"0":"1")};a.RotateTransition=function(b){a.RotateTransition.baseConstructor.call(this,b);this.stepsR=90/this.duration;a.applyTransform(this.item,"rotate(-90deg)");this.type=a.SlideTransitionType.kFTRotate};
a.inherits(a.RotateTransition,a.SlideTransition);a.RotateTransition.prototype.reset=function(){a.applyTransform(this.item,"")};a.RotateTransition.prototype.update=function(b){this.isCompleted(b)||(this.item.style["-ms-transform-origin"]="left top",this.item.style["-moz-transform-origin"]="left top",this.item.style["-webkit-transform-origin"]="left top",this.item.style["-o-transform-origin"]="left top",this.item.style["transform-origin"]="left top",a.applyTransform(this.item,"rotate("+(this.duration-
(b-this.from))*this.stepsR+"deg)"))};a.SqueezeTransition=function(b){a.SqueezeTransition.baseConstructor.call(this,b);this.stepsH=1/this.duration;a.applyTransform(this.item,"scale(0,1)");this.type=a.SlideTransitionType.kFTSqeeze};a.inherits(a.SqueezeTransition,a.SlideTransition);a.SqueezeTransition.prototype.reset=function(){a.applyTransform(this.item,"")};a.SqueezeTransition.prototype.update=function(b){this.isCompleted(b)||a.applyTransform(this.item,"scale("+(b-this.from)*this.stepsH+",1)")};a.ZoomTransition=
function(b){a.ZoomTransition.baseConstructor.call(this,b);this.stepsH=1/this.duration;this.stepsV=1/this.duration;this.item.style["-ms-transform-origin"]="left top";this.item.style["-moz-transform-origin"]="left top";this.item.style["-webkit-transform-origin"]="left top";this.item.style["-o-transform-origin"]="left top";this.item.style["transform-origin"]="left top";a.applyTransform(this.item,"scale(0,0)");this.type=a.SlideTransitionType.kFTZoom};a.inherits(a.ZoomTransition,a.SlideTransition);a.ZoomTransition.prototype.reset=
function(){a.applyTransform(this.item,"")};a.ZoomTransition.prototype.update=function(b){this.isCompleted(b)||a.applyTransform(this.item,"scale("+(b-this.from)*this.stepsH+","+(b-this.from)*this.stepsV+")")};a.BlindsTransition=function(b){a.BlindsTransition.baseConstructor.call(this,b);b=a("div_Slide");this.item=a("slide_transition_canvas");this.item.width=b.clientWidth;this.item.height=b.clientHeight;this.gc=this.item.getContext("2d");this.totalRects=10;this.hsteps=this.item.width;this.vstepsMajor=
this.item.height/this.totalRects;this.vstepsMinor=this.vstepsMajor/this.duration;this.type=a.SlideTransitionType.kFTBlinds};a.inherits(a.BlindsTransition,a.SlideTransition);a.BlindsTransition.prototype.reset=function(){this.gc.fillStyle="rgba(255, 255, 255, 1)";this.gc.fillRect(0,0,this.item.width,this.item.height);this.item.style.display="none"};a.BlindsTransition.prototype.update=function(a){if(this.isCompleted(a))this.item.style.display="none";else{this.item.style.display="block";this.gc.fillStyle=
"rgba(255, 255, 255, 1)";this.gc.fillRect(0,0,this.item.width,this.item.height);for(var a=(a-this.from)*this.vstepsMinor,c=0;c<this.totalRects;++c)this.gc.clearRect(0,c*this.vstepsMajor,this.hsteps,a)}};a.PixelTransition=function(b){a.PixelTransition.baseConstructor.call(this,b);b=a("div_Slide");this.item=a("slide_transition_canvas");this.item.width=b.clientWidth;this.item.height=b.clientHeight;this.gc=this.item.getContext("2d");this.totalHPixels=this.item.width;this.totalVPixels=this.item.height;
this.totalRects=this.totalHPixels*this.totalVPixels;this.pixelArr=[];for(b=0;b<this.totalRects;++b)this.pixelArr.push(b);this.gc.fillStyle="rgba(255, 255, 255, 1)";this.gc.fillRect(0,0,this.item.width,this.item.height);this.type=a.SlideTransitionType.kFTPixelDissolve};a.inherits(a.PixelTransition,a.SlideTransition);a.PixelTransition.prototype.reset=function(){this.gc.fillStyle="rgba(255, 255, 255, 1)";this.gc.fillRect(0,0,this.item.width,this.item.height);this.item.style.display="none"};a.PixelTransition.prototype.update=
function(a){if(this.isCompleted(a))this.item.style.display="none";else{this.item.style.display="block";for(a=0;0<this.pixelArr.length&&a<this.totalRects/this.duration;++a){var c=Math.floor(Math.random()*this.pixelArr.length),d=c;this.pixelArr.splice(c,1);this.gc.clearRect(d/this.totalVPixels,d/this.totalHPixels,1,1)}}};a.WipeTransition=function(b){a.WipeTransition.baseConstructor.call(this,b);b=a("div_Slide");this.item=a("slide_transition_canvas");this.item.width=b.clientWidth;this.item.height=b.clientHeight;
this.gc=this.item.getContext("2d");this.steps=this.item.width/this.duration;this.gc.fillStyle="rgba(255, 255, 255, 1)";this.gc.fillRect(0,0,this.item.width,this.item.height);this.type=a.SlideTransitionType.kFTWipe};a.inherits(a.WipeTransition,a.SlideTransition);a.WipeTransition.prototype.reset=function(){this.gc.fillStyle="rgba(255, 255, 255, 1)";this.gc.fillRect(0,0,this.item.width,this.item.height);this.item.style.display="none";this.item.style.left="0px"};a.WipeTransition.prototype.update=function(a){this.isCompleted(a)||
(this.item.style.display="block",this.item.style.left=(a-this.from)*this.steps+"px")}})(window.cp);
(function(b){function n(a){var c=a;a&&a.sicbs&&void 0!==a.bstiid&&-1!==a.bstiid&&(c=b.D[b.getDisplayObjNameByCP_UID(a.bstiid)]);return c}b.clickHandler=function(a){b.clickSuccessHandler(b.D[a.id])};b.ch=function(a){return b.clickHandler(a)};b.wch=function(a){return b.HandleInteractiveWidget(a)};b.clickSuccessHandler=function(a){if(a=n(a)){!1==a.cpa&&(a.clickedOnce=!0);a.ssc&&b.movie.am.pauseCurrentSlideAudioForInteractiveClick();var c=a.ca;c&&b.movie.am.playPauseEventAudio(c,!0);var c=a.osct,e=a.osc,
d=a.oca,g=null,h=!0;void 0==e&&(h=!1);void 0!=e&&2>e.length&&(h=!1);c&&h&&(g=d);var i=1==a.pfc&&c;a.handled&&(i=!1);var f=null;h&&(f=new b.Feedback(e,g,i,b.FeedbackType.SUCCESS,a));(!c||!h)&&b.movie.executeAction(d);h&&f.show();return!0}return!1};b.clickFailureHandler=function(a,c,e){var d=!1;if(a=n(a)){if(a.handled&&"cpCmndResume = 1;"==a.oca)return!0;var g=a.ofct,d=a.ofc,h=a.ofa;if(!d||2>d.length)e=!1;var i=null;g&&(c&&e)&&(i=h);var f=null;e&&(f=new b.Feedback(d,i,!1,b.FeedbackType.FAILURE,a));
d=!0;(!g||!e)&&c?(!1==a.cpa&&(a.clickedOnce=!0),b.movie.executeAction(h)):d=!1;e?f.show():d=!1}return d};b.cbKH=function(a,c,e){if(!a)return!1;var d=a.stl,g=a&&a.enabled&&c&&c.visible;if(!1==g&&d&&0<d.length)for(var h=0;h<d.length&&!g;h++){var i=d[h];if(i&&(i=i.stsi)&&0<i.length)for(var f=0;f<i.length;f++){var g=b.getDisplayObjNameByCP_UID(i[f]),g=b.D[g],k=b.getDisplayObjByKey(g.mdi),g=g&&g.enabled&&k&&k.visible;if(!0==g)break}}if(!g||a.actionInProgress)return!1;var j,d=0,h=!1,h=a.currentAttempt;
void 0!=h&&(d=h);void 0!=c&&(j=c.dn);if(e)return j&&b.SubmitInteractions(j,b.QuestionStatusEnum.CORRECT,d),h=b.clickSuccessHandler(a),a.handled=!0,h;c=a.ma;d+=1;a.currentAttempt=d;e=-1!=c&&d==c;h=-1==c||d<=c;j&&b.SubmitInteractions(j,b.QuestionStatusEnum.INCORRECT,d-1);h=b.clickFailureHandler(a,e,h);a.handled||(a.handled=-1!=c&&d>=c);return h};b.qbKH=function(a,c,e){if(!a||!c)return!1;var d=a.stl,g=a.enabled&&c.visible;if(!1==g&&d&&0<d.length)for(var h=0;h<d.length&&!g;h++){var i=d[h];if(i&&(i=i.stsi)&&
0<i.length)for(var f=0;f<i.length;f++){var g=b.getDisplayObjNameByCP_UID(i[f]),g=b.D[g],k=b.getDisplayObjByKey(g.mdi),g=g&&g.enabled&&k&&k.visible;if(!0==g)break}}if(!g)return!1;a=a.qbt;if(!a||!e)return!1;c=c.dn;if(!c)return!1;c=document.getElementById(c);if(!c)return!1;e=!1;switch(a){case "clear":b.quizClearButtonClickHandler(c);e=!0;break;case "back":b.quizBackButtonClickHandler(c);e=!0;break;case "skip":b.quizSkipButtonClickHandler(c);e=!0;break;case "submit":b.quizSubmitButtonClickHandler(c);
e=!0;break;case "submitAll":b.quizSubmitAllButtonClickHandler(c);e=!0;break;case "continue":b.quizContinueButtonClickHandler(c);e=!0;break;case "review":b.quizReviewButtonClickHandler(c);e=!0;break;case "retake":b.quizRetakeButtonClickHandler(c);e=!0;break;case "reviewModeNext":b.quizReviewModeNextButtonClickHandler(c);e=!0;break;case "reviewModeBack":b.quizReviewModeBackButtonClickHandler(c),e=!0}return e};b.isTEBValueCorrect=function(a,c){if(!c.vuin)return!0;var b=document.getElementById(a+"_inputField");
if(!b)return!1;var b=b.value,d=c.exp||[],g=c.cs,h=d.length,i=!1;if(0==h&&""==b)return!0;for(var f=0;f<h&&!i;++f)i=g?b==d[f]:b.toLowerCase()==d[f].toLowerCase();return i};b.tebKH=function(a,c,e){var d=!1,g=0,d=1E3,h=!1,i;if(!a)return!1;if(c&&c.keyHandledOnce)return c.keyHandledOnce=!1;if(!e||a&&a.handled)return!1;var e=a.stl,f=a&&a.enabled&&c&&c.visible;if(!1==f&&e&&0<e.length)for(d=0;d<e.length&&!f;d++)if(h=e[d])if((h=h.stsi)&&0<h.length)for(var k=0;k<h.length;k++){var f=b.getDisplayObjNameByCP_UID(h[k]),
f=b.D[f],j=b.getDisplayObjByKey(f.mdi),f=f&&f.enabled&&j&&j.visible;if(!0==f)break}if(!f)return!1;e=a.currentAttempt;void 0!=e&&(g=e);void 0!=c&&(i=c.dn);if(d=b.isTEBValueCorrect(a.id,a))return a.handled=!0,i&&b.SubmitInteractions(i,b.QuestionStatusEnum.CORRECT,g),b.clickSuccessHandler(a);d=a.ma;g+=1;a.currentAttempt=g;h=-1!=d&&g==d;c=-1==d||g<=d;a.handled||(a.handled=-1!=d&&g>=d);i&&b.SubmitInteractions(i,b.QuestionStatusEnum.INCORRECT,g-1);return b.clickFailureHandler(a,h,c)};b.ClickData=function(a,
c,b){this.m_obj=a;this.m_objc=c;this.m_htmlElem=b;this.m_from=a.from;this.m_to=a.to};b.ClickData.prototype.isValid=function(){return void 0!=this.m_obj&&void 0!=this.m_objc&&void 0!=this.m_htmlElem&&this.m_to>=this.m_from};b.ClickData.prototype.isClickable=function(a){return!this.m_obj||!this.m_obj.enabled||!this.m_objc||!this.m_objc.visible?!1:this.m_from<=a&&a<=this.m_to};b.ClickManager=function(){this.m_rightClickArr=[];this.m_doubleClickArr=[]};b.ClickManager.prototype.addRightClick=function(a,
c,e){a=new b.ClickData(a,c,e);this.m_rightClickArr.push(a)};b.ClickManager.prototype.addDoubleClick=function(a,c,e){a=new b.ClickData(a,c,e);this.m_doubleClickArr.push(a)};b.ClickManager.prototype.removeRightClick=function(a){for(var c=0,c=0;c<this.m_rightClickArr.length;++c)if(this.m_rightClickArr[c].m_obj==a){this.m_rightClickArr.splice(c,1);break}};b.ClickManager.prototype.removeDoubleClick=function(a){for(var c=0,c=0;c<this.m_doubleClickArr.length;++c)if(this.m_doubleClickArr[c].m_obj==a){this.m_doubleClickArr.splice(c,
1);break}};b.ClickManager.prototype.clearClicks=function(){this.m_rightClickArr=[];this.m_doubleClickArr=[]};b.ClickManager.prototype.getRightClickArr=function(a){for(var c=[],b=0,b=this.m_rightClickArr.length-1;0<=b;--b)this.m_rightClickArr[b].isClickable(a)&&c.push(this.m_rightClickArr[b]);return c};b.ClickManager.prototype.getDoubleClickArr=function(a){for(var c=[],b=0,b=this.m_doubleClickArr.length-1;0<=b;--b)this.m_doubleClickArr[b].isClickable(a)&&c.push(this.m_doubleClickArr[b]);return c};
b.Shortcut=function(a,b,e,d){this.m_keyCode=void 0!=a?a:null;this.m_isCtrl=void 0!=b&&b?b:!1;this.m_isShift=void 0!=e&&e?e:!1;this.m_isAlt=void 0!=d&&d?d:!1};b.Shortcut.prototype.isValid=function(){return void 0!=this.m_keyCode&&null!=this.m_keyCode};b.Shortcut.prototype.isSame=function(a){return this.m_keyCode==a.m_keyCode&&this.m_isCtrl==a.m_isCtrl&&this.m_isShift==a.m_isShift&&this.m_isAlt==a.m_isAlt};b.getShortCutFromKeyEvent=function(a){return new b.Shortcut(a.keyCode,1==a.ctrlKey,1==a.shiftKey,
1==a.altKey)};b.KeyHandler=function(a,c,e,d,g){this.m_handler=a;this.m_shortcut=null;c instanceof b.Shortcut&&(this.m_shortcut=c);this.m_startFrame=e;this.m_endFrame=d;this.m_name=g};b.KeyHandler.prototype.isValid=function(){return this.m_handler&&this.m_shortcut};b.SHIFT=16;b.CONTROL=17;b.ALT=18;b.KeyManager=function(){this.m_keys=[];this.m_shift=this.m_alt=this.m_ctrl=!1;this.m_keyHandlers=[];this.m_prevKeyCode=!1};b.KeyManager.prototype.handleKeyDown=function(a){a:{var c=this.m_prevKeyCode=!1;
a.keyCode==b.SHIFT?c=this.m_shift=!0:a.keyCode==b.CONTROL?c=this.m_ctrl=!0:a.keyCode==b.ALT&&(c=this.m_alt=!0);this.m_shift=1==a.shiftKey;this.m_ctrl=1==a.ctrlKey;this.m_alt=1==a.altKey;if(!c){for(c=0;c<this.m_keys.length;++c)if(a.keyCode==this.m_keys[c])break a;this.m_keys.push(a.keyCode)}}};b.KeyManager.prototype.handleKeyUp=function(a){this.check(a);a:{this.m_prevKeyCode=!0;var c=!1;a.keyCode==b.SHIFT?(this.m_shift=!1,c=!0):a.keyCode==b.CONTROL?(this.m_ctrl=!1,c=!0):a.keyCode==b.ALT&&(this.m_alt=
!1,c=!0);this.m_shift=1==a.shiftKey;this.m_ctrl=1==a.ctrlKey;this.m_alt=1==a.altKey;if(!c)for(c=0;c<this.m_keys.length;++c)if(a.keyCode==this.m_keys[c]){this.m_keys.splice(c,1);break a}}};b.KeyManager.prototype.handleFocusOut=function(){this.m_keys=[];this.m_shift=this.m_alt=this.m_ctrl=!1};b.KeyManager.prototype.check=function(a){for(var b=null,e=cpInfoCurrentFrame,d=0,g=!1,h=null,d=0;d<this.m_keyHandlers.length;++d)if(b=this.m_keyHandlers[d],b.m_startFrame<=e&&b.m_endFrame>=e){for(var g=b.m_shortcut,
i=!1,f=0;f<this.m_keys.length&&!i;++f)g.m_keyCode==this.m_keys[f]&&(i=!0);if(g=!i?0==g.m_keyCode&&0==this.m_keys.length&&!this.m_prevKeyCode&&(g.m_isCtrl&&this.m_ctrl&&!this.m_shift&&!this.m_alt||g.m_isShift&&this.m_shift&&!this.m_ctrl&&!this.m_alt)?!0:!1:this.m_ctrl==g.m_isCtrl&&this.m_shift==g.m_isShift&&this.m_alt==g.m_isAlt){h=b;if(b.m_handler(g))return!0;break}}for(d=0;d<this.m_keyHandlers.length;++d)if(b=this.m_keyHandlers[d],h!=b&&!1!=b.m_shortcut.isValid()&&b.m_startFrame<=e&&b.m_endFrame>=
e&&b.m_handler(!1))return!0;var k;a.keyCode?k=a.keyCode:a.which&&(k=a.which);if(13==k||32==k){var j,h="";a.target?j=a.target:a.srcElement&&(j=a.srcElement);3==j.nodeType&&(j=j.parentNode);j&&(h=j.id);if(""!=h)for(d=0;d<this.m_keyHandlers.length;++d)if(b=this.m_keyHandlers[d],b.m_name==h&&b.m_startFrame<=e&&b.m_endFrame>=e&&b.m_handler(!0))return!0}return!1};b.KeyManager.prototype.addHandler=function(a){a&&a.isValid()&&this.m_keyHandlers.push(a)};b.KeyManager.prototype.clearHandlers=function(){this.m_keyHandlers=
[]};b.MouseOverManager=function(){this.m_TimerID=this.m_mouseOutHandler=this.m_mouseOverItem=void 0};b.MouseOverManager.prototype.addMouseOverItem=function(a,c){b.DESKTOP===b.device&&(c&&a)&&(this.DoMouseOutOnCurrMouseOverItem(),this.m_mouseOverItem=a,this.m_mouseOutHandler=c)};b.MouseOverManager.prototype.removeMouseOverItem=function(a){b.DESKTOP===b.device&&a&&this.m_mouseOverItem===a&&(this.m_mouseOutHandler=this.m_mouseOverItem=void 0)};b.MouseOverManager.prototype.DoMouseOutOnCurrMouseOverItem=
function(){b.DESKTOP===b.device&&void 0!==this.m_mouseOverItem&&(this.m_mouseOutHandler&&this.m_mouseOutHandler(),this.m_mouseOutHandler=this.m_mouseOverItem=void 0)};b.MouseOverManager.prototype.CheckIfCurrMouseOverItemIsHit=function(a){if(b.DESKTOP===b.device){var c=!1;if(!a||void 0===this.m_mouseOverItem)return c;if(this.m_mouseOverItem.actualParent){var e=this.m_mouseOverItem.actualParent.id,d=a.id,a=b.D[a.id];if(!a)return c;void 0!==a.bstiid&&-1!==a.bstiid&&(d=b.getDisplayObjNameByCP_UID(a.bstiid));
c=e===d}return c}};b.MouseOverManager.prototype.handleMouseMove=function(a){function c(){e.m_TimerID=void 0;if(void 0!==e.m_mouseOverItem){var c;a:{var g=b.getScaledPosition(getPageX(a),getPageY(a));c=g.X-window.pageXOffset;for(var g=g.Y-window.pageYOffset,h=b("div_Slide").childNodes,i=h.length-1;0<=i;--i){var f=h[i];if("DIV"==f.nodeName&&"block"==f.style.display&&(currElementDivData=b.D[f.id])&&b.D[currElementDivData.mdi].visible){drawingItemDivData=b.D[currElementDivData.mdi];var k=0,j=0,o=0,l=
0;if(void 0==f.getBoundingClientRect)k=parseFloat(f.style.left),j=parseFloat(f.style.top),o=parseFloat(f.style.left)+parseFloat(f.style.width),l=parseFloat(f.style.top)+parseFloat(f.style.height);else{var n;f.rotateAngle&&(n=f.style.transform||f.style.msTransform||f.style.MozTransform||f.style.WebkitTransform||f.style.OTransform,b.applyTransform(f,"rotate(0)"));f.offsetHeight=f.offsetHeight;l=b.getHitTestingRect(f);f.rotateAngle&&b.applyTransform(f,n);k=l.minX;j=l.minY;o=l.maxX;l=l.maxY}var m=0;f.rotateAngle&&
(m=f.rotateAngle);var p=c,q=g,p=p-(k+o)/2,q=q-(j+l)/2,r=p*Math.cos(Math.PI*-m/180)-q*Math.sin(Math.PI*-m/180),m=p*Math.sin(Math.PI*-m/180)+q*Math.cos(Math.PI*-m/180),r=r+(k+o)/2,m=m+(j+l)/2;if(r>=k&&r<=o&&m>=j&&m<=l){c=f;break a}}}c=void 0}void 0!==c&&!1==e.CheckIfCurrMouseOverItemIsHit(c)&&e.DoMouseOutOnCurrMouseOverItem()}}if(b.DESKTOP===b.device)if(void 0===this.m_mouseOverItem)void 0!==this.m_TimerID&&(clearTimeout(this.m_TimerID),this.m_TimerID=void 0);else{var e=this;void 0!==this.m_TimerID&&
(clearTimeout(this.m_TimerID),this.m_TimerID=void 0);this.m_TimerID=setTimeout(c,300)}}})(window.cp);
(function(b){b.Gradient=function(a,f,d){b.Gradient.baseConstructor.call(this,a);this.visible=1;this.parentId=f;if(this.parentObj=b.D[f])this.gradientData=this.parentObj.gf,a=this.gradientData.b,this.bounds={minX:a[0],minY:a[1],maxX:a[2],maxY:a[3]},this.args=d;this.isDrawn=!1};b.inherits(b.Gradient,b.DisplayObject);b.Gradient.prototype.start=function(a,b){this.drawIfNeeded(a,b);if(!this.effectIsStarted||a)this.updateEffects(this.hasEffect),this.effectIsStarted=!0};b.Gradient.prototype.reset=function(){delete b.ropMap[this.element.id];
this.isDrawn=!1;this.element.width="0";this.element.height="0";this.element.style.width="0px";this.element.style.height="0px";this.element.left="0";this.element.top="0";this.element.style.left="0px";this.element.style.top="0px";this.effectIsStarted=!1};b.Gradient.prototype.drawIfNeeded=function(a,f){if((!b.responsive||!this.drawForResponsive(a,f))&&!this.isDrawn&&this.gradientData){if(void 0==this.canvasElem)for(var d=this.element.firstChild;d;d=d.nextSibling)if(d.nodeType==Node.ELEMENT_NODE&&d.id&&
d.id==this.parentId+"gf"){this.canvasElem=d;break}if(this.canvasElem){var c=this.bounds,e=c.minX,g=c.minY,d=c.maxX-c.minX,c=c.maxY-c.minY;this.canvasElem.style.position="absolute";e=(this.canvas=b.createCanvas(e,g,d,c,this.canvasElem)).gc;e.save();if(g=b.getGradientFill(this.gradientData,e))e.fillStyle=g,e.fillRect(0,0,d,c);e.restore();this.isDrawn=!0}}};b.Gradient.prototype.drawForResponsive=function(a){if(!b.responsive)return!1;if(this.isDrawn&&!a)return!0;if(!this.gradientData)return!1;if(void 0==
this.canvasElem)for(a=this.element.firstChild;a;a=a.nextSibling)if(a.nodeType==Node.ELEMENT_NODE&&a.id&&a.id==this.parentId+"gf"){this.canvasElem=a;break}if(!this.canvasElem)return!1;this.canvasElem.style.width="100%";this.canvasElem.style.height="100%";a=b.createResponsiveStyleObj(void 0,void 0,"0px","0px",void 0,void 0,"100%","100%",void 0);a.ipiv=!0;a=(this.canvas=b.createResponsiveCanvas(a,this.canvasElem.clientWidth,this.canvasElem.clientHeight,this.canvasElem)).gc;a.save();var f=b.getGradientFill(this.gradientData,
a,this.canvasElem.clientWidth/b.D.project.w,this.canvasElem.clientHeight/b.D.project.h);f&&(a.fillStyle=f,a.fillRect(0,0,this.canvasElem.clientWidth,this.canvasElem.clientHeight));a.restore();return this.isDrawn=!0};b.ImageFill=function(a,f,d){b.ImageFill.baseConstructor.call(this,a);this.visible=1;this.parentId=f;if(this.parentObj=b.D[f])this.tileData=this.parentObj.imgf,a=this.tileData.b,this.bounds={minX:a[0],minY:a[1],maxX:a[2],maxY:a[3]},this.args=d;this.isDrawn=!1};b.inherits(b.ImageFill,b.DisplayObject);
b.ImageFill.prototype.start=function(a,b){this.drawIfNeeded(a,b);if(!this.effectIsStarted||a)this.updateEffects(this.hasEffect),this.effectIsStarted=!0};b.ImageFill.prototype.reset=function(){delete b.ropMap[this.element.id];this.isDrawn=!1;this.element.width="0";this.element.height="0";this.element.style.width="0px";this.element.style.height="0px";this.element.left="0";this.element.top="0";this.element.style.left="0px";this.element.style.top="0px"};b.ImageFill.prototype.getTranslationValuesForTiletype=
function(a){var f=a.img.tiletype,d=0,c=0,e=a.b[2]-a.b[0],g=a.b[3]-a.b[1],h=a.img.w,a=a.img.h,i=this.canvasElem.clientWidth/b.D.project.w,j=this.canvasElem.clientHeight/b.D.project.h;b.responsive&&(e=Math.floor(e*i),g=Math.floor(g*j));switch(f){case "t":d=(e-h)/2;break;case "tr":d=e-h;break;case "l":c=(g-a)/2;break;case "c":d=(e-h)/2;c=(g-a)/2;break;case "r":d=e-imageWidthimageWidth;c=(g-a)/2;break;case "bl":c=g-a;break;case "b":d=(e-h)/2;c=g-a;break;case "br":d=e-h,c=g-a}0<d&&(d=d%h-h);0<c&&(c=c%
a-a);return{x:d,y:c}};b.ImageFill.prototype.drawIfNeeded=function(a,f){if((!b.responsive||!this.drawForResponsive(a,f))&&!this.isDrawn&&this.tileData&&this.tileData.img&&this.tileData.img.ip){if(void 0==this.canvasElem)for(var d=this.element.firstChild;d;d=d.nextSibling)if(d.nodeType==Node.ELEMENT_NODE&&d.id&&d.id==this.parentId+"imgf"){this.canvasElem=d;break}if(this.canvasElem){var c=this.bounds,e=c.minX,g=c.minY,d=c.maxX-c.minX,h=c.maxY-c.minY;this.canvasElem.style.position="absolute";this.canvasElem.style.backgroundColor=
"#FFFFFF";if((c=b.movie.im.images[this.tileData.img.ip])&&c.nativeImage.complete)e=(this.canvas=b.createCanvas(e,g,d,h,this.canvasElem)).gc,e.save(),g=this.tileData.s,this.tileData.t?(e.rect(0,0,d,h),d=this.getTranslationValuesForTiletype(this.tileData),e.translate(d.x,d.y),d=e.createPattern(c.nativeImage,"repeat"),e.fillStyle=d,e.fill()):g?e.drawImage(c.nativeImage,0,0,d,h):(e.translate((d-this.tileData.img.w)/2,(h-this.tileData.img.h)/2),e.drawImage(c.nativeImage,0,0)),e.restore(),this.isDrawn=
!0}}};b.ImageFill.prototype.drawForResponsive=function(a){if(!b.responsive)return!1;if(this.isDrawn&&!a)return!0;if(!this.tileData||!this.tileData.img||!this.tileData.img.ip)return!1;if(void 0==this.canvasElem)for(a=this.element.firstChild;a;a=a.nextSibling)if(a.nodeType==Node.ELEMENT_NODE&&a.id&&a.id==this.parentId+"imgf"){this.canvasElem=a;break}if(!this.canvasElem)return!1;var f=this.bounds,a=f.maxX-f.minX,d=f.maxY-f.minY;this.canvasElem.style.width="100%";this.canvasElem.style.height="100%";this.canvasElem.style.position=
"absolute";this.canvasElem.style.backgroundColor="#FFFFFF";if((f=b.movie.im.images[this.tileData.img.ip])&&f.nativeImage.complete){var c=b.createResponsiveStyleObj(void 0,void 0,"0px","0px",void 0,void 0,"100%","100%",void 0);c.ipiv=!0;c=(this.canvas=b.createResponsiveCanvas(c,this.canvasElem.clientWidth,this.canvasElem.clientHeight,this.canvasElem)).gc;c.save();var e=this.tileData.s;if(this.tileData.t)c.rect(0,0,this.canvasElem.clientWidth,this.canvasElem.clientHeight),a=this.getTranslationValuesForTiletype(this.tileData),
c.translate(a.x,a.y),a=c.createPattern(f.nativeImage,"repeat"),c.fillStyle=a,c.fill();else if(e)c.drawImage(f.nativeImage,0,0,this.canvasElem.clientWidth,this.canvasElem.clientHeight);else{var e=this.canvasElem.clientWidth/b.D.project.w,g=this.canvasElem.clientHeight/b.D.project.h,h=f.nativeImage.width*e,i=f.nativeImage.height*g;c.translate(Math.floor((a*e-h)/2),Math.floor((d*g-i)/2));c.drawImage(f.nativeImage,0,0,Math.floor(h),Math.floor(i))}c.restore();return this.isDrawn=!0}return!1}})(window.cp);
(function(g){g.SlideGraphManager=function(){this.m_CurrentBranch=[];this.m_BranchHistory=[];this.m_SlideGraphObj={};this.m_RootSlideIndex=-1;this.m_InvalidSlideJump=!1;this.m_CompletionBranch=[];this.m_CompletionBranchSet=!1;this.m_CompletionBranchSlideCount=-1;this.m_CompletionBranchSlideCountSet=!1;this.m_BranchNumber=0;this.m_PrevBranch=[];this.BranchEnum||(this.BranchEnum={},this.BranchEnum.kBranchNotFound=0,this.BranchEnum.kBranchFound=1,this.BranchEnum.kLoopBranchFound=2,this.BranchEnum.kMultipleBranchFound=
3)};g.SlideGraphManager.prototype={countUniqItems:function(a){for(var b={},c=0,d=0;d<a.length;++d){var e=a[d];void 0==b[e]&&(b[e]=e,++c)}return c},findCompletionBranchTraverse:function(a,b,c){var d=!1,e=-1;!d&&void 0==this.m_SlideGraphObj[a]&&(e=this.BranchEnum.kBranchFound,d=!0);!d&&void 0!=c[a]&&(e=this.BranchEnum.kLoopBranchFound,d=!0);b.push(a);c[a]=a;if(d){++this.m_BranchNumber;if(1==this.m_BranchNumber)return this.m_CompletionBranch=this.m_CurrentBranch.concat(b),this.m_CompletionBranchSet=
!0,e==this.BranchEnum.kLoopBranchFound&&a==b[0]||(this.m_CompletionBranchSlideCount=this.countUniqItems(this.m_CurrentBranch.concat(b)),this.m_CompletionBranchSlideCountSet=!0),b.pop(),delete c[a],this.BranchEnum.kBranchFound;if(2<=this.m_BranchNumber){this.m_CompletionBranchSet=!1;if(this.m_CompletionBranchSlideCountSet){var f=this.countUniqItems(this.m_CurrentBranch.concat(b));if(!(e==this.BranchEnum.kLoopBranchFound&&a==b[0])&&f==this.m_CompletionBranchSlideCount)return b.pop(),delete c[a],this.BranchEnum.kBranchFound;
this.m_CompletionBranchSlideCountSet=!1;b.pop();delete c[a];return this.BranchEnum.kMultipleBranchFound}b.pop();delete c[a];return this.BranchEnum.kMultipleBranchFound}}e=this.m_SlideGraphObj[a];d=!1;for(f in e)switch(this.findCompletionBranchTraverse(Number(f),b,c)){case this.BranchEnum.kBranchFound:d=!0;case this.BranchEnum.kBranchNotFound:break;case this.BranchEnum.kMultipleBranchFound:return this.BranchEnum.kMultipleBranchFound}b.pop();delete c[a];return d?this.BranchEnum.kBranchFound:this.BranchEnum.kBranchNotFound},
findCompletionBranch:function(){this.m_CompletionBranch=[];this.m_CompletionBranchSet=!1;this.m_BranchNumber=0;this.findCompletionBranchTraverse(1<=this.m_CurrentBranch.length?this.m_CurrentBranch[this.m_CurrentBranch.length-1]:this.m_RootSlideIndex,[],{})},initialize:function(){if(g.D.baq){var a=g.D.sgMgr;if(void 0!=a){var b=a.ri,a=a.sg;if(!(void 0==b||void 0==a)){this.m_InvalidSlideJump=!1;this.m_RootSlideIndex=b;for(b=0;b<a.length;++b){var c=a[b];if(!(void 0==c||2!=c.length)){this.m_SlideGraphObj[c[0]]=
{};for(var d=c[1],e=0;e<d.length;++e){var f=d[e];if(!(void 0==f||2!=f.length)){this.m_SlideGraphObj[c[0]][f[0]]={};for(var j=f[1],h=0;h<j.length;++h){var i=j[h];void 0!=i&&(this.m_SlideGraphObj[c[0]][f[0]][i]=i)}}}}}}}}},onSlideJump:function(a){if(0<this.m_CurrentBranch.length){var b=this.m_CurrentBranch[this.m_CurrentBranch.length-1];if(a==b)return;if(void 0==this.m_SlideGraphObj[b]){this.m_BranchHistory.push(a);this.m_InvalidSlideJump=!0;return}if(void 0==this.m_SlideGraphObj[b][a]){this.m_InvalidSlideJump=
!0;this.updateCurrentBranch(a);this.m_BranchHistory.push(a);return}}this.m_BranchHistory.push(a);this.m_CurrentBranch.push(a)},getSlideViewPercentage:function(){!this.m_CompletionBranchSet&&!this.m_CompletionBranchSlideCountSet&&this.findCompletionBranch();if(!this.m_CompletionBranchSet&&!this.m_CompletionBranchSlideCountSet)return"NaN";var a=this.countUniqItems(this.m_CurrentBranch),b=-1,b=this.m_CompletionBranchSlideCountSet?this.m_CompletionBranchSlideCount:this.countUniqItems(this.m_CompletionBranch);
return 0>=b?"NaN":100*a/b},isSlidePartOfCurrentBranch:function(a){return 0<this.m_CurrentBranch.length&&-1!=this.m_CurrentBranch.indexOf(a)?!0:!1},getCompletionBranch:function(){this.m_CompletionBranchSet||this.findCompletionBranch();return!this.m_CompletionBranchSet?[]:this.m_CompletionBranch},getCurrentBranch:function(){return this.m_CurrentBranch},getBranchHistory:function(){return this.m_BranchHistory},restoreCompletionBranchState:function(a){0<a.length&&(this.m_CompletionBranch=[],this.m_CompletionBranch=
a,this.m_CompletionBranchSet=!0)},restoreCurrentBranchState:function(a){0<a.length&&(this.m_CurrentBranch=[],this.m_CurrentBranch=a,this.m_BranchHistory=[],this.m_BranchHistory=a.slice())},resetCurrentBranch:function(a){if(!(0>a)){for(var b=-1,c=0;c<this.m_CurrentBranch.length;++c)if(this.m_CurrentBranch[c]==a){b=a;break}0<=b&&b+1<this.m_CurrentBranch.length&&this.m_CurrentBranch.splice(b+1)}},updateCurrentBranch:function(){},getMaxQuizScore:function(){return 0},getMinQuizScore:function(){return 0},
getQuizScorePercentage:function(){return 0},getNextAttemptFirstQuestionSlideIndex:function(){return-1},getReviewFirstQuestionSlideIndex:function(){return-1},getNumQuestions:function(){return 0},getQuestionSlideProgressNumber:function(){return"NaN"},setQuestionSlideProgressNumber:function(){},getLastQuestionSlideIndex:function(){return-1},getNextSlideList:function(a){var b=[];if(void 0!=this.m_SlideGraphObj[a]){var a=this.m_SlideGraphObj[a],c;for(c in a)b.push(Number(c))}return b},getIsJumpValid:function(a,
b){return void 0==this.m_SlideGraphObj[a]||void 0==this.m_SlideGraphObj[a][b]?!1:!0},SaveCurrentBranch:function(){this.m_PrevBranch=this.m_CurrentBranch.slice()},GetPrevBranch:function(){return this.m_PrevBranch}}})(window.cp);
if("undefined"===typeof console||"undefined"===typeof console.log)console={log:function(){}};window.Node||(window.Node={},Node.ELEMENT_NODE=1,Node.ATTRIBUTE_NODE=2,Node.TEXT_NODE=3,Node.CDATA_SECTION_NODE=4,Node.ENTITY_REFERENCE_NODE=5,Node.ENTITY_NODE=6,Node.PROCESSING_INSTRUCTION_NODE=7,Node.COMMENT_NODE=8,Node.DOCUMENT_NODE=9,Node.DOCUMENT_TYPE_NODE=10,Node.DOCUMENT_FRAGMENT_NODE=11,Node.NOTATION_NODE=12);
Array.indexOf||(Array.prototype.indexOf=function(m){for(var k=0;k<this.length;++k)if(this[k]==m)return k;return-1});
(function(){function m(a,b){var d=[],c=cp.movie.stage;if(!(c&&a>c.slides.length-1)){var c=cp.D[c.slides[a]],g=cp.D[c.mdi],e=g.ip;if(!e&&(cp.device==cp.IDEVICE||cp.device==cp.ANDROID))e=g.aip;e&&d.push(e);c.imgf&&(c.imgf.img&&c.imgf.img.ip&&c.imgf.img.ip.length>0)&&d.push(c.imgf.img.ip);c=c.si;for(g=0;g<c.length;++g)if(e=cp.D[cp.D[c[g].n].mdi]){var f=e.ip;if(f)if(typeof f==="object")for(var j in f)d.push(f[j]);else d.push(f);(f=e.uImg)&&d.push(f);(f=e.hImg)&&d.push(f);(f=e.pImg)&&d.push(f);(f=e.imgf)&&
(f.img&&f.img.ip&&f.img.ip.length>0)&&d.push(f.img.ip);(f=e.asbos)&&(f.imgf&&f.imgf.img&&f.imgf.img.ip&&f.imgf.img.ip.length>0)&&d.push(f.imgf.img.ip);(f=e.asbds)&&(f.imgf&&f.imgf.img&&f.imgf.img.ip&&f.imgf.img.ip.length>0)&&d.push(f.imgf.img.ip);if(e=e[cp.kPPTXSlideImagesStr])for(f=0;f<e.length;++f)e[f].ip.length>0&&d.push(cp.kPPTXSlideImagesDir+e[f].ip)}cp.movie.im.loadImages(a,d,b)}}function k(){eval('function handlePasswordProtected(){if(cp.D.secret){var a=lMainModelData.pwd,b=lMainModelData.pwdRetryMsg,c=function(){var d=document.getElementById("k333"),c=!0;d&&d.value!=a&&(c=!1);if(c)HideEverything();else if(cp.verbose&&cp.log("incorrect pwd"),d=document.getElementById("a5__px"))d.innerHTML=b};cp.passwordDiv.innerHTML="<table id=\'a5__px\' style=\'position:absolute;background-color:#FFFFFF;left:0px;top:0px;width:100%;height:100%\'><tr style=\'width:100%;height:100%;text-align:center;vertical-align:middle\'><td><table style=\'width:100%;text-align:center;vertical-align:middle\'><tr style=\'text-align:center;vertical-align:middle\'><td id=\'a5__px\'>"+lMainModelData.pwdMsg+"</td></tr><tr style=\'text-align:center;vertical-align:middle\'><td><input id=\'k333\' type=\'password\' style=\'width:"+lMainModelData.pwdTxtBoxW+"px;height:"+lMainModelData.pwdTxtBoxH+"px;\'/></td></tr><tr style=\'text-align:center;vertical-align:middle\'><td><button id=\'checkPwdButton\'>Continue</button></td></tr></table></td></tr>";cp.registerGestureEvent(document.getElementById("checkPwdButton"),cp.GESTURE_EVENT_TYPES.TAP,c);document.getElementById(lPwdTxtBoxVarName).onkeyup=function(){c()};ShowEverything()}}function handleExpiry(){if(cp.D.expiryDate){var a=new Date;a.setFullYear(lMainModelData.prjExpY,lMainModelData.prjExpM-1,lMainModelData.prjExpD-1);(new Date).getTime()<=a.getTime()||(a=lMainModelData.prjExpMsg,cp("__z_21").style.visibility="hidden",cp("a5__px").style.visibility="hidden",cp("md5").style.visibility="hidden",cp.expiryDiv.innerHTML="<div id=\'md5\' style=\'width:380px;height:54px;left:"+(cp.D.project.w-380)/2+"px;top:"+(cp.D.project.h-54)/2+"px;position:absolute\'><div id=\'expImg\' style=\'width:100%;height:100%;background-image:url(assets/htmlimages/movieexpire.png);background-repeat:no-repeat;\'></div><div id=\'a5__px\' style=\'color:#ffffff; width:300px;left:65px; position:absolute; height:15px; top:20px; font-size:12px; text-align:left; text-overflow: clip;overflow: hidden\'/>"+a+"</div></div>")}else cp.expiryDiv.style.display="none",cp.expiryDiv.style.visibility="hidden"}function handleAutoplay(){var a=cp.D[cp.movie.main.id].autoplay;document.getElementById("playImage");a?cp.device==cp.DESKTOP?cp("autoplayDiv").style.display="none":(cp.autoplayImage.style.display="none",cp.autoplayImage.style.visibility="hidden"):(cp.movie.autoplayimagew=0,cp.movie.autoplayimageh=0,a=cp.D[cp.movie.main.id].autoplayFileName,void 0!=a?(cp.autoplayImage.src=a,cp.autoplayImage.style.opacity=0.7,cp.movie.autoplayimagew=cp.D[cp.movie.main.id].autoplayimagew,cp.movie.autoplayimageh=cp.D[cp.movie.main.id].autoplayimageh):(cp.autoplayImage.style.display="none",cp.autoplayImage.style.visibility="hidden"));a=function(a){if(!a.target||!(a.target.tagName.toUpperCase()=="INPUT"||a.target.tagName.toUpperCase()=="SELECT"||a.target.tagName.toUpperCase()=="TEXTAREA")){(cp.isTextInputInFocus()||document.activeElement.tagName.toUpperCase()=="SELECT")&&document.activeElement.blur();a.preventDefault()}};if(cp.D[cp.movie.main.id].pprtd){var b=cp.D[cp.movie.main.id],c=b.ps,d=function(a){if(a){cp("project").style.visibility="visible";cp("playbar").style.visibility="visible";cp("toc").style.visibility="visible";cp.pwdv.parentNode.removeChild(cp.pwdv)}else{cp("project").style.visibility="hidden";cp("playbar").style.visibility="hidden";cp("toc").style.visibility="hidden"}},g=function(){var a=document.getElementById("pwdt"),e=true;if(a){a=(new cp.sha1).HashUTF16Str(a.value);if(c.length==a.length)for(var f=0;f<a.length&&e;++f)c[f]!=a[f]&&(e=false);else e=false}if(e){d(true);cp.passwordAccepted=true;window.scrollTo(0,0);cp.complete()}else if(e=document.getElementById("promptMsg"))e.innerHTML=b.prm};cp.pwdv.innerHTML="<table id=\'pwdTable\' style=\'position:absolute;background-color:#FFFFFF;left:0px;top:0px;width:100%;height:100%\'><tr style=\'width:100%;height:100%;text-align:center;vertical-align:middle\'><td><table style=\'width:100%;text-align:center;vertical-align:middle\'><tr style=\'text-align:center;vertical-align:middle\'><td id=\'promptMsg\'>"+b.pm+"</td></tr><tr style=\'text-align:center;vertical-align:middle\'><td><input id=\'pwdt\' type=\'password\' style=\'width:"+b.ptw+"px;height:"+b.pth+"px;\'/></td></tr><tr style=\'text-align:center;vertical-align:middle\'><td><button id=\'checkPwdButton\'>Continue</button></td></tr></table></td></tr>";cp.useg&&Hammer&&Hammer(cp.pwdv,{no_mouseevents:!0,transform_min_scale:1,drag_block_horizontal:!0,drag_block_vertical:!0,drag_min_distance:0});cp.registerGestureEvent(cp.pwdv,"touchstart",a);cp.registerGestureEvent(cp.pwdv,"touchmove",a);cp.registerGestureEvent(cp.pwdv,"touchend",a);cp.registerGestureEvent(cp.pwdv,"touchcancel",a);cp.registerGestureEvent(document.getElementById("checkPwdButton"),cp.GESTURE_EVENT_TYPES.TAP,g);a=document.getElementById("pwdt");a.focus();a.onkeyup=function(a){a.keyCode==13&&g()};d(!1)}else cp.pwdv.style.display="none",cp.pwdv.style.visibility="hidden",cp.passwordAccepted=!0,cp.complete()}function handlePreloader(){var a=cp.D[cp.movie.main.id].preloader,b=cp.D[cp.movie.main.id].preloaderFileName;void 0!=b&&""!=b&&a?(cp.preloaderImage.src=b,-1!=b.indexOf("loading.gif")?cp.preloaderImage.defaultImage=!0:cp("loadingString").style.display="none"):cp.preloaderImage.style.display="none";cp.movie.preloadProjectAssets();cp.isExpired=!0;cp.D[cp.movie.main.id].peon?(a=cp.D[cp.movie.main.id],b=new Date,b.setFullYear(a.pey,a.pem-1,a.ped-1),(new Date).getTime()<=b.getTime()?(cp.exdv&&cp.exdv.parentNode.removeChild(cp.exdv),cp.isExpired=!1):(cp("project").style.visibility="hidden",cp("playbar").style.visibility="hidden",cp("toc").style.visibility="hidden",a="<div id=\'pems\' style=\'width:380px;height:54px;left:0px;top:0px;right:0px;bottom:0px;margin:auto;position:absolute\'><div id=\'pemi\' style=\'width:100%;height:100%;background-image:url(assets/htmlimages/movieexpire.png);background-repeat:no-repeat;\'></div><div id=\'pet\' style=\'color:#ffffff; width:300px;left:65px; position:absolute; height:15px; top:20px; font-size:12px; text-align:left; text-overflow: clip;overflow: hidden\'/>"+a.pems+"</div></div>",cp.exdv.style.backgroundColor=cp.D[cp.movie.element.id].prjBgColor,cp.exdv.innerHTML=a)):(cp.exdv.style.display="none",cp.exdv.style.visibility="hidden",cp.isExpired=!1)}function _handleProjOptions(){handleAutoplay();handlePreloader()};_handleProjOptions();')}
function y(a){var b=[],d;for(d in a)b.push(cp.vm.getVariableValue(a[d].name));return b}window.getPageX=function(a){var b=0;cp.m_gestureHandler&&(b=cp.m_gestureHandler.getEventPageX(a));return b};window.getPageY=function(a){var b=0;cp.m_gestureHandler&&(b=cp.m_gestureHandler.getEventPageY(a));return b};cp.CacheView=function(a){this.index=a;if(!cp.CacheView.DIM){cp.CacheView.DIM=20;cp.CacheView.GAP=5;cp.CacheView.LEFT_OFFSET=100;cp.CacheView.TOP_OFFSET=30;cp.CacheView.NUM_CACHE_VIEWS=0}this.view=cp.newElem("div");
document.body.appendChild(this.view);this.view.style.cssText="z-index:100;display:block; position:fixed; left:"+(cp.CacheView.LEFT_OFFSET+cp.CacheView.NUM_CACHE_VIEWS*(cp.CacheView.DIM+cp.CacheView.GAP))+"px; top:"+cp.CacheView.TOP_OFFSET+"px; width:"+cp.CacheView.DIM+"px; height:"+cp.CacheView.DIM+"px; background-color:#555555;opacity:0.8";this.view.innerHTML="<font color='#000000' style='font-size:10px'>-1</font>";++cp.CacheView.NUM_CACHE_VIEWS};cp.CacheView.prototype={update:function(){var a=cp.movie.pm.cache[this.index];
this.view.innerHTML="<font color='#000000' style='font-size:10px'>"+a+"</font>";this.view.style.backgroundColor=this.index==cp.movie.pm.tail?"#ffff00":this.index==cp.movie.pm.head?"#0000ff":a!=-1?"#00ff00":"#555555"}};cp.PrefetchManager=function(){cp.movie.pm=this;this.cache=cp.device==cp.DESKTOP?Array(7):Array(4);for(var a=0;a<this.cache.length;++a)this.cache[a]=-1;this.tail=this.head=0;this.viewCache=false};cp.PrefetchManager.prototype={numSlidesToAttemptPreloaded:function(){return this.cache.length-
3},print:function(){for(var a="[ ",b=this.tail;b!=this.head;b=(b+1)%this.cache.length){a=a+this.cache[b];a=a+" "}console.log("cached slides:"+(a+"]"))},showCache:function(){if(this.viewCache)for(var a=0;a<this.cacheViews.length;++a)this.cacheViews[a].update()},slideWasPrefetched:function(a){for(var b=this.tail;b!=this.head;b=(b+1)%this.cache.length)if(this.cache[b]==a)return true;return false},ifPrefetchedMakeMRU:function(a){for(var b=this.tail;b!=this.head;b=(b+1)%this.cache.length)if(this.cache[b]==
a){for(var d=(b+1)%this.cache.length;d!=this.head;){this.cache[b]=this.cache[d];b=d;d=(b+1)%this.cache.length}this.cache[b]=a;return true}return false},throwAwayLRUSlide:function(){if(this.head!=this.tail){var a=this.cache[this.tail];cp.movie.im.verbose&&cp.log("throwing Away LRU Slide "+a);var b=cp.D[cp.movie.stage.slides[a]],d=cp.D[b.mdi].ip;d!=""&&cp.movie.im.unloadImage(a,d);if(b=b.si)for(d=0;d<b.length;++d){var c=cp.D[b[d].n],g=cp.D[c.mdi];if(g){var e=g.ip;if(e){var f=false;c.pa||(f=c.rp=="1");
if(!f){cp.movie.im.unloadImage(a,e);(e=g.uImg)&&cp.movie.im.unloadImage(a,e);(e=g.hImg)&&cp.movie.im.unloadImage(a,e);(e=g.pImg)&&cp.movie.im.unloadImage(a,e);(c=g.imgf)&&(c.img&&c.img.ip&&c.img.ip.length>0)&&cp.movie.im.unloadImage(a,c.img.ip);if(g=g[cp.kPPTXSlideImagesStr])for(c=0;c<g.length;++c)g[c].ip.length>0&&cp.movie.im.unloadImage(a,cp.kPPTXSlideImagesDir+g[c].ip)}}}}this.cache[this.tail]=-1;this.tail=(this.tail+1)%this.cache.length}},isLoading:function(){return this.loading},loadSlideAssets:function(a){if(this.loading)return false;
this.loading=true;try{cp.movie.im.verbose&&cp.log("loading assets of slide "+a);if(this.ifPrefetchedMakeMRU(a))m(a,true);else{var b=(this.head+1)%this.cache.length;b==this.tail&&this.throwAwayLRUSlide();m(a,true);this.cache[this.head]=a;this.head=b}cp.movie.im.verbose&&this.print()}catch(d){}this.loading=false;this.showCache();return true},preloadSlideAssets:function(a){cp.movie.im.verbose&&cp.log("preloading assets of slide "+a);if(!this.slideWasPrefetched(a)){var b=(this.head+1)%this.cache.length;
b==this.tail&&this.throwAwayLRUSlide();m(a);this.cache[this.head]=a;this.head=b}cp.movie.im.verbose&&this.print();this.showCache()}};cp.Movie=function(a){this.virgin=true;this.element=a;this.symbols={};this.main=null;this.cc=document.getElementById("cc");this.cpInfoLastVisitedSlideStartFrame=0;this.fps=cp.D[a.id].fps;this.hidePlaybarInQuiz=cp.D.quizzingData.hidePlaybarInQuiz;this.offset=(cp.offsetInnerWidth-cp.D[a.id].w+(cp.loadedModules.toc&&!cp.D.tocProperties.overlay?cp.D.tocProperties.position==
1?cp.D.tocProperties.width:-cp.D.tocProperties.width:0))/2;this.paused=true;this._parseElements();this.questions=[];this.questionObjs=[];this.element.style.backgroundColor=cp.D[this.element.id].prjBgColor;this.currAudioType="bg";this.currAudioStopFrame=this.currAudioStartFrame=-1;this.counter=0;this.speed=1;this.playKeyTap=cp.D[a.id].pkt;this.m_hasIsTrackedBeenSet=false;this.MIN_WAIT_TIME_TO_PAUSE_MOVIE=this.waitedForResources=0;this.MIN_WAIT_TIME_TO_BLOCK_UI=2E3;if(cp.device==cp.ANDROID)this.MIN_WAIT_TIME_TO_BLOCK_UI=
4E3;this.MAX_WAIT_TIME=2E4;this.mRequestAnimationFrameFunc=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||null;this.m_scaleFactor=1};cp.Movie.prototype={updateMovie:function(){var a=cp.D[this.main.id].questions;if(a){this.questions=a.split(",");this.questionObjs=[]}this.stage.updateTimeline()},handleProjectOptions:function(){k()},preloadProjectAssets:function(){var a=cp.model.projectImages;
a&&a.length!=0&&cp.movie.im.loadImages(-1,a,true,true)},rewind:function(){this.stage.handleRewindForFramesets();this.stage.RemoveFeedbacks(cp.FeedbackCloseReason.SLIDE_CHANGE);cp.movie.stage.itemsNotLoaded=[];this.jumpToFrame(1);this.play(cp.ReasonForPlay.MOVIE_REWIND)},_parseElements:function(){for(var a=this.element.firstChild;a;a=a.nextSibling)if(a.nodeType==Node.ELEMENT_NODE){var b=(a.className+"").split(" ");if(b.indexOf("cp-timeline")!=-1){var d=b.indexOf("cp-main")!=-1;b.indexOf("cp-symbol")!=
-1&&(this.symbols[a.id]=a);if(d)this.main=a}}if(this.main!=null)this.stage=cp.parseTimeline(this.main)},resetFPS:function(){if(cpInfoFPS!=0){this.POLL_INTERVAL=1E3/cpInfoFPS;if(!this.useRequestAnimationFrame||!this.mRequestAnimationFrameFunc){if(this.interval){clearInterval(this.interval);this.interval=0}var a=this;this.interval=setInterval(function(){a._onEnterFrame()},this.POLL_INTERVAL)}else{if(this.interval){clearInterval(this.interval);this.interval=0}this.mRequestAnimationFrameFunc.call(window,
this.animationLoop)}}},resetMovieElapsedTime:function(a){this.startMovieTime=(new Date).getTime()-cpInfoCurrentFrame*1E3/(cp.movie.fps*cp.movie.speed);if(arguments.length>0&&this.useRequestAnimationFrame!=a){this.useRequestAnimationFrame=a;this.resetFPS()}},animationLoop:function(){cp.movie.useRequestAnimationFrame&&cp.movie.mRequestAnimationFrameFunc.call(window,cp.movie.animationLoop);cp.movie._onEnterFrame()},startTimer:function(){if(!this.interval){this.stage.start();this.element.style.display=
"block";this.resetFPS()}},stop:function(){this.stage.reset();this.element.style.display="none";var a=document.getElementById("playbar");a.pause!=void 0&&a.pause()},play:function(a){if(!cp.isBlockedForLMS()){cp.verbose&&cp.log("movie.play deleting pendingPlay");delete this.pendingPlay;this.resetMovieElapsedTime();if(this.virgin){cp.verbose&&cp.log("movie virgin play");this.virgin=false;a=cp.getStartFrameOfMovie();1<a&&(_cpInfoCurrentFrame=a);this.am.unlockWebAudio();(cp.IDEVICE==cp.device||cp.device==
cp.ANDROID)&&cp.InitMedia();cp.beginMovie();return true}if(!this.paused){a&&(a==cp.ReasonForPlay.MOVIE_REWIND&&cpInfoCurrentFrame<this.stage.lastFrame)&&cp.em.fireEvent("CPMovieStart");return false}if(this.waitingForResources()){cp.verbose&&cp.log("set pendingPlay = true. movie cannot play since resources not available");this.pendingPlay=true;return false}cp.verbose&&cp.log("movie play");this.am.ssp=0;var b=document.getElementById("playbar");b&&b.play!=void 0&&b.play();if(!this.tocPlaybarHandlerSet){this.tocPlaybarHandlerSet=
true;b&&b.animator&&b.animator.startTimer();if(this.stage.getSlideDiv()&&b&&b.animator){cp.mainContainer.onmouseover=cp.handleMouseOver;if(cp.device==cp.DESKTOP)cp.mainContainer.onmousemove=cp.handleMouseMove;cp.mainContainer.onmouseout=cp.handleMouseOut}}this.now=new Date;this.elapsedFramesResidue=0;if(this.startTime==void 0){this.startTime=this.now;cp.em.fireEvent("CPMovieStart")}else this.reasonForPause==cp.ReasonForPause.MOVIE_ENDED&&cpInfoCurrentFrame<this.stage.lastFrame?cp.em.fireEvent("CPMovieStart"):
a&&a==cp.ReasonForPlay.MOVIE_REWIND&&cpInfoCurrentFrame<this.stage.lastFrame?cp.em.fireEvent("CPMovieStart"):cp.em.fireEvent("CPMovieResume",a);this.paused=false;return _registerForUpdateTimeBasedSystemVariables=true}},pause:function(a){if(this.paused&&a!=cp.ReasonForPause.WAIT_FOR_RESOURCES&&(this.waitingForResources()||this.reasonForPause==cp.ReasonForPause.WAIT_FOR_RESOURCES)){cp.verbose&&cp.log("set pendingPause = true. movie cannot pause since resources not available");this.pendingPause=true;
this.pendingReasonForPause=a}else if(this.paused){if(this.reasonForPause!=a&&this.reasonForPause==cp.ReasonForPause.MOVIE_ENDED){this.reasonForPause=a;cp.em.fireEvent("CPMovieStart")}this.am&&this.am.reasonForPause!=a&&this.am.pause(a);this.vdm&&this.vdm.reasonForPause!=a&&this.vdm.pause(a)}else{cp.verbose&&cp.log("movie pause "+a);this.reasonForPause=a;cp.verbose&&cp.log("movie.pause deleting pendingPlay");delete this.pendingPlay;if(a==cp.ReasonForPause.INTERACTIVE_ITEM)this.stage.interactivePauseFrame=
cpInfoCurrentFrame;var b=document.getElementById("playbar");b&&b.pause!=void 0&&a!=cp.ReasonForPause.WAIT_FOR_RESOURCES&&b.pause();a==cp.ReasonForPause.MOVIE_ENDED&&(b&&b.animator)&&b.animator.showPlaybar(true);this.paused=true;this.am&&this.am.pause(a);this.vdm&&this.vdm.pause(a);cp.em.fireEvent("CPMoviePause",a)}},blockUI:function(){if(!this.blockedUI){this.blockedUI=true;cp("blockUserInteraction").style.display="block";cp("blockUserInteraction").style.width="100%";cp("blockUserInteraction").style.height=
"100%";cp("blockUserInteraction").style.zIndex=1E4;this.preloadRot=0}},unblockUI:function(){if(this.blockedUI){this.blockedUI=false;cp("blockUserInteraction").style.display="none"}},jumpToFrame:function(a){if(a=="cpInfoLastVisitedSlide")a=this.cpInfoLastVisitedSlideStartFrame;var b=cp.movie.stage.getSlideIndexForFrame(a);if(this.waitingForResources()){if(b!=cpInfoCurrentSlideIndex){this.am.resetAllWaitingAudios();this.vdm.resetAllWaitingVideos();cp.verbose&&cp.log("movie jumping to another slide. resetting pending audio/video")}else cp.verbose&&
cp.log("movie cannot jumpToFrame since resources not available");this.pendingJump=a;return false}if(!this.stage.canUpdateToFrame(a,b)){cp.verbose&&cp.log("movie cannotUpdateToFrame "+a);return false}if(this.pm.isLoading()){cp.verbose&&cp.log("movie cannot jumpToFrame since prefetchManager is loading");this.pendingJump=a;return false}_cpInfoCurrentFrame=this._jumpFrame=a;return true},executeAction:function(a){cp.verbose&&cp.log("execute action str ["+a+"]");if(a&&a!="")try{eval(a)}catch(b){cp.log(b)}},
frameBasedExecuteAction:function(a){if(this.executedActionOnFrame!=this.stage.updatingFrame){this.executedActionOnFrame=this.stage.updatingFrame;this.executeAction(a)}},mousePath:function(a,b,d){if(!(b<a.afrom||b>a.ato)||d){var c=a.ato-a.afrom;if(c!=0){c=c-Math.floor(cpInfoFPS*0.5);c<=0&&(c=0);var g=this.motionPathArgs,e=cp.cloneObject(g.b);if(cp.responsive){e=e[cp.ResponsiveProjWidth];if(!cp.movie.stage.isSlideBGCropped()){e[0]=cp.project.clientWidth*e[0]/cp.ResponsiveProjWidth;e[2]=cp.project.clientWidth*
e[2]/cp.ResponsiveProjWidth}}var f=e[2]-e[0],j=e[3]-e[1],h=b-a.afrom;if(!(h<0)){var b=e[0],d=e[1],n=e[2],e=e[3],i=1;g.s==1&&(i=0.5);var l=n,o=e;if(c>0&&h<c){l=0==g.t||0==f||0==j;c=Math.pow(h/c,i);if(l){l=b+f*c;o=d+j*c}else{f=c*c;j=1-c;g=j*j;l=b*g+2*n*j*c+n*f;o=d*g+2*d*j*c+e*f}}a.children[0].element.left=l;a.children[0].element.style.left=l+"px";a.children[0].element.top=o;a.children[0].element.style.top=o+"px"}}}},waitingForResources:function(){var a=this.im&&this.im.imagesNotLoaded(),b=this.stage&&
!this.stage.hasItemsLoaded(),d=this.am&&this.am.pendingAudios()>0,c=this.vdm&&this.vdm.pendingVideos()>0,g=this.ms&&this.ms.pendingItems()>0;if(a||b||d||c||g){cp.verbose&&cp.log("waiting for "+a+" "+b+" "+d+" "+c+" "+g+" yield = "+this.stage.yield);return true}return false},resetAllWaitingResources:function(){this.im&&this.im.reset();if(this.stage)this.stage.itemsNotLoaded=[];this.am&&this.am.resetAllWaitingAudios();this.vdm&&this.vdm.resetAllWaitingVideos();this.ms&&this.ms.reset();this.waitedForResources=
0},_onEnterFrame:function(){if(!cp.isBlockedForLMS()){this.refreshMovie();this.am.updateAudioViews();this.vdm.updateVideoViews();if(this.waitingForResources()){this.waitedForResources=this.waitedForResources+this.POLL_INTERVAL;if(this.waitedForResources>=this.MAX_WAIT_TIME){cp.verbose&&cp.log("waited too long...given up waiting! Paused = "+this.paused+" reason = "+this.reasonForPause+" pendingPlay = "+this.pendingPlay);this.resetAllWaitingResources();this.unblockUI();if(!this.paused&&this.pendingPause){this.pause(this.pendingReasonForPause);
delete this.pendingPause;delete this.pendingReasonForPause}else(this.paused&&this.reasonForPause==cp.ReasonForPause.WAIT_FOR_RESOURCES||this.pendingPlay)&&this.play()}else if(this.waitedForResources>=this.MIN_WAIT_TIME_TO_BLOCK_UI){this.pause(cp.ReasonForPause.WAIT_FOR_RESOURCES);this.blockUI()}else this.waitedForResources>=this.MIN_WAIT_TIME_TO_PAUSE_MOVIE&&this.pause(cp.ReasonForPause.WAIT_FOR_RESOURCES)}else{this.waitedForResources>0&&cp.verbose&&cp.log("finished waiting! Paused = "+this.paused+
" reason = "+this.reasonForPause+" pendingPlay = "+this.pendingPlay);this.waitedForResources=0;this.unblockUI();if(!this.paused&&this.pendingPause){this.pause(this.pendingReasonForPause);delete this.pendingPause;delete this.pendingReasonForPause}else if(this.paused&&this.reasonForPause==cp.ReasonForPause.WAIT_FOR_RESOURCES||this.pendingPlay)this.play();else{var a=this.pendingJump;if(a){cp.verbose&&cp.log("jumping to pending jump frame "+a);delete this.pendingJump;this.jumpToFrame(a)}else if(this.paused){if(cpInfoCurrentFrame==
this._jumpFrame){if(this.stage.fallsOutsideCurrentSlide(cpInfoCurrentFrame)){var b=this.stage.getSlideIndexForFrame(cpInfoCurrentFrame);if(b!=-1)if(this.stage.yield)delete this.stage.yield;else{this.stage.loadAssetsForSlideAtIndex(b);this.stage.yield=1;return}}this._jumpFrame=-1;this.stage.updateFrame(cp.Timeline.ReasonForUpdate.JUMP)}this.stage.UpdateFeedbacks();this.stage.updateFrameCurrentOnPause()}else{this.elapsedMovieTime=((new Date).getTime()-this.startMovieTime)*cp.movie.speed;a=new Date;
this.stage.UpdateFeedbacks();if(this.stage.fallsOutsideCurrentSlide(cpInfoCurrentFrame)){b=this.stage.getSlideIndexForFrame(cpInfoCurrentFrame);if(b!=-1)if(this.stage.yield)delete this.stage.yield;else{this.stage.loadAssetsForSlideAtIndex(b);this.stage.yield=1;return}}if(cpInfoCurrentFrame==this._jumpFrame){this._jumpFrame=-1;this.stage.updateFrame(cp.Timeline.ReasonForUpdate.JUMP)}else this.stage.updateFrame(cp.Timeline.ReasonForUpdate.PROGRESS);if(!this.paused){var d=new Date,b=this.now;this.now=
d;if(cp.disablePaceMaker)this.framesToSkip=1;else{if(this.elapsedFramesResidue==void 0)this.elapsedFramesResidue=0;var c=0;if(1==this.speed&&this.am.pace)c=this.am.pace-cpInfoCurrentFrame;else if(cp.device==cp.IDEVICE&&!cp.movie.PPTXSlide)c=this.speed;else{a=d.getTime()-a.getTime();cp.movie.PPTXSlide&&(a=0);c=(this.now.getTime()-b.getTime()-a)*cpInfoFPS/1E3}this.framesToSkipForPlaybar=this.elapsedFramesResidue=this.elapsedFramesResidue+c;this.framesToSkip=Math.floor(this.framesToSkipForPlaybar);this.elapsedFramesResidue=
this.elapsedFramesResidue-this.framesToSkip}cp.verbose&&cp.log("am.pace = "+this.am.pace+" elapsedFramesResidue = "+this.elapsedFramesResidue+" skipping = "+this.framesToSkip);this.stage.attemptToAdvanceCurrentFrameByOffset(this.framesToSkip)}}}}}},refreshMovie:function(){var a=cp("cpdmtxtn");if(!a){var b=cp("cpDocument");if(!b)return;a=cp.newElem("div");a.id="cpdmtxtn";a.style.display="block";b.parentElement.insertBefore(a,b);a.style.opacity=0;a.style.userSelect="none";a.style["-ms-user-select"]=
"none";a.style["-webkit-user-select"]="none";a.style["-moz-user-select"]="none";if(cp.device==cp.ANDROID){a.style.width="1px";a.style.height="1px";a.style.left="-1000px";a.style.top="-1000px";a.style.position="absolute"}a.setAttribute("aria-hidden","true")}a.innerHTML=(new Date).toString()},registerQuizVariableSetters:function(){if(cp.movie.playbackController){var a=cp.movie.playbackController.GetQuizController();if(a){a.quizInScopeSetter=cp._cpInQuizScope;a.quizScopeSlideSetter=cp._cpQuizScopeSlide}}},
initLMS:function(){if(this.playbackController){this.playbackController.GetLoadingResumeDataBln();if(!this.m_hasIsTrackedBeenSet){this.playbackController.GetIsTrackedFlag()?this.playbackController.SetIsTracked(true):this.playbackController.SetIsTracked(false);this.m_hasIsTrackedBeenSet=true;this.playbackController.GetLoadingResumeDataBln()}typeof cp.LMSDriverHolder=="undefined"&&(!this.playbackController.LMSIsAICC()&&!this.playbackController.IsRunningInConnect())&&cp.handleVariablesInURLParams();!this.playbackController.IsRunningInConnect()&&
(typeof cp.LMSDriverHolder!="undefined"&&cp.LMSDriverHolder&&cp.LMSDriverHolder.GetStudentName)&&cp.vm.setVariableValue("cpQuizInfoStudentName",cp.LMSDriverHolder.GetStudentName(),false)}},resumeMovieSpecificValue:function(){if(this.playbackController){var a=this.playbackController.GetRestoredQuizSlide();a>=0&&(_cpInfoCurrentFrame=a)}}};cp.QuizLibraryInit=function(){cp.g_ShouldRandomize&&cp.NewQuizLibraryInit()};cp.NewQuizLibraryInit=function(){if(cp.PlaybackController&&!cp.movie.playbackController){cp.movie.playbackController=
cp.IsRunningInACAP?new cp.ACAPPlaybackController:new cp.PlaybackController;cp.movie.playbackController.InitializeReportingVariables();cp.movie.playbackController.InitializePlaybackController()}cp.movie.registerQuizVariableSetters();if(cp.g_ShouldRandomize)cp.ContinueQuizLibraryInit();else if(cp.resumeDataChunk!=""&&cp.resumeDataChunk!=void 0&&cp.resumeDataChunk!="0"){var a=cp.movie.playbackController;a&&a.RestoreQuizState()}cp.movie.initLMS()};cp.ContinueQuizLibraryInit=function(){cp.movie.updateMovie();
cp.movie.stage.createQuestionObjs();cp.movie.playbackController&&cp.movie.playbackController.AddQuestionSlideNames();cp.movie.stage.initializeGraphManager()};cp.CPPreInit=function(){cp.CPProjInit();cp.shouldScale=cp.D.project.shc;cp.responsive=cp.D.project_main.useResponsive;if(cp.IsRunningInACAP||cp.IsRunningInALEC){cp.D.playBarProperties.hasPlayBar=false;cp.D.borderProperties.hasBorder=false;cp.D.project.hasTOC=false}cp.loadedModules={playbar:cp.D.playBarProperties.hasPlayBar&&cp("playbar")!=void 0,
border:cp.D.borderProperties.hasBorder,toc:cp.D.project.hasTOC&&cp("toc")!=void 0};if(cp.device==cp.IDEVICE)if(cp.mat==void 0){if(cp.IOSMajor<=cp.IOS5)cp.multiAudioTrack=false}else cp.multiAudioTrack=false;if(cp.device==cp.ANDROID)cp.multiAudioTrack=true;var a=cp.D.project_main.pools;if(a==void 0||a.length<=0)cp.poolManager=void 0;else{cp.poolManager=new cp.PoolManager;cp.poolManager.loadPools();cp.g_ShouldRandomize&&cp.poolManager.randomizePools()}PPTXLib.initializePPTXLibrary();if(a=cp.D.project_main.slideVideos)for(var b=
0,d=1;d<a.length;++b,++d){var c=cp.D[a[b]],g=cp.D[a[d]];if(c.to+1==g.from){c=cp.D[c.mdi];g=cp.D[g.mdi];if(Math.abs(c.vst-g.vsf)<=0.1&&c.mp4==g.mp4){c.continueToNextSlide=1;g.continueFromPrevSlide=1}}}for(var a=(cp.D.project_main.slideAudios||"").split(","),b=(cp.D.project_main.slides||"").split(","),d=a.length,g=b.length,e=c=0;e<g&&c<d;++e){var f=cp.D[b[e]];if(!f)break;var j=cp.D[a[c]];if(!j)break;if(j.from<=f.to)f.audioName=a[c];f.to>=j.to&&++c}a=(cp.D.project_main.slides||"").split(",");b=a.length;
for(d=0;d<b;++d){g=cp.D[a[d]];if(!g)break;for(var h in g.si){c=g.si[h];if(cp.kCPOTFLVItem==c.t||cp.kCPOTVideo==c.t||cp.kCPFullMotion==c.t||cp.kCPOTVideoResource==c.t){if(!g.videos)g.videos=[];g.videos.push(c.n)}}}if(cp.responsive){if(cp.responsiveWidths==void 0)cp.responsiveWidths=cp.D.project.cssWidths;if(cp.responsiveAllBPWidths==void 0)cp.responsiveAllBPWidths=cp.D.project.allbpswidth;(cp.m_isPreview||cp.m_isLMSPreview)&&cp.parentWindow.initializeResponsivePreview&&cp.parentWindow.initializeResponsivePreview(cp.D.project.cssWidths,
cp.D.project.w,cp.D.project.h,cp.D.project_main.cBW,cp.DESKTOP==cp.device);cp.updateResponsiveGlobals()}cp.offsetInnerWidth=0;cp.getInnerWidth();h=cp.getProjectContainer();if(cp.responsive){h.style.width="100%";h.style.height="100%"}else{h.style.width=cp.D.project.w+(cp.loadedModules.toc&&!cp.D.tocProperties.overlay?cp.D.tocProperties.width:0)+"px";h.style.height=cp.D.project.h+"px"}h=cp.getMainContainer();a=(cp.offsetInnerWidth-parseFloat(h.style.width))/2;h.style.left=cp.responsive?"0px":(a>0?a:
0)+"px";if(!cp.playImage)cp.playImage=cp("playImage");if(!cp.autoplayImage)cp.autoplayImage=cp("autoplayImage");if(!cp.autoplayDiv)cp.autoplayDiv=cp("autoplayDiv");if(!cp.gesturesDiv){cp.gesturesDiv=cp("gestureIcon");if(cp.useg){cp.gesturesDiv.style.display="block";cp.registerGestureEvent(cp.gesturesDiv,cp.GESTURE_EVENT_TYPES.TAP,cp.showGesturesHint)}else cp.gesturesDiv.style.display="none"}if(cp.device!=cp.DESKTOP){cp.playImage.className="autoPlayButton";if(cp.useg)cp.gesturesDiv.style.display="block"}else{if(!cp.D.project_main.autoplay)cp.playImage.className=
"autoPlayButton";cp.gesturesDiv.style.display="none"}if(!cp.ccdv){cp.ccdv=cp("cc");cp.fixWebkitScaling(cp.ccdv)}if(!cp.pwdv)cp.pwdv=cp("pwdv");if(!cp.exdv)cp.exdv=cp("exdv");if(!cp.preloaderImage)cp.preloaderImage=cp("preloaderImage");if(cp.movie==void 0){cp.movie=new cp.Movie(cp("project"));cp.eventManager=new cp.EventManager;cp.variablesManager=new cp.VariablesManager;cp.movie.audioManager=new cp.AudioManager;cp.movie.videoManager=new cp.VideoManager;cp.movie.mediaSeeker=new cp.MediaSeeker;cp.g_ShouldRandomize||
cp.NewQuizLibraryInit();cp.movie.vdm.load();cp.movie.am.load();h=cp.movie.stage.getSlideNameForIndex(0);cp.multiAudioTrack&&h!=""&&cp.movie.am.preload(h);h!=""&&cp.movie.vdm.preload(h);cp.movie.imageManager=new cp.ImageManager;cp.movie.prefetchManager=new cp.PrefetchManager;cp.movie.handleProjectOptions();cp.movie.pm.preloadSlideAssets(0);cp.movie.topOffset=0;h=cp.getProject();if(!cp.responsive)h.style.left=(cp.loadedModules.toc&&!cp.D.tocProperties.overlay&&cp.D.tocProperties.position==1?cp.D.tocProperties.width:
0)+"px"}if(h=cp.movie.stage.getSlideDiv()){h.ondblclick=cp.handleDblClick;h.oncontextmenu=cp.handleRightClick}cp.ccInit(cp.D.ccProperties);cp.loadedModules.border&&cp.borderInit(cp.D);cp.loadedModules.playbar?cp.playBarInit(cp.D):cp.setMovieLeftTopRightBottom(0,0,0,0);cp.loadedModules.toc&&cp.responsive&&cp.tocInit(cp.D,0,0,0,0);cp("project").style.zIndex=1;if(cp.loadedModules.toc)cp("toc").style.zIndex=2;if(cp.loadedModules.playbar)cp("playbar").style.zIndex=3;cp.ccdv=cp("cc");cp.pwdv=cp("pwdv");
cp.exdv=cp("exdv");if(cp.ccdv)cp.ccdv.style.zIndex=4;if(cp.gesturesDiv)cp.gesturesDiv.style.zIndex=4;if(cp.pwdv)cp.pwdv.style.zIndex=5;if(cp.exdv)cp.exdv.style.zIndex=6;if(cp.m_isPreview&&!cp.m_isEdgeInspectPreview&&!cp.responsive){h=cp.vm.getGeoVarsInfo();if(h.length>0&&!cp.fakeGeo){cp.fakeGeo=document.createElement("div");cp.fakeGeo.id="cpFakeGeo";a=document.createElement("div");a.innerHTML=cp.D.geoProps.geoEmul||"Emulate Geolocation";a.id="cpFakeGeoTitle";cp.fakeGeo.appendChild(a);var n=document.createElement("select");
n.id="cpFakeGeoList";(a=cp.D.geoProps.geoNone)||(a="nowhere");n.options[0]=new Option("<"+a+">","");for(var i in h)n.options[n.options.length]=new Option(h[i].name,cp.vm.getVariableValue(h[i].name));n.addEventListener("change",function(){cpInfoGeoLocation=n.value});cp.fakeGeo.appendChild(n);cp.fakeGeo.style.zIndex=7;document.body.appendChild(cp.fakeGeo)}}if(cp.dynamicLogControl){if(cp.consolidateLogs)cp.logArray=[];var l=cp.newElem("div");l.style.cssText="z-index:100;position:absolute;left:0px; top:0px; width:20px; height:20px;display:block;background-image:url(assets/htmlimages/hotspot_correct_answer_normal.png);opacity:"+
(cp.consolidateLogs?1:0.5);l.onclick=function(){if(!cp.logArray)cp.logArray=[];if(cp.consolidateLogs){for(var a=0;a<cp.logArray.length;++a)console.log(cp.logArray[a]);cp.logArray.length=0}cp.consolidateLogs=!cp.consolidateLogs;l.style.opacity=cp.consolidateLogs?1:0.5};l.innerHTML="<font color='#000000' style='font-size:10px'>consolidateLogs</font>";document.body.appendChild(l);var o=cp.newElem("div");o.style.cssText="z-index:100;position:absolute;left:0px; top:30px; width:20px; height:20px;display:block;background-image:url(assets/htmlimages/hotspot_correct_answer_normal.png);opacity:"+
(cp.movie.im.verbose?1:0.5);o.onclick=function(){cp.movie.im.verbose=!cp.movie.im.verbose;o.style.opacity=cp.movie.im.verbose?1:0.5};o.innerHTML="<font color='#000000' style='font-size:10px'>imageLogs</font>";document.body.appendChild(o);var k=cp.newElem("div");k.style.cssText="z-index:100;position:absolute;left:60px; top:30px; width:20px; height:20px;display:block;background-image:url(assets/htmlimages/arrow_right.gif);opacity:"+(cp.movie.pm.viewCache?1:0.5);k.onclick=function(){cp.movie.pm.viewCache=
!cp.movie.pm.viewCache;if(cp.movie.pm.viewCache){cp.movie.pm.cacheViews=[];for(var a=0;a<cp.movie.pm.cache.length;++a)cp.movie.pm.cacheViews[a]=new cp.CacheView(a);cp.movie.pm.showCache()}else{for(a in cp.movie.pm.cacheViews){document.body.removeChild(cp.movie.pm.cacheViews[a].view);--cp.CacheView.NUM_CACHE_VIEWS}delete cp.movie.am.cacheViews}k.style.opacity=cp.movie.pm.viewCache?1:0.5};k.innerHTML="<font color='#000000' style='font-size:10px'>view</font>";document.body.appendChild(k);var m=cp.newElem("div");
m.style.cssText="z-index:100;position:absolute;left:0px; top:60px; width:20px; height:20px;display:block;background-image:url(assets/htmlimages/hotspot_correct_answer_normal.png);opacity:"+(cp.movie.am.verbose?1:0.5);m.onclick=function(){cp.movie.am.verbose=!cp.movie.am.verbose;m.style.opacity=cp.movie.am.verbose?1:0.5};m.innerHTML="<font color='#000000' style='font-size:10px'>audioLogs</font>";document.body.appendChild(m);var p=cp.newElem("div");p.style.cssText="z-index:100;position:absolute;left:60px; top:60px; width:20px; height:20px;display:block;background-image:url(assets/htmlimages/arrow_right.gif);opacity:"+
(cp.movie.am.viewAudio?1:0.5);p.onclick=function(){cp.movie.am.viewAudio=!cp.movie.am.viewAudio;p.style.opacity=cp.movie.am.viewAudio?1:0.5;if(cp.movie.am.viewAudio){cp.movie.am.audioViews=[];for(var a=0;a<cp.movie.am.MAX_AUDIO_CHANNELS;++a){var b=cp.movie.am.audioChannels[a];cp.movie.am.audioViews[a]=new cp.AudioView(b)}}else{for(a in cp.movie.am.audioViews){b=cp.movie.am.audioViews[a];document.body.removeChild(b.view);--cp.MediaView.NUM_MEDIA_VIEWS}delete cp.movie.am.audioViews}};p.innerHTML="<font color='#000000' style='font-size:10px'>view</font>";
document.body.appendChild(p);i=cp.newElem("div");i.style.cssText="z-index:100;position:absolute;left:120px; top:60px; width:20px; height:20px;display:block;background-image:url(assets/htmlimages/hotspot_correct_answer_normal.png);opacity:1";i.onclick=function(){cp.movie.am.resetAllWaitingAudios()};i.innerHTML="<font color='#000000' style='font-size:10px'>!Wait</font>";document.body.appendChild(i);var q=cp.newElem("div");q.style.cssText="z-index:100;position:absolute;left:0px; top:90px; width:20px; height:20px;display:block;background-image:url(assets/htmlimages/hotspot_correct_answer_normal.png);opacity:"+
(cp.movie.vdm.verbose?1:0.5);q.onclick=function(){cp.movie.vdm.verbose=!cp.movie.vdm.verbose;q.style.opacity=cp.movie.vdm.verbose?1:0.5};q.innerHTML="<font color='#000000' style='font-size:10px'>videoLogs</font>";document.body.appendChild(q);var r=cp.newElem("div");r.style.cssText="z-index:100;position:absolute;left:60px; top:90px; width:20px; height:20px;display:block;background-image:url(assets/htmlimages/arrow_right.gif);opacity:"+(cp.movie.vdm.viewVideo?1:0.5);r.onclick=function(){cp.movie.vdm.viewVideo=
!cp.movie.vdm.viewVideo;r.style.opacity=cp.movie.vdm.viewVideo?1:0.5;if(cp.movie.vdm.viewVideo){cp.movie.vdm.videoViews=[];if(cp.device==cp.IDEVICE||cp.device==cp.ANDROID){cp.movie.vdm.slideVideoChannel&&cp.movie.vdm.videoViews.push(new cp.VideoView(cp.movie.vdm.slideVideoChannel));cp.movie.vdm.tocVideoChannel&&cp.movie.vdm.videoViews.push(new cp.VideoView(cp.movie.vdm.tocVideoChannel))}else{cp.movie.vdm.slideVideoChannel0&&cp.movie.vdm.videoViews.push(new cp.VideoView(cp.movie.vdm.slideVideoChannel0));
cp.movie.vdm.slideVideoChannel1&&cp.movie.vdm.videoViews.push(new cp.VideoView(cp.movie.vdm.slideVideoChannel1));cp.movie.vdm.tocVideoChannel0&&cp.movie.vdm.videoViews.push(new cp.VideoView(cp.movie.vdm.tocVideoChannel0));cp.movie.vdm.tocVideoChannel1&&cp.movie.vdm.videoViews.push(new cp.VideoView(cp.movie.vdm.tocVideoChannel1))}for(var a=0;a<cp.movie.vdm.MAX_VIDEO_CHANNELS;++a){var b=cp.movie.vdm.videoChannels[a];cp.movie.vdm.videoViews.push(new cp.VideoView(b))}}else{for(a in cp.movie.vdm.videoViews){b=
cp.movie.vdm.videoViews[a];document.body.removeChild(b.view);--cp.MediaView.NUM_MEDIA_VIEWS}delete cp.movie.vdm.videoViews}};r.innerHTML="<font color='#000000' style='font-size:10px'>view</font>";document.body.appendChild(r);i=cp.newElem("div");i.style.cssText="z-index:100;position:absolute;left:120px; top:90px; width:20px; height:20px;display:block;background-image:url(assets/htmlimages/hotspot_correct_answer_normal.png);opacity:1";i.onclick=function(){cp.movie.vdm.resetAllWaitingVideos()};i.innerHTML=
"<font color='#000000' style='font-size:10px'>!Wait</font>";document.body.appendChild(i);var s=cp.newElem("div");s.style.cssText="z-index:100;position:absolute;left:0px; top:120px; width:20px; height:20px;display:block;background-image:url(assets/htmlimages/hotspot_incorrect_answer_normal.png);opacity:"+(cp.exceptionalLogs?1:0.5);s.onclick=function(){cp.exceptionalLogs=!cp.exceptionalLogs;s.style.opacity=cp.exceptionalLogs?1:0.5};s.innerHTML="<font color='#000000' style='font-size:10px'>ErrorExcpn</font>";
document.body.appendChild(s);var t=cp.newElem("div");t.style.cssText="z-index:100;position:absolute;left:0px; top:150px; width:20px; height:20px;display:block;background-image:url(assets/htmlimages/hotspot_correct_answer_normal.png);opacity:"+(cp.verbose?1:0.5);t.onclick=function(){cp.verbose=!cp.verbose;t.style.opacity=cp.verbose?1:0.5};t.innerHTML="<font color='#000000' style='font-size:10px'>verbose</font>";document.body.appendChild(t);var u=cp.newElem("div");u.style.cssText="z-index:100;position:absolute;left:0px; top:180px; width:20px; height:20px;display:block;background-image:url(assets/htmlimages/hotspot_correct_answer_normal.png);opacity:"+
(cp.disablePaceMaker?0.5:1);u.onclick=function(){cp.disablePaceMaker=!cp.disablePaceMaker;u.style.opacity=cp.disablePaceMaker?0.5:1};u.innerHTML="<font color='#000000' style='font-size:10px'>PaceMaker</font>";document.body.appendChild(u);var v=cp.newElem("div");v.style.cssText="z-index:100;position:absolute;left:0px; top:210px; width:20px; height:20px;display:block;background-image:url(assets/htmlimages/hotspot_correct_answer_normal.png);opacity:"+(cp.movie.ms.verbose?1:0.5);v.onclick=function(){cp.movie.ms.verbose=
!cp.movie.ms.verbose;v.style.opacity=cp.movie.ms.verbose?1:0.5};v.innerHTML="<font color='#000000' style='font-size:10px'>seekLogs</font>";document.body.appendChild(v);if(cp.device!=cp.IDEVICE){var w=cp.newElem("div");w.style.cssText="z-index:100;position:absolute;left:0px; top:240px; width:20px; height:20px;display:block;background-image:url(assets/htmlimages/hotspot_correct_answer_normal.png);opacity:"+(cp.device==cp.IDEVICE?0.5:1);w.onclick=function(){if(cp.origDevice){cp.device=cp.origDevice;
delete cp.origDevice}else{cp.origDevice=cp.device;cp.device=cp.IDEVICE}w.style.opacity=cp.device==cp.IDEVICE?0.5:1};w.innerHTML="<font color='#000000' style='font-size:10px'>emulateiDevice</font>";document.body.appendChild(w)}var x=cp.newElem("div");x.style.cssText="z-index:100;position:absolute;left:0px; top:270px; width:20px; height:20px;display:block;background-image:url(assets/htmlimages/hotspot_correct_answer_normal.png);opacity:"+(cp.customConsole?0.5:1);x.onclick=function(){if(cp.customConsole){document.body.removeChild(cp.customConsole);
delete cp.customConsole}else{cp.customConsole=cp.newElem("textarea");cp.customConsole.style.cssText="z-index:100;position:absolute;left:0px; top:300px; width:300px; height:100px;display:block;";cp.customConsole.readonly=true;document.body.appendChild(cp.customConsole);cp.log("navigator.userAgent = "+navigator.userAgent);cp.log("browser = "+cp.browser);cp.log("browserVersion = "+cp.browserVersion);cp.log("device = "+cp.device);if(cp.device==cp.IDEVICE){cp.log("device flavor = "+cp.deviceFlavor);cp.log("IOS Version = "+
cp.IOSMajor+"_"+cp.IOSMinor+"_"+cp.IOSBuild)}}x.style.opacity=cp.customConsole?0.5:1};x.innerHTML="<font color='#000000' style='font-size:10px'>customConsole</font>";document.body.appendChild(x)}this.m_gestureHandler&&this.m_gestureHandler.addCPEventListeners()};cp.CPPostInit=function(){cp.initObjectFactory();cp.loadedModules.playbar&&cp.setPlaybarCallback(cp.movie);cp.loadedModules.toc&&cp.setTOCCallback(cp.movie,cp.em);typeof cptb!="undefined"&&cptb.PostInit();cp.adjustWindow();setTimeout("window.scrollTo(0,0);",
500);cp.movie.startTimer();window.onorientationchange=window.onresize=cp.adjustWindow;cp.responsive&&!cp.IsRunningInRoboHelp&&(cp.parentWindow&&cp.parentWindow.createSliders)&&cp.parentWindow.createSliders(cp.D.project.cssWidths,cp.getCurrentSlideResponsiveHeight(cp.D.project_main.cBW),cp.D.project_main.cBW);if(cp.m_isPreview&&!cp.m_isEdgeInspectPreview&&cp.responsive){window.addEventListener("message",function(a){if(window.location.origin==a.origin)if(a.data=="cpgetGeoVarsInfo"){var b=cp.vm.getGeoVarsInfo();
a.source.postMessage("cpfakeGeo"+JSON.stringify({geoVarsInfo:b,geoValues:y(b),title:cp.D.geoProps.geoEmul,dfltLoc:cp.D.geoProps.geoNone}),a.origin)}else a.data.substr(0,9)=="cpfakeGeo"&&(cpInfoGeoLocation=a.data.substr(9))},false);if(window.parent&&window.parent.postMessage){if(!window.location.origin)window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"");window.parent.postMessage("cpindexInited",window.location.origin)}}}})();
window.cpAPIInterface=void 0;window.cpAPIEventEmitter=void 0;cp.EventEmitterClass=function(){this.callbackFns={}};cp.EventEmitterClass.prototype.getGenericEventName=function(a){a=a.replace(/^CP/,"");a=a.replace(/Event$/,"");return a.toUpperCase()};
cp.EventEmitterClass.prototype.addEventListener=function(a,b,c){void 0==a&&(a="Default");var d=[];c&&""!=c?(void 0==this.callbackFns[a]&&(this.callbackFns[a]={}),void 0==this.callbackFns[a][c]&&(this.callbackFns[a][c]=[]),d=this.callbackFns[a][c]):(void 0==this.callbackFns[a]&&(this.callbackFns[a]=[]),d=this.callbackFns[a]);0>d.indexOf(b)&&d.push(b)};
cp.EventEmitterClass.prototype.removeEventListener=function(a,b,c){void 0==a&&(a="Default");var d=[];if(c&&""!=c){if(void 0==this.callbackFns[a]||void 0==this.callbackFns[a][c])return;d=this.callbackFns[a][c]}else{if(void 0==this.callbackFns[a])return;d=this.callbackFns[a]}a=d.indexOf(b);-1<a&&d.splice(a,1)};
cp.EventEmitterClass.prototype.trigger=function(a){a.Name="CPAPI_"+this.getGenericEventName(a.cpName);var b=this.callbackFns[a.Name];if("CPAPI_VARIABLEVALUECHANGED"==a.Name){if(!b)return;b=b[a.Data.varName]}if(b)for(var c=0;c<b.length;c++)b[c](a)};cp.ACAPEventEmitterClass=function(){cp.ACAPEventEmitterClass.baseConstructor.call(this)};cp.inherits(cp.ACAPEventEmitterClass,cp.EventEmitterClass);
cp.ACAPEventEmitterClass.prototype.addEventListener=function(a,b){cp.ACAPEventEmitterClass.superClass.addEventListener.call(this,b,a)};cp.ACAPEventEmitterClass.prototype.removeEventListener=function(a,b){cp.ACAPEventEmitterClass.superClass.removeEventListener.call(this,b,a)};cp.ACAPEventEmitterClass.prototype.trigger=function(a){a.Name="CAPI_"+this.getGenericEventName(a.cpName);var b=this.callbackFns.Default;if(b)for(var c=0;c<b.length;c++)b[c](a)};
cp.ACAPEventEmitterClass.prototype.getEvent=function(a,b,c){b=document.createEvent("Events");b.initEvent("getData",!0,!0,null);b.data=a;b.get=c;for(a=0;a<this.callbackFns.length;a++)this.callbackFns[a](event)};cp.CPAPIInterfaceClass=function(){this.m_eventEmitter=void 0};
cp.CPAPIInterfaceClass.prototype={canPlay:function(){return cp.isExpired||!cp.passwordAccepted?!1:!0},play:function(){this.canPlay()&&cp.movie.paused&&cp.playPause(!0)},pause:function(){cp.movie.paused||cp.playPause(!0)},rewind:function(){cp.rewind()},next:function(){cp.goToNextSlide()},previous:function(){cp.goToPreviousSlide()},fastForward:function(){cp.fastForward()},getPlaySpeed:function(){return cpInfoFPS},getDurationInFrames:function(){return cpInfoFrameCount},getDurationInSeconds:function(){return this.getDurationInFrames()/
this.getPlaySpeed()},getVolume:function(){return cpCmndVolume},setVolume:function(a){cpCmndVolume=a},navigateToTime:function(a){a=a*cpInfoFPS/1E3;0<=a&&1>a&&(a=1);cp.movie.jumpToFrame(a)},gotoSlide:function(a){cpCmndGotoSlide=a},canNavigateToTime:function(a){a=a*cpInfoFPS/1E3;0<=a&&1>a&&(a=1);return cp.shouldMoveTo(a)},getCurrentFrame:function(){return cpInfoCurrentFrame},getCurrentSlideIndex:function(){return cpInfoCurrentSlide},getEventEmitter:function(){void 0==this.m_eventEmitter&&(this.m_eventEmitter=
cp.IsRunningInACAP?new cp.ACAPEventEmitterClass:new cp.EventEmitterClass);return this.m_eventEmitter},getVariableValue:function(a){return window[a]},setVariableValue:function(a,b){window[a]=b},close:function(){window.DoCPExit()},setAllowForceQuitContainer:function(a){cp.setAllowForceQuitContainer=a?!0:!1},isSWFOrHTMLContent:function(){return"html"},getCurrentDeviceMode:function(){return cp.ResponsiveProjWidth==cp.responsiveWidths[0]?"mobile":cp.ResponsiveProjWidth==cp.responsiveWidths[1]?"tablet":
"desktop"}};
cp.ACAPInterfaceClass=function(){this.ReportingCriteriaMap={};this.ReportingCriteriaMap.user_access=cp.ReportingOptionsEnum.access;this.ReportingCriteriaMap.quiz_only=cp.ReportingOptionsEnum.quiz_only;this.ReportingCriteriaMap.slideviews_only=cp.ReportingOptionsEnum.views_only;this.ReportingCriteriaMap.quiz_and_slideviews=cp.ReportingOptionsEnum.quiz_and_views;this.QuizCriteriaMap={};this.QuizCriteriaMap.quiz_passed=cp.QuizCriteriaEnum.QuizIsPassed;this.QuizCriteriaMap.quiz_attempted=cp.QuizCriteriaEnum.QuizIsAttempted;
this.QuizCriteriaMap.quizpassed_or_limitreached=cp.QuizCriteriaEnum.QuizIsPassedOrAttempLimitReached};cp.inherits(cp.ACAPInterfaceClass,cp.CPAPIInterfaceClass);cp.ACAPInterfaceClass.prototype.controlVisibility=function(a,b){"playbar"==a?cp.D.playBarProperties.hasPlayBar=b:"toc"==a?cp.D.project.hasTOC=b?1:0:"cc"==a&&(cp.D.playBarProperties.hasCC=b)};cp.ACAPInterfaceClass.prototype.navigateToItem=function(a){cp.movie.jumpToFrame(cp.D[a].from)};cp.ACAPInterfaceClass.prototype.canNavigateToItem=function(a){return cp.shouldMoveTo(cp.D[a].from)};
cp.ACAPInterfaceClass.prototype.enterReviewMode=function(){setCpInfoCurrentFrame(0)};cp.ACAPInterfaceClass.prototype.prepareForACAPRender=function(){this.controlVisibility("playbar",!1);this.controlVisibility("cc",!1);this.controlVisibility("toc",!1)};cp.ACAPInterfaceClass.prototype.stop=function(){cpCmndRewindAndStop=!0};
cp.ACAPInterfaceClass.prototype.setReportingOptions=function(a,b){this.completionCriteria=this.ReportingCriteriaMap[b.criteriaChosen];this.quizCriteriaForCompletion=this.QuizCriteriaMap[b.quizCriteria];this.slideViewsForCompletion=b.slideviewsValue;this.slideViewsTypeForCompletion=cp.SlideViewsTypeEnum.percent;b.isPercentageSlideviews||(this.slideViewsTypeForCompletion=cp.SlideViewsTypeEnum.number);this.successCriteria=this.ReportingCriteriaMap[a.criteriaChosen];this.quizCriteriaForSuccess=this.QuizCriteriaMap[a.quizCriteria];
this.slideViewsForSuccess=a.slideviewsValue;this.slideViewsTypeForSuccess=cp.SlideViewsTypeEnum.percent;a.isPercentageSlideviews||(this.slideViewsTypeForSuccess=cp.SlideViewsTypeEnum.number)};cp.ConnectInterfaceClass=function(){};cp.inherits(cp.ConnectInterfaceClass,cp.CPAPIInterfaceClass);cp.ConnectInterfaceClass.prototype.goToScrubPosition=function(a){a=a*cpInfoFPS/1E3;0<=a&&1>a&&(a=1);var b=cp.movie.stage.currentSlide,c=b.from,b=b.to;a<c?cp.movie.jumpToFrame(c):a>b?cp.movie.jumpToFrame(b):cp.movie.jumpToFrame(a)};
cp.ConnectInterfaceClass.prototype.setAllowForceQuitContainer=function(a){cp.setAllowForceQuitContainer=a?!0:!1};cp.ConnectInterfaceClass.prototype.close=function(){window.DoCPExit()};
cp.ConnectInterfaceClass.prototype.showUI=function(a,b){if("playbar"==a)return b?(this.setVariableValue("cpCmndShowPlaybar",1),cp.disableInteractions=!1):(this.setVariableValue("cpCmndShowPlaybar",0),cp.disableInteractions=!0),!0;if("closeButton"==a){if(!1==cpCmndShowPlaybar)return!1;for(var c=cp.PB.rootObj.firstRowArray,d,e=0;e<c.length;e++)c[e].iconName==cp.PB.Btns.kBtnExit&&(d=c[e]);if(void 0==d)return!1;b?(d.currDiv.style.display="block",cp.PB.hideExitButton=!1,cp.adjustSkins&&cp.adjustSkins()):
(d.currDiv.style.display="none",cp.PB.hideExitButton=!0)}return!1};
(function(a){a.Feedback=function(d,c,b,e,f){this.lastFrame=this.startFrame=this.currentFrame=0;this.itemName=d;this.endAction=c;this.parentSlide=a.movie.stage.currentSlide;this.element=document.getElementById(d);this.item=a.D[d];this.type=a.FeedbackType.OTHER;if(void 0!=e)switch(e){case a.FeedbackType.SUCCESS:case a.FeedbackType.FAILURE:case a.FeedbackType.HINT:this.type=e}this.actionObj=f;a.FeedbackType.SUCCESS==this.type&&this.actionObj&&(this.actionObj.actionInProgress=!0);this.item&&(this.transIn=
this.item.trin,this.effectObj=this.item.ef);this.transIn||(this.transIn=0);this.drawingBoard=null;this.element&&this.element.drawingBoard&&(this.element.drawingBoard.style.opacity=0,this.drawingBoard=this.element.drawingBoard);this.item&&(this.transOut=this.item.trout);this.transOut||(this.transOut=0);this.pause=b;this.onMouse=!1;this.item&&(this.item.to&&this.item.from)&&(this.lastFrame=this.item.to-this.item.from);this.item&&void 0!=this.item.du&&(this.lastFrame=this.item.du);this.createCSSAnimationRule()};
a.Feedback.prototype={update:function(){this.currentFrame++;this.currentFrame>this.lastFrame&&(a.movie.stage.RemoveFeedback(this),this.hide(),this.endAction&&a.movie.executeAction(this.endAction));if(this.effectObj){var d=this.effectObj["ef"+this.effectObj.id];if(d&&d.length)for(var c=0;c<d.length;++c){var b=d[c],e=this.currentFrame;if(b.sf-1>e||b.sf-1+b.du<=e)b.ci=-1;else{for(var f,e=e-(b.sf-1),g=0;g<b.kf.length-1;++g)if(b.kf[g].f<=e&&b.kf[g+1].f>e){b.ci=g;break}f=b.kf[b.ci];var i=b.io,l=b.fo,h=
b.kf[b.ci+1],j=e-f.f,k=0>b.ease?-b.ease/100+1:1-b.ease/200,g=f.x+(h.x-f.x)*Math.pow(j/(h.f-f.f),k);f=f.y+(h.y-f.y)*Math.pow(j/(h.f-f.f),k);b=(i+(l-i)*e/b.du)/100;b=0>b?0:b;b=1<b?1:b;this.element.style.left=this.element.bounds.minX+g+"px";this.element.style.top=this.element.bounds.minY+f+"px";this.element.drawingBoard&&(this.element.drawingBoard.style.left=this.element.drawingBoard.bounds.minX+g+"px",this.element.drawingBoard.style.top=this.element.drawingBoard.bounds.minY+f+"px",this.element.drawingBoard.style.opacity=
b+"")}}}if(this.drawingBoard)if(d=a.canUseWebkitAnimations()&&a.FeedbackType.HINT!=this.type,c=this.currentFrame,b=this.lastFrame-this.currentFrame,c<this.transIn)d||(this.drawingBoard.style.opacity=a.device!=a.DESKTOP?1:c/this.transIn);else if(d||(this.drawingBoard.style.opacity=a.device!=a.DESKTOP?1:c>this.lastFrame-this.transOut?b/this.transOut:1),this.onMouse)this.currentFrame=this.lastFrame-this.transOut-1},onRollover:function(){this.onMouse=!0;this.currentFrame=0;this.show()},onRollout:function(){this.onMouse=
!1;this.currentFrame=this.lastFrame-this.transOut},createCSSAnimationRule:function(){function d(){var a=document.styleSheets[0];if(a&&!a.cssRules)return!1;for(var c=0;c<a.cssRules.length;++c)if(a.cssRules[c].type==window.CSSRule.WEBKIT_KEYFRAMES_RULE&&a.cssRules[c].name==b)return!0;return!1}var c=a.D[this.itemName];if(c&&a.canUseWebkitAnimations()&&a.FeedbackType.HINT!=this.type){var b=this.itemName+"_rule";if(d())a.verbose&&a.log("rule exists");else{var e="";if(0!=c.trin&&void 0!=c.trin)var f=Math.round(1E4*
c.trin/c.du)/100,e=e+(" { 0% { opacity:0; } "+f+"% { opacity:1; } ");else e+=" { 0% { opacity:1; } ";0!=c.trout&&void 0!=c.trout?(c=Math.round(1E4*(c.du-c.trout)/c.du)/100,e+=" "+c+"% { opacity:1; } 100% { opacity:0; } }"):e+=" 100% { opacity:1; } }";c=document.styleSheets[0];a.verbose&&a.log(b+", "+e);c.insertRule("@-webkit-keyframes "+b+e)}this.webkitAnimationRule=b}},show:function(){var d=a.D[this.itemName];if(d&&(this.drawingBoard&&(a.canUseWebkitAnimations()&&a.FeedbackType.HINT!=this.type?
(a.verbose&&a.log("Using Webkit animation"),this.drawingBoard.style.webkitAnimationName=this.webkitAnimationRule,this.drawingBoard.style.webkitAnimationDuration=d.du/a.movie.fps+"s"):this.drawingBoard.style.opacity=a.device!=a.DESKTOP?1:0),void 0!=this.parentSlide&&this.parentSlide==a.movie.stage.currentSlide)){this.pause&&!a.movie.paused&&a.movie.pause(a.ReasonForPause.FEEDBACK_ITEM);var c=a.FeedbackCloseReason.OTHER;switch(this.type){case a.FeedbackType.SUCCESS:c=a.FeedbackCloseReason.SHOW_SUCCESS;
break;case a.FeedbackType.FAILURE:c=a.FeedbackCloseReason.SHOW_FAILURE;break;case a.FeedbackType.HINT:c=a.FeedbackCloseReason.SHOW_HINT}a.movie.stage.RemoveFeedbacks(c);a.movie.stage.AddFeedback(this);a.moveDivElemToTop(this.element);d=document.getElementById(d.mdi);void 0!=d&&a.moveRewrapElemToTop(d.parentNode);a.show(this.itemName)}},hide:function(){a.FeedbackType.SUCCESS==this.type&&this.actionObj&&(this.actionObj.actionInProgress=!1);a.hide(this.itemName);this.drawingBoard&&(this.drawingBoard.style.opacity=
1)},canHide:function(d){return a.FeedbackType.HINT==this.type||a.FeedbackType.OTHER==this.type||a.FeedbackCloseReason.SLIDE_CHANGE==d||a.FeedbackCloseReason.OTHER==d?!0:a.FeedbackCloseReason.SHOW_HINT==d||a.FeedbackType.SUCCESS==this.type?!1:!0}}})(window.cp);
(function(b){b.ResultSlideLabel=function(f,e){b.ResultSlideLabel.baseConstructor.call(this,f);this.id=this.getAttribute("id");this.visible=this.getAttribute("visible");this.textAlign=this.getAttribute("ta");this.bold=this.getAttribute("B");this.color=this.getAttribute("c");this.font=this.getAttribute("f");this.italic=this.getAttribute("i");this.size=this.getAttribute("sz");this.underline=this.getAttribute("u");this.parentDivName=this.getAttribute("dn");this.quizParam=this.getAttribute("qp");var a=
"";if(b.movie.playbackController){var c=b.movie.playbackController.GetQuizController();if(c&&(null!=this.quizParam?a=c.GetParameterValueByName(this.quizParam):b.movie.playbackController.HasQuiz()&&(this.textAlign="left",a=c.GetIsPassed()?c.GetPassedScoreFeedback():c.GetFailedScoreFeedback()),this.text=a,a=this.getAttribute("b"),this.bounds={minX:a[0],minY:a[1],maxX:a[2],maxY:a[3]},this.tr=this.getAttribute("tr"),this.re=this.getAttribute("re"),this.sh=this.getAttribute("sh"),a=this.getAttribute("vb"),
this.vbounds={minX:a[0],minY:a[1],maxX:a[2],maxY:a[3]},this.element&&(this.element.parentElement.drawingBoard=this.element.parentElement,this.element.parentElement.bounds=this.bounds),this.args=e,this.isDrawn=!1,b.responsive))this.responsiveCSS=this.getAttribute("css")}};b.inherits(b.ResultSlideLabel,b.DisplayObject);b.ResultSlideLabel.prototype.start=function(b,e){this.addIfNeeded(b,e);if(!this.effectIsStarted||b)this.updateEffects(this.hasEffect),this.effectIsStarted=!0};b.ResultSlideLabel.prototype.reset=
function(){delete b.ropMap[this.element.id];this.isDrawn=!1;this.element.width="0";this.element.height="0";this.element.style.width="0px";this.element.style.height="0px";this.element.left="0";this.element.top="0";this.element.style.left="0px";this.element.style.top="0px"};b.ResultSlideLabel.prototype.drawForResponsive=function(f,e){if(!this.responsiveCSS)return!1;if(this.isDrawn&&!f)return!0;var a=b.getResponsiveCSS(this.responsiveCSS),c=!1,c=this.sh&&!this.sh.i||this.fillOuterArea,d=void 0!=this.tr;
if(this.isDrawn&&this.currentCSS==a&&!c&&!d&&(!f||e==b.ReasonForDrawing.kMoviePaused))return!0;this.currentCSS=a;c=this.getAttribute("dn");this.parentDivName||(this.parentDivName=c);this.actualParent=b(this.parentDivName);c=b.D[this.parentDivName];d=b("re-"+this.element.id);d||(b.applyResponsiveStyles(this.element.parentElement,a,!0),this.element.parentNode.removeChild(this.element),d=b.newElem("div"),d.id="re-"+this.element.id,b.fixWebkitScaling(d),b.movie.stage.getSlideDiv(),b.addRewrapObjectAsPerRestOfProjectItem(d),
d.setAttribute("class","cp-rewrap"),d.appendChild(this.element),d.setAttribute("tabIndex",-1),this.zIndex=c.zIndex,d.style.zIndex=this.zIndex);b.applyResponsiveStyles(d,a,!0);this.isDrawn||(this.element.style.left="0px",this.element.style.top="0px",this.element.style.width="100%",this.element.style.position="absolute",this.sh&&(this.element.style.textShadow=this.sh.d*Math.cos(Math.PI*this.sh.a/180)+"px "+this.sh.d*Math.sin(Math.PI*this.sh.a/180)+"px "+this.sh.b+"px "+b.ConvertRGBToRGBA(this.sh.c,
this.sh.o)+(this.sh.i?" inset":"")),this.re&&(d.style.webkitBoxReflect="below "+this.re.d+"px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop("+(1-this.re.s/100)+", transparent), to(rgba(255, 255, 255, "+(1-this.re.p/100)+")))"),this.actualParentElem=b(this.parentDivName),this.actualParentElem.setAttribute("tabIndex",-1),b.createAlternativeAccessibleText(this.actualParentElem,this.text),b.removeAccessibilityOutline(this.actualParentElem));b.applyResponsiveStyles(this.actualParentElem,
a,!0);a=this.getAttribute("rpfont")[b.ResponsiveProjWidth].font;this.element.style.fontWeight=a.B?"bold":"normal";this.element.style.fontStyle=a.i?"italic":"normal";this.element.style.textDecoration=a.u?"underline":"none";this.element.style.color=a.c;this.element.style.fontFamily=a.n;this.element.style.fontSize=a.s+"px";this.element.style.textAlign=this.textAlign;this.element.style.verticalAlign="middle";""==this.element.innerHTML&&(this.element.innerHTML+=this.text);this.isDrawn=!0;this.drawComplete(e);
this.visible||b.hide(this.parentDivName);a=this.actualParentElem.clientHeight;0<a&&this.element.clientHeight<=a&&(this.element.style.top=(a-this.element.clientHeight)/2+"px");return!0};b.ResultSlideLabel.prototype.addIfNeeded=function(f,e){if((!b.responsive||!this.drawForResponsive(f,e))&&!this.isDrawn){var a=b.newElem("div");a.id="re-"+this.element.id;b.fixWebkitScaling(a);this.element.parentElement.style.position="absolute";this.element.parentElement.style.left=this.vbounds.minX+"px";this.element.parentElement.style.top=
this.vbounds.minY+"px";this.element.parentElement.style.width=this.vbounds.maxX-this.vbounds.minX+"px";this.element.parentElement.style.height=this.vbounds.maxY-this.vbounds.minY+"px";a.style.position="absolute";a.style.left=this.vbounds.minX+"px";a.style.top=this.vbounds.minY+"px";a.style.width=this.vbounds.maxX-this.vbounds.minX+"px";a.style.height=this.vbounds.maxY-this.vbounds.minY+"px";this.element.style.left="0px";this.element.style.top="0px";this.element.style.width="100%";this.sh&&(this.element.style.textShadow=
this.sh.d*Math.cos(Math.PI*this.sh.a/180)+"px "+this.sh.d*Math.sin(Math.PI*this.sh.a/180)+"px "+this.sh.b+"px "+b.ConvertRGBToRGBA(this.sh.c,this.sh.o)+(this.sh.i?" inset":""));this.re&&(a.style.webkitBoxReflect="below "+this.re.d+"px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop("+(1-this.re.s/100)+", transparent), to(rgba(255, 255, 255, "+(1-this.re.p/100)+")))");this.element.style.position="absolute";this.element.style.textAlign=this.textAlign;this.element.style.verticalAlign=
"middle";this.element.style.color=this.color;this.element.style.fontFamily=this.font;this.element.style.fontSize=this.size+"px";this.element.style.fontWeight=this.bold?"bold":"normal";this.element.style.fontStyle=this.italic?"italic":"normal";this.element.style.textDecoration=this.underline?"underline":"none";""==this.element.innerHTML&&(this.element.innerHTML+=this.text);this.element.parentNode.removeChild(this.element);b.movie.stage.getSlideDiv();b.addRewrapObjectAsPerRestOfProjectItem(a);a.setAttribute("class",
"cp-rewrap");a.appendChild(this.element);a.setAttribute("tabIndex",-1);this.zIndex=b.D[this.parentDivName].zIndex;a.style.zIndex=this.zIndex;this.actualParentElem=b(this.parentDivName);this.actualParentElem.setAttribute("tabIndex",-1);b.createAlternativeAccessibleText(this.actualParentElem,this.text);b.removeAccessibilityOutline(this.actualParentElem);this.isDrawn=!0;this.visible||b.hide(this.parentDivName);var c=b.newElem("div");c.style.color=this.element.style.color;c.style.fontFamily=this.element.style.fontFamily;
c.style.fontSize=this.element.style.fontSize;c.style.fontWeight=this.element.style.fontWeight;c.style.fontStyle=this.element.style.fontStyle;c.style.textDecoration=this.element.style.textDecoration;this.sh&&(c.style.textShadow=this.element.style.textShadow);c.style.visibility="hidden";c.innerHTML=this.element.innerHTML;document.body.appendChild(c);a=c.clientHeight;document.body.removeChild(c);c=this.vbounds.maxY-this.vbounds.minY;0<a&&(0<c&&a<=c)&&(this.element.style.top=(c-a)/2+"px")}}})(window.cp);
(function(a){a.DrawingItem=function(e,f,c){function d(a){k.changeStateOnMouseEvents&&k.changeStateOnMouseEvents("mouseover",a)}function l(a){k.changeStateOnMouseEvents&&k.changeStateOnMouseEvents("mouseout",a)}function i(a){k.changeStateOnMouseEvents&&k.changeStateOnMouseEvents("mousedown",a)}function j(a){k.changeStateOnMouseEvents&&k.changeStateOnMouseEvents("mouseup",a)}function g(a,c,d,e){return function(f){if(!(k.parentObj&&void 0!=k.parentObj.enabled)||k.parentObj.enabled)e&&e(),d&&k.mouseState==
a||(k.mouseState=a,c(f))}}var k=this;this.mouseState=a.mouseStateOut;a.DrawingItem.baseConstructor.call(this,e);this.visible=this.getAttribute("visible");this.parentId=a.D[f].dn;this.parentObj=a.D[this.parentId];this.canvasObj=null;this.transIn=this.parentObj.trin;void 0!=this.parentObj&&(this.canvasObj=a.D[this.parentObj.mdi]);this.parentDivName=this.getAttribute("dn");this.actualParent=e=document.getElementById(this.parentDivName);this.canvasObj&&(this.type=this.canvasObj.t,f=this.canvasObj.b,this.bounds=
{minX:f[0],minY:f[1],maxX:f[2],maxY:f[3],width:f[2]-f[0],height:f[3]-f[1]},this.args=c,c=this.canvasObj.vb,this.vbounds={minX:c[0],minY:c[1],maxX:c[2],maxY:c[3],width:c[2]-c[0],height:c[3]-c[1]},this.sh=this.canvasObj.sh,this.re=this.canvasObj.re,this.tr=this.canvasObj.tr,this.currImage=this.getAttribute("ip"));e&&(e.drawingBoard=this.element.parentElement,e.bounds=this.bounds,e.drawingBoard.bounds=this.vbounds);this.parentObj&&a.doesSupportStates(this.parentObj.type)&&e&&(a.device==a.IDEVICE||a.device==
a.ANDROID?(e.ontouchstart=g(a.mouseStateTouchStart,i),e.ontouchend=g(a.mouseStateTouchEnd,j)):(e.onmouseover=g(a.mouseStateOver,d,!1,e.onmouseover),e.onmouseout=g(a.mouseStateOut,l,!1,e.onmouseout),e.onmousedown=g(a.mouseStateDown,i),e.onmouseup=g(a.mouseStateUp,j)));this.shouldShowRollOver=!0;this.isDrawn=!1;a.responsive&&(this.responsiveCSS=this.getAttribute("css"));!1==this.cloneOfBaseStateItem&&-1!=this.baseStateItemID&&(this.playEffectsOnStart=!0);a.setInitialVisibility(this)};a.inherits(a.DrawingItem,
a.DisplayObject);a.DrawingItem.prototype.start=function(a,f){this.drawIfNeeded(a,f);if(!this.effectIsStarted||a)this.updateEffects(this.hasEffect),this.effectIsStarted=!0};a.DrawingItem.prototype.reset=function(){delete a.ropMap[this.element.id];this.isDrawn=!1;this.element.width="0";this.element.height="0";this.element.style.width="0px";this.element.style.height="0px";this.element.left="0";this.element.top="0";this.element.style.left="0px";this.element.style.top="0px";this.effectIsStarted=!1};a.DrawingItem.prototype.drawForResponsive=
function(e,f){if(!this.responsiveCSS)return!1;if(this.isDrawn&&!e)return!0;var c=a.getResponsiveCSS(this.responsiveCSS),d=!1,d=this.sh&&!this.sh.i;if(!this.isDrawn||!(this.currentCSS==c&&e&&f==a.ReasonForDrawing.kMoviePaused))if(this.currentCSS=c,this.canvasObj&&this.type){var l=this.canvasObj,i=this.getAttribute("dn"),j=a.D[i];this.parentDivName=i;var g=c,k=this.actualParent.style.transform||this.actualParent.style.msTransform||this.actualParent.style.MozTransform||this.actualParent.style.WebkitTransform||
this.actualParent.style.OTransform,m=this.element.parentElement.style.transform||this.element.parentElement.style.msTransform||this.element.parentElement.style.MozTransform||this.element.parentElement.style.WebkitTransform||this.element.parentElement.style.OTransform;a.applyTransform(this.actualParent,"");a.applyTransform(this.element.parentElement,"");a.applyResponsiveStyles(this.actualParent,c,!0);if(j.rpvt&&j.autoGrow&&(f==a.ReasonForDrawing.kTextGrow||f==a.ReasonForDrawing.kMouseEvent)){i=j.minItemHeight;
if(!i){i=j.variableText;void 0==i&&(i=j.rpvt[a.ResponsiveProjWidth].vt);var o=this.actualParent.clientWidth,p=j.offsets;p&&(o-=p[0]+p[2]);o-=(j.rplm?j.rplm[a.ResponsiveProjWidth]:0)+(j.rprm?j.rprm[a.ResponsiveProjWidth]:0);i=a.createTempTextElemAndGetBoundingRect(o,j,i).height}this.actualParent.clientHeight<i&&(this.actualParent.style.height=i+"px");a.createResponsiveStyleObj(c,c.p,c.l,c.t,c.r,c.b,this.actualParent.clientWidth+"px",this.actualParent.clientHeight+"px",c.crop)}this.actualParent.offsetHeight=
this.actualParent.offsetHeight;this.actualParentClientBoundingRect=this.actualParent.getBoundingClientRect();var q=a.movie.stage.mainSlideDiv.getBoundingClientRect();this.HFactor=this.WFactor=1;this.WFactor=parseInt(100*this.actualParent.clientWidth/this.bounds.width)/100;this.HFactor=parseInt(100*this.actualParent.clientHeight/this.bounds.height)/100;i=0;this.tr&&(i=a.getAngleFromRotateStr(this.tr));if(!this.m_centrePoint||f==a.ReasonForDrawing.kOrientationChangeOrResize||f==a.ReasonForDrawing.kLinkedToItemAppeared)this.m_centrePoint=
a.getCenterForRotation(this.actualParent);o=a.getBoundsForRotatedItem1(this.actualParentClientBoundingRect.left-q.left,this.actualParentClientBoundingRect.top-q.top,this.actualParentClientBoundingRect.width,this.actualParentClientBoundingRect.height,this.m_centrePoint,i,this.strokeWidth);p=t=r=b=void 0;"auto"!=c.l&&(p=o.l);"auto"!=c.t&&(t=o.t);"auto"!=c.r&&(r=o.r);"auto"!=c.b&&(b=o.b);g=a.createResponsiveStyleObj(c,c.p,p,t,r,b,o.w,o.h,c.crop);a.applyResponsiveStyles(this.element.parentElement,g);
this.parentElementClientBoundingRect=this.element.parentElement.getBoundingClientRect();p=o=0;this.m_centrePoint&&(o=this.m_centrePoint.X-(this.actualParentClientBoundingRect.left-q.left),p=this.m_centrePoint.Y-(this.actualParentClientBoundingRect.top-q.top));if(j.rpvt){var g=this.actualParent.id+"_vTxtHandlerHolder",n=a(g);n||(n=a.newElem("div"),n.id=g,n.style.display="block",n.style.position="absolute",n.style.width=this.actualParent.clientWidth+"px",n.style.height=this.actualParent.clientHeight+
"px",n.style.visibility="hidden",this.actualParent.appendChild(n));n.style.left="0px";n.style.top="0px";n.style.width=this.actualParent.clientWidth+"px";n.style.height=this.actualParent.clientHeight+"px";n=this.actualParent.id+"_vTxtHolder";g=a(n);g||(g=a.newElem("div"),g.id=n,g.style.display="block",g.style.position="absolute",this.element.parentElement.appendChild(g),g.style.width=this.actualParent.clientWidth+"px",g.style.height=this.actualParent.clientHeight+"px");a.applyTransform(g,"rotate(0)");
n=this.actualParentClientBoundingRect.top-this.parentElementClientBoundingRect.top+this.actualParent.clientHeight/2;g.style.left=this.actualParentClientBoundingRect.left-this.parentElementClientBoundingRect.left+this.actualParent.clientWidth/2-this.actualParent.clientWidth/2+"px";g.style.top=n-this.actualParent.clientHeight/2+"px";g.style.width=this.actualParent.clientWidth+"px";g.style.height=this.actualParent.clientHeight+"px";f==a.ReasonForDrawing.kOrientationChangeOrResize&&a.updateVarText(this.actualParent,
!0,!0);this.tr&&(g.style.left=(this.element.parentElement.clientWidth-g.clientWidth)/2+"px",g.style.top=(this.element.parentElement.clientHeight-g.clientHeight)/2+"px",n="center center",g.style["-ms-transform-origin"]=n,g.style["-moz-transform-origin"]=n,g.style["-webkit-transform-origin"]=n,g.style["-o-transform-origin"]=n,g.style["transform-origin"]=n,a.applyTransform(g,this.tr))}a.applyTransform(this.actualParent,k);a.applyTransform(this.element.parentElement,m);var m=this.actualParent,s=k=0;d?
(k=a("div_Slide").clientWidth,s=a("div_Slide").clientHeight):(k=this.element.parentElement.clientWidth,s=this.element.parentElement.clientHeight);g=a.createResponsiveStyleObj(c,void 0,"0px","0px","0px","0px",k+"px",s+"px",void 0);n=this.parentElementClientBoundingRect.left-q.left;q=this.parentElementClientBoundingRect.top-q.top;g=this.canvas=a.createResponsiveCanvas(g,k,s,this.element);!this.isParentOfTypeSlide&&d&&(this.element.style.marginLeft=(0>n?1:-1)*n+"px",this.element.style.marginTop=(0>q?
1:-1)*q+"px");this.re&&(this.element.parentElement.style.webkitBoxReflect="below "+this.re.d+"px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop("+(1-this.re.s/100)+", transparent), to(rgba(255, 255, 255, "+(1-this.re.p/100)+")))");a.movie.stage.addToParentChildMap(m.id,this.element.id);this.element.originalParent=m;k=g.gc;k.crop=c.crop?c.crop:void 0;k.save();d&&(k.setTransform(1,0,0,1,0>n?-n:0,0>q?-q:0),k.translate(n,q),k.shadowOffsetX=this.sh.d*Math.cos(Math.PI*this.sh.a/
180),k.shadowOffsetY=this.sh.d*Math.sin(Math.PI*this.sh.a/180),k.shadowBlur=this.sh.b,c=this.sh.o,1==c&&(c=0.999),k.shadowColor=a.ConvertRGBToRGBA(this.sh.c,c));this.element.style.display="block";this.element.style.position="absolute";k=g.gc;k.save();this.tr&&(n=o?100*o/m.clientWidth+"%":"center",n+=" ",n=p?n+(100*p/m.clientHeight+"%"):n+"center",m.style["-ms-transform-origin"]=n,m.style["-moz-transform-origin"]=n,m.style["-webkit-transform-origin"]=n,m.style["-o-transform-origin"]=n,m.style["transform-origin"]=
n,a.applyTransform(m,this.tr),m.tr=this.tr);m.rotateAngle=i;c=this.element.parentElement.clientWidth/2;d=this.element.parentElement.clientHeight/2;c=this.actualParentClientBoundingRect.left-this.parentElementClientBoundingRect.left+o;d=this.actualParentClientBoundingRect.top-this.parentElementClientBoundingRect.top+p;k.translate(c,d);0!=i?k.rotate(Math.PI*i/180):k.rotate(0.02*Math.PI/180);k.translate(-o,-p);c=0;void 0!=l.ss&&(c=l.ss);if((l=this.draw(k,c))&&void 0!=this.normalImage)(c=a.movie.im.images[this.normalImage])&&
c.nativeImage.complete?(this.sh&&!this.sh.i&&(k.shadowOffsetX=0,k.shadowOffsetY=0,k.shadowBlur=0,k.shadowColor="rgba(0,0,0,0)"),k.drawImage(c.nativeImage,-c.nativeImage.width/2,-c.nativeImage.height/2,c.nativeImage.width,c.nativeImage.height)):l=!1;k.restore();this.transIn&&f==a.ReasonForDrawing.kRegularDraw&&(this.element.parentElement.style.opacity=0);a.handleQuizzingItemsInReviewMode(this.element,j,this.parentDivName);this.isDrawn=l;!0==this.isDrawn&&this.drawComplete(f);a.isVisible(this)||a._hide(this.parentDivName);
a.isVisible(this)&&this.playEffectsOnStart&&(i=this.parentDivName,(j=a.D[i].selfAnimationScript)&&eval(j),this.playEffectsOnStart=!1);return!0}};a.DrawingItem.prototype.drawIfNeeded=function(e,f){if((!a.responsive||!this.drawForResponsive(e,f))&&!this.isDrawn&&this.canvasObj&&this.type&&this.canvasObj.b){this.HFactor=this.WFactor=1;var c=this.bounds,d=this.vbounds,l=this.getAttribute("dn"),l=a.D[l],i=c.minX,j=c.minY,g=c.maxX-c.minX,k=c.maxY-c.minY,m=this.actualParent;m.style.left=i+"px";m.style.top=
j+"px";m.style.width=g+"px";m.style.height=k+"px";var k=!1,k=this.re||this.sh&&!this.sh.i,i=0<d.minX&&k?0:d.minX,j=0<d.minY&&k?0:d.minY,o=k&&a.D.project.h>d.maxY?a.D.project.h:d.maxY,g=(k&&a.D.project.w>d.maxX?a.D.project.w:d.maxX)-i,g=this.canvas=a.createCanvas(0,0,g,o-j,this.element);this.element.style.display="block";this.element.style.position="absolute";this.element.parentElement.style.left=this.vbounds.minX+"px";this.element.parentElement.style.top=this.vbounds.minY+"px";this.element.parentElement.style.width=
this.vbounds.maxX-this.vbounds.minX+"px";this.element.parentElement.style.height=this.vbounds.maxY-this.vbounds.minY+"px";this.element.style.marginLeft=i-this.vbounds.minX+"px";this.element.style.marginTop=j-this.vbounds.minY+"px";this.re&&(this.element.parentElement.style.webkitBoxReflect="below "+this.re.d+"px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop("+(1-this.re.s/100)+", transparent), to(rgba(255, 255, 255, "+(1-this.re.p/100)+")))");a.movie.stage.addToParentChildMap(m.id,
this.element.id);this.element.originalParent=m;d=g.gc;d.save();k?d.setTransform(1,0,0,1,0>i?-i:0,0>j?-j:0):d.translate(-this.vbounds.minX,-this.vbounds.minY);this.sh&&!this.sh.i&&(d.shadowOffsetX=this.sh.d*Math.cos(Math.PI*this.sh.a/180),d.shadowOffsetY=this.sh.d*Math.sin(Math.PI*this.sh.a/180),d.shadowBlur=this.sh.b,d.shadowColor=a.ConvertRGBToRGBA(this.sh.c,this.sh.o));this.element.style.display="block";this.element.style.position="absolute";d=g.gc;d.save();i=0;this.tr&&(i=a.getAngleFromRotateStr(this.tr));
m.rotateAngle=i;if(this.sh||0!=i)d.translate((c.minX+c.maxX)/2,(c.minY+c.maxY)/2),0!=i?d.rotate(Math.PI*i/180):d.rotate(0.02*Math.PI/180),d.translate(-(c.minX+c.maxX)/2,-(c.minY+c.maxY)/2);m=0;void 0!=this.canvasObj.ss&&(m=this.canvasObj.ss);if((m=this.draw(d,m))&&void 0!=this.currImage)(i=a.movie.im.images[this.currImage])&&i.nativeImage.complete?(d.translate((c.minX+c.maxX)/2,(c.minY+c.maxY)/2),d.drawImage(i.nativeImage,-i.nativeImage.width/2,-i.nativeImage.height/2,i.nativeImage.width,i.nativeImage.height)):
m=!1;a.handleQuizzingItemsInReviewMode(this.element,l,this.parentDivName);d.restore();this.transIn&&(this.element.parentElement.style.opacity=0);this.isDrawn=m;!0==this.isDrawn&&this.drawComplete(f);a.isVisible(this)&&this.playEffectsOnStart&&(l=this.parentDivName,(c=a.D[l].selfAnimationScript)&&eval(c),this.playEffectsOnStart=!1)}};a.DrawingItem.prototype.draw=function(e,f){switch(this.type){case a.kCPOTOvalItem:this.drawOval(e,0);break;case a.kCPOTAnswerArea:case a.kCPOTMatchingQuestionArea:case a.kCPOTMatchingAnswerArea:case a.kCPOTStageQuestionText:case a.kCPOTStageQuestionTitle:case a.kCPOTRectangleItem:case a.kCPOTLikertQuestionArea:case a.kCPOTLikertTotalGroupArea:case a.kCPOTScorableButtonItem:case a.kCPOTTextEntryButtonItem:case a.kCPOTRetakeButton:case a.kCPOTStageQuestionNextButton:case a.kCPOTStageQuestionClearButton:case a.kCPOTStageQuestionBackButton:case a.kCPOTStageQuestionReviewModeNextButton:case a.kCPOTStageQuestionReviewModeBackButton:case a.kCPOTStageQuestionSubmitButton:case a.kCPOTScoringReviewButton:case a.kCPOTScoringContinueButton:case a.kCPOTSubmitAllButton:case a.kCPOTResetButton:case a.kCPOTUndoButton:case a.kCPOTDDSubmitButton:this.drawRectangle(e,
0);break;case a.kCPOTPolygon:this.drawPolygon(e,0);break;default:return!0}var c=1;void 0!=this.canvasObj.fa&&(c=this.canvasObj.fa/100);var d=e.globalAlpha;e.globalAlpha=c;a.responsive&&a.D[this.parentDivName].shouldShowDisabledState&&(e.globalAlpha=0.5);c=this.setFill(e);e.globalAlpha=d;if(0!=f&&0<this.canvasObj.sw)switch(this.type){case a.kCPOTOvalItem:this.drawOval(e,f);break;case a.kCPOTAnswerArea:case a.kCPOTMatchingQuestionArea:case a.kCPOTMatchingAnswerArea:case a.kCPOTStageQuestionText:case a.kCPOTStageQuestionTitle:case a.kCPOTRectangleItem:case a.kCPOTLikertQuestionArea:case a.kCPOTLikertTotalGroupArea:case a.kCPOTScorableButtonItem:case a.kCPOTTextEntryButtonItem:case a.kCPOTRetakeButton:case a.kCPOTStageQuestionNextButton:case a.kCPOTStageQuestionClearButton:case a.kCPOTStageQuestionBackButton:case a.kCPOTStageQuestionReviewModeNextButton:case a.kCPOTStageQuestionReviewModeBackButton:case a.kCPOTStageQuestionSubmitButton:case a.kCPOTScoringReviewButton:case a.kCPOTScoringContinueButton:case a.kCPOTSubmitAllButton:case a.kCPOTResetButton:case a.kCPOTUndoButton:case a.kCPOTDDSubmitButton:this.drawRectangle(e,
f);break;case a.kCPOTPolygon:this.drawPolygon(e,f);break;default:return!0}0<this.canvasObj.sw&&(e.lineWidth=this.canvasObj.sw,e.strokeStyle=this.canvasObj.sc,e.stroke());return c};a.DrawingItem.prototype.getTranslationValuesForTiletype=function(){var e=this.canvasObject;if(e){var f=e.imgf;if(f){var c=f.img.tiletype,d=0,l=0,i=f.b[2]-f.b[0],j=f.b[3]-f.b[1],g=f.img.w,f=f.img.h;a.responsive&&(i=Math.floor(i*this.WFactor)+e.sw,j=Math.floor(j*this.HFactor)+e.sw);switch(c){case "t":d=(i-g)/2;break;case "tr":d=
i-g;break;case "l":l=(j-f)/2;break;case "c":d=(i-g)/2;l=(j-f)/2;break;case "r":d=i-imageWidthimageWidth;l=(j-f)/2;break;case "bl":l=j-f;break;case "b":d=(i-g)/2;l=j-f;break;case "br":d=i-g,l=j-f}0<d&&(d=d%g-g);0<l&&(l=l%f-f);a.responsive||(d+=e.b[0],l+=e.b[1]);return{x:d,y:l}}}};a.DrawingItem.prototype.setFill=function(e){var f=null,c="",c=null,d=[],l=0,i=0,j=0,g=1,c=c=null,j=!0,k=0,m=0,d=k=1,o=m=!1;if(this.canvasObj.gf){if(c=a.getGradientFill(this.canvasObj.gf,e))e.fillStyle=c}else if(this.canvasObj.imgf){j=
!1;f=this.canvasObj.imgf;if(void 0==f.img||void 0==f.img.ip)return!1;c=f.img.ip;if((c=a.movie.im.images[c])&&c.nativeImage.complete){j=f.s;if(g=f.t)f=this.getTranslationValuesForTiletype(),m=!0,e.translate(f.x,f.y),c=e.createPattern(c.nativeImage,"repeat"),e.fillStyle=c;else if(j)void 0!=this.canvasObj.b&&4==this.canvasObj.b.length&&(d=this.canvasObj.b,k=d[2]-d[0],h=d[3]-d[1],a.responsive&&(k*=this.WFactor,h*=this.HFactor),k/=f.img.w,d=h/f.img.h,e.scale(k,d),c=e.createPattern(c.nativeImage,"no-repeat"),
e.fillStyle=c);else{j=document.createElement("canvas");g=j.getContext("2d");l=e.canvas;j.left=l.left;j.right=l.right;j.top=l.top;j.bottom=l.bottom;j.width=l.width;j.height=l.height;var p=c.nativeImage.width,q=c.nativeImage.height,l=f.b[2]-f.b[0],i=f.b[3]-f.b[1];a.responsive?(l=Math.floor(l*this.WFactor)+this.canvasObj.sw,i=Math.floor(i*this.HFactor)+this.canvasObj.sw,l=-(p-l)/2,i=-(q-i)/2,g.translate(l,i)):(m=(i-imageHeight)/2,g.translate((l-p)/2,m),l=this.canvasObj.b[0],i=this.canvasObj.b[1],m=!0,
e.translate(l,i));f=g.globalAlpha;g.globalAlpha=0;g.fillStyle="#FFFFFF";g.fill();g.globalAlpha=f;c=g.createPattern(c.nativeImage,"no-repeat");g.fillStyle=c;g.fillRect(0,0,p,q);c=e.createPattern(j,"no-repeat");e.fillStyle=c}j=!0}}else this.canvasObj.bc?e.fillStyle=this.canvasObj.bc:this.currImage&&(o=!0,j=!1);j&&e.fill();(1!=k||1!=d)&&e.scale(1/k,1/d);m&&e.translate(-l,-i);return j||o};a.DrawingItem.prototype.drawRectangle=function(e,f){var c=0,d=[],l=0,i=0,j=0,g=j=0,k=0,d=0;void 0==this.canvasObj.b||
4!=this.canvasObj.b.length||((d=this.canvasObj.b,l=d[2]-d[0],i=d[3]-d[1],j=l,i<l&&(j=i),void 0!=this.canvasObj.cr&&(c=this.canvasObj.cr,c=j*c/100),j=d[0],g=d[1],k=d[2],d=d[3],a.responsive&&(k=Math.round(this.WFactor*(k-j)),d=Math.round(this.HFactor*(d-g)),j=Math.round(this.WFactor*(j-j)),g=Math.round(this.HFactor*(g-g)),i=d-g,l=k-j),0!=f)?a.drawDashedRectangle(e,j,g,l,i,c,f):(e.beginPath(),a.moveTo(e,j,d-c,f),a.lineTo(e,j,g+c,f),0<c&&a.bezierCurveTo(e,j,g+c,j,g,j+c,g,f),a.lineTo(e,j+c,g,f),a.lineTo(e,
k-c,g,f),0<c&&a.bezierCurveTo(e,k-c,g,k,g,k,g+c,f),a.lineTo(e,k,g+c,f),a.lineTo(e,k,d-c,f),0<c&&a.bezierCurveTo(e,k,d-c,k,d,k-c,d,f),a.lineTo(e,k-c,d,f),a.lineTo(e,j+c,d,f),0<c&&a.bezierCurveTo(e,j+c,d,j,d,j,d-c,f),e.closePath()))};a.DrawingItem.prototype.drawOval=function(e,f){var c=[],d=c=0,l=0,i=0,j=0,g=0,k=0,m=0;void 0==this.canvasObj.b||4!=this.canvasObj.b.length||((c=this.canvasObj.b,l=c[0],i=c[1],j=c[2],g=c[3],a.responsive&&(l*=this.WFactor,i*=this.HFactor,j*=this.WFactor,g*=this.HFactor),
c=(j-l)/2,d=(g-i)/2,k=0.55285*c,m=0.55285*d,0!=f)?a.drawDashedOval(e,(l+j)/2,(i+g)/2,c,d,f):(e.beginPath(),a.moveTo(e,j,i+d,f),a.bezierCurveTo(e,j,i+d+m,l+c+k,g,l+c,g,f),a.bezierCurveTo(e,l+c-k,g,l,i+d+m,l,i+d,f),a.bezierCurveTo(e,l,i+d-m,l+c-k,i,l+c,i,f),a.bezierCurveTo(e,l+c+k,i,j,i+d-m,j,i+d,f),e.closePath()))};a.DrawingItem.prototype.drawPolygon=function(e,f){var c=null,d=this.canvasObj.pta,l=0;if(!(void 0==d||2>d.length))if(0!=f)a.drawDashedPolyLine(e,d,f,this.WFactor,this.HFactor);else{e.beginPath();
c=d[0];a.moveTo(e,this.WFactor*c.x,this.HFactor*c.y,f);for(l=1;l<d.length;++l)c=d[l],a.lineTo(e,this.WFactor*c.x,this.HFactor*c.y,f);e.closePath()}};a.DrawingItem.prototype.changeStateOnMouseEvents=function(e,f){var c=null;-1==this.baseStateItemID?c=this:this.cloneOfBaseStateItem&&(c=a.getDisplayObjByCP_UID(this.baseStateItemID));c&&void 0!==c.HandleMouseEventOnStateItems&&c.HandleMouseEventOnStateItems(e,this.parentStateType,f)};a.DrawingItem.prototype.HandleMouseEventOnStateItems=function(e,f,c){if(this.parentStateType==
a.kSTTNormal&&(!(this.parentObj&&void 0!=this.parentObj.enabled)||this.parentObj.enabled)){var d=a.kSTTNone,l="";if(0<=this.currentState&&this.currentState<this.states.length){var i=this.states[this.currentState];i&&(d=i.stt,l=i.stn)}i=!(a.device==a.IDEVICE||a.device==a.ANDROID)||"mouseup"!=e;if(!(i&&d!=f)){var f=!1,j="",g=!1;if("mouseover"==e){if((d==a.kSTTNormal||d==a.kSTTCustom)&&this.shouldShowRollOver)if(f=!0,j=a.getLocalisedStateName("kCPRolloverState"),this.stateAtStartOfMouseEvents=l,a.BringBaseItemToFrontWithinState(this,
a.getLocalisedStateName("kCPRolloverState")),a.device===a.DESKTOP&&(e=a.GetMouseOverManager())){var k=this;e.addMouseOverItem(this,function(){k.ForceMouseOut()})}}else if("mouseout"==e){if(d==a.kSTTRollOver||d==a.kSTTDown)f=!0,j=this.stateAtStartOfMouseEvents,a.device===a.DESKTOP&&(e=a.GetMouseOverManager())&&e.removeMouseOverItem(this);if(d==a.kSTTNormal||d==a.kSTTCustom)a.browser==a.CHROME&&this.ignoreMouseOutEventOnNormal?this.ignoreMouseOutEventOnNormal=!1:this.shouldShowRollOver=!0}else if("mousedown"==
e){if(d==a.kSTTNormal||d==a.kSTTRollOver||d==a.kSTTCustom)if(f=!0,j=a.getLocalisedStateName("kCPDownState"),this.bShouldListenForMouseUpOnDownState=!0,d==a.kSTTNormal||d==a.kSTTCustom)this.stateAtStartOfMouseEvents=l,this.ignoreMouseOutEventOnNormal=!0}else if("mouseup"==e&&(!i||d==a.kSTTDown))f=!0,j=this.stateAtStartOfMouseEvents,this.shouldShowRollOver=!1,this.bShouldListenForMouseUpOnDownState&&(g=!0);f&&(j!==a.getLocalisedStateName("kCPRolloverState")&&a.ResetItemZIndicesWithinState(this,a.getLocalisedStateName("kCPRolloverState")),
a.changeState(this.actualParent.id,j,!1));g&&(!a.IsGestureSupportedDevice()&&(a.shouldRelaxBrowserCheck(this.parentObj.type)||a.CHROME!=a.browser&&a.MSIE!=a.browser||a.m_isLMSPreview))&&a.dispatchClickEvent(this.actualParent,c,{asPartOfStateChange:!0})}}};a.AnswerArea=function(e,f){a.AnswerArea.baseConstructor.call(this,e,f);this.canvasElem=this.element};a.inherits(a.AnswerArea,a.DrawingItem);a.RectWithText=function(e,f){a.RectWithText.baseConstructor.call(this,e,f);this.canvasElem=this.element;this.currImage=
this.getAttribute("ip")};a.inherits(a.RectWithText,a.DrawingItem)})(window.cp);
cp.AutoShape=function(c,d,a){function e(a,c,d){g.AutoShapeState=2;g.changeStateOnMouseEvents&&g.changeStateOnMouseEvents("mousedown",d)}function i(a,c,d){g.AutoShapeState=0;g.changeStateOnMouseEvents&&g.changeStateOnMouseEvents("mouseup",d)}function f(a,c,d){i(a);g.parentData&&(g.parentData.dep&&0<g.parentData.dep.length)&&(cp.log("hiding hint"),g.hintVisible=!1,cp.hideHint(g.parentData.dep[0],a));g.changeStateOnMouseEvents&&g.changeStateOnMouseEvents("mouseout",d)}function j(a,d,c){g.AutoShapeState=
1;g.isDrawn=!1;g.setVBounds();g.changeStateOnMouseEvents&&g.changeStateOnMouseEvents("mouseover",c);g.drawIfNeeded(!0,cp.ReasonForDrawing.kMouseEvent)}function l(a,c,d){c?(g.parentData&&g.parentData.handCursor&&(g.actualParent.style.cursor="pointer"),!g.hintVisible&&(g.parentData&&g.parentData.dep&&0<g.parentData.dep.length)&&(cp.log("showing hint"),g.hintVisible=!0,cp.showHint(g.parentData.dep[0],a)),0==g.AutoShapeState&&j(a,c,d)):(g.actualParent.style.cursor="default",g.parentData&&(g.parentData.dep&&
0<g.parentData.dep.length)&&(cp.log("hiding hint"),g.hintVisible=!1,cp.hideHint(g.parentData.dep[0],a)),0!=g.AutoShapeState&&f(a,c,d))}function n(a,c,d,e){return function(a){if(void 0!=a&&!cp.disableInteractions){var f=a.type.toLowerCase(),i=0!=g.canvasObj.ss||g.is_inside_canvas(a);if("mousemove"!=f)g.clicked="mousedown"==a.type.toLowerCase();else{if(g.clicked||k.x==a.clientX&&k.y==a.clientY)return;k.x=a.clientX;k.y=a.clientY}if(("mousemove"==a.type.toLowerCase()||"mousedown"==a.type.toLowerCase()||
"mouseover"==a.type.toLowerCase()||"touch"==a.type.toLowerCase()||"touchstart"==a.type.toLowerCase())&&!i)d&&(cp.device==cp.DESKTOP&&"mousemove"==a.type.toLowerCase())&&d(c,i,a);else if(f=g,g.cloneOfBaseStateItem&&(f=cp.getDisplayObjByCP_UID(g.baseStateItemID)),!f||!(f.parentData&&void 0!=f.parentData.enabled)||f.parentData.enabled)e&&e(),d&&d(c,i,a)}}}var g=this;this.tMatrixMultiplyPoint=function(a,d,c){return[d*a[0]+c*a[2]+a[4],d*a[1]+c*a[3]+a[5]]};this.tInvertMatrix=function(a){var d=1/(a[0]*a[3]-
a[1]*a[2]);return[a[3]*d,-a[1]*d,-a[2]*d,a[0]*d,d*(a[2]*a[5]-a[3]*a[4]),d*(a[1]*a[4]-a[0]*a[5])]};this.is_inside_canvas=function(a,d){if(void 0==a)return!1;var c;if(!g.element)return!1;if((c=g.getCurrentCanvasObj())&&c.svg||c&&c.ss&&0!=c.ss)return!0;var f=c=void 0,e=void 0,i=void 0,j=void 0;if(d&&(g.sh&&!g.sh.i||g.re))(c=g.element.style.transform)&&(g.element.style.transform=""),(f=g.element.style.WebkitTransform)&&(g.element.style.WebkitTransform=""),(e=g.element.style.MozTransform)&&(g.element.style.MozTransform=
""),(i=g.element.style.msTransform)&&(g.element.style.msTransform=""),(j=g.element.style.OTransform)&&(g.element.style.OTransform="");var l=g.element.parentElement.getBoundingClientRect(),k=g.element.getBoundingClientRect();cp("div_Slide").getBoundingClientRect();var m=cp.getScaledPosition(getPageX(a),getPageY(a)),n=l.left-cp.movie.offset,o=l.top-cp.movie.topOffset,p=k.left-cp.movie.offset,s=k.top-cp.movie.topOffset,q=parseFloat(g.element.style.marginLeft),x=parseFloat(g.element.style.marginTop),
q=!isNaN(q)?q:0,x=!isNaN(x)?x:0,z=g.element.getContext("2d");if(z){if(cp.responsive)v=m.X-window.pageXOffset-k.left,k=m.Y-window.pageYOffset-k.top,v/=cp("div_Slide").scaleFactor,k/=cp("div_Slide").scaleFactor;else{var v=m.X-window.pageXOffset/cp.movie.m_scaleFactor-(0>q?p:n)/cp.movie.m_scaleFactor,k=m.Y-window.pageYOffset/cp.movie.m_scaleFactor-(0>x?s:o)/cp.movie.m_scaleFactor;cp.shouldScale&&(cp.loadedModules.toc&&(!cp.toc.movieProperties.tocProperties.overlay&&1==cp.toc.movieProperties.tocProperties.position)&&
(v+=cp.toc.movieProperties.tocProperties.width),cp.loadedModules.playbar&&!cp.PB.MP.PBP.overlay&&(0==cp.PB.MP.PBP.position?v+=cp.PB.playBarHeight:1==cp.PB.MP.PBP.position&&(k+=cp.PB.playBarHeight)));v*=parseFloat(g.element.parentElement.style.width)/l.width*cp.movie.m_scaleFactor;k*=parseFloat(g.element.parentElement.style.height)/l.height*cp.movie.m_scaleFactor;cp.verbose&&(cp.log("lParentOffsetL : "+n+","+o),cp.log("lElemL : "+p+","+s),cp.log("lElemMarginL : "+q+x),cp.log("X : "+v+","+k))}if(d&&
(g.sh&&!g.sh.i||g.re))c&&(g.element.style.transform=c),f&&(g.element.style.WebkitTransform=f),e&&(g.element.style.MozTransform=e),i&&(g.element.style.msTransform=i),j&&(g.element.style.OTransform=j);return c=z.isPointInPath(v,k)}return!1};this.setVBounds=function(){var a=g.getCurrentCanvasObj(),c=0;a.sw>g.canvasObj.sw&&(c=a.sw-g.canvasObj.sw);cp.responsive&&(c=0);a=g.canvasObj.vbwr;g.wrvBounds={minX:a[0]-2*c,minY:a[1]-2*c,maxX:a[2]+2*c,maxY:a[3]+2*c,width:a[2]-a[0]+4*c,height:a[3]-a[1]+4*c};a=g.canvasObj.vb;
g.vbounds={minX:a[0]-2*c,minY:a[1]-2*c,maxX:a[2]+2*c,maxY:a[3]+2*c,width:a[2]-a[0]+4*c,height:a[3]-a[1]+4*c}};var k={};cp.AutoShape.baseConstructor.call(this,c);this.visible=this.getAttribute("visible");this.parentId=cp.D[d].dn;this.parentObj=cp.D[this.parentId];this.canvasObj=null;this.transIn=this.parentObj.trin;void 0!=this.parentObj&&(this.canvasObj=cp.D[this.parentObj.mdi]);this.parentDivName=this.getAttribute("dn");this.parentData=cp.D[this.parentDivName];this.parentData.isCanvasClicked=this.is_inside_canvas;
this.parentData.canvasPainterObject=this;this.actualParent=c=document.getElementById(this.parentDivName);1!==this.parentData.uab&&cp.removeAccessibilityOutline(this.actualParent);this.canvasObj&&(d=this.canvasObj.b,this.bounds={minX:d[0],minY:d[1],maxX:d[2],maxY:d[3],width:d[2]-d[0],height:d[3]-d[1]},this.args=a,this.setVBounds(),this.sh=this.canvasObj.sh,this.re=this.canvasObj.re,this.tr=this.canvasObj.tr,this.normalImage=this.getAttribute("ip"),this.AutoShapeState=0);c&&(c.drawingBoard=this.element.parentElement,
c.bounds=this.bounds,c.drawingBoard.bounds=this.vbounds);if(c&&void 0!=this.parentData.pa&&this.bounds){-1!=this.parentData.pa&&this.parentData.immo&&(cp.movie.stage.currentSlide&&(this.parentData.pa=cp.movie.stage.currentSlide.to-1),this.setAttribute("clickedOnce",!1));var m=this.bounds.maxX-this.bounds.minX,q=this.bounds.maxY-this.bounds.minY,d=a=1,p=0,o=0;10<m&&(a=(m-4)/m);10<q&&(d=(q-4)/q);if(1>a&&1>d){var p=!1,p=cp.responsive?this.sh&&!this.sh.i:this.sh&&!this.sh.i||this.re,s=(p&&cp.D.project.w>
this.vbounds.maxX?cp.D.project.w:this.vbounds.maxX)-(0<this.vbounds.minX&&p?0:this.vbounds.minX),o=(p&&cp.D.project.h>this.vbounds.maxY?cp.D.project.h:this.vbounds.maxY)-(0<this.vbounds.minY&&p?0:this.vbounds.minY),q=(this.vbounds.maxX+this.vbounds.minX)/2,m=(this.vbounds.maxY+this.vbounds.minY)/2,s=s/2-(s/2-q)*a,o=o/2-(o/2-m)*d;p?(p=s-q,o-=m):o=p=0;this.oldMouseOver=c.onmouseover;this.oldMouseOut=c.onmouseout;this.dataObjForMouseStates={sx:a,sy:d,tx:-p,ty:-o,p:c,old_tr:this.tr};a=window.event||Event;
cp.device==cp.IDEVICE||cp.device==cp.ANDROID?(this.ontouchstartHandler=n(a,this.element,e),this.ontouchendHandler=n(a,this.element,i),c.ontouchstart=n(a,this.element,e),c.ontouchend=n(a,this.element,i)):(c.onmouseover=n(a,this.element,j,c.onmouseover),c.onmousemove=n(a,this.element,l,c.onmousemove),c.onmouseout=n(a,this.element,f,c.onmouseout),c.onmousedown=n(a,this.element,e),c.onmouseup=n(a,this.element,i),this.onmouseoverHandler=c.onmouseover,this.onmousemoveHandler=c.onmousemove,this.onmouseoutHandler=
c.onmouseout,this.onmousedownHandler=c.onmousedown,this.onmouseupHandler=c.onmouseup);this.shouldShowRollOver=!0;this.setUpClickHandler()}}this.isDrawn=!1;cp.responsive&&(this.responsiveCSS=this.getAttribute("css"));!1==this.cloneOfBaseStateItem&&-1!=this.baseStateItemID&&(this.playEffectsOnStart=!0);cp.setInitialVisibility(this)};cp.inherits(cp.AutoShape,cp.DisplayObject);
cp.AutoShape.prototype.start=function(c,d){this.drawIfNeeded(c,d);if(!this.effectIsStarted||c)this.updateEffects(this.hasEffect),this.effectIsStarted=!0};
cp.AutoShape.prototype.reset=function(){delete cp.ropMap[this.element.id];this.isDrawn=!1;this.element.width="0";this.element.height="0";this.element.style.width="0px";this.element.style.height="0px";this.element.left="0";this.element.top="0";this.element.style.left="0px";this.element.style.top="0px";this.removeMouseHandlers();this.effectIsStarted=!1};cp.AutoShape.prototype.getCurrentCanvasObj=function(){if(this.canvasObj&&this.canvasObj.b&&this.canvasObj.p0)return this.canvasObj};
cp.AutoShape.prototype.addMouseHandlers=function(){cp.device==cp.IDEVICE||cp.device==cp.ANDROID?(cp.registerGestureEvent(this.actualParent,cp.GESTURE_EVENT_TYPES.TOUCH,this.ontouchstartHandler),cp.registerGestureEvent(this.actualParent,cp.GESTURE_EVENT_TYPES.RELEASE,this.ontouchendHandler)):(this.actualParent.onmouseover=this.onmouseoverHandler,this.actualParent.onmousemove=this.onmousemoveHandler,this.actualParent.onmouseout=this.onmouseoutHandler,this.actualParent.onmousedown=this.onmousedownHandler,
this.actualParent.onmouseup=this.onmouseupHandler)};
cp.AutoShape.prototype.removeMouseHandlers=function(){if(this.actualParent)if(this.actualParent.onclick=null,cp.device==cp.IDEVICE||cp.device==cp.ANDROID)cp.removeGestureEvent(this.actualParent,cp.GESTURE_EVENT_TYPES.TOUCH),cp.removeGestureEvent(this.actualParent,cp.GESTURE_EVENT_TYPES.RELEASE);else if(this.actualParent.onmouseout=null,this.actualParent.onmousedown=null,this.actualParent.onmouseup=null,this.actualParent.onmouseover=null,this.oldMouseOver&&(this.actualParent.onmouseover=this.oldMouseOver),
this.oldMouseOut)this.actualParent.onmouseout=this.oldMouseOut};
cp.AutoShape.prototype.setUpClickHandler=function(){var c=this,d=!1,a=!1,d=!1,e=cp.movie.stage.currentSlide;if(this.actualParent&&e){if((d="Question Slide"==e.st)&&e.qs)(e=cp.D[e.qs])&&"Hotspot"==e.qtp&&(a=!0);(d=d&&!a)&&!this.actualParent.onclick?cp.registerGestureEvent(this.actualParent,cp.GESTURE_EVENT_TYPES.TAP,function(a){return function(d){c.is_inside_canvas(d)&&cp.clickSuccessHandler(a)}}(this.parentData)):(this.actualParent.onclick=null,cp.removeGestureEvent(this.actualParent,cp.GESTURE_EVENT_TYPES.TAP))}this.needsOwnHandler=
d};
function getTransformDataForMouseStates(c,d){if(cp.responsive){var a=c.getBoundingClientRect(),e=c.parentElement.getBoundingClientRect(),i=d.actualParent.getBoundingClientRect(),f=cp("div_Slide").getBoundingClientRect(),j=i.width,l=i.height,n=i=1,g=0,k=0;10<j&&(i=(j-4)/j);10<l&&(n=(l-4)/l);1>i&&1>n&&(j=cp.project.clientWidth,l=cp.project.clientHeight,g=!1,g=d.sh&&!d.sh.i,j=(g&&j>a.right-f.left?j:a.right-f.left)-(0<a.left-f.left&&g?0:a.left-f.left),a=(g&&l>a.bottom-f.top?l:a.bottom-f.top)-(0<a.top-f.top&&
g?0:a.top-f.top),l=e.left-f.left+e.width/2,e=e.top-f.top+e.height/2,g?(g=j/2-(j/2-l)*i-l,k=a/2-(a/2-e)*n-e):k=g=0);return{sx:i,sy:n,tx:-g,ty:-k,p:d.actualParent,old_tr:d.tr}}}cp.AutoShape.prototype.shrinkShapeButtonInAllStates=function(){for(var c=cp.GetBaseItemsInAllStates(this,!0),d=0;d<c.length;d++){var a=c[d];a&&a.shrinkShapeButton()}};cp.AutoShape.prototype.expandShapeButtonInAllStates=function(){for(var c=cp.GetBaseItemsInAllStates(this,!0),d=0;d<c.length;d++){var a=c[d];a&&a.expandShapeButton()}};
cp.AutoShape.prototype.shrinkShapeButton=function(){if(this.dataObjForMouseStates){var c={sx:this.dataObjForMouseStates.sx,sy:this.dataObjForMouseStates.sy,tx:this.dataObjForMouseStates.tx,ty:this.dataObjForMouseStates.ty,p:this.dataObjForMouseStates.p,old_tr:this.dataObjForMouseStates.old_tr};cp.responsive&&(c=getTransformDataForMouseStates(this.element,this));c="translate("+c.tx/cp("div_Slide").scaleFactor+"px,"+c.ty/cp("div_Slide").scaleFactor+"px) scalex("+c.sx+") scaley("+c.sy+")";cp.applyTransform(this.element,
c);this.setVBounds();(1==cp("div_Slide").scaleFactor||!cp.responsive)&&this.drawIfNeeded(!0,cp.ReasonForDrawing.kMouseEvent)}};cp.AutoShape.prototype.expandShapeButton=function(){this.dataObjForMouseStates&&(cp.applyTransform(this.element,""),this.setVBounds(),(1==cp("div_Slide").scaleFactor||!cp.responsive)&&this.drawIfNeeded(!0,cp.ReasonForDrawing.kMouseEvent))};cp.AutoShape.prototype.restOfProjectDoOnNewSlide=function(){this.addMouseHandlers();this.setUpClickHandler()};
cp.AutoShape.prototype.drawForResponsive=function(c,d){if(!this.responsiveCSS)return!1;if(this.isDrawn&&!c)return!0;var a=cp.getResponsiveCSS(this.responsiveCSS),e=!1,e=this.sh&&!this.sh.i,i=void 0!=this.tr;if(this.currentCSS==a&&c&&this.isDrawn&&d==cp.ReasonForDrawing.kMoviePaused)return cp.verbose&&cp.log("Returning because this.isDrawn : "+this.isDrawn),!0;this.currentCSS=a;var f=this.getCurrentCanvasObj(),j=this.getAttribute("dn");this.parentDivName=j;var l=a,n=this.actualParent.style.transform||
this.actualParent.style.msTransform||this.actualParent.style.MozTransform||this.actualParent.style.WebkitTransform||this.actualParent.style.OTransform,g=this.element.parentElement.style.transform||this.element.parentElement.style.msTransform||this.element.parentElement.style.MozTransform||this.element.parentElement.style.WebkitTransform||this.element.parentElement.style.OTransform;cp.applyTransform(this.actualParent,"");cp.applyTransform(this.element.parentElement,"");cp.applyResponsiveStyles(this.actualParent,
a,!0);var k=cp.D[j];if(k.rpvt&&k.autoGrow&&(d==cp.ReasonForDrawing.kTextGrow||d==cp.ReasonForDrawing.kLinkedToItemAppeared||d==cp.ReasonForDrawing.kMouseEvent||d==cp.ReasonForDrawing.kMoviePaused)){if((j=k.minItemHeight)&&this.actualParent.clientHeight<j)this.actualParent.style.height=j+"px";cp.createResponsiveStyleObj(a,a.p,a.l,a.t,a.r,a.b,this.actualParent.clientWidth+"px",this.actualParent.clientHeight+"px",a.crop)}k.minItemHeight=this.actualParent.clientHeight;this.actualParent.offsetHeight=this.actualParent.offsetHeight;
this.actualParentClientBoundingRect=this.actualParent.getBoundingClientRect();var m=cp.movie.stage.mainSlideDiv.getBoundingClientRect();this.HFactor=this.WFactor=1;this.WFactor=Math.round(100*this.actualParent.clientWidth/this.bounds.width)/100;this.HFactor=Math.round(100*this.actualParent.clientHeight/this.bounds.height)/100;var q,p,o,s,j=this.wrvBounds.minY-this.bounds.minY;q=(this.wrvBounds.minX-this.bounds.minX)*this.WFactor;p=j*this.HFactor;o=this.wrvBounds.width*this.WFactor;s=this.wrvBounds.height*
this.HFactor;l=cp.createResponsiveStyleObj(a,a.p,this.actualParentClientBoundingRect.left-m.left+q-f.sw/2+"px",this.actualParentClientBoundingRect.top-m.top+p-f.sw/2+"px","0px","0px",o+f.sw+"px",s+f.sw+"px",a.crop);cp.applyResponsiveStyles(this.element.parentElement,l);this.parentElementClientBoundingRect=this.element.parentElement.getBoundingClientRect();j=0;if(this.tr){j=cp.getAngleFromRotateStr(this.tr);this.actualParent.offsetHeight=this.actualParent.offsetHeight;if(!this.m_centrePoint||d==cp.ReasonForDrawing.kOrientationChangeOrResize||
d==cp.ReasonForDrawing.kLinkedToItemAppeared)this.m_centrePoint=cp.getCenterForRotation(this.actualParent);this.actualParentClientBoundingRect=this.actualParent.getBoundingClientRect();var u=cp.getBoundsForRotatedItem1(this.parentElementClientBoundingRect.left-m.left,this.parentElementClientBoundingRect.top-m.top,this.parentElementClientBoundingRect.width,this.parentElementClientBoundingRect.height,this.m_centrePoint,j,f.sw),w=t=r=b=void 0;"auto"!=a.l&&(w=u.l);"auto"!=a.t&&(t=u.t);"auto"!=a.r&&(r=
u.r);"auto"!=a.b&&(b=u.b);l=cp.createResponsiveStyleObj(l,a.p,w,t,r,b,u.w,u.h,a.crop);cp.applyResponsiveStyles(this.element.parentElement,l);this.parentElementClientBoundingRect=this.element.parentElement.getBoundingClientRect()}this.parentElementClientBoundingRect=this.element.parentElement.getBoundingClientRect();w=u=0;this.m_centrePoint&&(u=this.m_centrePoint.X-(this.actualParentClientBoundingRect.left-m.left),w=this.m_centrePoint.Y-(this.actualParentClientBoundingRect.top-m.top));if(k.rpvt&&(l=
this.actualParent.id+"_vTxtHandlerHolder",k=cp(l),k||(k=cp.newElem("div"),k.id=l,k.style.display="block",k.style.position="absolute",k.style.width=this.actualParent.clientWidth+"px",k.style.height=this.actualParent.clientHeight+"px",k.style.visibility="hidden",this.actualParent.appendChild(k)),k.style.left="0px",k.style.top="0px",k.style.width=this.actualParent.clientWidth+"px",k.style.height=this.actualParent.clientHeight+"px",k=this.actualParent.id+"_vTxtHolder",l=cp(k),l||(l=cp.newElem("div"),
l.id=k,l.style.display="block",l.style.position="absolute",l.style.width=this.actualParent.clientWidth+"px",l.style.height=this.actualParent.clientHeight+"px",l.style.zIndex=1,this.element.parentElement.appendChild(l)),k=this.actualParentClientBoundingRect.top-this.parentElementClientBoundingRect.top+this.actualParent.clientHeight/2,l.style.left=this.actualParentClientBoundingRect.left-this.parentElementClientBoundingRect.left+this.actualParent.clientWidth/2-this.actualParent.clientWidth/2+"px",l.style.top=
k-this.actualParent.clientHeight/2+"px",l.style.width=this.actualParent.clientWidth+"px",l.style.height=this.actualParent.clientHeight+"px",d==cp.ReasonForDrawing.kOrientationChangeOrResize&&cp.updateVarText(this.actualParent,!0,!0),this.tr))k="center center",k=u?100*u/l.clientWidth+"%":"center",k+=" ",k=w?k+(100*w/l.clientHeight+"%"):k+"center",l.style["-ms-transform-origin"]=k,l.style["-moz-transform-origin"]=k,l.style["-webkit-transform-origin"]=k,l.style["-o-transform-origin"]=k,l.style["transform-origin"]=
k,cp.applyTransform(l,this.tr);cp.applyTransform(this.actualParent,n);cp.applyTransform(this.element.parentElement,g);n=this.actualParent;k=g=0;g=o+2*f.sw;k=s+2*f.sw;if(e){o=this.element.parentElement.clientWidth;s=this.element.parentElement.clientHeight;var l=cp("div_Slide").clientWidth,y=cp("div_Slide").clientHeight,g=g>l?g:l,k=k>y?k:y,g=g>o?g:o,k=k>s?k:s}else g=Math.ceil(parseFloat(this.element.parentElement.style.width)),k=Math.ceil(parseFloat(this.element.parentElement.style.height));l=cp.createResponsiveStyleObj(a,
void 0,"0px","0px","0px","0px",g+"px",k+"px",void 0);o=this.parentElementClientBoundingRect.left-m.left;s=this.parentElementClientBoundingRect.top-m.top;g=this.canvas=cp.createResponsiveCanvas(l,g,k,this.element);!this.isParentOfTypeSlide&&e&&(this.element.style.marginLeft=(0>o?0:-1)*o+"px",this.element.style.marginTop=(0>s?0:-1)*s+"px");this.re&&(this.element.parentElement.style.webkitBoxReflect="below "+this.re.d+"px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop("+
(1-this.re.s/100)+", transparent), to(rgba(255, 255, 255, "+(1-this.re.p/100)+")))");cp.movie.stage.addToParentChildMap(n.id,this.element.id);this.element.originalParent=n;m=g.gc;m.crop=a.crop?a.crop:void 0;m.save();e?(m.setTransform(1,0,0,1,0>o?-o:0,0>s?-s:0),m.translate(o,s),m.shadowOffsetX=this.sh.d*Math.cos(Math.PI*this.sh.a/180),m.shadowOffsetY=this.sh.d*Math.sin(Math.PI*this.sh.a/180),m.shadowBlur=this.sh.b,a=this.sh.o,1==a&&(a=0.999),m.shadowColor=cp.ConvertRGBToRGBA(this.sh.c,a)):i||(m.translate(-q,
-p),m.translate(f.sw/2,f.sw/2));this.element.style.display="block";this.element.style.position="absolute";m=g.gc;m.save();this.tr&&(k=u?100*u/n.clientWidth+"%":"center",k+=" ",k=w?k+(100*w/n.clientHeight+"%"):k+"center",n.style["-ms-transform-origin"]=k,n.style["-moz-transform-origin"]=k,n.style["-webkit-transform-origin"]=k,n.style["-o-transform-origin"]=k,n.style["transform-origin"]=k,cp.applyTransform(n,this.tr),n.tr=this.tr);n.rotateAngle=j;if(e||i)e=this.element.parentElement.clientWidth/2,i=
this.element.parentElement.clientHeight/2,e=this.actualParentClientBoundingRect.left-this.parentElementClientBoundingRect.left+u,i=this.actualParentClientBoundingRect.top-this.parentElementClientBoundingRect.top+w,m.translate(e,i),0!=j?m.rotate(Math.PI*j/180):m.rotate(0.02*Math.PI/180),m.translate(-u,-w);m.clearRect(0,0,this.element.getBoundingClientRect().width,this.element.getBoundingClientRect().height);cp.DESKTOP==cp.device&&(cp.MSIE==cp.browser||cp.MSEDGE==cp.browser||cp.FIREFOX==cp.browser)&&
m.beginPath();e=0;void 0!=f.ss&&(e=f.ss);i=1;void 0!=f.fa&&(i=f.fa/100);void 0!=this.normalImage&&1!=i&&(f=cp.movie.im.images[this.normalImage])&&f.nativeImage.complete&&m.drawImage(f.nativeImage,-f.nativeImage.width/2,-f.nativeImage.height/2,f.nativeImage.width,f.nativeImage.height);if((e=this.draw(m,e))&&void 0!=this.normalImage)(f=cp.movie.im.images[this.normalImage])&&f.nativeImage.complete?(this.sh&&!this.sh.i&&(m.shadowOffsetX=0,m.shadowOffsetY=0,m.shadowBlur=0,m.shadowColor="rgba(0,0,0,0)"),
m.drawImage(f.nativeImage,-f.nativeImage.width/2,-f.nativeImage.height/2,f.nativeImage.width,f.nativeImage.height)):e=!1;m.restore();this.transIn&&d==cp.ReasonForDrawing.kRegularDraw&&(this.element.parentElement.style.opacity=0);this.isDrawn=e;!0==this.isDrawn&&this.drawComplete(d);void 0!=this.parentData.enabled&&!this.parentData.enabled&&this.removeMouseHandlers();cp.isVisible(this)||cp._hide(this.parentDivName);cp.isVisible(this)&&this.playEffectsOnStart&&(j=this.parentDivName,(f=cp.D[j].selfAnimationScript)&&
eval(f),this.playEffectsOnStart=!1);return!0};
cp.AutoShape.prototype.drawIfNeeded=function(c,d){if((!cp.responsive||!this.drawForResponsive(c,d))&&!this.isDrawn){this.HFactor=this.WFactor=1;var a=this.getCurrentCanvasObj(),e=this.bounds,i=a.sw;void 0==i&&(i=1);1!=i&&void 0==this.vbounds&&(this.vbounds.minX+=3*i/2,this.vbounds.minY+=3*i/2,this.vbounds.maxX-=3*i/2,this.vbounds.maxY-=3*i/2);var f=this.vbounds,j=e.minX,l=e.minY,n=e.maxX-e.minX,g=e.maxY-e.minY,i=this.actualParent;i.style.left=j+"px";i.style.top=l+"px";i.style.width=n+"px";i.style.height=
g+"px";var g=!1,g=this.re||this.sh&&!this.sh.i,j=0<f.minX&&g?0:f.minX,l=0<f.minY&&g?0:f.minY,k=g&&cp.D.project.h>f.maxY?cp.D.project.h:f.maxY,n=(g&&cp.D.project.w>f.maxX?cp.D.project.w:f.maxX)-j,f=this.canvas=cp.createCanvas(0,0,n,k-l,this.element);this.element.style.display="block";this.element.style.position="absolute";this.element.parentElement.style.left=this.vbounds.minX+"px";this.element.parentElement.style.top=this.vbounds.minY+"px";this.element.parentElement.style.width=this.vbounds.maxX-
this.vbounds.minX+"px";this.element.parentElement.style.height=this.vbounds.maxY-this.vbounds.minY+"px";this.element.style.marginLeft=j-this.vbounds.minX+"px";this.element.style.marginTop=l-this.vbounds.minY+"px";this.re&&(this.element.parentElement.style.webkitBoxReflect="below "+this.re.d+"px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop("+(1-this.re.s/100)+", transparent), to(rgba(255, 255, 255, "+(1-this.re.p/100)+")))");cp.movie.stage.addToParentChildMap(i.id,
this.element.id);this.element.originalParent=i;f=f.gc;f.save();g?f.setTransform(1,0,0,1,0>j?-j:0,0>l?-l:0):f.translate(-this.vbounds.minX,-this.vbounds.minY);this.sh&&!this.sh.i&&(f.shadowOffsetX=this.sh.d*Math.cos(Math.PI*this.sh.a/180),f.shadowOffsetY=this.sh.d*Math.sin(Math.PI*this.sh.a/180),f.shadowBlur=this.sh.b,j=this.sh.o,1==j&&(j=0.999),f.shadowColor=cp.ConvertRGBToRGBA(this.sh.c,j));this.element.style.display="block";this.element.style.position="absolute";j=0;this.tr&&(cp.applyTransform(i,
this.tr),i.tr=this.tr,j=cp.getAngleFromRotateStr(this.tr));i.rotateAngle=j;if(this.sh||0!=j)f.translate((e.minX+e.maxX)/2,(e.minY+e.maxY)/2),0!=j?f.rotate(Math.PI*j/180):f.rotate(0.02*Math.PI/180),f.translate(-(e.minX+e.maxX)/2,-(e.minY+e.maxY)/2);i=0;void 0!=a.ss&&(i=a.ss);j=1;void 0!=a.fa&&(j=a.fa/100);if(void 0!=this.normalImage&&1!=j&&(a=cp.movie.im.images[this.normalImage])&&a.nativeImage.complete)f.translate((e.minX+e.maxX)/2,(e.minY+e.maxY)/2),f.drawImage(a.nativeImage,-a.nativeImage.width/
2,-a.nativeImage.height/2,a.nativeImage.width,a.nativeImage.height),f.translate(-(e.minX+e.maxX)/2,-(e.minY+e.maxY)/2);if((i=this.draw(f,i))&&void 0!=this.normalImage)(a=cp.movie.im.images[this.normalImage])&&a.nativeImage.complete?(this.sh&&!this.sh.i&&(f.shadowOffsetX=0,f.shadowOffsetY=0,f.shadowBlur=0,f.shadowColor="rgba(0,0,0,0)"),f.translate((e.minX+e.maxX)/2,(e.minY+e.maxY)/2),f.drawImage(a.nativeImage,-a.nativeImage.width/2,-a.nativeImage.height/2,a.nativeImage.width,a.nativeImage.height)):
i=!1;f.restore();this.transIn&&(this.element.parentElement.style.opacity=0);this.isDrawn=i;!0==this.isDrawn&&this.drawComplete(d);void 0!=this.parentData.enabled&&!this.parentData.enabled&&this.removeMouseHandlers();cp.isVisible(this)||cp._hide(this.parentDivName);cp.isVisible(this)&&this.playEffectsOnStart&&((e=cp.D[this.parentDivName].selfAnimationScript)&&eval(e),this.playEffectsOnStart=!1)}};
cp.AutoShape.prototype.draw=function(c,d){if(this.canvasObj.svg)return this.drawSVGShape(c),!0;var a=!1;this.drawFillBoundary(c,!0);var e=this.getCurrentCanvasObj();if(e){a=1;void 0!=e.fa&&(a=e.fa/100);var i=c.globalAlpha;0!=d&&0<e.sw&&(c.globalAlpha=a,this.setFill(c),c.globalAlpha=i,this.drawBoundary(c,d));c.globalAlpha=a;a=this.setFill(c);c.globalAlpha=i;0==d&&0<e.sw&&this.drawFillBoundary(c,!1);0<e.sw&&(c.lineWidth=e.sw,c.strokeStyle=e.sc,c.stroke());0!=e.sw&&(c.shadowOffsetX=0,c.shadowOffsetY=
0,c.shadowBlur=0,c.shadowColor="rgba(0,0,0,0)",c.stroke());return a}};
cp.AutoShape.prototype.drawSVGShape=function(c){var d=null,a=this.canvasObj.p0,e=0,i=1,f=1;if(a)for(e=0;e<a.length;++e)if(d=a[e],!(0>=d.length))switch(d[0]){case cp.kBeginPath:this.canvasObj.svg&&c.beginPath();break;case cp.kMoveTo:c.moveTo(d[1]*this.WFactor,d[2]*this.HFactor);break;case cp.kLineTo:c.lineTo(d[1]*this.WFactor,d[2]*this.HFactor);break;case cp.kBezierTo:c.bezierCurveTo(d[1]*this.WFactor,d[2]*this.HFactor,d[3]*this.WFactor,d[4]*this.HFactor,d[5]*this.WFactor,d[6]*this.HFactor);break;
case cp.kClosePath:c.closePath();break;case cp.kPathFillData:if(this.canvasObj.svg)if(d=d[1],d.indexOf("gf"))d=eval("{"+d+"}"),c.fillStyle=d;else{var j={},d=d.substr(3);j.gf=eval("("+d+")");if(j.gf&&(d=cp.getGradientFill(j.gf,c,this.WFactor,this.HFactor)))c.fillStyle=d}break;case cp.kPathFillAlpha:i=d[1];break;case cp.KPathStrokeColor:c.strokeStyle="#"+d[1];break;case cp.KPathStrokeWidth:d=d[1];j=c.globalAlpha;c.globalAlpha=i;c.fill();d&&(c.lineWidth=d,c.globalAlpha=f,c.stroke());c.globalAlpha=j;
break;case cp.KPathStrokeAlpha:f=d[1]}};
cp.AutoShape.prototype.drawFillBoundary=function(c,d){var a=null,e=this.canvasObj.p0,i=0;if(e)for(i=0;i<e.length;++i)if(a=e[i],!(0>=a.length))switch(a[0]){case cp.kMoveTo:c.moveTo(a[1]*this.WFactor,a[2]*this.HFactor);break;case cp.kLineTo:c.lineTo(a[1]*this.WFactor,a[2]*this.HFactor);break;case cp.kBezierTo:c.bezierCurveTo(a[1]*this.WFactor,a[2]*this.HFactor,a[3]*this.WFactor,a[4]*this.HFactor,a[5]*this.WFactor,a[6]*this.HFactor);break;case cp.kClosePath:c.closePath();break;case cp.kNotClosed:if(!d)break;
case cp.kNoStroke:i<e.length-1&&(a=e[++i][0],cp.kBeginPath!=a&&--i);for(;i<e.length-1;)if(a=e[++i][0],cp.kNotClosed==a||cp.kNoStroke==a||cp.kBeginPath==a){--i;break}}};
cp.AutoShape.prototype.drawBoundary=function(c,d){var a=null,e=this.canvasObj.p0,i=0,f=0,j=0;if(e){var l=new cp.dashStruct,n=cp.getPattern(d,7,3);c.beginPath();for(j=0;j<e.length;++j)if(a=e[j],!(0>=a.length))switch(a[0]){case cp.kMoveTo:c.moveTo(a[1]*this.WFactor,a[2]*this.HFactor);i=a[1]*this.WFactor;f=a[2]*this.HFactor;l=new cp.dashStruct;break;case cp.kLineTo:cp.drawDashedLineImpl(c,n,l,i,f,a[1]*this.WFactor,a[2]*this.HFactor);i=a[1]*this.WFactor;f=a[2]*this.HFactor;break;case cp.kBezierTo:cp.drawDashedBezierCurve(c,
n,l,i,f,a[1]*this.WFactor,a[2]*this.HFactor,a[3]*this.WFactor,a[4]*this.HFactor,a[5]*this.WFactor,a[6]*this.HFactor);i=a[5]*this.WFactor;f=a[6]*this.HFactor;break;case cp.kClosePath:l=new cp.dashStruct}}};
cp.AutoShape.prototype.getTranslationValuesForTiletype=function(){var c=this.getCurrentCanvasObj();if(c){var d=c.imgf;if(d){var a=d.img.tiletype,e=0,i=0,f=d.b[2]-d.b[0],j=d.b[3]-d.b[1],l=d.img.w,d=d.img.h;cp.responsive&&(f=Math.floor(f*this.WFactor)+c.sw,j=Math.floor(j*this.HFactor)+c.sw);switch(a){case "t":e=(f-l)/2;break;case "tr":e=f-l;break;case "l":i=(j-d)/2;break;case "c":e=(f-l)/2;i=(j-d)/2;break;case "r":e=f-imageWidthimageWidth;i=(j-d)/2;break;case "bl":i=j-d;break;case "b":e=(f-l)/2;i=j-
d;break;case "br":e=f-l,i=j-d}0<e&&(e=e%l-l);0<i&&(i=i%d-d);cp.responsive||(e+=c.b[0],i+=c.b[1]);return{x:e,y:i}}}};
cp.AutoShape.prototype.setFill=function(c){var d=null,a="",a=null,e=[],i=0,f=0,j=0,l=1,a=a=null,j=!0,n=0,e=n=1,g=!1,k=!1,m=this.getCurrentCanvasObj();if(m){if(m.gf){if(a=cp.getGradientFill(m.gf,c,this.WFactor,this.HFactor))c.fillStyle=a}else if(m.imgf){j=!1;d=m.imgf;if(void 0==d.img||void 0==d.img.ip)return!1;a=d.img.ip;if((a=cp.movie.im.images[a])&&a.nativeImage.complete){j=d.s;if(l=d.t)f=this.getTranslationValuesForTiletype(),g=!0,i=f.x,f=f.y,c.translate(i,f),a=c.createPattern(a.nativeImage,"repeat"),
c.fillStyle=a;else if(j)void 0!=this.canvasObj.b&&4==this.canvasObj.b.length&&(cp.responsive?(i=Math.floor(i*this.WFactor)+m.sw,f=Math.floor(f*this.HFactor)+m.sw):(i+=this.canvasObj.b[0],f+=this.canvasObj.b[1]),e=this.canvasObj.b,n=e[2]-e[0],h=e[3]-e[1],cp.responsive&&(n*=this.WFactor,h*=this.HFactor),n/=d.img.w,e=h/d.img.h,c.translate(i,f),g=!0,c.scale(n,e),a=c.createPattern(a.nativeImage,"no-repeat"),c.fillStyle=a);else{j=document.createElement("canvas");l=j.getContext("2d");i=c.canvas;j.left=i.left;
j.right=i.right;j.top=i.top;j.bottom=i.bottom;j.width=i.width;j.height=i.height;var q=a.nativeImage.width,p=a.nativeImage.height,i=d.b[2]-d.b[0],f=d.b[3]-d.b[1];cp.responsive?(i=Math.floor(i*this.WFactor)+m.sw,f=Math.floor(f*this.HFactor)+m.sw,i=-(q-i)/2,f=-(p-f)/2,l.translate(i,f)):(l.translate((i-q)/2,(f-p)/2),i=this.canvasObj.b[0],f=this.canvasObj.b[1],g=!0,c.translate(i,f));d=l.globalAlpha;l.globalAlpha=0;l.globalAlpha=d;a=l.createPattern(a.nativeImage,"no-repeat");l.fillStyle=a;l.fillRect(0,
0,q,p);a=c.createPattern(j,"no-repeat");c.fillStyle=a}j=!0}}else m.bc?c.fillStyle=m.bc:this.normalImage&&(k=!0,j=!1);j&&c.fill();(1!=n||1!=e)&&c.scale(1/n,1/e);g&&c.translate(-i,-f);return j||k}};cp.AutoShape.prototype.changeStateOnMouseEvents=function(c,d){var a=null;-1==this.baseStateItemID?a=this:this.cloneOfBaseStateItem&&(a=cp.getDisplayObjByCP_UID(this.baseStateItemID));a&&void 0!==a.HandleMouseEventOnStateItems&&a.HandleMouseEventOnStateItems(c,this.parentStateType,d)};
cp.AutoShape.prototype.HandleMouseEventOnStateItems=function(c,d,a){if(this.parentStateType==cp.kSTTNormal&&(!(this.parentData&&void 0!=this.parentData.enabled)||this.parentData.enabled)){var e=cp.kSTTNone,i="";if(0<=this.currentState&&this.currentState<this.states.length){var f=this.states[this.currentState];f&&(e=f.stt,i=f.stn)}f=!(cp.device==cp.IDEVICE||cp.device==cp.ANDROID)||"mouseup"!=c;if(!(f&&e!=d)){var d=!1,j="",l=!1;if("mouseover"==c){if((e==cp.kSTTNormal||e==cp.kSTTCustom)&&this.shouldShowRollOver)if(d=
!0,j=cp.getLocalisedStateName("kCPRolloverState"),this.stateAtStartOfMouseEvents=i,cp.BringBaseItemToFrontWithinState(this,cp.getLocalisedStateName("kCPRolloverState")),cp.device===cp.DESKTOP&&(c=cp.GetMouseOverManager())){var n=this;c.addMouseOverItem(this,function(){n.ForceMouseOut()})}}else if("mouseout"==c){if(e==cp.kSTTRollOver||e==cp.kSTTDown)d=!0,j=this.stateAtStartOfMouseEvents,cp.device===cp.DESKTOP&&(c=cp.GetMouseOverManager())&&c.removeMouseOverItem(this);if(e==cp.kSTTNormal||e==cp.kSTTCustom)cp.browser==
cp.CHROME&&this.ignoreMouseOutEventOnNormal?this.ignoreMouseOutEventOnNormal=!1:this.shouldShowRollOver=!0}else if("mousedown"==c){if(e==cp.kSTTNormal||e==cp.kSTTRollOver||e==cp.kSTTCustom)if(d=!0,j=cp.getLocalisedStateName("kCPDownState"),this.bShouldListenForMouseUpOnDownState=!0,e==cp.kSTTNormal||e==cp.kSTTCustom)this.stateAtStartOfMouseEvents=i,this.ignoreMouseOutEventOnNormal=!0;this.shrinkShapeButtonInAllStates()}else if("mouseup"==c){if(!f||e==cp.kSTTDown)e==cp.kSTTDown&&(d=!0,j=this.stateAtStartOfMouseEvents),
this.shouldShowRollOver=!1,this.bShouldListenForMouseUpOnDownState&&(l=!0);this.expandShapeButtonInAllStates()}d&&(j!==cp.getLocalisedStateName("kCPRolloverState")&&cp.ResetItemZIndicesWithinState(this,cp.getLocalisedStateName("kCPRolloverState")),cp.changeState(this.actualParent.id,j,!1));l&&(!cp.IsGestureSupportedDevice()&&!cp.disableInteractions&&(this.needsOwnHandler||cp.CHROME!=cp.browser&&cp.MSIE!=cp.browser||cp.m_isLMSPreview))&&cp.dispatchClickEvent(this.actualParent,a,{asPartOfStateChange:!0})}}};
cp.GESTURE_EVENT_TYPES={};cp.GESTURE_EVENT_TYPES.TAP="tap";cp.GESTURE_EVENT_TYPES.DOUBLE_TAP="doubletap";cp.GESTURE_EVENT_TYPES.LONG_TAP="longtap";cp.GESTURE_EVENT_TYPES.HOLD="hold";cp.GESTURE_EVENT_TYPES.ROTATE="rotate";cp.GESTURE_EVENT_TYPES.DRAG="drag";cp.GESTURE_EVENT_TYPES.DRAG_START="dragstart";cp.GESTURE_EVENT_TYPES.DRAG_END="dragend";cp.GESTURE_EVENT_TYPES.SWIPE_UP="swipeup";cp.GESTURE_EVENT_TYPES.SWIPE_DOWN="swipedown";cp.GESTURE_EVENT_TYPES.SWIPE_LEFT="swipeleft";
cp.GESTURE_EVENT_TYPES.SWIPE_RIGHT="swiperight";cp.GESTURE_EVENT_TYPES.TOUCH="touch";cp.GESTURE_EVENT_TYPES.RELEASE="release";cp.GESTURE_EVENT_TYPES.PINCH_OUT="pinchout";cp.GESTURE_EVENT_TYPES.PINCH_IN="pinchin";cp.GESTURE_EVENT_TYPES.TAP_ONE="tapone";cp.GESTURE_EVENT_TYPES.TAP_TWO="taptwo";cp.GESTURE_EVENT_TYPES.TAP_THREE="tapthree";cp.GESTURE_EVENT_TYPES.SWIPE_MOVE="swipemove";cp.GESTURE_EVENT_TYPES.SWIPE_ONE="swipeone";cp.GESTURE_EVENT_TYPES.SWIPE_TWO="swipetwo";
cp.GESTURE_EVENT_TYPES.SWIPE_THREE="swipethree";cp.GESTURE_EVENT_TYPES.SWIPE_FOUR="swipefour";cp.GESTURE_EVENT_TYPES.SWIPE_LEFT_UP="swipeleftup";cp.GESTURE_EVENT_TYPES.SWIPE_LEFT_DOWN="swipeleftdown";cp.GESTURE_EVENT_TYPES.SWIPE_RIGHT_UP="swiperightup";cp.GESTURE_EVENT_TYPES.SWIPE_RIGHT_DOWN="swiperightdown";cp.GESTURE_EVENT_TYPES.PINCH="pinch";cp.GESTURE_EVENT_TYPES.PINCH_OPEN="pinchopen";cp.GESTURE_EVENT_TYPES.PINCH_CLOSE="pinchclose";cp.GESTURE_EVENT_TYPES.ROTATECW="rotatecw";
cp.GESTURE_EVENT_TYPES.ROTATECCW="rotateccw";cp.GESTURE_EVENT_TYPES.SHAKE="shake";cp.GESTURE_EVENT_TYPES.SHAKE_FRONT_BACK="shakefrontback";cp.GESTURE_EVENT_TYPES.SHAKE_LEFT_RIGHT="shakeleftright";cp.GESTURE_EVENT_TYPES.SHAKE_UP_DOWN="shakeupdown";cp.GestureHandler=function(){this.movie=cp.movie;this.enabled=!0;this.initializeDefaultGestureEvents()};
cp.GestureHandler.prototype.scaleMovie=function(a,b){a.gesture.stopPropagation();a.gesture.preventDefault();var c=cp("div_Slide");c.style.webkitTransformOrigin=""+a.gesture.center.pageX+" "+a.gesture.center.pageY+"";c.style.MozTransformOrigin=""+a.gesture.center.pageX+" "+a.gesture.center.pageY+"";c.style.msTransformOrigin=""+a.gesture.center.pageX+" "+a.gesture.center.pageY+"";c.style.webkitTransform="scale("+!b?a.gesture.scale:"1)";c.style.MozTransform="scale("+!b?a.gesture.scale:"1)";c.style.msTransform=
"scale("+!b?a.gesture.scale:"1)"};cp.GestureHandler.prototype.addCPEventListeners=function(){if(cp.device!=cp.DESKTOP){var a=this;cp.em.addEventListener(function(b){a.resetZoom.call(a,b);a.resetScroll.call(a,b)},cp.SLIDEENTEREVENT);cp.em.addEventListener(function(b){a.resetZoom.call(a,b);a.resetScroll.call(a,b)},cp.ORIENTATIONCHANGEDEVENT)}};cp.GestureHandler.prototype.registerGestureEvent=function(a,b,c){if(!cp.IsGestureSupportedDevice()||!cp.useg)a.onclick=c};
cp.GestureHandler.prototype.removeGestureEvent=function(a){if(!cp.IsGestureSupportedDevice()||!cp.useg)a.onclick=void 0};cp.GestureHandler.prototype.enableGestures=function(){this.enabled=!0;"undefined"!=typeof Hammer&&(Hammer&&Hammer.detection)&&(Hammer.detection.current=null)};cp.GestureHandler.prototype.disableGestures=function(){this.enabled=!1};cp.GestureHandler.prototype.addScaleEvent=function(){};
cp.GestureHandler.prototype.changeClickEventsToTouch=function(){this.registerGestureEvent(cp("playImage"),cp.GESTURE_EVENT_TYPES.TAP,function(){cp.movie.play()});this.registerGestureEvent(cp("ccClose"),cp.GESTURE_EVENT_TYPES.TAP,function(){cp.showHideCC()})};cp.GestureHandler.prototype.scrollH=function(a){var b=cp.responsive?cp("project"):cp("main_container"),a=b.getBoundingClientRect().left+a;b.style.left=a+"px"};
cp.GestureHandler.prototype.scrollV=function(a){var b=cp.responsive?cp("project"):cp("main_container"),a=b.getBoundingClientRect().top+a;b.style.top=a+"px"};
cp.GestureHandler.prototype.getDefaultGestureHandler=function(a){switch(a){case cp.GESTURE_EVENT_TYPES.TAP_TWO:return function(){cp.m_gestureHandler.enabled&&cp.handlePlaybarShowHide()};case cp.GESTURE_EVENT_TYPES.LONG_TAP:return function(){cp.m_gestureHandler.enabled&&cp.toggleMoviePlayPause()};case cp.GESTURE_EVENT_TYPES.HOLD:return function(){cp.m_gestureHandler.enabled&&cp.handlePlaybarShowHide()};case cp.GESTURE_EVENT_TYPES.DOUBLE_TAP:return function(){cp.m_gestureHandler.enabled&&cp.handleTOCOpenClose()};
case cp.GESTURE_EVENT_TYPES.SWIPE_UP:return function(a){if(cp.m_gestureHandler.enabled){if(cp.canScroll("up",cp.GESTURE_EVENT_TYPES.SWIPE_UP))return!1;50>a.gesture.distance||(a.gesture.stopPropagation(),a.gesture.preventDefault(),cp("div_Slide").scaleFactor&&1!=cp("div_Slide").scaleFactor||cp.togglePlaybarShowHide())}};case cp.GESTURE_EVENT_TYPES.SWIPE_DOWN:return function(a){if(cp.m_gestureHandler.enabled){if(cp.canScroll("down",cp.GESTURE_EVENT_TYPES.SWIPE_DOWN))return!1;50>a.gesture.distance||
(a.gesture.stopPropagation(),a.gesture.preventDefault(),cp("div_Slide").scaleFactor&&1!=cp("div_Slide").scaleFactor||cp.togglePlaybarShowHide())}};case cp.GESTURE_EVENT_TYPES.SWIPE_LEFT:return function(a){if(cp.m_gestureHandler.enabled){if(!cp.responsive&&cp.canScroll("left",cp.GESTURE_EVENT_TYPES.SWIPE_LEFT))return!1;if(!(50>a.gesture.distance)&&(a.gesture.stopPropagation(),a.gesture.preventDefault(),!(cp("div_Slide").scaleFactor&&1!=cp("div_Slide").scaleFactor)&&(!cp.D||!cp.D.baq))){var a=cp.goToNextSlide,
c=window;if(cp.movie.stage&&cp.movie.stage.currentSlide){var d=cp.movie.stage.currentSlide;if(!d.useng)return;if("Question Slide"==d.st&&(d=cp.getQuestionObject(cp.D[d.mdi].dn)))a=d.moveForward,c=d}a.call(c,void 0)}}};case cp.GESTURE_EVENT_TYPES.SWIPE_RIGHT:return function(a){if(cp.m_gestureHandler.enabled){if(!cp.responsive&&cp.canScroll("right",cp.GESTURE_EVENT_TYPES.SWIPE_RIGHT))return!1;if(!(50>a.gesture.distance)&&(a.gesture.stopPropagation(),a.gesture.preventDefault(),!(cp("div_Slide").scaleFactor&&
1!=cp("div_Slide").scaleFactor)&&(!cp.D||!cp.D.baq))){var a=cp.goToPreviousSlide,c=window;if(cp.movie.stage&&cp.movie.stage.currentSlide){var d=cp.movie.stage.currentSlide;if(!d.useng)return;if("Question Slide"==d.st&&(d=cp.getQuestionObject(cp.D[d.mdi].dn)))a=d.moveBackward,c=d}a.call(c,void 0)}}}}};
cp.GestureHandler.prototype.initializeDefaultGestureEvents=function(){cp("div_Slide").scaleFactor=1;if(cp.IsGestureSupportedDevice()&&cp.useg){this.changeClickEventsToTouch();var a=cp("div_Slide");cp("main_container");cp.D.project.shc||this.addScaleEvent();this.registerGestureEvent(a,cp.GESTURE_EVENT_TYPES.LONG_TAP,this.getDefaultGestureHandler(cp.GESTURE_EVENT_TYPES.LONG_TAP));this.registerGestureEvent(a,cp.GESTURE_EVENT_TYPES.DOUBLE_TAP,this.getDefaultGestureHandler(cp.GESTURE_EVENT_TYPES.DOUBLE_TAP));
this.registerGestureEvent(a,cp.GESTURE_EVENT_TYPES.SWIPE_UP,this.getDefaultGestureHandler(cp.GESTURE_EVENT_TYPES.SWIPE_UP));this.registerGestureEvent(a,cp.GESTURE_EVENT_TYPES.SWIPE_DOWN,this.getDefaultGestureHandler(cp.GESTURE_EVENT_TYPES.SWIPE_DOWN));this.registerGestureEvent(a,cp.GESTURE_EVENT_TYPES.SWIPE_LEFT,this.getDefaultGestureHandler(cp.GESTURE_EVENT_TYPES.SWIPE_LEFT));this.registerGestureEvent(a,cp.GESTURE_EVENT_TYPES.SWIPE_RIGHT,this.getDefaultGestureHandler(cp.GESTURE_EVENT_TYPES.SWIPE_RIGHT))}};
cp.GestureHandler.prototype.resetZoom=function(){};cp.GestureHandler.prototype.resetScroll=function(){};cp.GestureHandler.prototype.initializeProjectGestures=function(){if(cp.useg){var a=cp.D.project.GestureData;if(a)for(var b in a)cp.registerGestureEvent(cp("project"),b,a[b])}};
cp.GestureHandler.prototype.getEventPageX=function(a){var b=a;a.changedTouches&&0<a.changedTouches.length&&(b=a.changedTouches[0]);if(!b)return 0;if(b.pageX)return b.pageX;var a=document.documentElement,c=document.body;return b.clientX+(a&&a.scrollLeft||c&&c.scrollLeft||0)-(a&&a.clientLeft||c&&c.clientLeft||0)};
cp.GestureHandler.prototype.getEventPageY=function(a){var b=a;a.changedTouches&&0<a.changedTouches.length&&(b=a.changedTouches[0]);if(!b)return 0;if(b.pageY)return b.pageY;var a=document.documentElement,c=document.body;return b.clientY+(a&&a.scrollTop||c&&c.scrollTop||0)-(a&&a.clientTop||c&&c.clientTop||0)};cp.registerGestureEvent=function(a,b,c){a&&(b&&c)&&cp.m_gestureHandler.registerGestureEvent(a,b,c)};cp.removeGestureEvent=function(a,b,c){a&&b&&cp.m_gestureHandler.removeGestureEvent(a,b,c)};
cp.IsGestureSupportedDevice=function(){return cp.device==cp.IDEVICE||cp.device==cp.ANDROID};cp.initializeGestureEvents=function(){cp.m_gestureHandler||(cp.IsGestureSupportedDevice()&&(cp("cpDocument").style.overflow="auto"),cp.m_gestureHandler=!cp.IsGestureSupportedDevice()||!cp.useg?new cp.GestureHandler:new cp.HammerGestureHandler,cp.m_gestureHandler.initializeProjectGestures())};
cp.canScroll=function(a,b){if(!cp.m_gestureHandler.enabled||cp.D.project.shc||1!=cp("div_Slide").scaleFactor)return!1;if(b!=cp.GESTURE_EVENT_TYPES.DRAG&&cp.m_gestureHandler.isScrolling)return!0;var c=cp.responsive?cp("project").getBoundingClientRect():cp("main_container").getBoundingClientRect();switch(a){case "up":return c.bottom>window.innerHeight;case "down":return 0>c.top;case "left":return c.right>window.innerWidth;case "right":return 0>c.left;default:return!1}};
cp.user_responseIdentifierArr=[];cp.correct_responseIdentifierArr=[];cp.ConvertToInteractionResultConstant=function(a){if(!cp.IsRunningInACAP){var b;switch(a.toLowerCase()){case "correct":b=!0;break;case "wrong":b=!1;break;case "unanticipated":b=cp.LMSDriverHolder.INTERACTION_RESULT_UNANTICIPATED;break;case "neutral":b=cp.LMSDriverHolder.INTERACTION_RESULT_NEUTRAL;break;case "incorrect":b=!1;break;default:cp.verbose&&cp.log("Could not find appropriate token for interaction result! -"+a)}return b}};
cp.quizContinueButtonClickHandler=function(){cp.movie.play()};cp.qcnch=function(a){return cp.quizContinueButtonClickHandler(a)};cp.defaultHandlerForRuntimeMessageBox=function(){var a=cp.movie.playbackController.GetQuizController();a&&a.DefaultHandlerForRuntimeMessageBox()};cp.returnToQuiz=function(){var a=cp.movie.playbackController.GetQuizController();a&&a.ReturnToQuiz()};cp.forceSubmitAll=function(){var a=cp.movie.playbackController.GetQuizController();a&&a.ForceSubmitAll()};
cp.quizReviewButtonClickHandler=function(a){var a=cp.D[a.id],b=cp.movie.playbackController.GetQuizController();b&&cp.movie.playbackController.HasQuiz()&&(b.SetIsInReviewMode(!0),a&&(cp.movie.playbackController.GetSlideNames(),a=b.GetFirstSlideInQuizIndex(),void 0!=a&&(cpCmndGotoSlideAndResume=a)))};cp.qrch=function(a){return cp.quizReviewButtonClickHandler(a)};
cp.resetQuizData=function(){var a=cp.movie.playbackController.GetQuizController();if(a){var b=cp.movie.questionObjs;if(!b)return 0;var c=b.length;if(!(0>=c)){for(var d=0;d<c;++d)b[d]&&(b[d].getIsPretest()||b[d].resetQuestionData());a.GetScore()}}};
cp.quizRetakeButtonClickHandler=function(a){var b=cp.movie.playbackController.GetQuizController();if(b&&(cp.movie.playbackController.HasQuiz()&&cp.D[a.id])&&(a=cp.movie.playbackController.GetSlideNames(),b=b.GetFirstSlideInQuizIndex(),0<=b&&(a=cp.D[a[b]]))){var c=cp.movie.playbackController.GetGraphManager();void 0!=c&&c.resetCurrentBranch(b);cp.resetQuizData();cpCmndGotoFrameAndResume=a.from}};cp.qrtch=function(a){return cp.quizRetakeButtonClickHandler(a)};cp.quizPostResultButtonClickHandler=function(){cp.movie.playbackController.PostQuizResults()};
cp.qprch=function(a){return cp.quizPostResultButtonClickHandler(a)};cp.quizClearButtonClickHandler=function(a){var b=cp.movie.playbackController.GetQuizController();if(b){var c=cp.D[a.id];c&&(c=cp.getQuestionObject(c.sn))&&(!c.getIsPretest()||!b.GetIsPretestQuestionsDisabled())&&c.clearButtonClickHandler(a)}};cp.qcch=function(a){return cp.quizClearButtonClickHandler(a)};
cp.quizSkipButtonClickHandler=function(a){var b=cp.movie.playbackController.GetQuizController();if(b){var c=cp.D[a.id];if(c&&(c=cp.getQuestionObject(c.sn))){if(!b.GetIsInReviewMode()){if(c.getIsLastPretestQuestion())return b.ExecutePretestAction(cp.movie.playbackController.GetCurrentSlideIndex());var d=b.GetIsSubmitAll();if("mustAnswer"==b.GetQuestionAdvanceType()&&!d&&!c.m_answersDisabled&&!c.getIsPretest()&&!c.getIsKnowledgeCheck())return;var e=c.getSlideIndex();if(0<=e&&!c.getIsPretest()&&!c.getIsKnowledgeCheck()&&
!d){d=!1;b=b.GetGraphManager();if(void 0!=b){var f=b.getNextSlideList(e);if(void 0!=f)if(1==f.length)d=!1;else if(d=!0,f=b.getBranchHistory(),void 0!=f)for(var g=f.length-1;0<=g;--g){var i=f[g];if(i==e&&g!=f.length-1&&b.getIsJumpValid(i,f[g+1])){d=!1;break}}}if(d)return}if(""!=cp.movie.playbackController.AllowedToGoToSlide(cpInfoCurrentSlideIndex,cpInfoCurrentSlideIndex+1))return}cpQuizInfoTotalUnansweredQuestions+=1;c.skipButtonClickHandler(a)}}};cp.qskch=function(a){return cp.quizSkipButtonClickHandler(a)};
cp.quizBackButtonClickHandler=function(a){var b=cp.movie.playbackController.GetQuizController();if(b){var c=cp.D[a.id];c&&(c=cp.getQuestionObject(c.sn))&&(b.GetIsInReviewMode()||""==cp.movie.playbackController.AllowedToGoToSlide(cpInfoCurrentSlideIndex,cpInfoCurrentSlideIndex-1))&&c.backButtonClickHandler(a)}};cp.qbch=function(a){return cp.quizBackButtonClickHandler(a)};
cp.quizReviewModeNextButtonClickHandler=function(a){var b=cp.movie.playbackController.GetQuizController();if(b){var c=cp.D[a.id];c&&(c=cp.getQuestionObject(c.sn))&&b.GetIsInReviewMode()&&c.reviewModeNextButtonClickHandler(a)}};cp.qrmnch=function(a){return cp.quizReviewModeNextButtonClickHandler(a)};cp.quizReviewModeBackButtonClickHandler=function(a){var b=cp.movie.playbackController.GetQuizController();if(b){var c=cp.D[a.id];c&&(c=cp.getQuestionObject(c.sn))&&b.GetIsInReviewMode()&&c.reviewModeBackButtonClickHandler(a)}};
cp.qrmbch=function(a){return cp.quizReviewModeBackButtonClickHandler(a)};cp.quizSubmitButtonClickHandler=function(a){var b=cp.movie.playbackController.GetQuizController();if(b&&(a=cp.D[a.id]))if((a=cp.getQuestionObject(a.sn))&&(!a.getIsPretest()||!b.GetIsPretestQuestionsDisabled()))a.getWasJudged()||a.judge(!1,!1),cpQuizInfoTotalUnansweredQuestions-=1};cp.qsbch=function(a){return cp.quizSubmitButtonClickHandler(a)};
cp.quizSubmitAllButtonClickHandler=function(){var a=cp.movie.playbackController.GetQuizController();a&&a.SubmitAllQuestions(!0,!1)};cp.qsabch=function(a){return cp.quizSubmitAllButtonClickHandler(a)};cp.intTimeoutID="";cp.CallFunctionAfterAPIIsLoaded=function(a){if(IsLoaded())return""!=intTimeoutID&&(window.clearTimeout(intTimeoutID),intTimeoutID=""),eval(a);intTimeoutID=window.setTimeout("CallFunctionAfterAPIIsLoaded("+a+")",100)};
cp.UnloadActivties=function(){if(!(cp.LMSUnloaded||void 0==cp.LMSDriverHolder&&!cp.IsRunningInACAP)){var a=cp.movie.playbackController;a&&(a.GetIsTracked()&&"EMAIL"!=a.m_lmsType.toUpperCase()&&"ACROBAT"!=a.m_lmsType.toUpperCase()&&"INTERNALSERVER"!=a.m_lmsType.toUpperCase())&&(cp.movie.virgin&&a.RestoreQuizState(),a.IsRunningInConnect()?a.ExitCourse():a.SendCourseData(!0),a.ClearPendingCalls());cp.LMSDriverHolder&&(cp.LMSDriverHolder.CommitData&&cp.LMSDriverHolder.CommitData(),cp.LMSDriverHolder.Unload&&
cp.LMSDriverHolder.Unload());cp.LMSUnloaded=!0}};cp.intQuestionSymbolCounter=0;cp.ASCII_QUESTION=63;cp.CheckForDebugCommand=function(a){if(!cp.IsRunningInACAP){var b=0,b=window.event?window.event.keyCode:a.which;b==cp.ASCII_QUESTION?(cp.intQuestionSymbolCounter++,3==cp.intQuestionSymbolCounter&&(cp.intQuestionSymbolCounter=0,cp.LMSDriverHolder.ShowDebugWindow())):0!=b&&(cp.intQuestionSymbolCounter=0)}};cp.CheckForDebugCommandOnDevices=function(a){cp.IsRunningInACAP||30<a.rotation&&cp.LMSDriverHolder.ShowDebugWindow()};
cp.topWindowBeforeUnloadHandler=void 0;cp.topWindowUnloadHandler=void 0;function RegisterForCloseOnTopWindow(){if(!cp.IsRunningInACAP&&cp.MSIE==cp.browser&&void 0!=cp.topWindow&&cp.topWindow!=cp.LMSDriverHolder.self){var a=cp.topWindow;a.onbeforeunload&&void 0!=a.onbeforeunload&&(cp.topWindowBeforeUnloadHandler=a.onbeforeunload);a.onunload&&void 0!=a.onunload&&(cp.topWindowUnloadHandler=a.onunload);a.onbeforeunload=cp.CPDoBeforeUnload;a.onunload=cp.CPDoUnload}}
cp.CPDoBeforeUnload=function(){var a=window.onbeforeunload;a&&a();topWindowBeforeUnloadHandler&&topWindowBeforeUnloadHandler()};cp.CPDoUnload=function(){cp.UnloadActivties();topWindowUnloadHandler&&topWindowUnloadHandler()};cp.g_ShouldRandomize=!0;cp.startBlnStr=!1;
cp.handleACAPResumeData=function(a){cp.IsRunningInACAP&&a.then(function(a){cp.resumeDataChunk=unescape(a);""!=cp.resumeDataChunk&&void 0!=cp.resumeDataChunk&&"0"!=cp.resumeDataChunk?(cp.g_ShouldRandomize=!1,a=void 0,cp.movie&&(a=cp.movie.playbackController),a&&a.RestoreQuizState()):cp.g_ShouldRandomize=!0;cp.ContinueCPInit();cp.unblockFromLMS()},function(){cp.g_ShouldRandomize=!0;cp.ContinueCPInit();cp.unblockFromLMS()})};
cp.fireResumeDataEvent=function(a){cp.IsRunningInACAP&&cp.em.fireEvent("CPSet_ResumeData",{ResumeData:a})};
cp.LoadActivities=function(){if(!cp.IsRunningInACAP)if(cp.IsRunningInConnect())cp.DoConnectRelatedLMSLoad();else if(!cp.IsRunningInALEC&&"undefined"!=typeof cp.LMSDriverHolder){if(cp.m_isLMSPreview){var a=cp.LMSDriverHolder.WriteToDebug;cp.LMSDriverHolder.WriteToDebug=function(b,c){a(b,c);cp.LMSDriverHolder.winDebug&&cp.LMSDriverHolder.winDebug.scrollTo(0,cp.LMSDriverHolder.winDebug.document.body.scrollHeight)};cp.LMSDriverHolder.ShowDebugWindow(!0)}var b=cp.D.quizReportingData;b&&(cp.LMSDriverHolder.blnDebug=
b.lWriteDebugInfo);cp.LMSDriverHolder.blockedForLMS||(cp.LMSDriverHolder.blockedForLMS=!0,cp("blockUserInteraction").style.display="block",cp("blockUserInteraction").style.width="100%",cp("blockUserInteraction").style.height="100%",cp("blockUserInteraction").style.zIndex=1E4);var c=cp.LMSDriverHolder.confirm;cp.LMSDriverHolder.confirm=function(a){cp.LMSDriverHolder.confirm=c;LoadContent();return c(a)};RegisterForCloseOnTopWindow();cp.m_isLMSPreview&&(cp.LMSDriverHolder.LoadContent=LoadContent);cp.LMSDriverHolder.Start()}};
function LoadContent(){cp.verbose&&cp.log("LoadContent called...IsContentLoaded : "+cp.IsContentLoaded);if(!cp.IsRunningInACAP&&!cp.IsContentLoaded){try{var a=cp.LMSDriverHolder.IsLoaded();cp.startBlnStr=a;if(!a){cp.log("LMS Driver not loaded.");cp.ContinueCPInit();cp.unblockFromLMS();return}document.onkeypress=cp.CheckForDebugCommand;cp.DESKTOP!=cp.device&&(document.ongesturechange=cp.CheckForDebugCommandOnDevices)}catch(b){cp.log("LMS Driver not found.");cp.ContinueCPInit();cp.unblockFromLMS();
return}a=cp.LMSDriverHolder.GetEntryMode();if(a==cp.LMSDriverHolder.ENTRY_FIRST_TIME)cp.resumeDataChunk=unescape(cp.LMSDriverHolder.GetDataChunk()),""!=cp.resumeDataChunk&&void 0!=cp.resumeDataChunk&&"0"!=cp.resumeDataChunk?(cp.g_ShouldRandomize=!1,a=void 0,cp.movie&&(a=cp.movie.playbackController),a&&a.RestoreQuizState()):(cp.LMSDriverHolder.SetBookmark("0"),cp.LMSDriverHolder.SetDataChunk("0"));else if(a==cp.LMSDriverHolder.ENTRY_REVIEW&&cp.D.quizReportingData.cmiExitNormalAfterCompletion)cp.LMSDriverHolder.SetBookmark("0"),
cp.LMSDriverHolder.SetDataChunk("0"),cp.g_ShouldRandomize=!0;else if(cp.LMSDriverHolder.GetBookmark(),cp.resumeDataChunk=unescape(cp.LMSDriverHolder.GetDataChunk()),""!=cp.resumeDataChunk&&void 0!=cp.resumeDataChunk&&"0"!=cp.resumeDataChunk){if(cp.g_ShouldRandomize=!1,a=void 0,cp.movie&&(a=cp.movie.playbackController),a&&a.RestoreQuizState(),cp.verbose)cp.log(cp.resumeDataChunk),cp.log("Unblocking UI")}else cp.g_ShouldRandomize=!0;cp.ContinueCPInit();cp.unblockFromLMS();cp.IsContentLoaded=!0}}
cp.resumeValuesFromDataChunk=function(){if(cp.resumeDataChunk&&"0"!=cp.resumeDataChunk){var a=cp.D.quizReportingData;!(a&&!0!=a.trackingSendResumeData)&&cp.movie.playbackController&&(a=new cp.QuizState,a.init(),a.fromString(cp.resumeDataChunk),cp.movie.playbackController.restoreQuizFromState(a))}};cp.createAndGetDataChunk=function(){if(!cp.movie.playbackController)return"";var a=new cp.QuizState;a.init();cp.movie.playbackController.saveQuizState(a);return a.toString()};
cp.getQuestionNumberInQuiz=function(a){var b=-1,a=cp.D[a];void 0!=a&&(b=a.qnq);return b};cp.getQuestionObjectName=function(a){var b,a=cp.getQuestionNumberInQuiz(a);-1!=a&&(b=cp.movie.questions[a]);return b};cp.getQuestionObject=function(a){var b,a=cp.getQuestionNumberInQuiz(a);-1!=a&&(b=cp.movie.questionObjs[a]);return b};
cp.QuizState=function(){this.m_curReadPos=0;this.m_b64Alphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-";this.m_to64=[];this.m_from64=[];this.m_escAlphabet="$.!*+";this.m_doubleEsc="~";this.m_esc=[];this.m_mask=[63,4095,262143,16777215,1073741823];this.m_fromEsc=[];this.m_state=""};
cp.QuizState.prototype={init:function(){for(var a=0;a<this.m_b64Alphabet.length;a++)this.m_to64[a]=this.m_b64Alphabet.charAt(a),this.m_from64[this.m_b64Alphabet.charCodeAt(a)]=a;for(a=0;a<this.m_escAlphabet.length;++a)this.m_esc[a]=this.m_escAlphabet.charAt(a),this.m_fromEsc[this.m_escAlphabet.charAt(a)]=a+1},toString:function(){return escape(this.m_state)},fromString:function(a){this.m_state=a;this.m_curReadPos=0},writeNumber:function(a){var b,c,d,a=Math.floor(a);if(a>this.m_mask[this.m_mask.length-
1])this.m_state=this.m_state.concat(this.m_doubleEsc),this.writeNumber(a/(this.m_mask[this.m_mask.length-1]+1)),this.writeNumber(a&this.m_mask[this.m_mask.length-1]);else for(b=0;b<this.m_esc.length;b++)if((a&this.m_mask[b])==a){0<b&&(this.m_state=this.m_state.concat(this.m_esc[b-1]));for(var e=c=0;e<=b;e++)d=a>>c&63,this.m_state=this.m_state.concat(this.m_to64[d]),c+=6;break}},readNumber:function(){var a=this.m_state.charAt(this.m_curReadPos),b=this.m_state.charCodeAt(this.m_curReadPos++),c,d=0,
e;if(a==this.m_doubleEsc)return d=this.readNumber(),a=this.readNumber(),d*(this.m_mask[this.m_mask.length-1]+1)+a;a=this.m_fromEsc[a];if(0==a||void 0==a)d=this.m_from64[b];else for(b=e=0;b<=a;b++)c=this.m_from64[this.m_state.charCodeAt(this.m_curReadPos++)],d|=c<<e,e+=6;return d},writeBoolean:function(a){this.m_state=this.m_state.concat(a?"1":"0")},readBoolean:function(){return"1"==this.m_state.charAt(this.m_curReadPos++)},writeString:function(a){this.writeNumber(a.length);this.m_state=this.m_state.concat(a)},
readString:function(){var a=this.readNumber(),b=this.m_state.substr(this.m_curReadPos,a);this.m_curReadPos+=a;return b},getReadPos:function(){return this.m_curReadPos},setReadPos:function(a){this.m_curReadPos=a},getWritePos:function(){return this.m_curReadPos},setWritePos:function(a){this.m_curReadPos=a},getData:function(){return this.toString()},setData:function(a){this.fromString(a)}};
cp.QuizController=function(){this.m_showPlaybar=!0;this.quizInProgress=!1;this.quizNumFinishes=this.quizNumStarts=0;this.sawAnyScoreSlide=!1;this.m_QuizzingData=void 0;this.m_questionSlideNames=[];this.m_playbackController=void 0;this.m_scoreDisplay={};this.m_GoToQuizScopeActionExecuted=!1;this.m_RunTimeMsgBox=void 0;this.m_ExecutingPretestAction=this.m_PretestQuestionsDisabled=this.m_FirstNonPretestQuestionEncountered=this.m_forceAbsoluteProgressType=this.verbose=this.m_submittedAllQuestions=this.m_HandledSubmitAll=
!1;cp.vm.createVariable("cpQuizHandledAll",!1,!1,15,!1)};
cp.QuizController.prototype={GetIsCurrentSlideLastPrestest:function(){if(!this.m_playbackController)return!1;var a=this.m_playbackController.GetCurrentSlideIndex();if(0>a||a>=cp.movie.stage.slides.length)return!1;a=this.GetQuestionsOnSlide(a);return!a||0>=a.length?!1:(a=a[0])?a.getIsLastPretestQuestion():!1},GetIsPretestQuestionsDisabled:function(){return this.m_PretestQuestionsDisabled},GetForceAbsoluteProgressType:function(){return this.m_forceAbsoluteProgressType},SetForceAbsoluteProgressType:function(a){this.m_forceAbsoluteProgressType=
a},GetFirstNonPretestQuestionEncountered:function(){return this.m_FirstNonPretestQuestionEncountered},SetFirstNonPretestQuestionEncountered:function(a){this.m_FirstNonPretestQuestionEncountered=a},GetQuestionScoresToSend:function(){var a=[],b=cp.movie.stage.slides;if(!b)return[];for(var c=0;c<b.length;++c)if(cp.D[b[c]].v)for(var d=this.GetQuestionsOnSlide(c),e=0;e<d.length;++e){var f=d[e];f&&a.push(f.getQuestionScore())}return a},saveState:function(a){a.writeBoolean(this.GetIsInReviewMode());a.writeBoolean(!1);
a.writeBoolean(this.quizInProgress);a.writeNumber(this.quizNumStarts);a.writeNumber(this.quizNumFinishes);a.writeBoolean(this.sawAnyScoreSlide);a.writeBoolean(this.m_submittedAllQuestions);a.writeBoolean(this.m_PretestQuestionsDisabled);a.writeBoolean(cpInQuizScope);a.writeString(""+cpQuizScopeSlide);var b=this.GetQuestionScoresToSend();a.writeNumber(b.length);for(whichQuestionScore in b){var c=b[whichQuestionScore];c&&c.saveState(a)}this.saveBranchInfo(a)},saveBranchInfo:function(a){var b="",c=this.GetGraphManager();
a.writeBoolean(void 0!=c);if(c){var d=c.getCompletionBranch();a.writeNumber(d.length);for(var e=0;e<d.length;++e)a.writeNumber(d[e]);d=c.getCurrentBranch();a.writeNumber(d.length);for(e=0;e<d.length;++e)a.writeNumber(d[e]);if(void 0!=c.m_SlideNumToQuestionNumMap)for(var f in c.m_SlideNumToQuestionNumMap)b+=f+"_"+c.m_SlideNumToQuestionNumMap[f]+",";a.writeString(b)}},restoreState:function(a){if(a){this.SetIsInReviewMode(a.readBoolean());a.readBoolean();this.quizInProgress=a.readBoolean();this.quizNumStarts=
a.readNumber();this.quizNumFinishes=a.readNumber();this.sawAnyScoreSlide=a.readBoolean();this.m_submittedAllQuestions=a.readBoolean();this.m_PretestQuestionsDisabled=a.readBoolean();svvi("cpInQuizScope",a.readBoolean(),["cpInQuizScope"]);this.quizScopeSlideSetter(parseFloat(a.readString()));for(var b=a.readNumber(),c=0;c<b;++c)(new cp.QuestionScore).restoreState(a);this.restoreBranchInfo(a)}},restoreBranchInfo:function(a){if(a){var b=[],c=[],d="";if(a.readBoolean()){for(var d=a.readNumber(),e=0;e<
d;++e)b.push(a.readNumber());d=a.readNumber();for(e=0;e<d;++e)c.push(a.readNumber());d=a.readString()}if(a=this.GetGraphManager())a.restoreCompletionBranchState(b),a.restoreCurrentBranchState(c),this.RestoreGraphProgressIndicatorMap(d)}},ResumeState:function(a,b){this.verbose&&cp.log("QuizController :: ResumeState()");switch(a){case "isInReviewMode":this.SetIsInReviewMode("true"==b);break;case "quizInProgress":this.quizInProgress="true"==b;break;case "quizNumStarts":this.quizNumStarts=parseFloat(b);
break;case "quizNumFinishes":this.quizNumFinishes=parseFloat(b);break;case "sawAnyScoreSlide":this.sawAnyScoreSlide="true"==b;break;case "submittedAllQuestions":this.m_submittedAllQuestions="true"==b;break;case "quizScopeSlide":this.quizScopeSlideSetter(parseFloat(b));break;case "completionBranch":this.RestoreCompletionBranchState(b);break;case "currentBranch":this.RestoreCurrentBranchState(b);break;case "qpiMap":this.RestoreGraphProgressIndicatorMap(b)}},RestoreGraphProgressIndicatorMap:function(a){if(!(void 0==
a||""==a)){for(var b=a.split(","),a={},c=0,d=0;d<b.length;++d){var e=b[d].split("_");if(2==e.length){var f=parseInt(e[0]),e=parseInt(e[1]);a[f]=e;c<e&&(c=e)}}b=this.GetGraphManager();void 0!=b&&(void 0!=b.m_SlideNumToQuestionNumMap&&void 0!=b.m_progressNumber)&&(b.m_SlideNumToQuestionNumMap=a,b.m_progressNumber=c)}},RestoreCompletionBranchState:function(a){if(void 0!=a){for(var b=a.split(","),a=[],c=0;c<b.length;++c)a.push(parseInt(b[c]));b=this.GetGraphManager();void 0!=b&&b.restoreCompletionBranchState(a)}},
RestoreCurrentBranchState:function(a){if(void 0!=a){for(var b=a.split(","),a=[],c=0;c<b.length;++c)a.push(parseInt(b[c]));b=this.GetGraphManager();void 0!=b&&b.restoreCurrentBranchState(a)}},SaveQuestionScore:function(a){this.GetIsInReviewMode()||(this.AddQuestionScore(a.GetQuestionScore()),a.SetQuestionScore(void 0))},AddQuestionScore:function(a){for(var b in this.questionScores)if(this.questionScores[b].questionNumInQuiz==a.questionNumInQuiz){this.questionScores[b]=a;return}-1!=a.questionNumInQuiz?
questionScores[a.questionNumInQuiz]=a:questionScores.push(a)},HasQuiz:function(){return void 0!=this.m_QuizzingData?!0:!1},InitializeQuizController:function(){this.verbose&&cp.log("QuizController :: InitializeQuizController()");this.m_QuizzingData=cp.D.quizzingData},GetGraphManager:function(){var a=void 0;this.m_playbackController&&(a=this.m_playbackController.GetGraphManager());return a},GetGoToQuizScopeActionExecuted:function(){return this.m_GoToQuizScopeActionExecuted},SetGoToQuizScopeActionExecuted:function(a){this.m_GoToQuizScopeActionExecuted=
a},GetIsInReviewMode:function(){return!this.m_QuizzingData?!1:this.m_QuizzingData.isInReviewMode},SetIsInReviewMode:function(a){if(this.m_QuizzingData){if(a&&!this.m_QuizzingData.isInReviewMode){var b=this.GetGraphManager();b&&b.SaveCurrentBranch()}this.m_QuizzingData.isInReviewMode=a}},SetQuizInProgress:function(a){a&&!this.quizInProgress?(this.m_HandledSubmitAll=!1,cp.vm.setVariableValue("cpQuizHandledAll",!1,!1),cp.resetQuizData(),this.m_playbackController&&(this.m_playbackController.GetIsTracked()&&
"EMAIL"!=this.m_playbackController.m_lmsType.toUpperCase()&&"ACROBAT"!=this.m_playbackController.m_lmsType.toUpperCase()&&"INTERNALSERVER"!=this.m_playbackController.m_lmsType.toUpperCase()?this.m_playbackController.SendCourseData(!this.m_playbackController.LMSIsAICC()||!this.m_playbackController.IsRunningInConnect()):this.m_playbackController.SendCourseData(!1)),this.m_submittedAllQuestions=!1,this.IncrementCurrentAttempt(),this.sawAnyScoreSlide=!1):!a&&this.quizInProgress&&(this.quizNumFinishes+=
1);this.quizInProgress=a;this.quizInScopeSetter(a)},GetIsAttemptFinished:function(){return 0<this.quizNumStarts&&this.quizNumStarts==this.quizNumFinishes||this.sawAnyScoreSlide?!0:!1},GetCurrentSlideType:function(){this.m_playbackController.GetCurrentSlide();var a=this.m_playbackController.GetCurrentSlideIndex(),b=this.GetQuestionsOnSlide(a);return b&&0<b.length?"Question":this.GetAnyScoreSlideIndex()==a?"AnyScoreSlide":""},IsNonPretestQuestionSlide:function(a){if((a=this.GetQuestionsOnSlide(a))&&
0<a.length){for(var b=!1,c=0;c<a.length;++c){var d=a[c];if(d&&d.getIsPretest()){b=!0;break}}return!b}return!1},IsNonKnowledgeCheck:function(a){if((a=this.GetQuestionsOnSlide(a))&&0<a.length){for(var b=!1,c=0;c<a.length;++c){var d=a[c];if(d&&d.getIsKnowledgeCheck()){b=!0;break}}return!b}return!1},getQuizSlideMaxScore:function(a){var b=0;if((a=this.GetQuestionsOnSlide(a))&&0<a.length)for(var c=0;c<a.length;++c){var d=a[c];d&&!d.getIsPretest()&&(b+=d.getWeighting())}return b},getQuizSlideMinScore:function(a){var b=
0;if((a=this.GetQuestionsOnSlide(a))&&0<a.length)for(var c=0;c<a.length;++c){var d=a[c];d&&!d.getIsPretest()&&(b+=d.getNegativeWeight())}return b},getQuizSlideScore:function(a){var b=0;if((a=this.GetQuestionsOnSlide(a))&&0<a.length)for(var c=0;c<a.length;++c){var d=a[c];d&&!d.getIsPretest()&&(b+=d.getScore())}return b},GetSlideType:function(a){if(!cp.movie.stage)return"";var b=this.GetQuestionsOnSlide(a);return b&&0<b.length?"Question":this.GetAnyScoreSlideIndex()==a?"AnyScoreSlide":""},GetTotalUnansweredQuestions:function(){if(!cp.movie)return 0;
var a=cp.movie.questionObjs;if(!a)return 0;for(var b=0,c=0;c<a.length;++c){var d=a[c];void 0==d?b++:d.getIsIncomplete()?b++:d.getWasJudged()||b++}return b},GetTotalQuestionsInProject:function(){if(!cp.movie)return 0;var a=cp.movie.questionObjs;return!a?0:a.length},GetNumQuestions:function(){var a=this.GetGraphManager();return void 0!=a?a.getNumQuestions():this.GetTotalQuestionsInProject()},GotoQuizScopeSlide:function(a){if(cp.movie&&cp.movie.stage)if(0>a||a>=cpInfoSlideCount)cpCmndResume=!0;else if("Question"==
this.GetCurrentSlideType())cpCmndResume=!0;else{var b=!1;this.GetIsInReviewMode()&&(b=!0);b?cpCmndResume=!0:(this.m_GoToQuizScopeActionExecuted=!0,cpCmndGotoSlideAndResume=a)}},EnterCurrentSlide:function(){var a=!1,b=this.GetCurrentSlideType(),c=this.m_playbackController.GetCurrentSlideIndex(),d=this.GetQuizScopeEndSlideIndex();if(cpInfoHasPlaybar&&this.GetHidePlaybarInQuiz()&&!this.GetIsInReviewMode()){var e=!1;"Question"==b?e=!0:0<=c&&(c==d&&"AnyScoreSlide"!=b)&&(e=!0);e&&(this.m_showPlaybar=!1)}cpCmndShowPlaybar=
this.m_showPlaybar;d=!1;if(this.m_playbackController){c=this.m_playbackController.GetCurrentSlideIndex();if(0>c||c>=cp.movie.stage.slides.length)return!1;if((e=this.GetQuestionsOnSlide(c))&&0<e.length)(e=e[0])&&e.getIsKnowledgeCheck()&&(d=!0)}!1==d&&("Question"==b&&!this.quizInProgress&&!this.GetIsInReviewMode())&&(this.SetQuizInProgress(!0),cpQuizInfoTotalProjectPoints=this.GetMaxScore(),cpQuizInfoAttempts=this.quizNumStarts,cpQuizInfoTotalQuestionsPerProject=this.GetTotalQuestionsInProject());"AnyScoreSlide"==
b&&("INTERNALSERVER"==this.m_playbackController.m_lmsType.toUpperCase()&&!a&&this.m_playbackController.PostQuizResults(),this.quizInScopeSetter(!1),this.sawAnyScoreSlide=a=!0);if(b=this.GetQuestionsOnSlide(c))for(a=0;a<b.length;++a)this.StartQuestion(b[a]);else a&&(this.m_scoreDisplay={},this.m_scoreDisplay.score=this.GetScore(),this.m_scoreDisplay.maxScore=this.GetMaxScore(),this.m_scoreDisplay.numQuestions=this.GetNumQuestions(),this.m_scoreDisplay.numRetries=this.GetTotalRetries(),this.m_scoreDisplay.numQuizAttempts=
this.quizNumStarts,this.m_scoreDisplay.percentCorrect=this.GetPercentCorrect(),this.m_scoreDisplay.numQuestionsCorrect=this.GetTotalCorrectQuestions(),this.m_scoreDisplay.passed=this.GetIsPassed(),this.m_scoreDisplay.feedback=this.GetIsPassed()?this.GetPassedScoreFeedback():this.GetFailedScoreFeedback(),this.m_scoreDisplay.quizController=this);this.m_playbackController&&(this.m_playbackController.GetIsTracked()&&"EMAIL"!=this.m_playbackController.m_lmsType.toUpperCase()&&"ACROBAT"!=this.m_playbackController.m_lmsType.toUpperCase()&&
this.m_playbackController.m_lmsType.toUpperCase(),this.m_playbackController.SendCourseData(!1));cp.IsRunningInACAP&&(a=this.GetScore(),b=this.GetMaxScore(),c=this.GetMinScore(),void 0!=b&&(void 0!=a&&void 0!=c)&&cp.em.fireEvent("SCORE",{score:a,maxScore:b,minScore:c,quizId:cp.D.quizzingData.quizID}))},LeaveSlide:function(a,b){var c=!1;if(!this.m_QuizzingData)return c;var d=this.m_QuizzingData.quizScopeEndSlide;if(void 0==d)return c;this.verbose&&cp.log("Inside Leave Slide");0<=b?c=0<=a&&b>a&&a==d:
0<=a&&a==d&&(c=!0);0<=a&&(a==this.GetAnyScoreSlideIndex()&&!this.GetIsInReviewMode())&&(c=!0);var e=this.GetSlideType(a);if("Question"==e){var f=this.GetQuestionsOnSlide(a);if(f)for(var g=0;g<f.length;++g){var i=f[g];i&&(i.endQuestion(!1),this.GetIsSubmitAll()||i.clearAnswers())}}if(!this.m_playbackController||!this.m_playbackController.HasQuiz())c=!1;f=this.quizInProgress;c&&this.SetQuizInProgress(!1);c&&(!this.GetIsInReviewMode()&&(this.quizNumStarts>=this.GetNumberOfQuizAttempts()&&this.GetIsAllowReviewMode())&&
this.SetIsInReviewMode(!0),this.SetQuizInProgress(!1),void 0==b&&f&&(f=this.GetDefaultActionType(),f=this.GetIsPassed()?this.GetPassingGradeAction():this.GetFailingGradeAction(),cp.movie.frameBasedExecuteAction(f)));cpInfoHasPlaybar&&this.GetHidePlaybarInQuiz()&&(f=!1,"Question"==e?f=!0:0<=a&&(a==d&&"AnyScoreSlide"!=e)&&(f=!0),f&&(this.m_showPlaybar=!0));return c},ExecutePretestAction:function(a){if(this.m_ExecutingPretestAction||void 0==a||0>a||a>=cp.movie.stage.slides.length)return!1;var b=this.GetQuestionsOnSlide(a);
if(void 0==b||0>=b.length||void 0==b[0])return!1;var c=b[0],b=a+1;b>=cp.movie.stage.slides.length&&(b=-1);var d=void 0;-1!=b&&(d=this.GetQuestionsOnSlide(b));var e=!1;void 0!=d&&(0<d.length&&void 0!=d[0])&&(e=d[0].getIsPretest());c=c.getIsPretest();if(!c||-1!=b&&e)return!1;for(;void 0!=a&&0<=a;){b=this.GetQuestionsOnSlide(a);if(void 0==b||0>=b.length||void 0==b[0]||!b[0].getIsPretest())break;a-=1}this.m_PretestQuestionsDisabled=!0;a=this.GetPretestAction();void 0!=a&&(this.m_ExecutingPretestAction=
!0,cp.movie.executeAction(a),this.m_ExecutingPretestAction=!1);return!0},GetProgressType:function(){return!this.m_QuizzingData?0:this.m_QuizzingData.progressIndicatorType},GetProgressTemplateString:function(){return!this.m_QuizzingData?"":this.m_QuizzingData.progressIndicatorString},GetIsReportingEnabled:function(){return!this.m_QuizzingData?!1:this.m_QuizzingData.reportingEnabled},GetParameterValueByName:function(a){if(!this.m_QuizzingData||!this.m_playbackController||!this.m_playbackController.HasQuiz())return"";
var b="";switch(a){case "quizInfoPointsScored":b=this.GetScore();break;case "quizInfoTotalQuizPoints":b=this.GetMaxScore();break;case "quizInfoTotalCorrectAnswers":b=this.GetTotalCorrectQuestions();break;case "numQuestionsInQuiz":b=this.GetNumQuestions();if(void 0==this.GetGraphManager()){var a=0,c=cp.movie.questionObjs,d=0;c&&(d=c.length);for(var e=0;e<d;++e)c[e]&&c[e].getIsKnowledgeCheck()&&a++;b-=a}break;case "quizInfoPercentScored":b=this.GetPercentCorrect();break;case "quizInfoCurrentAttempt":b=
this.quizNumStarts;break;default:b=this.m_scoreDisplay.feedback}return b},GetPassedScoreFeedback:function(){return!this.m_QuizzingData?"":this.m_QuizzingData.passedScoreFeedback},GetFailedScoreFeedback:function(){return!this.m_QuizzingData?"":this.m_QuizzingData.failedScoreFeedback},GetIsAllowReviewMode:function(){return!this.m_QuizzingData?!1:this.m_QuizzingData.allowReviewMode},GetIsQuizCompleted:function(){return!this.m_QuizzingData?!1:this.m_QuizzingData.quizCompleted},SetIsQuizCompleted:function(a){this.m_QuizzingData&&
(this.m_QuizzingData.quizCompleted=a)},GetAnyScoreSlideIndex:function(){if(!this.m_QuizzingData)return-1;var a=this.m_QuizzingData.anyScoreSlide;return void 0!=a?a:-1},GetPretestAction:function(){var a=void 0;this.m_QuizzingData&&(a=this.m_QuizzingData.pretestAction);return a},GetQuizScopeEndSlideIndex:function(){if(!this.m_QuizzingData)return-1;var a=this.m_QuizzingData.quizScopeEndSlide;return void 0!=a?a:-1},GetFirstSlideInQuizIndex:function(){var a=this.GetGraphManager();if(void 0!=a){a=a.getReviewFirstQuestionSlideIndex();
if(void 0==a||0>a||"NaN"==a)a=-1;return a}if(!this.m_QuizzingData)return-1;a=this.m_QuizzingData.firstSlideInQuiz;return void 0!=a?a:-1},GetLastSlideInQuizIndex:function(){var a=this.GetGraphManager();if(void 0!=a){a=a.getLastQuestionSlideIndex();if(void 0==a||0>a||"NaN"==a)a=-1;return a}if(!this.m_QuizzingData)return-1;a=this.m_QuizzingData.lastSlideInQuiz;return void 0!=a?a:-1},GetLastQuestionSlideInQuiz:function(){if(!cp.movie||!cp.movie.stage)return-1;var a=-1,b=cp.movie.playbackController.GetSlideNames(),
c=this.GetFirstSlideInQuizIndex(),d=this.GetLastSlideInQuizIndex();if(-1==c||-1==d)return-1;for(var e=0;e<b.length;++e)if("Question"==this.GetSlideType(e)&&(e>=c&&e<=d)&&(-1!=a||e>a))a=e;return a},GetNumberOfQuizAttempts:function(){return!this.m_QuizzingData?0:this.m_QuizzingData.numQuizAttemptsAllowed},GetIsPassed:function(){if(!this.m_QuizzingData)return!1;var a=parseFloat(this.GetScore()),b=parseFloat(this.GetPassingScore());return a>=b},GetScore:function(){if(!this.m_QuizzingData)return 0;var a=
this.GetGraphManager(),b=cp.movie.questionObjs,c=0;if(!b)return 0;for(var d=0;d<b.length;++d)b[d]&&(b[d].getIsPretest()||(void 0!=a?a.isSlidePartOfCurrentBranch(b[d].getSlideIndex())&&(c+=b[d].getScore()):c+=b[d].getScore()));this.m_QuizzingData.quizInfoPointsScored=c;this.m_QuizzingData.quizInfoPercentScored=(100*this.m_QuizzingData.quizInfoPointsScored/this.m_QuizzingData.quizInfoTotalQuizPoints).toFixed(2)+"%";return this.m_QuizzingData.quizInfoPointsScored},GetMaxScore:function(){if(!this.m_QuizzingData)return 0;
var a=this.GetGraphManager();return void 0!=a?a.getMaxQuizScore():this.m_QuizzingData.maxScore},GetMinScore:function(){if(!this.m_QuizzingData)return 0;var a=this.GetGraphManager();return void 0!=a?a.getMinQuizScore():this.m_QuizzingData.minScore},GetMaxPretestScore:function(){return!this.m_QuizzingData?0:this.m_QuizzingData.maxPretestScore},GetPretestScore:function(){if(!this.m_QuizzingData)return 0;var a=cp.movie.questionObjs,b=0;if(!a)return 0;for(var c=0;c<a.length;++c)a[c]&&a[c].getIsPretest()&&
(b+=a[c].getScore());return b},GetCurrentAttempt:function(){return this.quizNumStarts},GetIsSubmitAll:function(){return!this.m_QuizzingData?!1:this.m_QuizzingData.submitAll},GetHidePlaybarInQuiz:function(){return!this.m_QuizzingData?!1:this.m_QuizzingData.hidePlaybarInQuiz},GetQuizBranchAware:function(){return!this.m_QuizzingData?!1:this.m_QuizzingData.quizBranchAware},GetPassFailPassingScoreTypeInPrecent:function(){return!this.m_QuizzingData?!1:this.m_QuizzingData.passFailPassingScoreTypeInPrecent},
GetPassFailPassingScoreValue:function(){return!this.m_QuizzingData?0:this.m_QuizzingData.passFailPassingScoreValue},IncrementCurrentAttempt:function(){this.m_QuizzingData&&(this.quizNumStarts+=1,this.m_QuizzingData.quizInfoCurrentAttempt+=1)},CanShowRetakeButton:function(){return this.GetCurrentAttempt()>=this.GetNumberOfQuizAttempts()||this.GetIsPassed()||this.GetIsInReviewMode()?!1:!0},GetQuizAdvanceType:function(){return!this.m_QuizzingData?"optional":this.m_QuizzingData.quizAdvance},GetQuestionAdvanceType:function(){return!this.m_QuizzingData?
"optional":this.m_QuizzingData.questionAdvance},GetDefaultActionType:function(){return!this.m_QuizzingData?"":this.m_QuizzingData.defaultActionType},GetDefaultActionArgument:function(){return!this.m_QuizzingData?"":this.m_QuizzingData.defaultActionArg1},GetPassingGradeAction:function(){return!this.m_QuizzingData?"":this.m_QuizzingData.passingGradeAction},GetFailingGradeAction:function(){return!this.m_QuizzingData?"":this.m_QuizzingData.failingGradeAction},GetTotalCorrectAnswers:function(){return!this.m_QuizzingData?
0:this.m_QuizzingData.quizInfoTotalCorrectAnswers},GetNumberOfQuestionsInQuiz:function(){return!this.m_QuizzingData?0:this.m_QuizzingData.numQuestionsInQuiz},GetAllowSkipAnyScoreSlide:function(){return!this.m_QuizzingData?!0:this.m_QuizzingData.allowSkipAnyScoreSlide},GetPassingScore:function(){if(!this.m_QuizzingData)return 0;if(this.GetPassFailPassingScoreTypeInPrecent()){var a=this.GetGraphManager();if(void 0!=a)return a=a.getMaxQuizScore(),"NaN"==a?"NaN":0>=a?0:this.GetPassFailPassingScoreValue()/
100*a}return this.m_QuizzingData.passingScore},GetAllowBackwardMovementInQuiz:function(){return!this.m_QuizzingData?!1:this.m_QuizzingData.allowBackwardMovement},GetIsSlideJudged:function(a){a=this.GetQuestionsOnSlide(a);if(!a||0>=a.length)return!1;for(var b=!0,c=0;c<a.length;++c){var d=a[c],b=b&&d.getWasJudged();if(!b)return!1}return b},GetQuestionsOnSlide:function(a){var b=[];if(!cp.movie.stage)return"";a=this.m_playbackController.GetSlideNameAtIndex(a);if(void 0==a)return"";a=cp.D[a].qs;if(0>=
a.length||""==a)return"";if((lQuestionsOnSlide=a.split(","))&&""!=lQuestionsOnSlide&&0<lQuestionsOnSlide.length)for(a=0;a<lQuestionsOnSlide.length;++a){var c=cp.getQuestionObject(lQuestionsOnSlide[a]);c&&b.push(c)}return b},GetTotalRetries:function(){var a=0,b=cp.movie.questionObjs;if(!b)return 0;var c=b.length;if(0>=c)return 0;for(var d=0;d<c;++d)b[d]&&(a+=b[d].currentAttempt);return a},CanDoSubmitAll:function(){if("mustTake"==this.GetQuizAdvanceType()&&1>=this.GetCurrentAttempt()){var a=!1,a=this.GetQuizBranchAware()?
this.GetAnyQuestionInBranchAnswered():this.GetAnyQuestionsAnswered();if(!a)return"QUIZ_ERROR_MUST_TAKE_QUIZ"}return""},GetAnyQuestionInBranchAnswered:function(){var a=this.GetGraphManager();if(!a)return!1;a=a.getCompletionBranch();if(void 0==a||0>=a.length)return!1;for(var b=0;b<a.length;++b){var c=this.GetQuestionsOnSlide(a[b]);if(c&&0<c.length)for(var d=0;d<c.length;++d){var e=c[d];if(!e.getIsPretest()&&e.getWasJudged()&&!e.getIsIncomplete())return!0}}return!1},GetAnyQuestionsAnswered:function(){var a=
cp.movie.questionObjs;if(!a)return!1;var b=a.length;if(0>=b)return!1;for(var c=0;c<b;++c)if(a[c]&&a[c].getWasJudged()&&!a[c].getIsIncomplete())return!0;return!1},GetAnyNonPreTestQuestionAnswered:function(){var a=cp.movie.questionObjs;if(!a)return!1;var b=a.length;if(0>=b)return!1;for(var c=0;c<b;++c)if(a[c]&&!a[c].getIsPretest()&&a[c].getWasJudged()&&!a[c].getIsIncomplete())return!0;return!1},CanEnterSlide:function(a){if(!this.m_playbackController||!this.m_playbackController.HasQuiz(!0))return"";
var b=0,c=cp.movie.questionObjs,d=0;c&&(d=c.length);if(0<d){for(var e=0;e<d;++e)c[e]&&c[e].getIsKnowledgeCheck()&&b++;if(b==d)return""}a=this.GetSlideType(a);b=!1;if(cpInfoCurrentSlideIndex==this.GetAnyScoreSlideIndex()&&"Question"==a&&!this.GetIsInReviewMode()&&this.GetCurrentAttempt()>=this.GetNumberOfQuizAttempts())return this.GetIsAllowReviewMode()?"":"QUIZ_ERROR_TOO_MANY_QUIZ_ATTEMPTS";if(!this.quizInProgress||"optional"==this.GetQuestionAdvanceType()&&0<this.GetTotalRetries()){switch(a){case "Question":if(!this.GetIsInReviewMode()&&
!this.quizInProgress&&this.GetCurrentAttempt()>=this.GetNumberOfQuizAttempts())return this.GetIsAllowReviewMode()?"":"QUIZ_ERROR_TOO_MANY_QUIZ_ATTEMPTS";break;case "AnyScoreSlide":b=!0}if(b&&!this.quizInProgress&&!this.GetIsInReviewMode())return"QUIZ_ERROR_MUST_START_QUIZ_TO_SEE_SCORE_SLIDE"}return""},CanLeavePretestQuestionSlide:function(){return""},CanLeaveQuestionSlide:function(a,b){var c=this.GetQuestionsOnSlide(a);if(c)for(var d=0;d<c.length;d++){var e=c[d];if(e&&e.getIsPretest())return this.CanLeavePretestQuestionSlide(b,
e)}c=this.GetIsSubmitAll();d=this.GetQuizBranchAware();if("mustAnswer"==this.GetQuestionAdvanceType()&&!this.GetIsInReviewMode()&&!c&&!d){c=this.GetQuestionsOnSlide(a);if(!c)return"";for(d=0;d<c.length;d++){if((e=c[d])&&e.getIsKnowledgeCheck())return"";if(!b&&e&&0==e.currentAttempt)return"QUIZ_ERROR_MUST_ANSWER_QUESTION"}}if(!b&&a==this.GetLastQuestionSlideInQuiz()){if("mustTake"==this.GetQuizAdvanceType()&&!this.GetAnyQuestionsAnswered()&&1>=this.GetCurrentAttempt())return"QUIZ_ERROR_MUST_TAKE_QUIZ"}else if(b&&
!this.GetIsInReviewMode()&&!this.GetAllowBackwardMovementInQuiz()&&cpInfoCurrentSlideIndex==a)return"QUIZ_ERROR_CANNOT_MOVE_BACKWARD_IN_QUIZ";return""},CanLeaveSlide:function(a,b){if(!this.m_playbackController||!this.m_playbackController.HasQuiz())return"";var c="",d=this.GetSlideType(a),e=this.GetQuizScopeEndSlideIndex();if("Question"==d&&(c=this.CanLeaveQuestionSlide(a,b),""!=c))return c;if(0<=a&&a==e){if("AnyScoreSlide"==d&&!this.GetAllowSkipAnyScoreSlide()&&!this.sawAnyScoreSlide&&this.quizInProgress)return"QUIZ_ERROR_MUST_SEE_SCORE_SLIDE";
d=this.GetPassingScore();if(!b&&"mustPass"==this.GetQuizAdvanceType()&&"NaN"!=d&&this.GetScore()<d)return"QUIZ_ERROR_MUST_PASS_QUIZ";if(this.GetIsSubmitAll()&&"mustAnswer"==this.GetQuestionAdvanceType()&&!b&&!this.m_submittedAllQuestions)return"QUIZ_ERROR_MUST_ANSWER_QUESTION"}return c},GetPreviousQuestionSlideNumber:function(){var a=-1;if(!cp.movie||!cp.movie.stage)return-1;var b=cpInfoCurrentSlideIndex,c=this.GetGraphManager();if(void 0!=c){for(var c=c.getCompletionBranch(),d=0;d<c.length;++d){var e=
c[d],f="",g=this.GetQuestionsOnSlide(e);if(g&&0<g.length){var i=!1;(g=g[0])&&g.getIsKnowledgeCheck()&&(i=!0);i||(f="Question")}else this.GetAnyScoreSlideIndex()==e&&(f="AnyScoreSlide");if(("AnyScoreSlide"==f||"Question"==f)&&e<b)if(-1==a||e>a)a=e}-1==a&&(b=c.indexOf(b),0<b&&(a=c[b-1]))}else{b=cpInfoCurrentSlideIndex;if((g=this.GetQuestionsOnSlide(b))&&0<g.length)if((g=g[0])&&g.getIsKnowledgeCheck())return 1<b?b-1:b;c=this.m_playbackController.GetSlideNames();for(e=0;e<c.length;++e)if(f="",(g=this.GetQuestionsOnSlide(e))&&
0<g.length?(i=!1,(g=g[0])&&g.getIsKnowledgeCheck()&&(i=!0),i||(f="Question")):this.GetAnyScoreSlideIndex()==e&&(f="AnyScoreSlide"),("AnyScoreSlide"==f||"Question"==f)&&e<b)if(-1==a||e>a)a=e}return a},GetNextQuestionSlideNumber:function(){var a=-1;if(!cp.movie||!cp.movie.stage)return-1;var b=cpInfoCurrentSlideIndex,c=this.GetGraphManager();if(void 0!=c)for(var d=c.getCurrentBranch(),e=0;e<d.length;++e){var c=d[e],f="",g=this.GetQuestionsOnSlide(c);if(g&&0<g.length){var i=!1;(g=g[0])&&g.getIsKnowledgeCheck()&&
(i=!0);i||(f="Question")}else this.GetAnyScoreSlideIndex()==c&&(f="AnyScoreSlide");if(("AnyScoreSlide"==f||"Question"==f)&&c>b)if(-1==a||c<a||a==b)a=c}else{d=this.m_playbackController.GetSlideNames();for(c=0;c<d.length;++c)if(f="",(g=this.GetQuestionsOnSlide(c))&&0<g.length?(i=!1,(g=g[0])&&g.getIsKnowledgeCheck()&&(i=!0),i||(f="Question")):this.GetAnyScoreSlideIndex()==c&&(f="AnyScoreSlide"),("AnyScoreSlide"==f||"Question"==f)&&c>b)if(-1==a||c<a)a=c}return a},GetPercentCorrect:function(){var a=this.GetMaxScore();
return 0==a||!a?" ":Math.round(100*(100*this.GetScore()/a))/100+"%"},GetTotalPretestCorrectQuestions:function(){if(!this.m_QuizzingData)return 0;var a=cp.movie.questionObjs;if(!a)return 0;for(var b=0,c=0;c<a.length;++c)a[c]&&a[c].getWasJudged()&&(a[c].getAnsweredCorrectly()&&a[c].getIsPretest())&&(b+=1);return b},GetTotalCorrectQuestions:function(){if(!this.m_QuizzingData)return 0;var a=this.GetGraphManager(),b=cp.movie.questionObjs;if(!b)return 0;for(var c=0,d=0;d<b.length;++d)b[d]&&(b[d].getIsPretest()||
b[d].getIsKnowledgeCheck()||(void 0!=a?a.isSlidePartOfCurrentBranch(b[d].getSlideIndex())&&(b[d].getWasJudged()&&b[d].getAnsweredCorrectly())&&(c+=1):b[d].getWasJudged()&&b[d].getAnsweredCorrectly()&&(c+=1)));return c},StartQuestion:function(a){void 0!=a&&(a.slide=this.m_playbackController.GetCurrentSlide(),a.startQuestion())},GetFailingGradeActionString:function(){return!this.m_QuizzingData?!1:this.m_QuizzingData.failingGradeActionString},GetFailingGradeActionParam:function(){return!this.m_QuizzingData?
!1:this.m_QuizzingData.failingGradeActionParam},GetIsTracked:function(){return!this.m_QuizzingData?!1:this.m_QuizzingData.it},GetQuestionSlidesNames:function(){return this.m_questionSlideNames},AddQuestionSlideNames:function(a){this.m_questionSlideNames||(this.m_questionSlideNames=[]);this.m_questionSlideNames.push(a)},GetAllQuestionsInBranchAnswered:function(){var a=this.GetGraphManager();if(!a)return!1;a=a.getCompletionBranch();if(void 0==a||0>=a.length)return!1;for(var b=0;b<a.length;++b){var c=
this.GetQuestionsOnSlide(a[b]);if(c&&0<c.length)for(var d=0;d<c.length;++d){var e=c[d];if((!e.getIsPretest()||!this.m_PretestQuestionsDisabled)&&!e.getIsKnowledgeCheck()){var f=this.GetIsSubmitAll()&&!e.getIsPretest();if(0<=e.getWeighting()&&(!e.getWasJudged()&&!f||e.getIsIncomplete()||0==e.getCurrentAttempt()))return!1}}}return!0},GetAllQuestionsAnswered:function(){if(!0==this.GetQuizBranchAware()&&this.GetAllQuestionsInBranchAnswered())return!0;var a=this.GetQuestionScoresToSend(),b=[];for(whichQuestionScore in a){var c=
a[whichQuestionScore];c&&(b[c.getslideNum()]=!0)}var d=this.m_QuizzingData.firstSlideInQuiz,c=this.m_QuizzingData.lastSlideInQuiz;if(void 0==d||-1==d||void 0==c||-1==c)return!0;for(;d<=c;d++)if(!b[d]){var e=this.GetQuestionsOnSlide(d);if(e&&0<e.length&&(e=e[0].questionData,!e||!(e.ikc&&!0==e.ikc)))return!1}for(whichQuestionScore in a)if((c=a[whichQuestionScore])&&!c.getIsKnowledgeCheck()&&(!c.getIsPretest()||!this.m_PretestQuestionsDisabled))if(b=this.GetIsSubmitAll()&&!c.getIsPretest(),0<=c.getweighting()&&
(!c.getwasJudged()&&!b||c.getAnswersIncomplete()||0==c.getNumTries()))return!1;return!0},SendInteractionData:function(a,b){if(!this.m_QuizzingData)return!1;this.verbose&&cp.log("QuizController::SendInteraction()");this.GetIsTracked()&&this.m_playbackController.SendInteractionData(a,b)},SendQuestionEventDataForSubmitAll:function(){var a=this.GetQuestionScoresToSend();for(whichQuestionScore in a){var b=a[whichQuestionScore];b&&(b.getisPretestQuestion()||this.m_playbackController.SendQuestionEventData(b))}},
SendInteractionsForSubmitAll:function(){var a=this.GetQuestionScoresToSend();for(whichQuestionScore in a){var b=a[whichQuestionScore];if(b){var c=b.getdescriptionText(),d=cp.movie.questionObjs[b.m_questionNumInQuiz];d&&d.shouldReportAnswers&&(b.getisPretestQuestion()||b.getanswersIncomplete()||(d.sendInteractionDataForEachAnswer?d.sendInteractionDataForEachAnswer(c):this.SendInteractionData(b,c)))}}},DoSubmitAll:function(a){if(void 0==a||0>a)return!1;var b=this.GetQuizScopeEndSlideIndex();if(void 0==
b||0>b||a!=b||void 0!=this.m_RunTimeMsgBox||this.m_HandledSubmitAll||!0==cp.vm.getVariableValue("cpQuizHandledAll")||!1==this.GetIsSubmitAll())return!1;this.SubmitAllQuestions(!0,!1);return!0},SubmitAllDialogShown:function(a,b){if(void 0==a||0>a||void 0==b||0>b)return!1;if(void 0!=this.m_RunTimeMsgBox)return!0;if(a>=b||this.m_HandledSubmitAll||!0==cp.vm.getVariableValue("cpQuizHandledAll")||this.GetIsInReviewMode()||!1==this.GetIsSubmitAll())return!1;var c=this.GetAnyScoreSlideIndex(),d=this.GetQuizScopeEndSlideIndex();
if(0<=c){if(b==c)return this.SubmitAllQuestions(!0,!1),!0}else if(0<=d&&a==d)return this.SubmitAllQuestions(!0,!1),!0;return!1},ReturnToQuiz:function(){if(void 0!=this.m_RunTimeMsgBox){this.m_RunTimeMsgBox.hide();this.m_RunTimeMsgBox=void 0;var a=this.m_playbackController.GetCurrentSlideIndex();if(a=this.GetQuestionsOnSlide(a))for(var b=0;b<a.length;++b){var c=a[b];c.state=c.StateEnum.PAUSED}}a=this.GetFirstSlideInQuizIndex();0<=a&&(cpCmndGotoSlideAndResume=a,this.m_HandledSubmitAll=!1,cp.vm.setVariableValue("cpQuizHandledAll",
!1,!1))},ForceSubmitAll:function(){if(this.m_playbackController){if(void 0!=this.m_RunTimeMsgBox){this.m_RunTimeMsgBox.hide();this.m_RunTimeMsgBox=void 0;var a=this.m_playbackController.GetCurrentSlideIndex();if(a=this.GetQuestionsOnSlide(a))for(var b=0;b<a.length;++b){var c=a[b];c.state=c.StateEnum.PAUSED}}a=this.GetAnyScoreSlideIndex();b=this.GetQuizScopeEndSlideIndex();if(0<=a)cpCmndGotoSlideAndResume=a;else if(0<=b){var a=-1,c=this.m_playbackController.GetSlideNames(),d=c.length;if(0<d&&b<d&&
(b=c[b]))if(b=cp.D[b])a=b.to;cpCmndGotoFrameAndResume=a-1;!this.GetIsInReviewMode()&&(this.GetCurrentAttempt()>=this.GetNumberOfQuizAttempts()&&this.GetIsAllowReviewMode())&&this.SetIsInReviewMode(!0)}this.m_submittedAllQuestions=!0;this.m_playbackController&&this.m_playbackController.GetSendCourseDataWithInteractionData()&&(this.SendInteractionsForSubmitAll(),this.SendQuestionEventDataForSubmitAll(),a=this.m_playbackController.GetLMSType().toUpperCase(),this.m_playbackController.GetIsTracked()&&
"EMAIL"!=a&&"ACROBAT"!=a&&"INTERNALSERVER"!=a?this.m_playbackController.SendCourseData(!0):"INTERNALSERVER"==a?this.m_playbackController.PostQuizResults():this.m_playbackController.SendCourseData(!1));a=this.GetPassingScore();b=this.GetMaxScore();isNaN(a)||(cpQuizInfoQuizPassPoints=a);0!=b&&(!isNaN(b)&&!isNaN(a))&&(cpQuizInfoQuizPassPercent=100*a/b);cpQuizInfoTotalProjectPoints=b}},DefaultHandlerForRuntimeMessageBox:function(){if(this.m_playbackController&&void 0!=this.m_RunTimeMsgBox){this.m_RunTimeMsgBox.hide();
this.m_RunTimeMsgBox=void 0;var a=this.m_playbackController.GetCurrentSlideIndex(),b=this.GetQuestionsOnSlide(a);if(b)for(var c=0;c<b.length;++c){var d=b[c];d.state=d.StateEnum.PAUSED}this.m_HandledSubmitAll=!1;cp.vm.setVariableValue("cpQuizHandledAll",!1,!1);b=this.GetQuizScopeEndSlideIndex();0<=a&&(0<=b&&a==b)&&(b=this.m_playbackController.GetCurrentSlide(),(b=cp.D[b])&&cpInfoCurrentFrame>=b.to&&(cpCmndGotoSlideAndResume=a))}},SubmitAllQuestions:function(a,b){this.m_HandledSubmitAll=!0;cp.vm.setVariableValue("cpQuizHandledAll",
!0,!1);if(!1==a)return ForceSubmitAll();void 0!=this.m_RunTimeMsgBox&&(this.m_RunTimeMsgBox.hide(),this.m_RunTimeMsgBox=void 0);var c="mustAnswer"==this.GetQuestionAdvanceType(),d=this.m_playbackController.GetCurrentSlideIndex();if(d=this.GetQuestionsOnSlide(d))for(var e=0;e<d.length;++e){var f=d[e];f&&f.endQuestion(!1)}var g=cp.D.rtDialog,d=g.rtbgfc,e=g.rtbgsc,f=g.rtbtnfc,i=g.rtbtnsc,k=g.rtsc,h=g.rttc,l=g.rttsc,m=g.rtfn,j=g.rtt,n=g.rtsam,o=g.rtiqm,p=g.rtsiqm,q=g.rtsanym,r=g.rtokb,u=g.rtyb,v=g.rtnb,
w=g.rtsab,x=g.rtsanyb,s=g.rtrtqb,g=g.rtmtqm,t=this.GetAllQuestionsAnswered();"QUIZ_ERROR_MUST_TAKE_QUIZ"==this.CanDoSubmitAll()?(this.m_RunTimeMsgBox=new cp.RuntimeMessageBox(document.getElementById("cpDocument"),1,d,e,f,i,k,h,l,m),this.m_RunTimeMsgBox.setTitleText(j),this.m_RunTimeMsgBox.setMessageText(g),this.m_RunTimeMsgBox.setFirstButtonText(r),this.m_RunTimeMsgBox.registerFirstButtonHandler(cp.defaultHandlerForRuntimeMessageBox)):c&&!t?(this.m_RunTimeMsgBox=new cp.RuntimeMessageBox(document.getElementById("cpDocument"),
1,d,e,f,i,k,h,l,m),this.m_RunTimeMsgBox.setTitleText(j),this.m_RunTimeMsgBox.setMessageText(o),this.m_RunTimeMsgBox.setFirstButtonText(r),this.m_RunTimeMsgBox.registerFirstButtonHandler(cp.defaultHandlerForRuntimeMessageBox)):t?(this.m_RunTimeMsgBox=new cp.RuntimeMessageBox(document.getElementById("cpDocument"),2,d,e,f,i,k,h,l,m),this.m_RunTimeMsgBox.setTitleText(j),this.m_RunTimeMsgBox.setMessageText(n),this.m_RunTimeMsgBox.setFirstButtonText(w),this.m_RunTimeMsgBox.registerFirstButtonHandler(cp.forceSubmitAll),
this.m_RunTimeMsgBox.setSecondButtonText(s),this.m_RunTimeMsgBox.registerSecondButtonHandler(cp.returnToQuiz)):(this.m_RunTimeMsgBox=new cp.RuntimeMessageBox(document.getElementById("cpDocument"),2,d,e,f,i,k,h,l,m),this.m_RunTimeMsgBox.setTitleText(j),b?(this.m_RunTimeMsgBox.setMessageText(q),this.m_RunTimeMsgBox.setFirstButtonText(x),this.m_RunTimeMsgBox.setSecondButtonText(s),this.m_RunTimeMsgBox.registerSecondButtonHandler(cp.returnToQuiz)):(this.m_RunTimeMsgBox.setMessageText(p),this.m_RunTimeMsgBox.setFirstButtonText(u),
this.m_RunTimeMsgBox.setSecondButtonText(v),this.m_RunTimeMsgBox.registerSecondButtonHandler(cp.defaultHandlerForRuntimeMessageBox)),this.m_RunTimeMsgBox.registerFirstButtonHandler(cp.forceSubmitAll));this.m_RunTimeMsgBox.show()},GetPlaybackController:function(){return this.m_playbackController},SetPlaybackController:function(a){this.m_playbackController=a}};cp.ACAPQuizController=function(){cp.ACAPQuizController.baseConstructor.call(this)};cp.inherits(cp.ACAPQuizController,cp.QuizController);
cp.ACAPQuizController.prototype.GetIsReportingEnabled=function(){return!0};
cp.PlaybackController=function(){this.m_QuizReportingData=cp.D.quizReportingData;this.ReportingOptionsEnum=cp.ReportingOptionsEnum;this.SlideViewsTypeEnum=cp.SlideViewsTypeEnum;this.QuizCriteriaEnum=cp.QuizCriteriaEnum;this.m_sendCourseDataWithInteractionData=!0;this.m_completionValueToSend="default";this.m_successSlideViewsType=this.m_completionSlideViewsType=this.m_completionQuizCriteria=this.m_successQuizCriteria=this.m_successCriteria=this.m_completionCriteria=this.m_slideViewsForCompletion=this.m_slideViewsForSuccess=
this.m_completionTrigger=-1;this.m_sendIncompleteToPassedOrFailed=!1;this.m_beginSendingSuccessStatus=!0;this.m_VarHandle=void 0;this.m_GoToQuizScopeActionExeuted=!1;this.m_UseRusticiAdapter=!0;this.m_lmsType="";this.m_AuthorwareDelimeter=void 0;this.m_sendScoreAsPercent=!1;this.m_trackingLevel=0;this.m_completionSlideViewPercentage=100;this.m_reportingOption=0;this.m_courseNode=this.m_courseName=this.m_departmentName=this.m_companyName=this.m_internalServerURL=this.m_emailAddress="";this.m_isTrackedFlag=
!1;this.m_trackingUrlEncodeVersionAndSession=!0;this.m_trackingCharsToNotUrlEncode="";this.m_commitDataOnEverySlide=!1;this.m_CmiExitNormalAfterCompletion=this.m_trackingSendResumeData=!0;this.m_loadingResumeData=this.m_trackingIsOn=!1;this.m_quizController=void 0;this.currentSlide="";this.currentSlideIndex=0;this.m_slideNames=[];this.verbose=this.m_isTracked=this.m_lastCourseDataSent=!1;this.m_GraphManager=void 0};
cp.PlaybackController.prototype={InitializePlaybackController:function(){var a=cp.movie.stage.slides;if(a){this.GetQuizController();for(var b=0;b<a.length;++b)this.AddSlideInfo(a[b])}},GetTotalUnansweredQuestions:function(){var a=this.GetQuizController();return!a?-1:a.GetTotalUnansweredQuestions()},AddQuestionSlideNames:function(){var a=cp.movie.stage.slides;if(a){var b=this.GetQuizController();if(b)for(var c=0;c<a.length;++c){var d=b.GetQuestionsOnSlide(c);d&&0<d.length&&b.AddQuestionSlideNames(a[c])}}},
HasQuiz:function(a){"undefined"===typeof a&&(a=!1);var b=!1;if(a){var a=cp.movie.questionObjs,c=0;a&&(c=a.length);if(c){for(var d=0;d<c;++d)a[d]&&a[d].getIsKnowledgeCheck()&&c--;0<c&&(b=!0)}}else if(a=this.GetQuizController())a=a.GetQuestionSlidesNames(),void 0!=a&&0<a.length&&(b=!0);return b},InitializeReportingVariables:function(){if(this.m_QuizReportingData){var a=this.m_QuizReportingData.lmsInitializationString;a&&""!=a&&(eval(a),(cp.IsRunningInACAP||cp.NotRunningInLMS)&&this.ResetReportingOptions())}},
GetGraphManager:function(){if(cp.D.baq&&void 0!=cp.D.sgMgr){if(void 0==this.m_GraphManager){var a=void 0,b=this.GetQuizController();b&&(a=b.GetQuestionSlidesNames());void 0!=a&&0<a.length&&(this.m_GraphManager=new cp.QuizSlideGraphManager)}return this.m_GraphManager}},GetLoadingResumeDataBln:function(){return this.m_loadingResumeData},SetLoadingResumeData:function(a){this.m_loadingResumeData=a},saveQuizState:function(a){a.writeNumber(cpInfoCurrentSlideIndex);for(var b=0;b<this.m_slideNames.length;++b){var c=
this.m_slideNames[b],d=cp.D[c];if(d)if(a.writeBoolean(d.v),void 0!=d.pn){var e=cp.D[d.qs];a.writeString(d.pn);var f=999,d=cp.D[d.pn].pqs;if(e)for(e=0;e<d.length;++e)c==d[e]&&(f=e);a.writeNumber(f)}else a.writeString(""),a.writeNumber(999)}e=cp.movie.playbackController.GetQuizController();b=cp.movie.playbackController.HasQuiz();e&&b&&e.saveState(a);c=[];f=cp.vm.varInfos.length;for(e=0;e<f;++e)(b=cp.vm.varInfos[e])&&!b.systemDefined&&c.push(b);e=0;f=c.length;a.writeNumber(f);for(e=0;e<f;++e)b=c[e],
d=cp.vm.getVariableValue(b.name),null==d&&void 0==d&&(d=0),a.writeString(b.name),isNaN(d)?(a.writeNumber(0),a.writeString(d)):(a.writeNumber(1),a.writeNumber(d))},restoreQuizFromState:function(a){if(a&&!(0>=a.toString().length)){for(var b=a.readNumber(),c=0;c<this.m_slideNames.length;++c){var d=cp.D[this.m_slideNames[c]];if(d){d.v=a.readBoolean();a.readString();var e=a.readNumber(),f=d.pn;f&&""!=f&&(e=cp.D[f].pqs[e],this.m_slideNames[c]=e,f=cp.movie.stage.slides[c],cp.movie.stage.slides[c]=e,-1!=
f.indexOf("rq")&&(f=f.split("rq")[1],""!=f&&(cp.D[f]=cp.D[e])),cp.poolManager&&cp.poolManager.updateSlideData(e,c,d))}}cp.poolManager&&cp.poolManager.updateMainMovieData();cp.ContinueQuizLibraryInit();c=cp.movie.playbackController.GetQuizController();d=cp.movie.playbackController.HasQuiz();c&&d&&c.restoreState(a);f=c=0;e=a.readNumber();for(c=0;c<e;++c)d=a.readString(),f=a.readNumber(),f=0==f?a.readString():a.readNumber(),cp.vm.hasOwnProperty(d)&&cp.vm.setVariableValue(d,f,!1);this.UpdateRestoredSlideIndex(b)}},
UpdateRestoredSlideIndex:function(a){var b=!1;a>=cp.movie.stage.slides.length-1&&(b=!0);var c=cp.movie.playbackController.GetQuizController(),d=!1,e=!1;c&&(d=c.GetIsSlideJudged(a),e=c.GetIsSubmitAll());!b&&(!e&&d)&&(a+=1);b=cp.D.project_main;if(0<=a&&(a<cp.movie.stage.slides.length&&b)&&(a=cp.movie.stage.slides[a]))if(a=cp.D[a])a=a.from,void 0!=a&&(b.currentFrame=a)},AddSlideInfo:function(a){this.m_slideNames||(this.m_slideNames=[]);this.m_slideNames.push(a)},GetNumSlides:function(){return!this.m_slideNames?
0:this.m_slideNames.length},GetSlideNameAtIndex:function(a){if(this.m_slideNames&&0<=a&&a<this.m_slideNames.length)return this.m_slideNames[a]},GetSlideNames:function(){return this.m_slideNames},LeaveCurrentSlide:function(a){this.verbose&&cp.log("CPQuizLibrary :: PlaybackController :: Calling LeaveCurrentSlide");this.m_quizController&&(void 0==a||0>a||this.currentSlideIndex!=a&&this.m_quizController.LeaveSlide(this.currentSlideIndex,a))},SetCurrentSlide:function(a){this.verbose&&cp.log("CPQuizLibrary :: QuizController :: inside SetCurrentSlide - "+
a);var b=this.GetSlideNameAtIndex(a);b!=this.currentSlide&&(b!=this.currentSlide&&0<=a&&a<this.m_slideNames.length&&this.m_trackingAdapter&&this.GetIsTracked()&&("EMAIL"!=this.m_lmsType.toUpperCase()&&"ACROBAT"!=this.m_lmsType.toUpperCase()&&"INTERNALSERVER"!=this.m_lmsType.toUpperCase())&&this.m_trackingAdapter.SendSlideView(a),this.currentSlide=b,this.currentSlideIndex=a,b=this.GetGraphManager(),void 0!=b&&b.updateCurrentBranch(a),this.m_quizController&&this.m_quizController.EnterCurrentSlide(a))},
GetCurrentSlideIndex:function(){return this.currentSlideIndex},GetCurrentSlide:function(){return this.currentSlide},GetQuizController:function(){this.m_quizController||(this.m_quizController=cp.IsRunningInACAP?new cp.ACAPQuizController:new cp.QuizController,this.m_quizController.InitializeQuizController(),this.m_quizController.SetPlaybackController(this));return this.m_quizController},IsRunningInConnect:function(){var a=cp.IsRunningInConnect();a&&(this.m_lmsType="BREEZE");return a},ClearPendingCalls:function(){this.m_trackingAdapter&&
this.m_trackingAdapter.ClearPendingCalls()},LMSIsBreeze:function(){return this.IsRunningInConnect()},LMSIsAICC:function(){return"AICC"==this.m_lmsType.toUpperCase()},LMSIsAlternateReporting:function(){return"ACROBAT"==this.m_lmsType.toUpperCase()||"INTERNALSERVER"==this.m_lmsType.toUpperCase()},GetTrackingData:function(){if(this.IsRunningInConnect())if(this.verbose&&cp.log("Playback controller :: GetTrackingData()"),cp.BreezeTrackingAdapterObj&&!cp.BreezeTrackingAdapterObj.IsTrackingDataLoaded())this.TurnOffTracking();
else if(this.m_trackingAdapter&&this.m_trackingAdapter.GetTrackingData(),this.m_trackingAdapter&&this.m_trackingAdapter.IsTrackingDataLoaded()){this.m_trackingAdapter.GetLessonLocation();var a=this.m_trackingAdapter.GetLessonData();this.verbose&&cp.log("Playback controller :: GetTrackingData() :: quizStateStr :: "+a)}else this.TurnOffTracking()},CreateTrackingAdapter:function(){this.verbose&&cp.log("Playback controller :: CreateTrackingAdapter() :"+this.m_lmsType);var a={},b=-1!=this.m_lmsType.toUpperCase().indexOf("SCORM");
b&&(a.exitNormal=this.m_CmiExitNormalAfterCompletion,a.reportingOption=this.m_reportingOption);var c=!0,d=cp.D.quizReportingData;d&&(c=d.trackingSendResumeData);cp.IsRunningInACAP?(this.m_trackingAdapter=new cp.TrackingAdapter,this.m_trackingAdapter.SetLessonDataTracked(c),this.m_trackingAdapter.SetAdapterSpecificData(a),this.m_trackingAdapter.Initialize(),window.onbeforeunload=cp.UnloadActivties):(this.m_trackingAdapter=this.IsRunningInConnect()?cp.BreezeTrackingAdapterObj?cp.BreezeTrackingAdapterObj:
new cp.Breeze:this.LMSIsAlternateReporting()?new cp.InternalServerAdapter:new cp.SCORM_Rustici(b),window.onbeforeunload=cp.UnloadActivties,this.m_trackingAdapter?this.m_trackingAdapter!=cp.BreezeTrackingAdapterObj&&(void 0!=c&&this.m_trackingAdapter.SetLessonDataTracked(c),this.m_trackingAdapter.SetAdapterSpecificData(a),this.m_trackingAdapter.Initialize(),this.m_trackingAdapter.IsInitialized()&&this.IsRunningInConnect()&&this.GetTrackingData()):this.m_trackingIsOn=this.m_loadingResumeData=!1)},TurnOnTracking:function(){this.verbose&&
cp.log("Playback controller :: TurnOnTracking()");if(!this.m_trackingIsOn||cp.IsRunningInACAP)this.m_trackingIsOn=this.m_loadingResumeData=!0,this.CreateTrackingAdapter()},TurnOffTracking:function(){this.verbose&&cp.log("Playback controller :: TurnOffTracking()");this.m_trackingIsOn&&(this.m_trackingIsOn=this.m_loadingResumeData=!1)},GetIsTracked:function(){return this.m_isTracked},SetIsTracked:function(a){if(cp.IsRunningInACAP)return this.TurnOnTracking();this.IsRunningInConnect()?a=!0:this.LMSIsAlternateReporting()||
"undefined"==typeof cp.LMSDriverHolder&&(a=!1);this.verbose&&cp.log("Playback controller :: SetIsTracked()");a&&a!=this.m_isTracked?this.TurnOnTracking():a||(a!=this.m_isTracked?this.TurnOffTracking():this.m_loadingResumeData=!1);this.m_isTracked=a},AllowedToGoToSlide:function(a,b){if(!this.m_quizController||a==b)return"";if(0>a||0>b)return"QUIZ_ERROR_BAD_SLIDE_NUM";var c=b<a;if(this.m_quizController.SubmitAllDialogShown(a,b))return"QUIZ_ERROR_SUBMIT_ALL";for(var d=a<b?1:-1,e="",f=a;;){if(f==b)return this.m_quizController.CanEnterSlide(b);
e=this.m_quizController.CanLeaveSlide(f,c);if(""!=e)return e;f+=d}},GetTotalQuizScore:function(){if(this.m_quizController)return this.m_quizController.GetScore()},GetTotalQuizMaxScore:function(){if(this.m_quizController)return this.m_quizController.GetMaxScore()},GetTotalQuizMinScore:function(){if(this.m_quizController)return this.m_quizController.GetMinScore()},GetTotalQuizLocation:function(){return this.currentSlideIndex},HasQuizzes:function(){return!this.m_quizController?!1:this.m_quizController.HasQuiz()},
GetAllQuestionsAnswered:function(){return!this.m_quizController||!this.m_quizController.GetAllQuestionsAnswered()?!1:!0},GetAllQuizAttemptsFinished:function(){return!this.m_quizController||!this.m_quizController.GetIsAttemptFinished()?!1:!0},GetAllQuizzesPassed:function(){return!this.m_quizController||!this.m_quizController.GetIsPassed()?!1:!0},GetNumberOfSlidesSeen:function(){var a=0;if(!this.m_slideNames)return!1;for(var b=0;b<this.m_slideNames.length;++b)cp.D[this.m_slideNames[b]].v&&a++;return a},
GetPercentageSlidesSeen:function(){var a=this.GetGraphManager();if(void 0!=a)return a=a.getSlideViewPercentage(),"NaN"==a?0:a;if(!this.m_slideNames)return!1;a=this.m_slideNames.length;if(0<a)return 100*(this.GetNumberOfSlidesSeen()/a)},GetAllSlidesSeen:function(){if(!this.m_slideNames)return!1;for(var a=0;a<this.m_slideNames.length;++a)if(!cp.D[this.m_slideNames[a]].v)return!1;return!0},GetAllQuizzesPassingScore:function(){return!this.m_quizController?!1:this.m_quizController.GetPassingScore()},GetIsQuizAttempted:function(){var a=
!1;if(this.m_quizController)return a=this.m_quizController.GetQuizBranchAware()?this.m_quizController.GetAnyNonPreTestQuestionAnswered():this.m_quizController.GetAnyQuestionsAnswered()},EvaluateQuizStatus:function(a){var b=!1;switch(a){case this.QuizCriteriaEnum.QuizIsPassed:this.GetAllQuizzesPassed()&&(b=!0);break;case this.QuizCriteriaEnum.QuizIsAttempted:b=this.GetIsQuizAttempted();break;case this.QuizCriteriaEnum.QuizIsPassedOrAttempLimitReached:if(this.GetAllQuizzesPassed())return!0;if(this.m_quizController&&
this.m_quizController.quizNumStarts<this.m_quizController.GetNumberOfQuizAttempts())break;return!0;default:this.verbose&&cp.log("Illegal parameter to EvaluateQuizStatus: "+a)}return b},EvaluateViewStatus:function(a,b){var c=!1,d=this.GetNumberOfSlidesSeen();if(this.m_slideNames&&0<this.m_slideNames.length)totalSlides=this.m_slideNames.length;else return this.verbose&&cp.log("In EvaluateViewStatus,totalSlides not obtained or found to be zero. Returning."),!1;switch(b){case this.SlideViewsTypeEnum.percent:this.GetPercentageSlidesSeen()>=
a&&(c=!0);break;case this.SlideViewsTypeEnum.number:d>=a&&(c=!0);break;default:this.verbose&&cp.log("Illegal arg to EvaluateViewStatus:"+a+","+b)}return c},EvaluateStatus:function(a){var b=!1,c=this.QuizCriteriaEnum,d=this.SlideViewsTypeEnum,e=0,f=this.ReportingOptionsEnum;if("completion"==a)c=this.m_completionQuizCriteria,d=this.m_completionSlideViewsType,e=this.m_slideViewsForCompletion,f=this.m_completionCriteria;else if("success"==a)c=this.m_successQuizCriteria,d=this.m_successSlideViewsType,
e=this.m_slideViewsForSuccess,f=this.m_successCriteria;else return this.verbose&&cp.log("Illegal status type to evaluateStatus:"+a),!1;switch(f){case this.ReportingOptionsEnum.quiz_only:b=this.EvaluateQuizStatus(c);break;case this.ReportingOptionsEnum.quiz_and_views:this.EvaluateQuizStatus(c)&&this.EvaluateViewStatus(e,d)&&(b=!0);break;case this.ReportingOptionsEnum.views_only:b=this.EvaluateViewStatus(e,d);break;case this.ReportingOptionsEnum.access:b=1<=this.GetNumberOfSlidesSeen();break;default:this.verbose&&
cp.log("Illegal value of criteria in evaluateStatus():"+a)}return b},IsSlideVisited:function(a){if(a=cp.D[a])return a.v},ShouldSendSuccessStatus:function(){var a=!1;if(this.m_successCriteria==this.ReportingOptionsEnum.access)a=1<=this.GetNumberOfSlidesSeen();else if(this.m_successCriteria==this.ReportingOptionsEnum.quiz_only){if(a=!0,this.m_quizController){var b=this.m_slideNames[this.m_quizController.GetLastSlideInQuizIndex()];this.IsSlideVisited(b)||(a=!1)}}else if(this.m_successCriteria==this.ReportingOptionsEnum.quiz_and_views){if(this.m_quizController&&
(b=this.m_slideNames[this.m_quizController.GetLastSlideInQuizIndex()],!this.IsSlideVisited(b)))return a;if(!this.GetAllQuizzesPassed()||this.IsSlideVisited(this.m_slideNames[this.m_slideNames.length-1]))a=!0}else this.m_successCriteria==this.ReportingOptionsEnum.views_only&&(a=this.IsSlideVisited(this.m_slideNames[this.m_slideNames.length-1]));return a},GetTotalQuizStatusAll:function(){var a={isPassed:!1,isCompleted:!1,sendCompletion:!0,sendNothing:!1},b=this.ReportingOptionsEnum,b=this.LMSIsBreeze()?
this.ReportingOptionsEnum.breeze:this.GetReportingOption();switch(b){case this.ReportingOptionsEnum.breeze:this.HasQuiz()?this.GetAllQuizAttemptsFinished()?(a.isPassed=this.GetAllQuizzesPassed()?!0:!1,a.isCompleted=!0,a.sendCompletion=!1):(a.isPassed=!1,a.isCompleted=!1,a.sendCompletion=!0):(this.GetAllSlidesSeen()?(a.isPassed=!0,a.isCompleted=!0):(a.isPassed=!1,a.isCompleted=!1),a.sendCompletion=!0);break;case this.ReportingOptionsEnum.completion_success:a.sendCompletion=!1;a.isCompleted=this.EvaluateStatus("completion");
a.isPassed=this.EvaluateStatus("success");break;case this.ReportingOptionsEnum.completion_only:a.sendCompletion=!0;a.isCompleted=this.EvaluateStatus("completion");break;case this.ReportingOptionsEnum.incompleteToPassedOrFailed:a.isPassed=this.EvaluateStatus("success");this.m_beginSendingSuccessStatus=this.ShouldSendSuccessStatus();break;case this.ReportingOptionsEnum.access:break;default:1>this.GetNumberOfSlidesSeen()?(a.isPassed=!1,a.isCompleted=!1):(a.isPassed=!0,a.isCompleted=!0),a.sendCompletion=
!0}return a},GetTotalQuizPassed:function(){return this.GetTotalQuizStatusAll().isPassed?"passed":"failed"},GetTotalQuizCompleted:function(){return this.GetTotalQuizStatusAll().isCompleted?"completed":"incomplete"},GetTotalQuizSendCompletion:function(){var a=!0;switch(this.m_completionValueToSend){case "completion":a=!0;break;case "passed":a=!1;break;default:a=this.GetTotalQuizStatusAll().sendCompletion}return a},GetTotalQuizState:function(){return""},GetProgressMeasure:function(){return 0==this.m_slideNames.length?
0:this.GetNumberOfSlidesSeen()/this.m_slideNames.length},ShouldFlushCourseData:function(a,b){a?a.printCourseData():this.verbose&&cp.log("lastData is undefined");b?(this.verbose&&cp.log("thisData "),b.printCourseData()):this.verbose&&cp.log("thisData is undefined");if("EMAIL"==this.m_lmsType.toUpperCase()||"ACROBAT"==this.m_lmsType.toUpperCase()||"INTERNALSERVER"==this.m_lmsType.toUpperCase())return this.verbose&&cp.log("return false0"),!1;if(void 0==b)return this.verbose&&cp.log("return false1"),
!1;if(void 0==a)return this.verbose&&cp.log("return true0"),!0;if(b.quizMinScore!=a.quizMinScore||b.quizMaxScore!=a.quizMaxScore||b.sendScoreAsPercent!=a.sendScoreAsPercent||b.quizSendCompletion!=a.quizSendCompletion)return this.verbose&&cp.log("return true1"),!0;if(b.quizScore!=a.quizScore||b.quizCompleted!=a.quizCompleted||b.quizPassed!=a.quizPassed)return this.verbose&&cp.log("return true2"),!0;this.verbose&&cp.log("return false2");return!1},ShouldSendCourseData:function(a,b){a?(this.verbose&&
cp.log("lastData "),a.printCourseData()):this.verbose&&cp.log("lastData is undefined");b?(this.verbose&&cp.log("thisData "),b.printCourseData()):this.verbose&&cp.log("thisData is undefined");if("EMAIL"==this.m_lmsType.toUpperCase()||"ACROBAT"==this.m_lmsType.toUpperCase()||"INTERNALSERVER"==this.m_lmsType.toUpperCase())return this.verbose&&cp.log("return false -2"),!1;if(void 0==b)return this.verbose&&cp.log("return false -1"),!1;if(void 0==a)return this.verbose&&cp.log("return true0"),!0;this.verbose&&
cp.log("function shouldSendCourseData 33");if(b.slideCount>=a.slideCount+10)return this.verbose&&cp.log("return true1"),!0;if(b.quizMinScore!=a.quizMinScore||b.quizMaxScore!=a.quizMaxScore||b.sendScoreAsPercent!=a.sendScoreAsPercent||b.quizSendCompletion!=a.quizSendCompletion)return this.verbose&&cp.log("return true2"),!0;if(b.quizScore!=a.quizScore||b.quizCompleted!=a.quizCompleted||b.quizPassed!=a.quizPassed)return this.verbose&&cp.log("return true3"),!0;if(b.quizLocation!=a.quizLocation)return!0;
this.verbose&&cp.log("return false4");return!1},SendSuspendDataOnly:function(){this.verbose&&cp.log("PlaybackController::SendSuspendDataOnly()");var a=cp.createAndGetDataChunk();this.GetIsTracked()&&this.m_trackingAdapter&&(cp.m_isLMSPreview&&void 0!=cp.LMSDriverHolder&&cp.toggleLMSPreviewDebugLogsColor(cp.LMSDriverHolder),this.m_trackingAdapter.SendSuspendData(a))},CanSendCourseData:function(){return!0},GetCourseData:function(){var a={printCourseData:function(){}};a.slideCount=this.GetCurrentSlideIndex();
a.quizScore=this.GetTotalQuizScore();a.quizMinScore=this.GetTotalQuizMinScore();a.quizMaxScore=this.GetTotalQuizMaxScore();a.sendScoreAsPercent=this.GetSendScoreAsPercent();a.quizLocation=""+this.GetTotalQuizLocation()+"";a.quizCompleted=this.GetTotalQuizCompleted();a.quizPassed=this.GetTotalQuizPassed();a.quizSendCompletion=this.GetTotalQuizSendCompletion();a.quizTime=void 0;a.quizState=this.GetTotalQuizState();a.progressMeasure=this.GetProgressMeasure();a.sendIncompleteToPassedOrFailed=this.m_sendIncompleteToPassedOrFailed;
a.beginSendingSuccessStatus=this.m_beginSendingSuccessStatus;return a},SendCourseData:function(a){var b=this.GetQuizController();b&&b.GetIsSubmitAll()&&b.quizInProgress&&!b.m_submittedAllQuestions?this.SendSuspendDataOnly():this.CanSendCourseData()&&(this.SetBreezeDefaults(),this.m_trackingAdapter&&this.GetIsTracked()&&(b=this.GetCourseData(),a=a||this.ShouldFlushCourseData(this.m_lastCourseDataSent,b),this.verbose&&cp.log("sendCourseData flush "+a),a||this.ShouldSendCourseData(this.m_lastCourseDataSent,
b)?(this.m_lastCourseDataSent=b,this.verbose&&cp.log("sending course data flush "+a),this.m_trackingAdapter.SendTrackingData(b.quizScore,b.quizMinScore,b.quizMaxScore,b.sendScoreAsPercent,b.quizLocation,b.quizCompleted,b.quizPassed,b.quizSendCompletion,b.quizTime,b.quizState,b.progressMeasure,b.sendIncompleteToPassedOrFailed,b.beginSendingSuccessStatus),a&&this.m_trackingAdapter.Flush()):this.verbose&&cp.log("NOT sending course data")))},SendQuestionEventData:function(a){this.verbose&&cp.log("PlaybackController::SendQuestionData()");
var b=0,c=this.GetQuizController();c&&(b=c.GetMaxScore());a={slideNumber:a.getslideNum(),questionNumber:a.getquestionNumInQuiz(),questionScoringType:a.getQuestionScoringType(),interactionType:a.getinteractionType(),weighting:a.getWeighting(),questionAnswered:!1==a.getanswersIncomplete(),questionAnsweredCorrectly:a.getansweredCorrectly(),questionMaxScore:b,questionScore:a.getscoredPoints(),questionMaxAttempts:a.getmaxTries(),infiniteAttempts:9999==a.getmaxTries(),questionAttempts:a.getnumTries(),interactionID:a.getinteractionID(),
quizName:"QuizName",objectiveID:a.getobjectiveID(),selectedAnswer:a.m_chosenAnswersAsString};cp.em.fireEvent("CPQuestionSubmit",a)},SetBreezeDefaults:function(){this.LMSIsBreeze()&&(this.m_completionValueToSend="default",this.m_completionTrigger=this.ReportingOptionsEnum.breeze,this.m_completionSlideViewPercentage=100,this.m_sendScoreAsPercent=!1,this.m_trackingLevel="interactions",this.m_trackingUrlEncodeVersionAndSession=!0,this.m_trackingCharsToNotUrlEncode="",this.m_trackingSendResumeData=!0)},
SendInteractionData:function(a,b){this.verbose&&cp.log("PlaybackController::SendInteraction()");this.SetBreezeDefaults();if(this.GetIsTracked()&&"interactions"==this.m_trackingLevel){var c=this.GetQuizController();c&&c.GetScore();if(this.LMSIsAICC()||this.IsRunningInConnect())this.m_trackingAdapter&&this.m_trackingAdapter.SendInteractionData(a.m_interactionID,a.m_objectiveID,a.m_interactionType,a.m_correctAnswersAsString,a.m_chosenAnswersAsString,a.m_isCorrectAsString,a.m_weighting,a.m_latencyAsSeconds,
a.m_curDateAsString2,a.m_curTimeAsSecondsSinceMidnight,a.m_scoredPoints,a.m_negativeWeight,b);else{this.LMSIsAlternateReporting()&&(escapeAnswers=!1);var d=a.m_correctAnswersAsString;if(this.LMSIsAlternateReporting()&&c){var e=c.GetQuestionsOnSlide(this.currentSlide);e&&0!=e.length&&(e=e[0])&&e.GetIsSurvey()&&(d=" ");this.m_trackingAdapter&&this.m_trackingAdapter.SetCurrentAttempt(c.quizNumStarts)}this.m_trackingAdapter&&this.m_trackingAdapter.SendInteractionData(a.m_interactionID,a.m_objectiveID,
a.m_interactionType,d,a.m_chosenAnswersAsString,a.m_isCorrectAsString,a.m_weighting,a.m_latencyAsSeconds,a.m_curDateAsString,a.m_curTimeAsSecondsSinceMidnight,a.m_scoredPoints,a.m_negativeWeight,b)}}},OnEndQuiz:function(){this.GetIsTracked()&&("EMAIL"!=this.m_lmsType.toUpperCase()&&"ACROBAT"!=this.m_lmsType.toUpperCase()&&"INTERNALSERVER"!=this.m_lmsType.toUpperCase())&&this.SendCourseData(!0)},SendEmailResults:function(){this.GetIsTracked()&&"EMAIL"==this.m_lmsType.toUpperCase()&&(this.verbose&&
cp.log("sending course data from sendEmailResults"),this.SendCourseData(!0))},PostQuizResults:function(){if(this.GetIsTracked()&&("ACROBAT"==this.m_lmsType.toUpperCase()||"INTERNALSERVER"==this.m_lmsType.toUpperCase()))this.verbose&&cp.log("sending course data from PostQuizResults"),this.CanPostResults()&&this.SendCourseData(!0)},CanPostResults:function(){return this.GetAllQuizzesPassed()||this.m_quizController&&(this.m_quizController.m_numStarts>=this.m_quizController.m_numQuizAttemptsAllowed||this.m_quizController.GetIsInReviewMode())?
!0:!1},DoSendLMSTrackingData:function(){this.GetIsTracked()&&"EMAIL"!=this.m_lmsType.toUpperCase()&&"ACROBAT"!=this.m_lmsType.toUpperCase()&&"INTERNALSERVER"!=this.m_lmsType.toUpperCase()?this.SendCourseData(!this.LMSIsAICC()||!this.m_playbackController.IsRunningInConnect()):this.SendCourseData(!1)},RestoreQuizState:function(){this.verbose&&cp.log("PlaybackController :: RestoreQuizState()");var a=this.GetQuizController();a&&a.GetIsReportingEnabled()&&(cp.resumeValuesFromDataChunk(),cp.movie.resumeMovieSpecificValue())},
GetRestoredQuizSlide:function(){this.verbose&&cp.log("PlaybackController :: GoToRestoredQuizSlide()");var a=cp.D.project_main.currentFrame;this.verbose&&cp.log("Restoring frame :: "+a);return a},DoPollLMSGetTrackingDataLoaded:function(){this.GetIsTracked()&&(this.m_trackingAdapter?this.m_trackingAdapter.IsTrackingDataLoaded()&&(this.m_trackingAdapter.GetLessonLocation(),this.m_trackingAdapter.GetLessonData()):(this.verbose&&cp.log("_doPollLMSGetTrackingDataLoaded else"),turnOffTracking()))},ExitCourse:function(){this.verbose&&
cp.log("function exitCourse 1 "+isTracked);this.m_trackingAdapter&&this.GetIsTracked()?(this.verbose&&cp.log("function exitCourse isTracked "),"EMAIL"!=this.m_lmsType.toUpperCase()&&("ACROBAT"!=this.m_lmsType.toUpperCase()&&"INTERNALSERVER"!=this.m_lmsType.toUpperCase())&&(this.verbose&&cp.log("function exitCourse sendCourseData "),this.SendCourseData(!0)),this.m_trackingAdapter.Finish()):this.verbose&&cp.log("doFinalExit();")},GetSendCourseDataWithInteractionData:function(){return this.m_sendCourseDataWithInteractionData},
GetLMSType:function(){return this.m_lmsType},SetLMSType:function(){this.verbose&&cp.log("SetLMSType");switch(this.m_QuizReportingData.lmsType){case 1:this.m_lmsType="SCORM2004";break;case 2:this.m_lmsType="SCORM12";break;case 3:this.m_lmsType="Authorware";break;case 4:this.m_lmsType="AICC";break;case 5:this.m_lmsType="Questionmark";break;case 6:this.m_lmsType="email";break;case 7:this.m_lmsType="AICC";break;case 8:this.m_lmsType="Acrobat";break;case 9:this.m_lmsType="InternalServer";break;default:this.m_lmsType=
""}},SetAuthorwareDelimeter:function(){this.verbose&&cp.log("SetAuthorwareDelimeter");this.m_AuthorwareDelimeter=this.m_QuizReportingData.authorwareDelimeter},SetSendScoreAsPercent:function(){this.verbose&&cp.log("SetSendScoreAsPercent");this.m_sendScoreAsPercent=this.m_QuizReportingData.sendScoreAsPercent?!0:!1},GetSendScoreAsPercent:function(){return this.IsRunningInConnect()?!1:this.m_sendScoreAsPercent},SetSendCompletionFlag:function(){this.m_completionValueToSend=this.m_QuizReportingData.sendCompletionFlag?
"completion":"passed"},GetSendCompletionFlag:function(){return this.m_completionValueToSend},SetTrackingLevel:function(){this.verbose&&cp.log("SetTrackingLevel");switch(this.m_QuizReportingData.trackingLevel){case 0:this.m_trackingLevel="interactions";break;case 2:this.m_trackingLevel="score"}},SetSlideViewPercentage:function(){this.verbose&&cp.log("SetSlideViewPercentage");this.m_completionSlideViewPercentage=this.m_QuizReportingData.slideViewPercentage},SetReportingOption:function(){this.verbose&&
cp.log("SetReportingOption");switch(this.m_QuizReportingData.reportingOption){case 0:this.m_reportingOption=this.ReportingOptionsEnum.completion_success;break;case 1:this.m_reportingOption=this.ReportingOptionsEnum.completion_only;break;case 2:this.m_reportingOption=this.ReportingOptionsEnum.incompleteToPassedOrFailed;this.m_sendIncompleteToPassedOrFailed=!0;break;case 4:this.m_reportingOption=this.ReportingOptionsEnum.breeze;break;default:this.m_reportingOption=""}this.m_completionTrigger=this.m_reportingOption},
GetReportingOption:function(){return this.m_reportingOption},SetSlideViewsForSuccess:function(){this.verbose&&cp.log("SetSlideViewsForSuccess");this.m_slideViewsForSuccess=this.m_QuizReportingData.slideViewsForSuccess;switch(this.m_QuizReportingData.slideViewsTypeForSuccess){case 0:this.m_successSlideViewsType=this.SlideViewsTypeEnum.percent;break;case 1:this.m_successSlideViewsType=this.SlideViewsTypeEnum.number;break;default:this.m_successSlideViewsType=this.SlideViewsTypeEnum.percent}},SetSlideViewsForCompletion:function(){this.verbose&&
cp.log("SetSlideViewsForCompletion");this.m_slideViewsForCompletion=this.m_QuizReportingData.slideViewsForCompletion;switch(this.m_QuizReportingData.slideViewsTypeForCompletion){case 0:this.m_completionSlideViewsType=this.SlideViewsTypeEnum.percent;break;case 1:this.m_completionSlideViewsType=this.SlideViewsTypeEnum.number;break;default:this.m_completionSlideViewsType=this.SlideViewsTypeEnum.percent}},SetQuizCriteriaForCompletion:function(){this.verbose&&cp.log("SetQuizCriteriaForCompletion");switch(this.m_QuizReportingData.quizCriteriaForCompletion){case 0:this.m_completionQuizCriteria=
this.QuizCriteriaEnum.QuizIsPassed;break;case 1:this.m_completionQuizCriteria=this.QuizCriteriaEnum.QuizIsAttempted;break;case 2:this.m_completionQuizCriteria=this.QuizCriteriaEnum.QuizIsPassedOrAttempLimitReached;break;default:this.verbose&&cp.log("Value of quizCriteria not valid in setQuizCriteriaForCompletion()!"),this.m_completionQuizCriteria=this.QuizCriteriaEnum.QuizIsPassed}},SetQuizCriteriaForSuccess:function(){this.verbose&&cp.log("SetQuizCriteriaForSuccess");switch(this.m_QuizReportingData.quizCriteriaForSuccess){case 0:this.m_successQuizCriteria=
this.QuizCriteriaEnum.QuizIsPassed;break;case 1:this.m_successQuizCriteria=this.QuizCriteriaEnum.QuizIsAttempted;break;case 2:this.m_successQuizCriteria=this.QuizCriteriaEnum.QuizIsPassedOrAttempLimitReached;break;default:this.verbose&&cp.log("Value of quizCriteria not valid in setQuizCriteriaForSuccess()!"),this.m_successQuizCriteria=this.QuizCriteriaEnum.QuizIsPassed}},SetCompletionCriteria:function(){this.verbose&&cp.log("SetCompletionCriteria");switch(this.m_QuizReportingData.completionCriteria){case 0:this.m_completionCriteria=
this.ReportingOptionsEnum.breeze;break;case 1:this.m_completionCriteria=this.ReportingOptionsEnum.quiz_only;break;case 2:this.m_completionCriteria=this.ReportingOptionsEnum.quiz_and_views;break;case 3:this.m_completionCriteria=this.ReportingOptionsEnum.views_only;break;case 4:this.m_completionCriteria=this.ReportingOptionsEnum.access;break;case 5:this.m_completionCriteria=this.ReportingOptionsEnum.completion_success;break;case 6:this.m_completionCriteria=this.ReportingOptionsEnum.incompleteToPassedOrFailed;
break;default:this.verbose&&cp.log("Invalid criteria recd in setOnlySuccessCriteria")}},SetSuccessCriteria:function(){this.verbose&&cp.log("SetSuccessCriteria");switch(this.m_QuizReportingData.successCriteria){case 0:this.m_successCriteria=this.ReportingOptionsEnum.breeze;break;case 1:this.m_successCriteria=this.ReportingOptionsEnum.quiz_only;break;case 2:this.m_successCriteria=this.ReportingOptionsEnum.quiz_and_views;break;case 3:this.m_successCriteria=this.ReportingOptionsEnum.views_only;break;
case 4:this.m_successCriteria=this.ReportingOptionsEnum.access;break;case 5:this.m_successCriteria=this.ReportingOptionsEnum.completion_success;break;case 6:this.m_successCriteria=this.ReportingOptionsEnum.incompleteToPassedOrFailed;break;default:this.verbose&&cp.log("Invalid criteria recd in setOnlySuccessCriteria")}},SetEmailAddress:function(){this.verbose&&cp.log("SetEmailAddress");this.m_emailAddress=this.m_QuizReportingData.emailAddress},SetInternalServerURL:function(){this.verbose&&cp.log("SetInternalServerURL");
this.m_internalServerURL=this.m_QuizReportingData.internalServerURL},SetDirectory:function(){this.verbose&&cp.log("SetDirectory");this.m_companyName=this.m_QuizReportingData.companyName;this.m_departmentName=this.m_QuizReportingData.departmentName;this.m_courseName=this.m_QuizReportingData.courseName},SetCourseNode:function(){this.verbose&&cp.log("SetCourseNode");this.m_courseNode=this.m_QuizReportingData.courseNode},GetIsTrackedFlag:function(){return this.m_isTrackedFlag},SetIsTrackedFlag:function(){this.verbose&&
cp.log("SetIsTrackedFlag");this.m_isTrackedFlag=this.m_QuizReportingData.isTrackedFlag},SetTrackingUrlEncodeVersionAndSession:function(){this.verbose&&cp.log("SetTrackingUrlEncodeVersionAndSession");this.m_trackingSendResumeData=this.m_QuizReportingData.trackingUrlEncodeVersionAndSession?!0:!1},SetTrackingCharsToNotUrlEncode:function(){this.verbose&&cp.log("SetTrackingCharsToNotUrlEncode");this.m_trackingCharsToNotUrlEncode=this.m_QuizReportingData.trackingCharsToNotUrlEncode},SetCommitDataOnEverySlide:function(){this.verbose&&
cp.log("SetOptimizeCommitData");this.m_commitDataOnEverySlide=this.m_QuizReportingData.commitDataOnEverySlide?!0:!1},SetTrackingSendResumeData:function(){this.verbose&&cp.log("SetTrackingSendResumeData");this.m_trackingSendResumeData=this.m_QuizReportingData.trackingSendResumeData?!0:!1},SetCmiExitNormalAfterCompletion:function(){this.verbose&&cp.log("SetCmiExitNormalAfterCompletion");this.m_CmiExitNormalAfterCompletion=this.m_QuizReportingData.cmiExitNormalAfterCompletion},ResetReportingOptions:function(){this.m_sendCourseDataWithInteractionData=
!1;this.m_completionValueToSend="default";this.m_completionTrigger=cp.ReportingOptionsEnum.completion_success;this.m_slideViewsForCompletion=this.m_slideViewsForSuccess=0;this.m_successCriteria=this.m_completionCriteria=cp.ReportingOptionsEnum.access;this.m_completionQuizCriteria=this.m_successQuizCriteria=cp.QuizCriteriaEnum.QuizIsPassed;this.m_successSlideViewsType=this.m_completionSlideViewsType=cp.SlideViewsTypeEnum.percent;this.m_UseRusticiAdapter=this.m_beginSendingSuccessStatus=this.m_sendIncompleteToPassedOrFailed=
!1;this.m_lmsType="";this.m_sendScoreAsPercent=!1;this.m_trackingLevel=0;this.m_completionSlideViewPercentage=100;this.m_reportingOption=cp.ReportingOptionsEnum.completion_success;this.m_courseNode=this.m_courseName=this.m_departmentName=this.m_companyName=this.m_internalServerURL=this.m_emailAddress="";this.m_isTrackedFlag=!1;this.m_trackingUrlEncodeVersionAndSession=!0;this.m_trackingCharsToNotUrlEncode="";this.m_isTracked=this.m_loadingResumeData=this.m_trackingIsOn=this.m_CmiExitNormalAfterCompletion=
this.m_trackingSendResumeData=this.m_commitDataOnEverySlide=!1}};cp.ACAPPlaybackController=function(){cp.ACAPPlaybackController.baseConstructor.call(this);this.ResetReportingOptions()};cp.inherits(cp.ACAPPlaybackController,cp.PlaybackController);
cp.ACAPPlaybackController.prototype.ResetReportingOptions=function(){this.m_sendCourseDataWithInteractionData=!0;this.m_completionValueToSend="default";this.m_completionTrigger=cp.ReportingOptionsEnum.completion_success;this.m_slideViewsForSuccess=window.cpAPIInterface.slideViewsForSuccess;this.m_slideViewsForCompletion=window.cpAPIInterface.slideViewsForCompletion;this.m_completionCriteria=window.cpAPIInterface.completionCriteria;this.m_successCriteria=window.cpAPIInterface.successCriteria;this.m_successQuizCriteria=
window.cpAPIInterface.quizCriteriaForSuccess;this.m_completionQuizCriteria=window.cpAPIInterface.quizCriteriaForCompletion;this.m_completionSlideViewsType=window.cpAPIInterface.slideViewsTypeForCompletion;this.m_successSlideViewsType=window.cpAPIInterface.slideViewsTypeForSuccess;this.m_sendIncompleteToPassedOrFailed=!1;this.m_beginSendingSuccessStatus=!0;this.m_UseRusticiAdapter=!1;this.m_lmsType="";this.m_sendScoreAsPercent=!1;this.m_trackingLevel=0;this.m_completionSlideViewPercentage=100;this.m_reportingOption=
cp.ReportingOptionsEnum.completion_success;this.m_courseNode=this.m_courseName=this.m_departmentName=this.m_companyName=this.m_internalServerURL=this.m_emailAddress="";this.m_trackingUrlEncodeVersionAndSession=this.m_isTrackedFlag=!0;this.m_trackingCharsToNotUrlEncode="";this.m_isTracked=this.m_loadingResumeData=this.m_trackingIsOn=this.m_CmiExitNormalAfterCompletion=this.m_commitDataOnEverySlide=!0};
cp.TrackingAdapter=function(){this.m_trackingAdapterType={};this.m_trackingDataLoaded_bln=this.m_initialized=!1;this.m_escapeAICCvs_bln=this.m_lessonDataTracked_bln=this.m_interactionDataTracked_bln=!0;this.m_ignoreEscapeList_str="";this.m_timer_int=this.m_currentAttempt=0;this.m_timer_str="";this.m_score_tot=this.m_score_pass=this.m_score_scaled_cp=this.m_score_max=this.m_score_min=this.m_score_raw=0;this.m_success_status=this.m_time="";this.m_statusType_int=1;this.m_exit=this.m_entry=this.m_credit=
this.m_student_name=this.m_student_id=this.m_lesson_mode="";this.m_progressMeasure=0;this.m_interaction_ary=[];this.m_comments=this.m_comments_from_lms=this.m_launch_data=this.m_vendor_data=this.m_suspend_data=this.m_lesson_data=this.m_lessonLocation="";this.m_lesson_status=void 0;this.m_lesson_status_array=[];this.m_score_array=[];this.m_mastery_score=0;this.m_time_limit_action=this.m_max_time_allowed="";this.m_isRDStandAlone=this.m_isRDPreview=!1;this.m_adapterReportingVariables=cp.ReportingVariables.split(",");
this.verbose=!1};
cp.TrackingAdapter.prototype={GetInteractionArray:function(){return this.m_interaction_ary},GetCurrentAttempt:function(){return this.m_currentAttempt},SetCurrentAttempt:function(a){this.m_currentAttempt=a},Initialize:function(){this.IsInitialized()||this.SetInitialized("true")},SetInitialized:function(a){"true"==a?a=!0:"false"==a&&(a=!1);this.m_initialized=a},IsInitialized:function(){return this.m_initialized},IsInteractionDataTracked:function(){return this.m_interactionDataTracked_bln},IsLessonDataTracked:function(){return this.m_lessonDataTracked_bln},
IsTrackingDataLoaded:function(){return this.m_trackingDataLoaded_bln},IsAICCvsEscaped:function(){return this.m_escapeAICCvs_bln},GetTrackingAdapterType:function(){return this.m_trackingAdapterType},SetTrackingAdapterType:function(a,b){this.m_trackingAdapterType.type_int=a;this.m_trackingAdapterType.type_str=b},Flush:function(){},Finish:function(){},GetInteractionDataTracked:function(){return this.m_interactionDataTracked_bln},GetLessonDataTracked:function(){return this.m_lessonDataTracked_bln},GetEscapeAICCvs:function(){return this.m_escapeAICCvs_bln},
GetIgnoreEscapeList:function(){return this.m_ignoreEscapeList_str},SetInteractionDataTracked:function(a){this.m_interactionDataTracked_bln=a},SetLessonDataTracked:function(a){this.m_lessonDataTracked_bln=a},SetEscapeAICCvs:function(a){this.m_escapeAICCvs_bln=a},SetIgnoreEscapeList:function(a){this.m_ignoreEscapeList_str=a},SetTrackingDataLoaded:function(a){return this.m_trackingDataLoaded_bln=a},SetTrackingFinished:function(){this.SetInitialized(!1);this.SetTrackingDataLoaded(!1)},SetStatusType:function(a){this.m_statusType_int=
a},GetStatusType:function(){return this.m_statusType_int},GetScore:function(a){var b=this.GetScoreRaw();""==b&&(b=" ");if(void 0==a||!1==a)""!=this.GetScoreMax()&&""!=this.GetScoreMin()&&(b=b+","+this.GetScoreMax()+","+this.GetScoreMin());return b},GetScoreRaw:function(){void 0==this.m_score_raw&&(this.m_score_raw="");return this.m_score_raw},GetScoreMax:function(){if(void 0==this.m_score_max||""==this.m_score_max||" "==this.m_score_max)this.m_score_max="";return this.m_score_max},GetScoreMin:function(){if(void 0==
this.m_score_min||""==this.m_score_min||" "==this.m_score_min)this.m_score_min="";return this.m_score_min},GetScoreScaled:function(){if(void 0==this.m_score_scaled_cp||""==this.m_score_scaled_cp||" "==this.m_score_scaled_cp)this.m_score_scaled_cp=1;return this.m_score_scaled_cp},GetScorePass:function(){return this.m_score_pass},GetScoreTot:function(){return this.m_score_tot},GetTimeInSession:function(){return this.m_time},GetLessonLocation:function(){if(void 0==this.m_lessonLocation||""==this.m_lessonLocation)this.m_lessonLocation=
" ";return this.m_lessonLocation},GetLessonStatus:function(){void 0==this.m_lesson_status&&(this.m_lesson_status="incomplete");return this.m_lesson_status},GetSuccessStatus:function(){return this.m_success_status},GetLessonMode:function(){return this.m_lesson_mode},GetStudentID:function(){return this.m_student_id},GetStudentName:function(){return this.m_student_name},GetCredit:function(){return this.m_credit},GetEntry:function(){return this.m_entry},GetProgressMeasure:function(){return this.m_progressMeasure},
SetScore:function(a,b,c){void 0!=a&&this.SetScoreRaw(a);void 0!=b&&this.SetScoreMin(b);void 0!=c&&this.SetScoreMax(c);void 0!=c&&0!=c&&void 0!=a?this.SetScoreScaled(a/c):void 0!=a&&this.SetScoreScaled(a/100)},ValidateScore:function(a){switch(typeof a){case "null":a=void 0;break;case "string":a=Number(a)==a?Number(a):void 0;break;case "number":a=isNaN(a)?void 0:a;break;default:a=void 0}void 0!=a?(a=this.RoundDecimals(a,2),a=a.toString()):a=" ";return a},SetScoreRaw:function(a){this.m_score_raw=this.ValidateScore(a)},
SetScoreMax:function(a){this.m_score_max=this.ValidateScore(a)},SetScoreMin:function(a){this.m_score_min=this.ValidateScore(a)},SetScoreScaled:function(a){this.m_score_scaled_cp=this.ValidateScore(a)},SetScorePass:function(a){this.m_score_pass=a},SetScoreTot:function(a){this.m_score_tot=a},SetProgressMeasure:function(a){0>a||1<a||(this.m_progressMeasure=a)},SetTimeInSession:function(a){void 0==a||""==a||null==a?(a=(new Date).getTime()-cp.movie.startTime.getTime(),a=this.FormatTime(Math.floor(a/1E3))):
typeof("number"==a)&&(a=this.FormatTime(a));this.timer_str=this.m_time=a},SetLessonLocation:function(a){this.m_lessonLocation=a},SetLessonStatus:function(a,b){this.m_lesson_status=!a||"n"==a.substring(0,1)||""==a||void 0==a||" "==a?"incomplete":a;void 0!=b&&(this.m_success_status=b)},SetStudentID:function(a){this.m_student_id=a},SetStudentName:function(a){this.m_student_name=a},SetCredit:function(a){this.m_credit=a},GetLessonData:function(){(void 0==this.m_lesson_data||!1==this.IsLessonDataTracked())&&
this.SetLessonData("");return this.m_lesson_data},SetLessonMode:function(a){this.m_lesson_mode=a},SetLessonData:function(a){this.m_lesson_data=a},GetVendorData:function(){return this.m_vendor_data},SetVendorData:function(a){this.m_vendor_data=a},GetLessonStatusArray:function(){return this.m_lesson_status_array},GetScoreArray:function(){return this.m_score_array},GetMasteryScore:function(){return this.m_mastery_score},GetMaxTimeAllowed:function(){return this.m_max_time_allowed},GetTimeLimitAction:function(){return this.m_time_limit_action},
AddToLessonStatusArray:function(a){this.m_lesson_status_array.push(a)},AddToScoreArray:function(a){this.m_score_array.push(a)},SetMasteryScore:function(a){this.m_mastery_score=a},SetMaxTimeAllowed:function(a){this.m_max_time_allowed=a},SetTimeLimitAction:function(a){this.m_time_limit_action=a},SetSlideView:function(){},SendSlideView:function(){},SendSuspendData:function(a){void 0!=a&&this.SetLessonData(a)},SendTrackingData:function(a,b,c,d,e,f,g,i,k,h,l,m,j){void 0==k&&(k="");this.SetTrackingData(a,
b,c,d,e,f,g,i,k,h);if(m){if(a={quizId:cp.D.quizzingData.quizID},cp.movie.playbackController&&(b=cp.movie.playbackController.GetQuizController())&&b.GetIsPassed())"passed"==this.GetSuccessStatus()?(cp.em.fireEvent("PASSED",a),cp.em.fireEvent("COMPLETED")):j&&cp.em.fireEvent("FAILED",a)}else"completed"==this.GetLessonStatus()&&(cp.em.fireEvent("COMPLETED"),this.GetSuccessStatus()&&(a={quizId:cp.D.quizzingData.quizID},"passed"==this.GetSuccessStatus()?cp.em.fireEvent("PASSED",a):"failed"==this.GetSuccessStatus()&&
cp.em.fireEvent("FAILED",a)));this.IsLessonDataTracked()&&(j=cp.createAndGetDataChunk(),cp.fireResumeDataEvent(j))},SetTrackingData:function(a,b,c,d,e,f,g,i,k,h){!0==d?void 0!=a&&void 0!=c&&!isNaN(Math.round(100*(a/c)))&&0!=c?this.SetScore(Math.round(100*(100*a/c))/100):this.SetScore(Math.round(100*a)/100):void 0!=a&&void 0!=b&&void 0!=c?this.SetScore(a,b,c):void 0!=a&&void 0!=c?this.SetScore(a,0,c):void 0!=a&&this.SetScore(a);void 0!=e&&this.SetLessonLocation(e);void 0!=i?!0==i&&void 0!=f?this.SetLessonStatus(f):
void 0!=g&&void 0!=f&&this.SetLessonStatus(f,g):void 0!=f?this.SetLessonStatus(f):void 0!=g&&this.SetLessonStatus(g);void 0!=k&&this.SetTimeInSession(k);void 0!=h&&this.SetLessonData(h)},GetTrackingData:function(){this.IsTrackingDataLoaded()||this.SetTrackingDataLoaded(!0)},GetTrackingDataCore:function(){this.IsTrackingDataLoaded()||this.SetTrackingDataLoaded(!0)},SetInteractionData:function(a,b,c,d,e,f,g,i,k,h,l){this.m_interaction_ary||(this.m_interaction_ary=[]);var m=this.m_interaction_ary.length;
this.m_interaction_ary[m]=[];this.m_interaction_ary[m].interactionID_str=a;this.m_interaction_ary[m].objectiveID_str=b;this.m_interaction_ary[m].type_str=c;this.m_interaction_ary[m].correctResponse_str=d;this.m_interaction_ary[m].studentResponse_str=e;this.m_interaction_ary[m].result_bln=f;this.m_interaction_ary[m].weight_int=g;this.m_interaction_ary[m].description_texts=l;void 0==i||""==i||"0"==i?i=this.FormatTime(0):"number"==typeof i&&(i=this.FormatTime(i));this.m_interaction_ary[m].latency_str=
i;if(void 0==k||""==k)k=this.FormatDate();this.m_interaction_ary[m].date_str=k;void 0==h||""==h?h=this.FormatTime(0):"number"==typeof h&&(h=this.FormatTime(h));this.m_interaction_ary[m].time_str=h},SendInteractionData:function(a,b,c,d,e,f,g,i,k,h,l,m,j){void 0!=a&&""!=a&&this.SetInteractionData(a,b,c,d,e,f,g,i,k,h,l,m,j)},ClearPendingCalls:function(){},RoundDecimals:function(a,b){b=!b&&0!=b?2:b;return Math.round(a*Math.pow(10,b))/Math.pow(10,b)},FormatNum:function(a,b){var c="",d=0,e="'"+a+"'";if(!(e.length>
b))for(d=1;d<=b-e.length;d++)c+="0";return c+a},FormatTime:function(a,b,c){var d;d=b="00";c=this.FormatNum(Math.floor(a),2);59<c&&(b=Math.floor(c/60),c-=60*b,b=this.FormatNum(b,2),c=this.FormatNum(c,2));59<b&&(d=Math.floor(b/60),b-=60*d,d=this.FormatNum(d,2),b=this.FormatNum(b,2));return d+":"+b+":"+c},FormatDate:function(a,b,c,d){void 0==a?(c=new Date,a=this.FormatNum(c.getMonth()+1,2),b=this.FormatNum(c.getDate(),2),c=c.getFullYear()):"string"==typeof a&&-1<a.indexOf("/")&&(c=a.split("/"),a=this.FormatNum(c[0],
2),b=this.FormatNum(c[1],2),c=this.FormatNum(c[2],4));return 1==d?c+"/"+a+"/"+b:a+"/"+b+"/"+c},SetAdapterSpecificData:function(){}};cp.SCORM_Rustici=function(a){cp.SCORM_Rustici.baseConstructor.call(this);this.m_cmiEntryValue=this.m_cmiExitValue="";this.verbose=this.m_ExitNormal=!1;this.m_isScorm=a};cp.inherits(cp.SCORM_Rustici,cp.TrackingAdapter);cp.SCORM_Rustici.prototype.SetAdapterSpecificData=function(a){this.SetExitNormal(a.exitNormal);this.SetReportingOption(a.reportingOption)};
cp.SCORM_Rustici.prototype.SetExitNormal=function(a){this.m_ExitNormal=a};cp.SCORM_Rustici.prototype.GetExitNormal=function(){return this.m_ExitNormal};cp.SCORM_Rustici.prototype.SetReportingOption=function(a){this.m_ReportingOption=a};cp.SCORM_Rustici.prototype.GetReportingOption=function(){switch(this.m_reportingOption){case 5:return"completion_success";case 7:return"completion_only";case 6:return"incompleteToPassedOrFailed";case 0:return"breeze";default:return""}};
cp.SCORM_Rustici.prototype.Initialize=function(){if(!this.IsInitialized()){if((!cp.LMSDriverHolder||!cp.LMSDriverHolder.IsLoaded())&&!cp.IsRunningInACAP)return;this.SetInitialized(cp.startBlnStr)}this.m_isScorm&&!cp.IsRunningInACAP&&("incompleteToPassedOrFailed"==this.GetReportingOption()?this.m_ExitNormal?(cp.LMSDriverHolder.EXIT_SUSPEND_IF_COMPLETED=!1,cp.LMSDriverHolder.EXIT_NORMAL_IF_PASSED=!0):(cp.LMSDriverHolder.EXIT_SUSPEND_IF_COMPLETED=!1,cp.LMSDriverHolder.EXIT_NORMAL_IF_PASSED=!1):(cp.LMSDriverHolder.EXIT_SUSPEND_IF_COMPLETED=
this.m_ExitNormal?!1:!0,cp.LMSDriverHolder.EXIT_NORMAL_IF_PASSED=!1));return this.IsInitialized()};cp.SCORM_Rustici.prototype.GetTrackingData=function(){this.IsTrackingDataLoaded()||(this.GetTrackingDataCore(),cp.LMSDriverHolder&&cp.LMSDriverHolder.GetLaunchData(this.GetVendorData()))};
cp.SCORM_Rustici.prototype.GetTrackingDataCore=function(){this.verbose&&cp.log("cp.SCORM_Rustici :: function getTrackingDataCore ");void 0!=cp.LMSDriverHolder&&(this.m_cmiEntryValue=cp.LMSDriverHolder.GetEntryMode(),this.SetLessonData(cp.LMSDriverHolder.GetDataChunk()),this.SetLessonLocation(cp.LMSDriverHolder.GetBookMark()))};
cp.SCORM_Rustici.prototype.SetTrackingData=function(a,b,c,d,e,f,g,i,k,h,l,m){this.verbose&&cp.log("function setTrackingData ");!0==d?void 0!=a&&void 0!=c&&!isNaN(Math.round(100*(a/c)))&&0!=c?this.SetScore(Math.round(100*(100*a/c))/100,0,100):this.SetScore(Math.round(100*a)/100):void 0!=a&&void 0!=b&&void 0!=c?this.SetScore(a,b,c):void 0!=a&&void 0!=c?this.SetScore(a,0,c):void 0!=a?this.SetScore(a):this.SetScore();void 0!=l&&this.SetProgressMeasure(l);void 0!=e&&this.SetLessonLocation(e);m?this.SetLessonStatus(f,
g):void 0!=i&&!0==i?this.SetLessonStatus(f):this.SetLessonStatus(f,g);this.SetTimeInSession(k);void 0!=h&&this.SetLessonData(h)};cp.SCORM_Rustici.prototype.SendSuspendData=function(a){void 0!=a&&this.SetLessonData(a);if(this.IsLessonDataTracked()&&(a=cp.createAndGetDataChunk(),""!=a)){var b=[];b.push(a);this.SCORMbuild("SetDataChunk",b)}};
cp.SCORM_Rustici.prototype.SendTrackingData=function(a,b,c,d,e,f,g,i,k,h,l,m,j){this.verbose&&cp.log("function sendTrackingData ");this.SetTrackingData(a,b,c,d,e,f,g,i,k,h,l,m);m?(a={quizId:cp.D.quizzingData.quizID},"passed"==this.GetSuccessStatus()?(cp.em.fireEvent("PASSED",a),cp.em.fireEvent("COMPLETED"),j=[],j.push(""),this.SCORMbuild("SetPassed",j)):j&&(cp.em.fireEvent("FAILED",a),j=[],j.push(""),this.SCORMbuild("SetFailed",j))):"completed"==this.GetLessonStatus()&&(j=[],j.push(""),this.SCORMbuild("SetReachedEnd",
j),cp.em.fireEvent("COMPLETED"),this.GetSuccessStatus()&&(a={quizId:cp.D.quizzingData.quizID},"passed"==this.GetSuccessStatus()?(j=[],j.push(""),this.SCORMbuild("SetPassed",j),cp.em.fireEvent("PASSED",a)):"failed"==this.GetSuccessStatus()&&(j=[],j.push(""),this.SCORMbuild("SetFailed",j),cp.em.fireEvent("FAILED",a))));j=[];j.push(this.GetScoreRaw());j.push(this.GetScoreMax());j.push(this.GetScoreMin());this.SCORMbuild("SetPointBasedScore",j);j=[];j.push(this.GetLessonLocation());this.SCORMbuild("SetBookmark",
j);this.IsLessonDataTracked()&&(a=cp.createAndGetDataChunk(),""!=a&&(this.verbose&&cp.log("Calling SCORM_Rustici::SendTrackingData::SetDataChunk"),j=[],j.push(a),this.SCORMbuild("SetDataChunk",j),cp.fireResumeDataEvent(a)))};cp.SCORM_Rustici.prototype.SetLessonLocation=function(a){var b=cpInfoCurrentSlideLabel;this.m_lessonLocation=""!=b?escape(b):"Slide_"+(parseInt(a)+1)};
cp.SCORM_Rustici.prototype.Flush=function(){this.verbose&&cp.log("function flush ");var a=[];a.push("");cp.movie.playbackController.m_commitDataOnEverySlide||this.SCORMbuild("CommitData",a)};cp.SCORM_Rustici.prototype.SetFinishedBln=function(a){var b=typeof a;"boolean"!=b&&("string"==b?"true"==a.toLowerCase()?a=!0:"false"==a.toLowerCase()&&(a=!1):a=!1);this.SetInitialized(!a)};
cp.SCORM_Rustici.prototype.Finish=function(){var a=[];a.push("");cp.movie.playbackController.m_commitDataOnEverySlide||this.SCORMbuild("CommitData",a);this.SetFinishedBln(cp.LMSDriverHolder.Finish())};cp.SCORM_Rustici.prototype.SetTrackingComplete=function(){this.Finish()};cp.SCORM_Rustici.prototype.AICCTokenToSCORMToken=function(a,b){for(var c=a.split(","),d=b.substr(0,1).toLowerCase(),e=0;e<c.length;e++)if(d==c[e].substr(0,1))return c[e];return b};
cp.SCORM_Rustici.prototype.NormalizeStatus=function(a){return this.AICCTokenToSCORMToken("completed,incomplete,not attempted,failed,passed",a)};cp.SCORM_Rustici.prototype.NormalizeInteractionType=function(a){a="long-fill-in"==a.toLowerCase()?"long-fill-in":this.AICCTokenToSCORMToken("true-false,choice,fill-in,matching,performance,sequencing,likert,numeric",a);if(""==a||void 0==a)a="other";return a};
cp.SCORM_Rustici.prototype.NormalizeInteractionResult=function(a){a=this.AICCTokenToSCORMToken("correct,wrong,unanticipated,neutral",a);return"wrong"==a?"incorrect":a};cp.SCORM_Rustici.prototype.NormalizeRespose=function(a){return this.AICCTokenToSCORMToken("true,false",a)};cp.SCORM_Rustici.prototype.FormatTimestamp=function(a){return this.FormatDate()+"T"+this.FormatTime(a,void 0,void 0,2)};
cp.SCORM_Rustici.prototype.SetInteractionData=function(a,b,c,d,e,f,g,i,k,h,l,m,j){this.verbose&&cp.log("function setInteractionData ");this.m_interaction_ary||(this.m_interaction_ary=[]);d=this.m_interaction_ary.length;this.m_interaction_ary[d]=[];this.m_interaction_ary[d].interactionID_str=a;this.m_interaction_ary[d].objectiveID_str=b;this.m_interaction_ary[d].type_str=this.NormalizeInteractionType(c);this.m_interaction_ary[d].correctResponse_str=correct_responseIdentifierArr;this.m_interaction_ary[d].studentResponse_str=
user_responseIdentifierArr;this.m_interaction_ary[d].result_str=this.NormalizeInteractionResult(f);this.m_interaction_ary[d].weight_int=g;this.m_interaction_ary[d].latency_str=parseFloat(i);this.m_interaction_ary[d].description_texts=j;k=void 0==k||""==k?this.FormatDate():this.FormatDate(k);this.m_interaction_ary[d].date_str=k;h=void 0==h||""==h?this.FormatTimestamp(0):this.FormatTimestamp(h);this.m_interaction_ary[d].time_str=h};
cp.SCORM_Rustici.prototype.SendInteractionData=function(a,b,c,d,e,f,g,i,k,h,l,m,j){this.verbose&&cp.log("Rustici SCORM:: SendInteractionData ");if(!(void 0==cp.LMSDriverHolder||cp.IsRunningInACAP)&&this.IsInteractionDataTracked()){if(void 0!=a&&""!=a){user_responseIdentifierArr=[];correct_responseIdentifierArr=[];var n=[],o=[];0<e.length&&(-1!=e.indexOf(";")?n=e.split(";"):n.push(e));0<d.length&&(-1!=d.indexOf(";")?o=d.split(";"):o.push(d));this.SetInteractionData(a,b,c,d,e,f,g,i,k,h,l,m,j)}c=j.questionText;
f=this.m_interaction_ary.length-1;switch(this.m_interaction_ary[f].type_str){case "choice":case "hotspot":case "widget":e=j.answerTexts.answerTextMap;k="hotspot"==this.m_interaction_ary[f].type_str;for(j=0;j<n.length;++j)d=k?n[j]:e?e[n[j]]:n[j],user_responseIdentifierArr.push(cp.LMSDriverHolder.CreateResponseIdentifier(n[j],d));for(n=0;n<o.length;++n)d=k?o[n]:e?e[o[n]]:o[n],correct_responseIdentifierArr.push(cp.LMSDriverHolder.CreateResponseIdentifier(o[n],d));h=[];h.push(a);h.push(user_responseIdentifierArr);
h.push(cp.ConvertToInteractionResultConstant(this.m_interaction_ary[f].result_str));h.push(correct_responseIdentifierArr);h.push(c);h.push(g);h.push(i);h.push(b);this.SCORMbuild("RecordMultipleChoiceInteraction",h);break;case "true-false":h=[];h.push(a);h.push(Boolean(e));h.push(cp.ConvertToInteractionResultConstant(this.m_interaction_ary[f].result_str));h.push(Boolean(d));h.push(c);h.push(g);h.push(i);h.push(b);h.push(k);this.SCORMbuild("RecordTrueFalseInteraction",h);break;case "fill-in":case "long-fill-in":h=
[];h.push(a);h.push(e);h.push(cp.ConvertToInteractionResultConstant(this.m_interaction_ary[f].result_str));h.push(d);h.push(c);h.push(g);h.push(i);h.push(b);h.push(k);this.SCORMbuild("RecordFillInInteraction",h);break;case "matching":k=j.answerTexts.left;j=j.answerTexts.right;o=[];n=[];d=d.split(",");for(h=h=0;h<d.length;++h){var l=d[h],m=l.split("."),l=m[0],m=m[1],p=k[l],q=j[m];if(void 0==p||""==p)p=l;if(void 0==q||""==q)q=m;l=cp.LMSDriverHolder.CreateResponseIdentifier(l,p);m=cp.LMSDriverHolder.CreateResponseIdentifier(m,
q);o.push(new cp.LMSDriverHolder.MatchingResponse(l,m))}d=e.split(",");for(h=0;h<d.length;++h){l=d[h];m=l.split(".");l=m[0];m=m[1];p=k[l];q=j[m];if(void 0==p||""==p)p=l;if(void 0==q||""==q)q=m;l=cp.LMSDriverHolder.CreateResponseIdentifier(l,p);m=cp.LMSDriverHolder.CreateResponseIdentifier(m,q);n.push(new cp.LMSDriverHolder.MatchingResponse(l,m))}e=cp.ConvertToInteractionResultConstant(this.m_interaction_ary[f].result_str);h=[];h.push(a);h.push(n);h.push(e);h.push(o);h.push(c);h.push(g);h.push(i);
h.push(b);this.SCORMbuild("RecordMatchingInteraction",h);break;case "sequencing":h=[];h.push(a);h.push(cp.LMSDriverHolder.CreateResponseIdentifier(e.substring(0,1),j.answerTexts.learner_response));h.push(cp.ConvertToInteractionResultConstant(this.m_interaction_ary[f].result_str));h.push(cp.LMSDriverHolder.CreateResponseIdentifier(d.substring(0,1),j.answerTexts.correct_response));h.push(c);h.push(g);h.push(i);h.push(b);this.SCORMbuild("RecordSequencingInteraction",h);break;case "likert":cp.ConvertToInteractionResultConstant(this.m_interaction_ary[f].result_str),
h=[],h.push(a),h.push(cp.LMSDriverHolder.CreateResponseIdentifier(e.substring(0,1),e)),h.push("true"),h.push(null),h.push(c),h.push(g),h.push(i),h.push(b),this.SCORMbuild("RecordLikertInteraction",h)}this.m_interaction_ary=[]}};
cp.SCORM_Rustici.prototype.ClearPendingCalls=function(){if(!(void 0==cp.LMSDriverHolder||cp.IsRunningInACAP)&&this.AICCQueue&&!(0>=this.AICCQueue.length)){this.AICCLMSCallTimer=void 0;clearInterval(this.AICCLMSCallTimer);for(var a=this.AICCQueue.length,b=0;b<a;++b){var c=this.AICCQueue.shift();this.ProcessLMSCalls(c.function_str,c.argsArr)}}};
cp.SCORM_Rustici.prototype.SCORMbuild=function(a,b){void 0==cp.LMSDriverHolder||cp.IsRunningInACAP||(cp.movie.playbackController.LMSIsAICC()?this.AddToQueue(a,b):this.ProcessLMSCalls(a,b))};
cp.SCORM_Rustici.prototype.ProcessLMSCalls=function(a,b){var c="cp.LMSDriverHolder."+a+"("+function(){var a="";if(0<b.length)for(var a="string"==typeof b[0]?"'"+b[0]+"'":b[0],c=1;c<b.length;++c)a+=",",a="string"==typeof b[c]?a+("'"+b[c]+"'"):a+b[c];return a}()+")";cp.verbose&&cp.log(c);try{switch(a){case "RecordMultipleChoiceInteraction":cp.LMSDriverHolder.RecordMultipleChoiceInteraction(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7]);break;case "RecordTrueFalseInteraction":cp.LMSDriverHolder.RecordTrueFalseInteraction(b[0],
b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8]);break;case "RecordSequencingInteraction":cp.LMSDriverHolder.RecordSequencingInteraction(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7]);break;case "RecordFillInInteraction":cp.LMSDriverHolder.RecordFillInInteraction(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7]);break;case "RecordMatchingInteraction":cp.LMSDriverHolder.RecordMatchingInteraction(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7]);break;case "RecordLikertInteraction":cp.LMSDriverHolder.RecordLikertInteraction(b[0],
b[1],b[2],b[3],b[4],b[5],b[6],b[7]);break;default:eval(c)}}catch(d){console.log(d)}};cp.SCORM_Rustici.prototype.AddToQueue=function(a,b){this.AICCQueue||(this.AICCQueue=[]);var c={};c.function_str=a;c.argsArr=b;this.AICCQueue.push(c);var d=this;this.AICCLMSCallTimer||(this.AICCLMSCallTimer=setInterval(function(){if(d.AICCQueue.length<=0){clearInterval(d.AICCLMSCallTimer);d.AICCLMSCallTimer=void 0}else{var a=d.AICCQueue.shift();d.ProcessLMSCalls(a.function_str,a.argsArr)}},100))};
cp.InternalServerAdapter=function(){cp.InternalServerAdapter.baseConstructor.call(this);this.m_cmiEntryValue=this.m_cmiExitValue="";this.verbose=this.m_ExitNormal=!1;this.m_StudentID=this.m_StudentName="";this.m_resultsAlreadyPosted=!1;var a=cp.D.quizReportingData;this.m_strings={};this.m_strings.ISRUnknownErrorStr=a.ISRUnknownErrorStr;this.m_strings.ISRNoConnectionErrorStr=a.ISRNoConnectionErrorStr;this.m_strings.ISRWrongURLErrorStr=a.ISRWrongURLErrorStr;this.m_strings.ISRLoginErrorStr=a.ISRLoginErrorStr;
this.m_strings.ISRConnectingStr=a.ISRConnectingStr;this.m_strings.ISRResultPostedStr=a.ISRResultPostedStr;this.m_strings.ISRPostResultStr=a.ISRPostResultStr;this.m_strings.ISRResultCalculatedStr=a.ISRResultCalculatedStr;this.m_strings.ISREnterNameStr=a.ISREnterNameStr;this.m_strings.ISREmailIDStr=a.ISREmailIDStr;this.m_strings.ISRSendStr=a.ISRSendStr;this.m_strings.ISRStatusStr=a.ISRStatusStr;this.m_strings.ISRErrorStr=a.ISRErrorStr;this.m_strings.ISROkStr=a.ISROkStr};
cp.inherits(cp.InternalServerAdapter,cp.TrackingAdapter);cp.InternalServerAdapter.prototype.SetAdapterSpecificData=function(a){this.SetExitNormal(a.exitNormal);this.SetReportingOption(a.reportingOption)};cp.InternalServerAdapter.prototype.SetExitNormal=function(a){this.m_ExitNormal=a};cp.InternalServerAdapter.prototype.GetExitNormal=function(){return this.m_ExitNormal};cp.InternalServerAdapter.prototype.SetReportingOption=function(a){this.m_ReportingOption=a};
cp.InternalServerAdapter.prototype.GetReportingOption=function(){switch(this.m_reportingOption){case 5:return"completion_success";case 7:return"completion_only";case 6:return"incompleteToPassedOrFailed";case 0:return"breeze";default:return""}};cp.InternalServerAdapter.prototype.Initialize=function(){this.IsInitialized()||this.SetInitialized(!0);return this.IsInitialized()};cp.InternalServerAdapter.prototype.GetTrackingData=function(){this.IsTrackingDataLoaded()||this.SetTrackingDataLoaded(!0)};
cp.InternalServerAdapter.prototype.GetTrackingDataCore=function(){this.GetTrackingData()};
cp.InternalServerAdapter.prototype.SetTrackingData=function(a,b,c,d,e,f,g,i,k,h,l,m,j){this.verbose&&cp.log("function setTrackingData ");!0==d?void 0!=a&&void 0!=c&&!isNaN(Math.round(100*(a/c)))&&0!=c?this.SetScore(Math.round(100*(100*a/c))/100,0,100):this.SetScore(Math.round(100*a)/100):void 0!=a&&void 0!=b&&void 0!=c?this.SetScore(a,b,c):void 0!=a&&void 0!=c?this.SetScore(a,0,c):void 0!=a?this.SetScore(a):this.SetScore();void 0!=l&&this.SetProgressMeasure(l);void 0!=e&&this.SetLessonLocation(e);
m?"passed"==g?this.SetLessonStatus(g):j?this.SetLessonStatus(g):this.SetLessonStatus(f):this.SetLessonStatus(f);this.SetTimeInSession(k);void 0!=h&&this.SetLessonData(h)};cp.InternalServerAdapter.prototype.SendTrackingData=function(a,b,c,d,e,f,g,i,k,h,l,m,j){this.verbose&&cp.log("function sendTrackingData ");this.m_sendScoreAsPercent=d;this.SetTrackingData(a,b,c,d,e,f,g,i,k,h,l,m,j);this.dataModified_bln=!0};cp.InternalServerAdapter.prototype.Flush=function(){this.PostQuizResults()};
cp.InternalServerAdapter.prototype.Finish=function(){this.IsInitialized();this.SetInitialized(!1)};cp.InternalServerAdapter.prototype.SetTrackingComplete=function(){this.Finish()};
cp.InternalServerAdapter.prototype.SetInteractionData=function(a,b,c,d,e,f,g,i,k,h,l,m,j){this.verbose&&cp.log("function setInteractionData ");this.m_interaction_ary||(this.m_interaction_ary=[]);l=this.m_interaction_ary.length;this.m_interaction_ary[l]=[];"likert"==c&&(d=" ",a=a.split(" ").join("_"));this.m_interaction_ary[l].interactionID_str=a;this.m_interaction_ary[l].objectiveID_str=b;"hotspot"==c&&(c="choice");this.m_interaction_ary[l].type_str=c;"sequencing"==c&&(d=j.answerTexts.correct_response,
e=j.answerTexts.learner_response);this.m_interaction_ary[l].correctResponse_str=d;this.m_interaction_ary[l].studentResponse_str=e;this.m_interaction_ary[l].result_str=f;this.m_interaction_ary[l].weight_int=g;i=void 0==i||""==i?this.FormatTime(0):this.FormatTime(i/1E3);this.m_interaction_ary[l].latency_str=i;this.m_interaction_ary[l].description_texts=j;k=void 0==k||""==k?this.FormatDate():this.FormatDate(k);this.m_interaction_ary[l].date_str=k;h=void 0==h||""==h?this.FormatTime(0):this.FormatTime(h);
this.m_interaction_ary[l].time_str=h;this.m_interaction_ary[l].currentAttempt=this.GetCurrentAttempt()};cp.InternalServerAdapter.prototype.FormatTimestamp=function(a){return this.FormatDate()+"T"+this.FormatTime(a,void 0,void 0,2)};
cp.InternalServerAdapter.prototype.SendInteractionData=function(a,b,c,d,e,f,g,i,k,h,l,m,j){this.verbose&&cp.log("Rustici SCORM:: SendInteractionData ");this.IsInteractionDataTracked()&&(void 0!=a&&""!=a)&&(this.SetInteractionData(a,b,c,d,e,f,g,i,k,h,l,m,j),this.dataModified_bln=!0)};
cp.InternalServerAdapter.prototype.ShowResultDialog=function(a){this.m_errorDialog=new cp.RuntimeMessageBoxDefault(document.getElementById("div_Slide"),1);this.m_errorDialog.setMessageText(a?this.m_strings.ISRResultPostedStr:this.m_strings.ISRUnknownErrorStr);this.m_errorDialog.setFirstButtonText(this.m_strings.ISROkStr);var b=this;this.m_errorDialog.registerFirstButtonHandler(function(){b.m_errorDialog.hide();cpCmndShowPlaybar=!0;cpLockTOC=!1});this.m_errorDialog.show()};
cp.InternalServerAdapter.prototype.CreateInputDialog=function(){this.m_inputDialog=new cp.PostResultsMessageBox(this.m_strings);var a=this;this.m_inputDialog.registerFirstButtonHandler(function(){a.m_inputDialog.hide();cpCmndShowPlaybar=!0;cpLockTOC=!1});this.m_inputDialog.registerSecondButtonHandler(function(){a.HandleInputDialog();cpCmndShowPlaybar=!0;cpLockTOC=!1})};
cp.InternalServerAdapter.prototype.HandleInputDialog=function(){this.m_StudentName=this.m_inputDialog.getLearnerName();this.m_StudentID=this.m_inputDialog.getLearnerID();""==this.m_StudentName&&""==this.m_StudentID||(this.m_inputDialog.hide(),this.SendDataToURL())};
cp.InternalServerAdapter.prototype.PostQuizResults=function(){if(!this.m_resultsAlreadyPosted){cp.log("Post results");this.m_resultXML="<Course>\r\t";var a=!1;cp.vm&&(a=!cp.vm.hasOwnProperty("cpQuizInfoStudentID")||""==cp.vm.getVariableValue("cpQuizInfoStudentID"));a?(this.CreateInputDialog(),this.m_inputDialog.show()):(this.m_StudentName=cp.vm.hasOwnProperty("cpQuizInfoStudentName")?cpQuizInfoStudentName:"",this.m_StudentID=cpQuizInfoStudentID,this.SendDataToURL());cpCmndShowPlaybar=!1;cpLockTOC=
!0;this.dataModified_bln=!1}};
cp.InternalServerAdapter.prototype.SendDataToURL=function(){if(!this.m_StudentName||""==this.m_StudentName)this.m_StudentName=this.m_StudentID;if(!this.m_StudentID||""==this.m_StudentID)this.m_StudentID=this.m_StudentName;this.m_resultXML+='<CompanyName value="'+cp.movie.playbackController.m_companyName+'"/>\r\t';this.m_resultXML+='<DepartmentName value="'+cp.movie.playbackController.m_departmentName+'"/>\r\t';this.m_resultXML+='<CourseName value="'+cp.movie.playbackController.m_courseName+'"/>\r\t';
this.m_resultXML+='<LearnerName value="'+this.m_StudentName+'"/>\r\t';this.m_resultXML+='<LearnerID value="'+this.m_StudentID+'"/>\r\t';var a=cpInfoProjectName;""==a&&(a=cp.D.project.pN);this.m_resultXML+='<LessonName value="'+a+'"/>\r\t';this.m_resultXML+='<QuizAttempts value="'+cpQuizInfoAttempts+'"/>\r\t';this.m_resultXML+='<TotalQuestions value="'+cpQuizInfoTotalQuestionsPerProject+'"/>\r\t';0<this.m_adapterReportingVariables.length&&(this.m_resultXML+=this.BuildReportingVariablesXML());this.m_resultXML+=
this.BuildResultXML();this.m_resultXML+="</Course>";this.PostNormalRequest(this.m_resultXML,a+"_"+this.m_StudentName+"_"+cpInfoEpochMS+".xml")};
cp.InternalServerAdapter.prototype.PostNormalRequest=function(a,b){var c=new XMLHttpRequest,d=cp.movie.playbackController.m_internalServerURL,e;e="CompanyName="+cp.movie.playbackController.m_companyName;e+="&DepartmentName="+cp.movie.playbackController.m_departmentName;e+="&CourseName="+cp.movie.playbackController.m_courseName;e=e+("&Filename="+b)+("&Filedata="+escape(a));try{c.open("POST",d,!1);c.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var f=this;c.onreadystatechange=
function(){4==c.readyState&&200==c.status?(f.m_resultsAlreadyPosted=!0,f.ShowResultDialog(!0)):f.ShowResultDialog(!1)};c.send(e)}catch(g){this.ShowResultDialog(!1)}};cp.InternalServerAdapter.prototype.BuildXMLRootNode=function(){return escape("")};
cp.InternalServerAdapter.prototype.BuildReportingVariablesXML=function(){for(var a="<Variables>\r\t",b=this.m_adapterReportingVariables.length,c=0;c<b;++c){var d=this.m_adapterReportingVariables[c];d&&""!=d&&(a+="<"+d+' value="'+m_VarHandle[d]+'"/>\r\t')}return a+"</Variables>\r\t"};cp.InternalServerAdapter.prototype.BuildResultXML=function(){var a;a="<Result>\r\t"+this.BuildResultXMLBodyCore();a+=this.BuildResultXMLBodyInteraction();return a+"</Result>\r\t"};
cp.InternalServerAdapter.prototype.BuildResultXMLBodyCore=function(){var a;a="<CoreData>\r\t"+('<Status value="'+this.GetLessonStatus()+'"/>\r\t');a+='<Location value="'+this.GetLessonLocation()+'"/>\r\t';this.m_sendScoreAsPercent?a+='<Score value="'+this.GetScore(this.m_sendScoreAsPercent)+'"/>\r\t':(a+='<RawScore value="'+this.GetScoreRaw()+'"/>\r\t',a+='<MaxScore value="'+this.GetScoreMax()+'"/>\r\t',a+='<MinScore value="'+this.GetScoreMin()+'"/>\r\t');a+='<SessionTime value="'+this.GetTimeInSession()+
'"/>\r\t';return a+"</CoreData>\r\t"};cp.InternalServerAdapter.prototype.BuildResultXMLBodyInteraction=function(){var a="<InteractionData>\r\t";if(this.IsInteractionDataTracked()&&0<this.m_interaction_ary.length)for(var b=0;b<this.m_interaction_ary.length;b++)a+=this.BuildInteractionsNode(b);return a+"</InteractionData>\r\t"};
cp.InternalServerAdapter.prototype.BuildInteractionsNode=function(a){var b;b="<Interactions>\r\t"+('<Date value="'+this.m_interaction_ary[a].date_str+'"/>\r\t');b+='<InteractionTime value="'+this.m_interaction_ary[a].time_str+'"/>\r\t';b+='<InteractionID value="'+this.m_interaction_ary[a].interactionID_str+'"/>\r\t';b+='<ObjectiveID value="'+this.m_interaction_ary[a].objectiveID_str+'"/>\r\t';b+='<InteractionType value="'+this.m_interaction_ary[a].type_str+'"/>\r\t';b+='<CorrectResponse value="'+
this.m_interaction_ary[a].correctResponse_str+'"/>\r\t';b+='<StudentResponse value="'+this.m_interaction_ary[a].studentResponse_str+'"/>\r\t';b+='<Result value="'+this.m_interaction_ary[a].result_str+'"/>\r\t';b+='<Weight value="'+this.m_interaction_ary[a].weight_int+'"/>\r\t';b+='<Latency value="'+this.m_interaction_ary[a].latency_str+'"/>\r\t';b+='<Attempt value="'+this.m_interaction_ary[a].currentAttempt+'"/>\r\t';return b+"</Interactions>\r\t"};
cp.AnswerScore=function(){this.m_correctAnswer=this.m_chosenAnswer=this.m_answerID=""};cp.ChoiceQuestionSpecificScore=function(){this.m_answerOrderArrayAsString=""};cp.ChoiceQuestionSpecificScore.prototype={saveState:function(a){void 0==this.m_answerOrderArrayAsString||""==this.m_answerOrderArrayAsString?a.writeString(""):a.writeString(this.m_answerOrderArrayAsString)},restoreState:function(a){this.m_answerOrderArrayAsString=a.readString()},reset:function(){this.m_answerOrderArrayAsString=""}};
cp.HotSpotQuestionSpecificScore=function(){this.m_BreakPointWidth=this.m_hotSpotIsCorrect=this.m_hotSpot_ychordsAsString=this.m_hotSpot_xchordsAsString=this.m_hotSpotNamesArrayAsString=""};
cp.HotSpotQuestionSpecificScore.prototype={saveState:function(a){void 0==this.m_hotSpotNamesArrayAsString||""==this.m_hotSpotNamesArrayAsString?a.writeString("nil"):a.writeString(this.m_hotSpotNamesArrayAsString);void 0==this.m_hotSpot_xchordsAsString||""==this.m_hotSpot_xchordsAsString?a.writeString("nil"):a.writeString(this.m_hotSpot_xchordsAsString);void 0==this.m_hotSpot_ychordsAsString||""==this.m_hotSpot_ychordsAsString?a.writeString("nil"):a.writeString(this.m_hotSpot_ychordsAsString);cp.responsive&&
(void 0==this.m_hotSpotIsCorrect||""==this.m_hotSpotIsCorrect?a.writeString("nil"):a.writeString(this.m_hotSpotIsCorrect),a.writeString(this.m_BreakPointWidth))},restoreState:function(a){this.m_hotSpotNamesArrayAsString=a.readString();"nil"==this.m_hotSpotNamesArrayAsString&&(this.m_hotSpotNamesArrayAsString="");this.m_hotSpot_xchordsAsString=a.readString();"nil"==this.m_hotSpot_xchordsAsString&&(this.m_hotSpot_xchordsAsString="");this.m_hotSpot_ychordsAsString=a.readString();"nil"==this.m_hotSpot_ychordsAsString&&
(this.m_hotSpot_ychordsAsString="");cp.responsive&&(this.m_hotSpotIsCorrect=a.readString(),"nil"==this.m_hotSpotIsCorrect&&(this.m_hotSpotIsCorrect=""),this.m_BreakPointWidth=a.readString())},reset:function(){this.m_answerOrderArrayAsString=""}};
cp.QuestionScore=function(){this.m_weighting=this.m_interactionID=this.m_objectiveID=this.m_interactionType=this.m_endTime=this.m_startTime=this.m_slideNum=void 0;this.m_negativeWeight=0;this.m_answerScores=[];this.m_numTries=0;this.m_answersIncomplete=!0;this.m_answeredCorrectly=!1;this.m_pausedMsecs=0;this.m_questionNumInQuiz=-1;this.m_wasJudged=void 0;this.m_isKnowledgeCheck=this.m_isPretestQuestion=!1;this.m_escapeAnswers=!0;this.m_questionSpecificScore=void 0;this.m_restoredFromLMS=!1;this.m_scoringType=
this.m_scoredPoints=0;this.m_maxTries=-1;this.m_descriptionTexts=this.m_isCorrectAsString=this.m_correctAnswersAsString=this.m_chosenAnswersAsString="";this.m_latencyAsSeconds=0;this.m_curDateAsString=this.m_latencyAsString="";this.m_curTimeAsSecondsSinceMidnight=0;this.m_partiallyCorrect=this.m_isShuffled=!1};
cp.QuestionScore.prototype={getdescriptionText:function(){return this.m_descriptionTexts},getrestoredFromLMS:function(){return this.m_restoredFromLMS},setrestoredFromLMS:function(a){this.m_restoredFromLMS=a},getslideNum:function(){return this.m_slideNum},setslideNum:function(a){this.m_slideNum=a},getstartTime:function(){return this.m_startTime},setstartTime:function(a){this.m_startTime=a},getendTime:function(){return this.m_endTime},getQuestionScoringType:function(){return this.m_scoringType},setendTime:function(a){this.m_endTime=
a},getpausedMsecs:function(){return this.m_pausedMsecs},setpausedMsecs:function(a){this.m_pausedMsecs=a},getinteractionType:function(){return this.m_interactionType},setinteractionType:function(a){this.m_interactionType=a;this.createQuestionSpecificScore()},getobjectiveID:function(){return this.m_objectiveID},setobjectiveID:function(a){this.m_objectiveID=a},getquestionNumInQuiz:function(){return this.m_questionNumInQuiz},setquestionNumInQuiz:function(a){this.m_questionNumInQuiz=a},getlatency:function(){return(startTime?
this.m_endTime.getTime()-this.m_startTime.getTime()-this.m_pausedMsecs:0)/1E3},getanswerScores:function(){return this.m_answerScores},setanswerScores:function(a){this.m_answerScores=a},getanswersIncomplete:function(){return this.m_answersIncomplete},setanswersIncomplete:function(a){this.m_answersIncomplete=a},getescapeAnswers:function(){return this.m_escapeAnswers},setescapeAnswers:function(a){this.m_escapeAnswers=a},setquestionSpecificScore:function(a){this.m_questionSpecificScore=a},getquestionSpecificScore:function(){return this.m_questionSpecificScore},
answersAsString:function(){},getcorrectAnswersAsString:function(){return this.answersAsString("correctAnswer",!1)},getchosenAnswersAsString:function(){return this.answersAsString("chosenAnswer",!1)},getcorrectAnswersForReview:function(){return this.answersAsString("correctAnswer",!0)},getchosenAnswersForReview:function(){return this.answersAsString("chosenAnswer",!0)},getansweredCorrectly:function(){return this.m_answeredCorrectly},setansweredCorrectly:function(a){this.m_answeredCorrectly=a},getisCorrectAsString:function(){return this.m_answeredCorrectly?
"C":"W"},getnumTries:function(){return this.m_numTries},getmaxTries:function(){return this.m_maxTries},setnumTries:function(a){this.m_numTries=a},getweighting:function(){return this.m_weighting},setweighting:function(a){this.m_weighting=a},getnegativeWeight:function(){return this.m_negativeWeight},setnegativeWeight:function(a){this.m_negativeWeight=a},getscoredPoints:function(){return this.m_scoredPoints},setscoredPoints:function(a){this.m_scoredPoints=a},addLeadingZero:function(a){return 10>a?"0"+
String(a):String(a)},getlatencyAsString:function(){return addLeadingZero(Math.round(latency/3600))+":"+addLeadingZero(Math.round(latency%3600/60))+":"+addLeadingZero(Math.round(latency)%60)},getlatencyAsSeconds:function(){return latency},getcurDateAsString:function(){var a=new Date;return addLeadingZero(a.getMonth()+1)+"/"+addLeadingZero(a.getDate())+"/"+a.getFullYear()},getcurDateAsString2:function(){var a=new Date;return a.getFullYear()+"/"+addLeadingZero(a.getMonth()+1)+"/"+addLeadingZero(a.getDate())},
getcurTimeAsString:function(){var a=new Date;return addLeadingZero(a.getHours())+":"+addLeadingZero(a.getMinutes())+":"+addLeadingZero(a.getSeconds())},getcurTimeAsSecondsSinceMidnight:function(){return 3600*(void 0).getHours()+60*(void 0).getMinutes()+(void 0).getSeconds()},getscore:function(){return this.m_wasJudged?this.m_scoredPoints:0},getwasJudged:function(){return this.m_wasJudged},setwasJudged:function(a){this.m_wasJudged=a},getisPretestQuestion:function(){return this.m_isPretestQuestion},
setisPretestQuestion:function(a){this.m_isPretestQuestion=a},getisKnowledgeCheck:function(){return this.m_isKnowledgeCheck},setisKnowledgeCheck:function(a){this.m_isKnowledgeCheck=a},saveState:function(a){a.writeNumber(this.m_slideNum);a.writeNumber(this.m_questionNumInQuiz);void 0!=this.m_startTime&&0!=this.m_startTime?a.writeNumber(this.m_startTime.getTime()):a.writeNumber(0);void 0!=this.m_endTime&&0!=this.m_endTime?a.writeNumber(this.m_endTime.getTime()):a.writeNumber(0);a.writeBoolean(this.m_wasJudged);
a.writeBoolean(this.m_partiallyCorrect);a.writeBoolean(this.m_answeredCorrectly);a.writeBoolean(this.m_answersIncomplete);a.writeNumber(this.m_numTries);a.writeBoolean(this.m_isShuffled);var b=!1,c=this.m_scoredPoints;0>c&&(b=!0,c=-c);a.writeBoolean(b);a.writeNumber(c);a.writeNumber(this.m_answerScores.length);b=0;switch(this.m_interactionType){case "choice":b=0;break;case "true-false":b=1;break;case "fill-in":b=2;break;case "matching":b=4;break;case "sequencing":b=5;break;case "hotspot":b=6;break;
case "likert":b=7;break;case "widget":b=8}a.writeNumber(b);this.m_questionSpecificScore&&this.m_questionSpecificScore.saveState(a);for(b=0;b<this.m_answerScores.length;b++)a.writeString(this.m_answerScores[b].m_answerID),a.writeString(this.m_answerScores[b].m_chosenAnswer),a.writeString(this.m_answerScores[b].m_correctAnswer)},restoreState:function(a){if(a){this.m_slideNum=a.readNumber();this.m_questionNumInQuiz=a.readNumber();if(void 0==this.m_startTime||0==this.m_startTime)this.m_startTime=new Date;
this.m_startTime.setTime(a.readNumber());if(void 0==this.m_endTime||0==this.m_endTime)this.m_endTime=new Date;this.m_endTime.setTime(a.readNumber());this.m_wasJudged=a.readBoolean();this.m_partiallyCorrect=a.readBoolean();this.m_answeredCorrectly=a.readBoolean();this.m_answersIncomplete=a.readBoolean();this.m_numTries=a.readNumber();this.m_isShuffled=a.readBoolean();var b=a.readBoolean();this.m_scoredPoints=a.readNumber();b&&(this.m_scoredPoints=-this.m_scoredPoints);var b=a.readNumber(),c="choice";
switch(a.readNumber()){case 0:c="choice";break;case 1:c="true-false";break;case 2:c="fill-in";break;case 5:c="sequencing";break;case 6:c="hotspot";break;case 7:c="likert";break;case 8:c="widget"}this.setinteractionType(c);this.m_questionSpecificScore&&this.m_questionSpecificScore.restoreState(a);for(c=0;c<b;++c){var d=new cp.AnswerScore;d.m_answerID=a.readString();d.m_chosenAnswer=a.readString();d.m_correctAnswer=a.readString();this.m_answerScores.push(d)}this.restoreQuestionProperties()}},restoreQuestionProperties:function(){if(cp.movie.questionObjs&&
!(0>this.m_questionNumInQuiz||this.m_questionNumInQuiz>=cp.movie.questionObjs.length)){var a=cp.movie.questionObjs[this.m_questionNumInQuiz];a&&(a.questionNumberInQuiz=this.m_questionNumInQuiz,a.startTime=this.m_startTime,a.endTime=this.m_endTime,a.wasJudged=this.m_wasJudged,a.currentAttempt=this.m_numTries,a.setScore(this.m_scoredPoints),a.m_isShuffled=this.m_isShuffled,a.m_QuestionStatus=this.m_partiallyCorrect?a.QuestionStatusEnum.PARTIAL_CORRECT:this.m_answersIncomplete?a.QuestionStatusEnum.INCOMPLETE:
this.m_answeredCorrectly?a.QuestionStatusEnum.CORRECT:a.QuestionStatusEnum.INCORRECT,a.restoreFromQuestionSpecificScoreProperties(this.m_questionSpecificScore),a.resumeSelectedAnswers(this.m_answerScores.slice(0)),a.m_questionScore=this)}},getinteractionID:function(){return this.m_interactionID},setinteractionID:function(a){this.m_interactionID=a},setQuestionDatafromQuestion:function(a,b,c,d){this.m_objectiveID=a;this.m_interactionID=b;this.m_weighting=c;this.m_negativeWeight=d},createQuestionSpecificScore:function(){this.m_questionSpecificScore||
(this.m_questionSpecificScore="hotspot"==this.m_interactionType?new cp.HotSpotQuestionSpecificScore:new cp.ChoiceQuestionSpecificScore)},getSlideNum:function(){return this.m_slideNum},setSlideNum:function(a){this.m_slideNum=a},getStartTime:function(){return this.m_startTime},setStartTime:function(a){this.m_startTime=a},getEndTime:function(){return this.m_endTime},setEndTime:function(a){this.m_endTime=a},getInteractionTypeForLMS:function(){var a;switch(this.m_interactionType){case cpInteractionTypeEnum.Choice:case cpInteractionTypeEnum.HotSpot:a=
"choice";break;case cpInteractionTypeEnum.TrueFalse:a="true-false";break;case cpInteractionTypeEnum.FillIn:a="fill-in";break;case cpInteractionTypeEnum.LongFillIn:a="long-fill-in";break;case cpInteractionTypeEnum.Matching:a="matching";break;case cpInteractionTypeEnum.Sequence:a="sequencing";break;case cpInteractionTypeEnum.Likert:a="likert";break;case cpInteractionTypeEnum.Widget:a="widget"}return a},getInteractionType:function(){var a;switch(this.m_interactionType){case cpInteractionTypeEnum.Choice:a=
"choice";break;case cpInteractionTypeEnum.TrueFalse:a="true-false";break;case cpInteractionTypeEnum.FillIn:a="fill-in";break;case cpInteractionTypeEnum.LongFillIn:a="long-fill-in";break;case cpInteractionTypeEnum.Matching:a="matching";break;case cpInteractionTypeEnum.Sequence:a="sequencing";break;case cpInteractionTypeEnum.Likert:a="likert";break;case cpInteractionTypeEnum.HotSpot:a="hotspot";break;case cpInteractionTypeEnum.Widget:a="widget"}return a},setInteractionType:function(a){var b;switch(a){case "choice":b=
cpInteractionTypeEnum.Choice;break;case "true-false":b=cpInteractionTypeEnum.TrueFalse;break;case "fill-in":b=cpInteractionTypeEnum.FillIn;break;case "long-fill-in":b=cpInteractionTypeEnum.LongFillIn;break;case "matching":b=cpInteractionTypeEnum.Matching;break;case "sequencing":b=cpInteractionTypeEnum.Sequence;break;case "hotspot":b=cpInteractionTypeEnum.HotSpot;break;case "likert":b=cpInteractionTypeEnum.Likert;break;case "widget":b=cpInteractionTypeEnum.Widget}this.m_interactionType=b},getObjectiveID:function(){return this.m_objectiveID},
setObjectiveID:function(a){this.m_objectiveID=a},getInteractionID:function(){return this.m_interactionID},setInteractionID:function(a){this.m_interactionID=a},getWeighting:function(){return this.m_weighting},setWeighting:function(a){this.m_weighting=a},getNegativeWeight:function(){return this.m_negativeWeight},setNegativeWeight:function(a){this.m_negativeWeight=a},getAnswerScores:function(){return this.m_answerScores},setAnswerScores:function(a){this.m_answerScores=a},getNumTries:function(){return this.m_numTries},
setNumTries:function(a){this.m_numTries=a},getAnswersIncomplete:function(){return this.m_answersIncomplete},setAnswersIncomplete:function(a){this.m_answersIncomplete=a},getAnsweredCorrectly:function(){return this.m_answeredCorrectly},setAnsweredCorrectly:function(a){this.m_answeredCorrectly=a},getPausedMsecs:function(){return this.m_pausedMsecs},setPausedMsecs:function(a){this.m_pausedMsecs=a},getQuestionNumInQuiz:function(){return this.m_questionNumInQuiz},setQuestionNumInQuiz:function(a){this.m_questionNumInQuiz=
a},getWasJudged:function(){return this.m_wasJudged},setIsPretest:function(a){this.m_isPretestQuestion=a},getIsPretest:function(){return this.m_isPretestQuestion},setIsKnowledgeCheck:function(a){this.m_isKnowledgeCheck=a},getIsKnowledgeCheck:function(){return this.m_isKnowledgeCheck},setWasJudged:function(a){this.m_wasJudged=a},resetScore:function(){this.m_answerScores=[];this.m_numTries=0;this.m_endTime=this.m_startTime=void 0;this.m_answeredCorrectly=this.m_answersIncomplete=!1;this.m_pausedMsecs=
0;this.m_wasJudged=!1;this.m_questionSpecificScore&&this.m_questionSpecificScore.reset()}};cp.QuizSlideGraphManager=function(){cp.QuizSlideGraphManager.baseConstructor.call(this);this.m_CompletionBranchMinQuizScore=this.m_CompletionBranchMaxQuizScore=0;this.m_CompletionBranchMinQuizScoreSet=this.m_CompletionBranchMaxQuizScoreSet=!1;this.m_SlideNumToQuestionNumMap={};this.m_progressNumber=0;this.m_startSlideIndex=-1};cp.inherits(cp.QuizSlideGraphManager,cp.SlideGraphManager);
cp.QuizSlideGraphManager.prototype.getPlaybackController=function(){return cp.movie.playbackController};cp.QuizSlideGraphManager.prototype.countQuizSlides=function(a){for(var b={},c=0,d=0;d<a.length;++d){var e=a[d];void 0==b[e]&&(b[e]=e,this.IsNonPretestQuestionSlide(e)&&this.IsNonKnowledgeCheckSlide(e)&&++c)}return c};
cp.QuizSlideGraphManager.prototype.countQuizMaxScore=function(a){var b=this.getPlaybackController();if(void 0==b)return"NaN";b=b.GetQuizController();if(!b)return 0;for(var c={},d=0,e=0;e<a.length;++e){var f=a[e];void 0==c[f]&&(c[f]=f,d+=b.getQuizSlideMaxScore(f))}return d};
cp.QuizSlideGraphManager.prototype.countQuizMinScore=function(a){var b=this.getPlaybackController();if(void 0==b)return"NaN";b=b.GetQuizController();if(!b)return 0;for(var c={},d=0,e=0;e<a.length;++e){var f=a[e];void 0==c[f]&&(c[f]=f,d+=b.getQuizSlideMinScore(f))}return d};
cp.QuizSlideGraphManager.prototype.countQuizScore=function(a){var b=this.getPlaybackController();if(void 0==b)return"NaN";b=b.GetQuizController();if(!b)return 0;for(var c={},d=0,e=0;e<a.length;++e){var f=a[e];void 0==c[f]&&(c[f]=f,d+=b.getQuizSlideScore(f))}return d};
cp.QuizSlideGraphManager.prototype.findCompletionBranchTraverse=function(a,b,c){var d=!1,e=-1;!d&&void 0==this.m_SlideGraphObj[a]&&(e=this.BranchEnum.kBranchFound,d=!0);!d&&void 0!=c[a]&&(e=this.BranchEnum.kLoopBranchFound,d=!0);e!=this.BranchEnum.kLoopBranchFound&&(b.push(a),c[a]=a);if(d){++this.m_BranchNumber;if(1==this.m_BranchNumber){var e=[],e=this.m_CurrentBranch.length,f=b.length;0<e&&0<f&&this.m_CurrentBranch[e-1]==b[0]?(e=this.m_CurrentBranch.slice(0,e-1),e=e.concat(b),this.m_CompletionBranch=
e.slice()):this.m_CompletionBranch=this.m_CurrentBranch.concat(b);this.m_CompletionBranchSet=!0;this.m_CompletionBranchMaxQuizScore=this.countQuizMaxScore(this.m_CompletionBranch);this.m_CompletionBranchMaxQuizScoreSet=!0;this.m_CompletionBranchMinQuizScore=this.countQuizMinScore(this.m_CompletionBranch);this.m_CompletionBranchMinQuizScoreSet=!0;b.pop();delete c[a];return this.BranchEnum.kBranchFound}if(2<=this.m_BranchNumber){this.m_CompletionBranchSet=!1;if(this.m_CompletionBranchMaxQuizScoreSet){if(this.countQuizMaxScore(this.m_CurrentBranch.concat(b))==
this.m_CompletionBranchMaxQuizScore)return e!=this.BranchEnum.kLoopBranchFound&&(b.pop(),delete c[a]),this.BranchEnum.kBranchFound;this.m_CompletionBranchMaxQuizScoreSet=!1;e!=this.BranchEnum.kLoopBranchFound&&(b.pop(),delete c[a]);return this.BranchEnum.kMultipleBranchFound}e!=this.BranchEnum.kLoopBranchFound&&(b.pop(),delete c[a]);return this.BranchEnum.kMultipleBranchFound}}var d=this.m_SlideGraphObj[a],g=!1;for(f in d)switch(this.findCompletionBranchTraverse(Number(f),b,c)){case this.BranchEnum.kBranchFound:g=
!0;case this.BranchEnum.kBranchNotFound:break;case this.BranchEnum.kMultipleBranchFound:return this.BranchEnum.kMultipleBranchFound}e!=this.BranchEnum.kLoopBranchFound&&(b.pop(),delete c[a]);return g?this.BranchEnum.kBranchFound:this.BranchEnum.kBranchNotFound};
cp.QuizSlideGraphManager.prototype.findCompletionBranch=function(){var a=1<=this.m_CurrentBranch.length?this.m_CurrentBranch[this.m_CurrentBranch.length-1]:this.m_RootSlideIndex;this.m_startSlideIndex=a;this.m_CompletionBranch=[];this.m_CompletionBranchSet=!1;this.m_BranchNumber=0;this.findCompletionBranchTraverse(a,[],{})};
cp.QuizSlideGraphManager.prototype.IsNonPretestQuestionSlide=function(a){var b=this.getPlaybackController();return b&&(b=b.GetQuizController())?b.IsNonPretestQuestionSlide(a):!1};cp.QuizSlideGraphManager.prototype.IsNonKnowledgeCheckSlide=function(a){var b=this.getPlaybackController();return b&&(b=b.GetQuizController())?b.IsNonKnowledgeCheck(a):!1};
cp.QuizSlideGraphManager.prototype.findFirstNonPretestQuestionSlide=function(){for(var a=this.m_CurrentBranch.length,b=0;b<a;++b)if(this.IsNonPretestQuestionSlide(this.m_CurrentBranch[b])&&this.IsNonKnowledgeCheckSlide(this.m_CurrentBranch[b]))return this.m_CurrentBranch[b];return-1};
cp.QuizSlideGraphManager.prototype.getMaxQuizScore=function(){!this.m_CompletionBranchSet&&!this.m_CompletionBranchMaxQuizScoreSet&&this.findCompletionBranch();if(!this.m_CompletionBranchSet&&!this.m_CompletionBranchMaxQuizScoreSet)return"NaN";var a=-1;return a=this.m_CompletionBranchMaxQuizScoreSet?this.m_CompletionBranchMaxQuizScore:this.countQuizMaxScore(this.m_CompletionBranch)};
cp.QuizSlideGraphManager.prototype.getMinQuizScore=function(){!this.m_CompletionBranchSet&&!this.m_CompletionBranchMinQuizScoreSet&&this.findCompletionBranch();if(!this.m_CompletionBranchSet&&!this.m_CompletionBranchMinQuizScoreSet)return"NaN";var a="NaN";return a=this.m_CompletionBranchMinQuizScoreSet?this.m_CompletionBranchMinQuizScore:this.countQuizMinScore(this.m_CompletionBranch)};
cp.QuizSlideGraphManager.prototype.getQuizScorePercentage=function(){!this.m_CompletionBranchSet&&!this.m_CompletionBranchMaxQuizScoreSet&&this.findCompletionBranch();if(!this.m_CompletionBranchSet&&!this.m_CompletionBranchMaxQuizScoreSet)return"NaN";var a=this.countQuizScore(this.m_CurrentBranch),b=-1,b=this.m_CompletionBranchSlideCountSet?this.m_CompletionBranchSlideCount:this.countQuizMaxScore(this.m_CompletionBranch);return 0>=b?"NaN":100*a/b};
cp.QuizSlideGraphManager.prototype.getNextAttemptFirstQuestionSlideIndex=function(){return this.findFirstNonPretestQuestionSlide()};cp.QuizSlideGraphManager.prototype.getReviewFirstQuestionSlideIndex=function(){return this.findFirstNonPretestQuestionSlide()};cp.QuizSlideGraphManager.prototype.getNumQuestions=function(){!this.m_CompletionBranchSet&&!this.m_CompletionBranchMaxQuizScoreSet&&this.findCompletionBranch();return!this.m_CompletionBranchSet&&!this.m_CompletionBranchMaxQuizScoreSet?"NaN":this.countQuizSlides(this.m_CompletionBranch)};
cp.QuizSlideGraphManager.prototype.getQuestionSlideProgressNumber=function(a){return this.m_SlideNumToQuestionNumMap&&void 0!=this.m_SlideNumToQuestionNumMap[a]?this.m_SlideNumToQuestionNumMap[a]:"NaN"};cp.QuizSlideGraphManager.prototype.setQuestionSlideProgressNumber=function(a){this.m_SlideNumToQuestionNumMap||(this.m_SlideNumToQuestionNumMap={});void 0==this.m_SlideNumToQuestionNumMap[a]&&(this.m_SlideNumToQuestionNumMap[a]=++this.m_progressNumber)};
cp.QuizSlideGraphManager.prototype.getLastQuestionSlideIndex=function(){if(!this.getPlaybackController())return-1;this.m_CompletionBranchSet||this.findCompletionBranch();if(!this.m_CompletionBranchSet)return-1;for(var a=-1,b=this.m_CompletionBranch.length,c=0;c<b;++c){var d=this.m_CompletionBranch[c];this.IsNonPretestQuestionSlide(d)&&d>a&&(a=d)}return a};
cp.QuizSlideGraphManager.prototype.resetCurrentBranch=function(a){if(!(0>a)){for(var b=-1,c=0;c<this.m_CurrentBranch.length;++c)if(this.m_CurrentBranch[c]==a){b=a;break}0<=b&&b+1<this.m_CurrentBranch.length&&this.m_CurrentBranch.splice(b+1);a={};for(c=b=0;c<this.m_CurrentBranch.length;++c){var d=this.m_CurrentBranch[c];this.m_SlideNumToQuestionNumMap.hasOwnProperty(d)&&(a[d]=this.m_SlideNumToQuestionNumMap[d],b<this.m_SlideNumToQuestionNumMap[d]&&(b=this.m_SlideNumToQuestionNumMap[d]))}this.m_SlideNumToQuestionNumMap=
a;this.m_progressNumber=b;this.m_CompletionBranchMinQuizScore=this.m_CompletionBranchMaxQuizScore=0;this.m_CompletionBranchMinQuizScoreSet=this.m_CompletionBranchMaxQuizScoreSet=!1;this.findCompletionBranch()}};
cp.QuizSlideGraphManager.prototype.findLastContinousBranchFromHistory=function(a,b){for(var c=[],d=this.m_BranchHistory.length-1;0<=d;--d)if(c=[],this.m_BranchHistory[d]==a){for(var e=-1,f=!0,g=d;g<this.m_BranchHistory.length;++g){c.push(this.m_BranchHistory[g]);if(this.m_BranchHistory[g]==b){e=g;break}if(g!=this.m_BranchHistory.length-1&&!this.getIsJumpValid(this.m_BranchHistory[g],this.m_BranchHistory[g+1])){f=!1;break}}if(-1!=e&&f)return c}return c=[]};
cp.QuizSlideGraphManager.prototype.updateCurrentBranch=function(a){if(!(0>a)){var b=this.getPlaybackController();if(b&&((b=b.GetQuizController())||!b.GetIsInReviewMode())){for(var c=this.m_CurrentBranch.length,d=-1,e=0;e<this.m_CurrentBranch.length;++e)if(this.m_CurrentBranch[e]==a){d=e;break}if(-1!=d&&d+1<c){this.m_CurrentBranch.splice(d+1);b={};for(c=a=0;c<this.m_CurrentBranch.length;++c)d=this.m_CurrentBranch[c],this.m_SlideNumToQuestionNumMap.hasOwnProperty(d)&&(b[d]=this.m_SlideNumToQuestionNumMap[d],
a<this.m_SlideNumToQuestionNumMap[d]&&(a=this.m_SlideNumToQuestionNumMap[d]));this.m_SlideNumToQuestionNumMap=b;this.m_progressNumber=a}else if(0<this.m_CurrentBranch.length&&-1==d){a=this.findLastContinousBranchFromHistory(this.m_CurrentBranch[this.m_CurrentBranch.length-1],a);for(c=0;c<a.length;++c)this.m_CurrentBranch.push(a[c]),this.m_BranchHistory.push(a[c]),b&&"Question"==b.GetSlideType(a[c])&&b.IsNonKnowledgeCheck(a[c])&&this.setQuestionSlideProgressNumber(a[c])}this.m_CompletionBranchMinQuizScore=
this.m_CompletionBranchMaxQuizScore=0;this.m_CompletionBranchMinQuizScoreSet=this.m_CompletionBranchMaxQuizScoreSet=!1;this.findCompletionBranch()}}};cp.PoolManager=function(){this.m_framesAddedSoFar=0};
cp.PoolManager.prototype={updateQuestionData:function(a,b){var c=cp.D[a];c&&(c.w=b.w,c.it=b.it,c.oid=b.oid,c.sra=b.sra,c.nw=b.nw,c.oca=b.oca,c.ofa=b.ofa)},updateModelDataForSlides:function(a,b){var c=-1,d=-1,e=cp.D.project_main.slides;if(e&&!(0>=e.length)){var e=e.split(","),f=e[a],g=cp.D[f];g.w=b.w;g.oca=b.oca;g.ofa=b.ofa;g.v=b.v;this.updateQuestionData(g.qs,b);var i=g.to-g.from+1;this.m_framesAddedSoFar+=i;var k=-1;0==a?(c=1,d=g.to,k=0):(k=cp.D[e[a-1]],c=k.to+1,d=c+i,k=k.to);cp.poolVerbose&&cp.log("Slide Name : "+
f+", from : "+g.from+", pauseAt : "+g.pa+", to : "+g.to);g.from=c;g.pa+=c;g.to=d;g.audioName&&(d=cp.D[g.audioName],cp.poolVerbose&&cp.log("Random : "+g.audioName+" : "+d.from+", "+d.to+". Adding : "+(c-1)),d.from+=c-1,d.to+=c-1,cp.poolVerbose&&cp.log("Random : "+g.audioName+" after addition : "+d.from+", "+d.to));cp.poolVerbose&&cp.log("Slide Name : "+f+", from : "+g.from+", pauseAt : "+g.pa+", to : "+g.to);this.updateStartEndFramesForSlideItems(k,f,g.to);cp.poolVerbose&&cp.log("Adding : "+i);for(c=
a+1;c<e.length;++c)f=e[c],d=cp.D[f],k=d.pn,k&&""!=k||(cp.poolVerbose&&cp.log(f+" : "+d.from+", "+d.to+". Adding : "+i),d.from+=i,d.to+=i,cp.poolVerbose&&cp.log(f+" after addition : "+d.from+", "+d.to),d.pa+=i,this.updateStartEndFramesForSlideItems(i,f,d.to));this.updateStartEndFramesForSlideAudios(i,g.rsi,g.audioName)}},updateStartEndFramesForSlideAudios:function(a,b,c){var d=cp.D.project_main.slideAudios;d||(d="");for(var e=[],d=d.split(","),f=0;f<b;++f)e.push(d[f]);c&&e.push(c);for(f=b;f<d.length;++f)if(e.push(d[f]),
b=cp.D[d[f]])cp.poolVerbose&&cp.log(d[f]+" : "+b.from+", "+b.to+". Adding : "+a),b.from+=a,b.to+=a,cp.poolVerbose&&cp.log(d[f]+" after addition : "+b.from+", "+b.to);cp.D.project_main.slideAudios=e.toString()},updateStartEndFramesForSlideItems:function(a,b,c){var d=cp.D[b],e=d.si;if(e&&!(0>=e.length)){for(var f in e){var g=cp.D[e[f].n];if(void 0!=g&&(!0==g.immo?g.to=c:1!=g.rp&&1!=g.rpa||g.apsn==b?(g.from+=a,g.pa&&(g.pa+=a),g.to+=a):g.to=c,void 0!=g.ia)){var i=cp.D[g.ia];i&&(1!=g.rp&&1!=g.rpa&&g.apsn==
b)&&(i.from+=a-1,i.to+=a)}}if((b=d.iph)&&0<b.length)for(var k in b)void 0!=b[k]&&(c=cp.D[b[k].n],void 0!=c&&c.pa&&(c.pa+=a))}},updateSlideDataFromRandomSlideData:function(a,b){var c=b.qnq;if(void 0!=c){var d=cp.D[a];cp.D[d.qs+c]=cp.D[d.qs];cp.D[d.qs+c].qnq=c;cp.D[d.qs+c].oid=b.oid;d.qnq=c;d.pn=b.pn;d.rsi=b.rsi;this.updateQuestionNameAtIndex(d.qs,c)}},loadPools:function(){var a=cp.D.project_main.pools;if(!(void 0==a||0>=a.length))for(var b=0;b<a.length;++b)this.loadPoolDataIntoModel(a[b])},loadPoolDataIntoModel:function(a){for(var b=
cp.model[a+"Data"],c=cp.D[a].pqs,d=0;d<c.length;++d){var e=b[c[d]+"Data"],f;for(f in e)cp.D[f]=e[f]}if(cp.poolResources){if(b=cp.poolResources[a+"Images"])for(d=0;d<b.length;++d)cp.model.images.push(b[d]);if(d=cp.poolResources[a+"Videos"])for(b=0;b<d.length;++b)cp.model.videos.push(d[b]);if(a=cp.poolResources[a+"SlideVideos"])for(d=0;d<a.length;++d)cp.model.slideVideos.push(a[d])}},updateSlideNameAtIndex:function(a,b){var c=cp.D.project_main.slides;0>=c.length||(c=c.split(","),b>c.length-1||(c[b]=
a,cp.D.project_main.slides=c.toString()))},updateQuestionNameAtIndex:function(a,b){var c=cp.D.project_main.questions;0>=c.length||(c=c.split(","),b>c.length-1||(c[b]=a,cp.movie&&(cp.movie.questions=c),cp.D.project_main.questions=c.toString()))},removeAllReferences:function(a){var b=cp.D.project_main.questions;if(0<b.length){for(var c=b.split(","),d=[],b=0;b<c.length;++b)c[b]!=a&&d.push(c[b]);cp.D.project_main.questions=d.toString()}b=cp.D.project_main.slides;if(0<b.length){c=b.split(",");d=[];for(b=
0;b<c.length;++b)c[b]!=a&&d.push(c[b]);cp.D.project_main.slides=d.toString()}},updateSlidesAndQuestionsFromPool:function(){var a=cp.D.project_main.pools;if(!(void 0==a||0>=a.length))if(a=cp.D.project_main.slides,!(void 0==a||0>=a.length)){for(var a=a.split(","),b=0,c=0;c<a.length;++c){var d=a[c],e=cp.D[d],f=e.pn;if(f&&""!=f){var g=cp.D[f],f=g.pqs,i=-1;if(e.is){g=g.rsqs;if(0>=g.length){this.removeAllReferences(d);b++;continue}void 0==f.sindex?f.sindex=0:f.sindex++;i=Number(g[f.sindex])}else{g=g.rgqs;
if(0>=g.length){this.removeAllReferences(d);b++;continue}void 0==f.gindex?f.gindex=0:f.gindex++;i=Number(g[f.gindex])}f=f[i];this.updateSlideNameAtIndex(f,c-b);e.qnq-=b;this.updateSlideDataFromRandomSlideData(f,e);this.updateModelDataForSlides(c-b,e);-1!=d.indexOf("rq")&&(d=d.split("rq")[1],""!=d&&(cp.D[d]=cp.D[f]))}}this.updateMainMovieData()}},updateMainMovieData:function(){var a=cp.D.project_main.slides;0>=a.length||(a=a.split(","),cp.D.project_main.to=cp.D[a[a.length-1]].to)},updateSlideData:function(a,
b,c){this.updateSlideNameAtIndex(a,b);this.updateSlideDataFromRandomSlideData(a,c);this.updateModelDataForSlides(b,c)},randomizePools:function(){if(!(""!=cp.resumeDataChunk&&void 0!=cp.resumeDataChunk&&"0"!=cp.resumeDataChunk)){var a=cp.D.project_main.pools;if(a){var b=a.length;if(!(0>=b)){cp.poolVerbose&&cp.log("Randomizing");for(var c=0;c<b;++c){for(var d=cp.D[a[c]],e=d.rsqs,f=e.length,g=f;g--;){var i=parseInt(Math.random()*f),k=e[g];e[g]=e[i];e[i]=k}d.rsqs=e;e=d.rgqs;for(g=f=e.length;g--;)i=parseInt(Math.random()*
f),k=e[g],e[g]=e[i],e[i]=k;d.rgqs=e}this.updateSlidesAndQuestionsFromPool()}}}}};
cp.QuizButtonCH=function(a){if(!cp.disableInteractions){a.stopPropagation&&a.stopPropagation();var c=cp.D[a.target.id].chfn;c(a.target)}};
cp.QuestionSlideReviewLabel=function(a,c){cp.QuestionSlideReviewLabel.baseConstructor.call(this,a);this.textAlign=this.getAttribute("ta");this.bold=this.getAttribute("B");this.color=this.getAttribute("c");this.font=this.getAttribute("f");this.italic=this.getAttribute("i");this.size=this.getAttribute("sz");this.underline=this.getAttribute("u");this.id=this.getAttribute("id");this.visible=this.getAttribute("visible");this.re=this.getAttribute("re");this.sh=this.getAttribute("sh");var b=this.getAttribute("b");
this.parentDivName=this.getAttribute("dn");this.relatedQuestionSlide=this.getAttribute("rqs");cp.responsive&&(this.responsiveCSS=this.getAttribute("css"));if(void 0!=this.relatedQuestionSlide){var d=cp.getQuestionObject(this.relatedQuestionSlide);void 0!=d&&(d.m_correctFeedbackText=this.getAttribute("cf"),d.m_partialCorrectFeedbackText=this.getAttribute("pcf"),d.m_incorrectDisplayChosenText=this.getAttribute("idc"),d.m_incorrectDisplayCorrectText=this.getAttribute("ict"))}this.bounds={minX:b[0],minY:b[1],
maxX:b[2],maxY:b[3]};b=this.getAttribute("vb");this.vbounds={minX:b[0],minY:b[1],maxX:b[2],maxY:b[3]};this.args=c;this.element&&(this.element.parentElement.drawingBoard=this.element.parentElement,this.element.parentElement.bounds=this.bounds);this.isDrawn=!1};cp.inherits(cp.QuestionSlideReviewLabel,cp.DisplayObject);cp.QuestionSlideReviewLabel.prototype.start=function(a){this.addIfNeeded();if(!this.effectIsStarted||a)this.updateEffects(this.hasEffect),this.effectIsStarted=!0};
cp.QuestionSlideReviewLabel.prototype.reset=function(){delete cp.ropMap[this.element.id];this.isDrawn=!1;this.element.width="0";this.element.height="0";this.element.style.width="0px";this.element.style.height="0px";this.element.left="0";this.element.top="0";this.element.style.left="0px";this.element.style.top="0px"};
cp.QuestionSlideReviewLabel.prototype.drawForResponsive=function(a,c){var b=cp.getQuestionObject(this.relatedQuestionSlide);if(!b||!b.getIsStarted()||!this.responsiveCSS)return!1;if(this.isDrawn&&!a)return!0;var d=cp.getResponsiveCSS(this.responsiveCSS),e=!1,e=this.re||this.sh&&!this.sh.i||this.fillOuterArea,f=void 0!=this.tr;if(this.currentCSS==d&&!e&&!f&&!a)return!0;this.currentCSS=d;if(!cp.movie.playbackController)return!1;e=cp.movie.playbackController.GetQuizController();if(!e||!1==e.GetIsInReviewMode())return!1;
this.actualParent=cp(this.parentDivName);if(!b.getIsIncomplete()||b.getIsSurvey()||b.getIsPretest())return this.isDrawn=b.showCustomReviewArea(this.element.id),this.drawComplete(c),!0==this.isDrawn;this.zIndex=cp.D[this.parentDivName].zIndex;cp.applyResponsiveStyles(this.element.parentElement,d,!0);this.element.parentElement.offsetHeight=this.element.parentElement.offsetHeight;this.actualParentClientBoundingRect=this.element.parentElement.getBoundingClientRect();e=cp("re-"+this.element.id);e||(e=
cp.newElem("div"),e.id="re-"+this.element.id,cp.fixWebkitScaling(e),cp.addRewrapObjectAsPerRestOfProjectItem(e));cp.applyResponsiveStyles(e,d,!0);e.offsetHeight=e.offsetHeight;this.parentElementClientBoundingRect=e.getBoundingClientRect();this.element.style.left="0px";this.element.style.top="0px";this.element.style.width="100%";this.element.style.height="100%";this.isDrawn||(this.sh&&(this.element.style.textShadow=(this.sh.i?"inset ":"")+this.sh.d*Math.cos(Math.PI*this.sh.a/180)+"px "+this.sh.d*Math.sin(Math.PI*
this.sh.a/180)+"px "+this.sh.b+"px "+cp.ConvertRGBToRGBA(this.sh.c,this.sh.o)),this.re&&(e.style.webkitBoxReflect="below "+this.re.d+"px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop("+(1-this.re.s/100)+", transparent), to(rgba(255, 255, 255, "+(1-this.re.p/100)+")))"),this.element.style.position="absolute",this.visible=1,this.text=b.getIsIncomplete()?this.getAttribute("icf"):"",void 0!=this.getAttribute("accstr")&&(this.element.setAttribute("tabIndex","-1"),this.element.setAttribute("aria-label",
this.text),cp.removeAccessibilityOutline(this.element),this.element.setAttribute("role","img")),""==this.element.innerHTML&&(this.element.innerHTML+=this.text),this.element.parentNode.removeChild(this.element),e.setAttribute("class","cp-rewrap"),e.style.zIndex=this.zIndex,e.appendChild(this.element));b=this.getAttribute("rpfont")[cp.ResponsiveProjWidth].font;this.element.style.fontWeight=b.B?"bold":"normal";this.element.style.fontStyle=b.i?"italic":"normal";this.element.style.textDecoration=b.u?"underline":
"none";this.element.style.color=b.c;this.element.style.fontFamily=b.n;this.element.style.fontSize=b.s+"px";this.element.style.textAlign=this.textAlign;this.element.style.verticalAlign="middle";this.isDrawn=!0;this.drawComplete(c);this.visible||cp.hide(this.parentDivName);return!0};
cp.QuestionSlideReviewLabel.prototype.addIfNeeded=function(a,c){if((!cp.responsive||!this.drawForResponsive(a))&&!this.isDrawn){var b=cp.getQuestionObject(this.relatedQuestionSlide);if(b&&b.getIsStarted()&&cp.movie.playbackController){var d=cp.movie.playbackController.GetQuizController();d&&!1!=d.GetIsInReviewMode()&&((this.actualParent=cp(this.parentDivName),!b.getIsIncomplete()||b.getIsSurvey()||b.getIsPretest())?(this.isDrawn=b.showCustomReviewArea(this.element.id),this.drawComplete(c)):(this.zIndex=
cp.D[this.parentDivName].zIndex,d=cp.newElem("div"),d.id="re-"+this.element.id,cp.fixWebkitScaling(d),d.style.position="absolute",d.style.left=this.vbounds.minX+"px",d.style.top=this.vbounds.minY+"px",d.style.width=this.vbounds.maxX-this.vbounds.minX+"px",d.style.height=this.vbounds.maxY-this.vbounds.minY+"px",this.element.parentElement.style.position="absolute",this.element.parentElement.style.left=this.bounds.minX+"px",this.element.parentElement.style.top=this.bounds.minY+"px",this.element.parentElement.style.width=
this.bounds.maxX-this.bounds.minX+"px",this.element.parentElement.style.height=this.bounds.maxY-this.bounds.minY+"px",this.element.style.left="0px",this.element.style.top="0px",this.element.style.width="100%",this.element.style.height="100%",this.sh&&(this.element.style.textShadow=(this.sh.i?"inset ":"")+this.sh.d*Math.cos(Math.PI*this.sh.a/180)+"px "+this.sh.d*Math.sin(Math.PI*this.sh.a/180)+"px "+this.sh.b+"px "+cp.ConvertRGBToRGBA(this.sh.c,this.sh.o)),this.re&&(d.style.webkitBoxReflect="below "+
this.re.d+"px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop("+(1-this.re.s/100)+", transparent), to(rgba(255, 255, 255, "+(1-this.re.p/100)+")))"),this.element.style.position="absolute",this.element.style.textAlign=this.textAlign,this.element.style.verticalAlign="middle",this.visible=1,this.text=b.getIsIncomplete()?this.getAttribute("icf"):"",void 0!=this.getAttribute("accstr")&&(this.element.setAttribute("tabIndex","-1"),this.element.setAttribute("aria-label",this.text),
cp.removeAccessibilityOutline(this.element),this.element.setAttribute("role","img")),this.element.style.color=this.color,this.element.style.fontFamily=this.font,this.element.style.fontSize=this.size+"px",this.element.style.fontWeight=this.bold?"bold":"normal",this.element.style.fontStyle=this.italic?"italic":"normal",this.element.style.textDecoration=this.underline?"underline":"none",""==this.element.innerHTML&&(this.element.innerHTML+=this.text),this.element.parentNode.removeChild(this.element),
cp.addRewrapObjectAsPerRestOfProjectItem(d),d.setAttribute("class","cp-rewrap"),d.appendChild(this.element),d.style.zIndex=this.zIndex,this.isDrawn=!0,this.drawComplete(c),this.visible||cp.hide(this.parentDivName)))}}};
cp.ProgressSlideLabel=function(a,c){cp.ProgressSlideLabel.baseConstructor.call(this,a);this.id=this.getAttribute("id");this.visible=this.getAttribute("visible");this.textAlign=this.getAttribute("ta");this.bold=this.getAttribute("B");this.color=this.getAttribute("c");this.font=this.getAttribute("f");this.italic=this.getAttribute("i");this.size=this.getAttribute("sz");this.underline=this.getAttribute("u");this.quizParam=this.getAttribute("qp");if(cp.movie.playbackController){var b=cp.movie.playbackController.GetQuizController();
b&&(b.GetParameterValueByName(this.quizParam),this.relatedQuestionSlide=this.getAttribute("rqs"),cp.responsive&&(this.responsiveCSS=this.getAttribute("css")),this.parentDivName=this.getAttribute("dn"),b=this.getAttribute("b"),this.bounds={minX:b[0],minY:b[1],maxX:b[2],maxY:b[3]},this.tr=this.getAttribute("tr"),this.re=this.getAttribute("re"),this.sh=this.getAttribute("sh"),b=this.getAttribute("vb"),this.vbounds={minX:b[0],minY:b[1],maxX:b[2],maxY:b[3]},this.element&&(this.element.parentElement.drawingBoard=
this.element.parentElement,this.element.parentElement.bounds=this.bounds),this.args=c,this.isDrawn=!1)}};cp.inherits(cp.ProgressSlideLabel,cp.DisplayObject);cp.ProgressSlideLabel.prototype.start=function(a){this.addIfNeeded();if(!this.effectIsStarted||a)this.updateEffects(this.hasEffect),this.effectIsStarted=!0};
cp.ProgressSlideLabel.prototype.reset=function(){delete cp.ropMap[this.element.id];this.isDrawn=!1;this.element.width="0";this.element.height="0";this.element.style.width="0px";this.element.style.height="0px";this.element.left="0";this.element.top="0";this.element.style.left="0px";this.element.style.top="0px"};
cp.ProgressSlideLabel.prototype.drawForResponsive=function(a){var c=cp.getQuestionObject(this.relatedQuestionSlide);if(!c||!c.getIsStarted()||!this.responsiveCSS)return!1;if(this.isDrawn&&!a)return!0;var b=cp.getResponsiveCSS(this.responsiveCSS),d=!1,d=this.re||this.sh&&!this.sh.i||this.fillOuterArea,e=void 0!=this.tr;if(this.currentCSS==b&&!d&&!e&&!a)return!0;this.currentCSS=b;var f=!0,a=cp.D[this.parentDivName],e=cp.D[a.mdi],d=cp("re-"+this.element.id);d||(d=cp.newElem("div"),d.id="re-"+this.element.id,
cp.fixWebkitScaling(d),cp.addRewrapObjectAsPerRestOfProjectItem(d));var h=b;this.getAttribute("useV")&&(h=cp.createResponsiveStyleObj(b,b.p,b.vl,b.vt,b.vr,b.vb,b.vw,b.vh,b.crop));cp.applyResponsiveStyles(this.element.parentElement,b,f);this.element.parentElement.offsetHeight=this.element.parentElement.offsetHeight;this.parentElementClientBoundingRect=this.element.parentElement.getBoundingClientRect();var g=0;this.tr&&(g=cp.getAngleFromRotateStr(this.tr),f=cp.getCenterForRotation(this.element.parentElement),
g=cp.getBoundsForRotatedItem(this.element.parentElement.clientWidth,this.element.parentElement.clientHeight,f,g),h=cp.createResponsiveStyleObj(b,b.p,g.l,g.t,g.r,g.b,g.w,g.h,b.crop),cp.applyTransform(this.element,this.tr),g=cp.getAngleFromRotateStr(this.tr),this.element.tr=this.tr,this.element.parentElement.tr=this.tr,cp.applyTransform(this.element.parentElement,this.tr),f=!1);cp.applyResponsiveStyles(d,h,f);this.element.rotateAngle=g;this.element.parentElement.rotateAngle=g;this.element.style.left=
"0px";this.element.style.top="0px";this.element.style.width="100%";this.element.style.height="100%";this.element.style.display="block";this.element.style.position="absolute";this.isDrawn||(this.text=this.getAttribute("text"),this.text=c?c.getProgressString(this.text):"",!0===e.hasOwnProperty("accstr")&&(c=document.getElementById(this.parentDivName),cp.createAlternativeAccessibleText(c,this.text,"img"),cp.removeAccessibilityOutline(c)),this.zIndex=a.zIndex,this.sh&&(this.element.style.textShadow=this.sh.d*
Math.cos(Math.PI*this.sh.a/180)+"px "+this.sh.d*Math.sin(Math.PI*this.sh.a/180)+"px "+this.sh.b+"px "+cp.ConvertRGBToRGBA(this.sh.c,this.sh.o)+(this.sh.i?" inset":"")),this.re&&(d.style.webkitBoxReflect="below "+this.re.d+"px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop("+(1-this.re.s/100)+", transparent), to(rgba(255, 255, 255, "+(1-this.re.p/100)+")))"),""==this.element.innerHTML&&(this.element.innerHTML+="<table style='width=100%;height:100%;'><tr style='width=100%;height:100%;'><td style='width=100%;height:100%;vertical-align:middle;'>"+
this.text+"</td></tr></table>"),this.element.parentNode.removeChild(this.element),d.setAttribute("class","cp-rewrap"),d.appendChild(this.element),d.style.zIndex=this.zIndex);c=this.getAttribute("rpfont")[cp.ResponsiveProjWidth].font;this.element.style.fontWeight=c.B?"bold":"normal";this.element.style.fontStyle=c.i?"italic":"normal";this.element.style.textDecoration=c.u?"underline":"none";this.element.style.color=c.c;this.element.style.fontFamily=c.n;this.element.style.fontSize=c.s+"px";this.element.style.textAlign=
this.textAlign;this.element.style.verticalAlign="middle";this.isDrawn=!0;this.visible||cp.hide(this.parentDivName);return!0};
cp.ProgressSlideLabel.prototype.addIfNeeded=function(a){if(!cp.responsive||!this.drawForResponsive(a))if((a=cp.getQuestionObject(this.relatedQuestionSlide))&&a.getIsStarted()&&!this.isDrawn){this.text=this.getAttribute("text");this.text=a?a.getProgressString(this.text):"";var a=this.bounds,c=cp.D[this.parentDivName];if(!0===cp.D[c.mdi].hasOwnProperty("accstr")){var b=document.getElementById(this.parentDivName);cp.createAlternativeAccessibleText(b,this.text,"img");cp.removeAccessibilityOutline(b)}this.zIndex=
c.zIndex;this.element.style.width=a.maxX-a.minX+"px";this.element.style.height=a.maxY-a.minY+"px";c=cp.newElem("div");c.id="re-"+this.element.id;cp.fixWebkitScaling(c);this.element.style.textAlign=this.textAlign;this.element.style.verticalAlign="middle";b=0;this.tr&&(cp.applyTransform(this.element,this.tr),b=cp.getAngleFromRotateStr(this.tr),this.element.tr=this.tr,this.element.parentElement.tr=this.tr,cp.applyTransform(this.element.parentElement,this.tr));this.element.rotateAngle=b;this.element.parentElement.rotateAngle=
b;this.sh&&(this.element.style.textShadow=this.sh.d*Math.cos(Math.PI*this.sh.a/180)+"px "+this.sh.d*Math.sin(Math.PI*this.sh.a/180)+"px "+this.sh.b+"px "+cp.ConvertRGBToRGBA(this.sh.c,this.sh.o)+(this.sh.i?" inset":""));this.re&&(c.style.webkitBoxReflect="below "+this.re.d+"px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop("+(1-this.re.s/100)+", transparent), to(rgba(255, 255, 255, "+(1-this.re.p/100)+")))");this.element.parentElement.style.position="absolute";this.element.parentElement.style.left=
this.bounds.minX+"px";this.element.parentElement.style.top=this.bounds.minY+"px";this.element.parentElement.style.width=this.bounds.maxX-this.bounds.minX+"px";this.element.parentElement.style.height=this.bounds.maxY-this.bounds.minY+"px";c.style.position="absolute";c.style.left=this.vbounds.minX+"px";c.style.top=this.vbounds.minY+"px";c.style.width=this.vbounds.maxX-this.vbounds.minX+"px";c.style.height=this.vbounds.maxY-this.vbounds.minY+"px";this.element.style.marginLeft=-(this.vbounds.minX-a.minX)+
"px";this.element.style.marginTop=-(this.vbounds.minY-a.minY)+"px";this.element.style.display="block";this.element.style.position="absolute";this.element.style.color=this.color;this.element.style.fontFamily=this.font;this.element.style.fontSize=this.size+"px";this.element.style.fontWeight=this.bold?"bold":"normal";this.element.style.fontStyle=this.italic?"italic":"normal";this.element.style.textDecoration=this.underline?"underline":"none";""==this.element.innerHTML&&(this.element.innerHTML+="<table style='width=100%;height:100%;'><tr style='width=100%;height:100%;'><td style='width=100%;height:100%;vertical-align:middle;'>"+
this.text+"</td></tr></table>");this.element.parentNode.removeChild(this.element);cp.addRewrapObjectAsPerRestOfProjectItem(c);c.setAttribute("class","cp-rewrap");c.appendChild(this.element);c.style.zIndex=this.zIndex;this.isDrawn=!0;this.visible||cp.hide(this.parentDivName)}};
cp.Answer=function(a){cp.Answer.baseConstructor.call(this,a);this.id=this.getAttribute("id");this.type=this.getAttribute("type");this.visible=this.getAttribute("visible");this.answerID=this.getAttribute("aid");this.relatedQuestionSlide=this.getAttribute("rqs");this.m_questionObj=cp.getQuestionObject(this.relatedQuestionSlide);if(cp.responsive&&(a=cp.D[this.element.id]))this.answerAreaItemName=a.aan;this.isDrawn=!1};cp.inherits(cp.Answer,cp.DisplayObject);
cp.Answer.prototype.start=function(a){this.addIfNeeded();if(!this.effectIsStarted||a)this.updateEffects(this.hasEffect),this.effectIsStarted=!0};cp.Answer.prototype.reset=function(){delete cp.ropMap[this.element.id];this.isDrawn=!1;this.element.width="0";this.element.height="0";this.element.style.width="0px";this.element.style.height="0px";this.element.left="0";this.element.top="0";this.element.style.left="0px";this.element.style.top="0px"};
cp.adjustPositionWithAnswerArea=function(a,c,b,d){if(cp.responsive&&a&&c&&b){var e=cp(b),f=cp.D[b],b=0;f&&!d&&(b=cp.D[f.mdi].sw);d=e.getBoundingClientRect();e=cp.movie.stage.mainSlideDiv.getBoundingClientRect();cp.applyResponsiveStyles(c,a);var f=a.l,h=a.t,g=a.r,a=a.b;"auto"!=f&&(f=-1!=f.indexOf("%")?cp.getRoundedValue(parseFloat(f)*e.width/100):parseFloat(f),d&&(f+=d.left+b-e.left),c.style.left=f+"px");"auto"!=h&&(h=-1!=h.indexOf("%")?cp.getRoundedValue(parseFloat(h)*e.height/100):parseFloat(h),
d&&(h+=d.top-e.top),c.style.top=h+"px");"auto"!=g&&(g=-1!=g.indexOf("%")?cp.getRoundedValue(parseFloat(g)*e.width/100):parseFloat(g),d&&(g+=e.right-d.right-b),c.style.right=g+"px");"auto"!=a&&(a=-1!=a.indexOf("%")?cp.getRoundedValue(parseFloat(a)*e.height/100):parseFloat(a),d&&(a+=e.bottom-d.bottom),c.style.bottom=a+"px")}};cp.Answer.prototype.adjustPositionWithAnswerArea=function(a,c,b){cp.adjustPositionWithAnswerArea(a,c,this.answerAreaItemName,b)};cp.Answer.prototype.addIfNeeded=function(){};
cp.Answer.prototype.linkedItemDrawingCompleteHandler=function(a){if(cp.responsive&&this.drawForResponsive)if(this.answerAreaItemName){var c=cp.D[this.answerAreaItemName];c&&(c=cp.D[c.mdi],a.cpData&&a.cpData.uid&&a.cpData.uid==c.uid&&(cp.verbose&&cp.log("drawing "+this.element.id+", for "+a.cpData.uid),this.drawForResponsive(!0,cp.ReasonForDrawing.kLinkedToItemAppeared)))}else cp.Answer.superClass.linkedItemDrawingCompleteHandler.call(this,a)};
cp.Answer.prototype.subscribeToItemDrawingCompleteHandler=function(a){if(cp.responsive)if(this.answerAreaItemName){if(a=cp.D[this.answerAreaItemName])if(a=cp.D[a.mdi]){var c=this;(a=cp.getResponsiveCSS(a.css))&&(-1!=a.lhID||-1!=a.lvID)&&cp.em.addEventListener(function(a){c.linkedItemDrawingCompleteHandler(a)},cp.ITEMDRAWINGCOMPLETEEVENT)}}else cp.Answer.superClass.subscribeToItemDrawingCompleteHandler.call(this,a)};
cp.Question=function(a,c){if(cp.movie.playbackController&&(this.m_quizController=cp.movie.playbackController.GetQuizController()))this.m_questionScore=void 0,this.wasJudged=!1,this.m_isSurvey=this.m_isTracked=!0,this.associatedObjName=c,this.m_slideIndex=-1,cp.movie.stage&&(this.m_slideIndex=cp.movie.stage.getSlideIndexForName(c)),this.questionObjName=a,this.progressString="",this.questionData=cp.D[this.questionObjName],this.latencyTimer=void 0,this.latency=0,this.timer=void 0,this.score=this.timeBeforePause=
this.pausedMsecs=this.endTime=this.startTime=0,this.m_selectedAnswersArr=[],this.isPartialScore=this.questionData.ips,this.timeLimit=this.questionData.tl,this.questionTextCanvasName=this.questionData.qtc,this.feedbackCaptionToBeShown="",this.currentAttempt=0,this.numberOfAttempts=this.questionData.noa,this.incorrectFeedbackCaptions=this.questionData.ifc,this.reviewModeBackButtonDivElement=this.reviewModeNextButtonDivElement=this.backButtonDivElement=this.skipButtonDivElement=this.clearButtonDivElement=
this.submitAllButtonDivElement=this.submitButtonDivElement=void 0,this.shouldReportAnswers=this.questionData.sra,this.lastFeedbackShown=void 0,this.QuestionStatusEnum||(this.QuestionStatusEnum={},this.QuestionStatusEnum.INCOMPLETE=cp.QuestionStatusEnum.INCOMPLETE,this.QuestionStatusEnum.INCORRECT=cp.QuestionStatusEnum.INCORRECT,this.QuestionStatusEnum.CORRECT=cp.QuestionStatusEnum.CORRECT,this.QuestionStatusEnum.PARTIAL_CORRECT=cp.QuestionStatusEnum.PARTIAL_CORRECT),this.m_QuestionStatus=this.QuestionStatusEnum.INCOMPLETE,
this.StateEnum||(this.StateEnum={},this.StateEnum.INIT=0,this.StateEnum.PLAYING=1,this.StateEnum.PAUSED=2,this.StateEnum.ENDED=3),this.state=this.StateEnum.INIT,this.QuestionScoringTypeEnum||(this.QuestionScoringTypeEnum={},this.QuestionScoringTypeEnum.SURVEY=0,this.QuestionScoringTypeEnum.PRETEST=1,this.QuestionScoringTypeEnum.GRADED=2),this.m_scoringType=this.QuestionScoringTypeEnum.SURVEY,!0==this.getIsPretest()?this.m_scoringType=this.QuestionScoringTypeEnum.PRETEST:!0==this.getIsSurvey()?this.m_scoringType=
this.QuestionScoringTypeEnum.SURVEY:this.m_scoringType=this.QuestionScoringTypeEnum.GRADED,this.verbose=!1,this.shouldAddToTotal=!0,this.m_answersDisabled=this.m_isShuffled=!1,this.m_answerOrderArray=[],this.m_eachAnswerIsSeparateInteraction=this.m_isStarted=this.m_areButtonsDisabled=!1};
cp.Question.prototype={shouldDisableOptions:function(){var a=!1,c=this.m_quizController.GetIsInReviewMode()&&!this.getIsKnowledgeCheck(),a=this.m_quizController.GetIsSubmitAll()&&!this.getIsPretest(),a=!this.m_quizController.GetIsAttemptFinished()&&this.getWasJudged()&&!a;this.getIsPretest()&&this.m_quizController.GetIsPretestQuestionsDisabled()&&(a=!0);return this.m_answersDisabled=a||c},showCustomReviewArea:function(){return!1},getIsLastPretestQuestion:function(){if(!this.getIsPretest())return!1;
var a=this.m_slideIndex+1;return a>=cp.movie.stage.slides.length?!0:this.m_quizController?(a=this.m_quizController.GetQuestionsOnSlide(a))&&0<a.length?!a[0].getIsPretest():!0:!1},getAnswerOptions:function(){var a=[],c=this.questionData.ao;if(!c||0>=c.length)return"";for(var b=0;b<c.length;++b){var d=c[b].split(":");a.push(d[0])}return a},setShouldAddToTotal:function(a){this.shouldAddToTotal=a},setQuestionStatus:function(a){this.m_QuestionStatus=a},getQuestionStatus:function(){return this.m_QuestionStatus},
getQuestionScoringType:function(){return this.m_scoringType},getIsCorrect:function(){return this.getQuestionStatus()==this.QuestionStatusEnum.CORRECT},getIsPartiallyCorrect:function(){return this.getQuestionStatus()==this.QuestionStatusEnum.PARTIAL_CORRECT},getIsIncomplete:function(){return this.getQuestionStatus()==this.QuestionStatusEnum.INCOMPLETE},getIsIncorrect:function(){return this.getQuestionStatus()==this.QuestionStatusEnum.INCORRECT},registerSubmitButton:function(a){this.submitButtonDivElement=
a;this.m_areButtonsDisabled?this.disableButton(this.submitButtonDivElement):this.enableButton(this.submitButtonDivElement)},registerSubmitAllButton:function(a){this.submitAllButtonDivElement=a;this.m_areButtonsDisabled?this.disableButton(this.submitAllButtonDivElement):this.enableButton(this.submitAllButtonDivElement)},registerSkipButton:function(a){this.skipButtonDivElement=a;this.shouldDisableSkipButton()?(cp.disable(this.skipButtonDivElement.id),a=cp.D[this.skipButtonDivElement.id],a.shouldShowDisabledState=
!0,this.skipButtonDivElement.disabled="disabled",this.skipButtonDivElement.tabIndex=-1,this.skipButtonDivElement.onclick="",cp.removeGestureEvent(this.skipButtonDivElement,cp.GESTURE_EVENT_TYPES.TAP),this.skipButtonDivElement.style.cursor="default"):(cp.enable(this.skipButtonDivElement.id),a=cp.D[this.skipButtonDivElement.id],a.shouldShowDisabledState=!1,this.skipButtonDivElement.disabled=!1,this.skipButtonDivElement.style.cursor="pointer",cp.registerGestureEvent(this.skipButtonDivElement,cp.GESTURE_EVENT_TYPES.TAP,
cp.QuizButtonCH))},registerClearButton:function(a){this.clearButtonDivElement=a;this.m_areButtonsDisabled?this.disableButton(this.clearButtonDivElement):this.enableButton(this.clearButtonDivElement)},registerBackButton:function(a){this.backButtonDivElement=a;this.enableButton(this.backButtonDivElement)},registerReviewModeNextButton:function(a){this.reviewModeNextButtonDivElement=a;this.shouldDisableReviewModeNextButton()?(cp.disable(this.reviewModeNextButtonDivElement.id),a=cp.D[this.reviewModeNextButtonDivElement.id],
a.shouldShowDisabledState=!0,this.reviewModeNextButtonDivElement.disabled="disabled",this.reviewModeNextButtonDivElement.tabIndex=-1,this.reviewModeNextButtonDivElement.onclick="",cp.removeGestureEvent(this.reviewModeNextButtonDivElement,cp.GESTURE_EVENT_TYPES.TAP),this.reviewModeNextButtonDivElement.style.cursor="default"):(cp.enable(this.reviewModeNextButtonDivElement.id),a=cp.D[this.reviewModeNextButtonDivElement.id],a.shouldShowDisabledState=!1,this.reviewModeNextButtonDivElement.disabled=!1,
this.reviewModeNextButtonDivElement.style.cursor="pointer",cp.registerGestureEvent(this.reviewModeNextButtonDivElement,cp.GESTURE_EVENT_TYPES.TAP,cp.QuizButtonCH))},registerReviewModeBackButton:function(a){this.reviewModeBackButtonDivElement=a;this.enableButton(this.reviewModeBackButtonDivElement)},shouldShowSuccessCaption:function(){return this.questionData.osct},shouldShowPartialCorrectCaption:function(){return this.questionData.spcc},shouldShowFailureCaption:function(){return this.questionData.ofct},
shouldShowIncompleteCaption:function(){return this.questionData.sic},shouldShowRetryCaption:function(){return this.questionData.sfrc},shouldShowTimeOutCaption:function(){return this.questionData.stfc},getSuccessCaptionName:function(){return this.questionData.osc},getSuccessFeedback:function(){var a={};a.name=this.getSuccessCaptionName();a.action=this.getSuccessAction();a.captionToBeShown=this.shouldShowSuccessCaption();return a},getPartialCorrectCaptionName:function(){return this.questionData.opcc},
getPartialCorrectFeedback:function(){var a={};a.name=this.getPartialCorrectCaptionName();a.action=this.getSuccessAction();a.captionToBeShown=this.shouldShowPartialCorrectCaption();return a},getRetryCaptionName:function(){return this.questionData.frc},getRetryFeedback:function(){var a={};a.name=this.getRetryCaptionName();a.action="";a.captionToBeShown=this.shouldShowRetryCaption();return a},getFailureCaptionName:function(a){return this.incorrectFeedbackCaptions&&0==this.incorrectFeedbackCaptions.length||
a>=this.incorrectFeedbackCaptions.length||0>a?void 0:this.incorrectFeedbackCaptions[a]},getFailureFeedback:function(a){var c={};c.name=this.getFailureCaptionName(a);this.currentAttempt>=this.numberOfAttempts?(cp.verbose&&cp.log("Last Attempt. Setting action now."),c.action=this.getFailureAction()):(cp.verbose&&cp.log("Current Attempt :"+this.currentAttempt),c.action="");c.captionToBeShown=this.shouldShowFailureCaption();return c},getIncompleteCaptionName:function(){return this.questionData.oic},getIncompleteFeedback:function(){var a=
{};a.name=this.getIncompleteCaptionName();a.action="";a.captionToBeShown=this.shouldShowIncompleteCaption();return a},getTimeOutCaptionName:function(){return this.questionData.tfcn},getTimeOutFeedback:function(){var a={};a.name=this.getTimeOutCaptionName();a.action="cpCmndResume = 1;";a.captionToBeShown=this.shouldShowTimeOutCaption();return a},getSuccessAction:function(){return this.questionData.oca},getFailureAction:function(){return this.questionData.ofa},getSlideIndex:function(){return this.m_slideIndex},
resetQuestionData:function(){this.score=this.latency=0;this.wasJudged=!1;this.m_QuestionStatus=this.QuestionStatusEnum.INCOMPLETE;this.setCurrentAttempt(0);this.enableQuizButtons();this.m_answersDisabled=!1;this.m_questionScore&&this.m_questionScore.resetScore()},setActionToBeExecuted:function(a){this.actionToBeExecuted=a},getActionToBeExecuted:function(){return this.actionToBeExecuted},getName:function(){return this.questionObjName},startLatency:function(){if(!this.getWasJudged()&&!this.m_quizController.GetIsInReviewMode()){this.latency=
0;var a=this;this.latencyTimer=setInterval(function(){a.latencyTimer+=100},100);this.timeLimit&&0<this.timeLimit&&(this.timer=setTimeout(function(){a.verbose&&cp.log("Calling Timeout");a.disableAllOptions();a.stopLatencyTimer();a.autoJudge()},this.timeLimit))}},stopLatencyTimer:function(){this.timer&&(this.verbose&&cp.log("Clearing Timeout"),clearTimeout(this.timer));this.latencyTimer&&clearInterval(this.latencyTimer)},getLatency:function(){return this.latency=void 0!=this.startTime&&0!=this.startTime&&
void 0!=this.endTime&&0!=this.endTime?this.endTime.getTime()-this.startTime.getTime()-this.pausedMsecs:0},getAssociatedObjName:function(){return this.associatedObjName},getQuestionType:function(){return this.questionType=this.questionData.qtp},getAnswerGroupName:function(){return this.answerGroupName=this.questionData.gn},getQuestionText:function(){this.questionText=this.questionData.qt;if(cp.responsive){var a=cp.D[this.questionTextCanvasName];if(a&&(a=cp.D[a.dn]))this.questionText=a.rpvt[cp.responsiveWidths[cp.responsiveWidths.length-
1]].text}return this.questionText},getSelectedAnswerTextList:function(){return""},getExpectedCorrectAnswerTextList:function(){return""},getAnswerTexts:function(){var a={};a.learner_response=this.getSelectedAnswerTextList("-");a.correct_response=this.getExpectedCorrectAnswerTextList("-");return a},getDescriptionText:function(){var a={};a.questionText=this.getQuestionText();a.answerTexts=this.getAnswerTexts();return a},getProgressString:function(a){this.progressString="";if(!this.m_quizController)return this.progressString;
var c=this.getQuestionNumberInQuiz()+1,b=this.m_quizController.GetNumberOfQuestionsInQuiz(),d=0,e=0,f=cp.movie.questionObjs,h=0;f&&(h=f.length);for(var g=0;g<h;++g)f[g]&&f[g].getIsKnowledgeCheck()&&(d++,g<c&&e++);c-=e;b-=d;if(d=this.m_quizController.GetGraphManager())c=d.getQuestionSlideProgressNumber(this.m_slideIndex),b=d.getNumQuestions();if("NaN"==c)return this.progressString;d=this.m_quizController.GetProgressType();(e=this.m_quizController.GetForceAbsoluteProgressType())&&(d=1);0==d?"NaN"==
b&&(a=a.substr(0,a.indexOf("%d")+2)):e&&(a=a.substr(0,a.indexOf("%d")+2));return this.progressString=a.replace("%d",c).replace("%d",b)},getAnsweredCorrectly:function(){var a=this.getQuestionStatus();return a==this.QuestionStatusEnum.CORRECT||a==this.QuestionStatusEnum.PARTIAL_CORRECT?!0:!1},getIsTracked:function(){return this.isTracked=this.questionData.it},getIsSurvey:function(){return this.isSurvey=this.questionData.is},getIsPretest:function(){return this.questionData.ipq},getIsKnowledgeCheck:function(){return this.questionData.ikc},
getNumberOfAttempts:function(){return this.numberOfAttempts},getCurrentAttempt:function(){return this.currentAttempt},setCurrentAttempt:function(a){var c=this.m_quizController&&this.m_quizController.GetIsSubmitAll()&&!this.m_quizController.GetIsInReviewMode();this.m_questionScore&&(this.m_questionScore.m_numTries=a);this.currentAttempt=a;if(this.currentAttempt>=this.numberOfAttempts&&!c&&(this.disableAllOptions(),this.submitButtonDivElement&&(this.submitButtonDivElement.enable=!1),this.clearButtonDivElement))this.clearButtonDivElement.enable=
!1},getQuestionNumberInQuiz:function(){return this.questionNumberInQuiz=this.questionData.qnq},getObjectiveId:function(){return this.objectiveID=this.questionData.oid},getInteractionId:function(){this.interactionID=this.questionData.iid;var a=this.m_quizController.GetPlaybackController(),c=a.GetLMSType();c&&(c=c.toUpperCase());if(!a.IsRunningInConnect()&&("SCORM12"==c||"AICC"==c))a=this.getQuestionText(),this.interactionID=this.interactionID+"_"+a;return this.interactionID},getWeighting:function(){return this.weighting=
this.questionData.w},getNegativeWeight:function(){return this.questionData.nw},getInteractionType:function(){return this.interactionType=this.questionData.itp},getScore:function(){return this.score},setScore:function(a){this.score=this.shouldAddToTotal?a:0},getSelectedAnswerChoices:function(){this.getSelectedAnswersAsString()},getSelectedAnswersAsString:function(){var a="";if(!this.m_selectedAnswersArr||0>=this.m_selectedAnswersArr.length)return a;for(var a=a+this.m_selectedAnswersArr[0],c=1;c<this.m_selectedAnswersArr.length;++c)a+=
";",a+=this.m_selectedAnswersArr[c];return a},setSelectedAnswers:function(a){this.m_selectedAnswersArr=[];this.m_selectedAnswersArr.push(a)},getAnswerOrder:function(){if(!this.answerOptions||0>=this.answerOptions.length)return"";for(var a="",a=this.answerOptions[0],c=1;c<this.answerOptions.length;++c)a+=";",a+=this.answerOptions[c];return a},setAnswerOrder:function(a){a&&!(0>=a.length)&&(this.answerOptions=a.split(";"),this.m_answerOrderArray=this.answerOptions.slice(0))},getAnswerID:function(a){a=
cp(cp.D[a.parentNode.parentNode.id].answerTextCanvasHolder).firstChild;return cp.D[a.id].aid},getExpectedCorrectAnswerIDList:function(){return this.questionData.cal},getQuestionLevelScoredPoints:function(){var a=0;return a=this.getAnsweredCorrectly()?this.getWeighting():this.getNegativeWeight()},getQuestionScoredPoints:function(){return this.getIsSurvey()||!this.wasJudged?0:this.getQuestionLevelScoredPoints()},getChosenAnswerFeedback:function(){},getFeedbackToShow:function(a,c){var b={},b=this.getChosenAnswerFeedback();
if(c&&this.shouldShowTimeOutCaption())return b=this.getTimeOutFeedback();if(this.getIsIncomplete()&&!a&&this.shouldShowIncompleteCaption())return b=this.getIncompleteFeedback();if(b)return b;this.getAnsweredCorrectly()?b=this.getIsPartiallyCorrect()?this.getPartialCorrectFeedback():this.getSuccessFeedback():this.shouldShowRetryCaption()&&this.currentAttempt<this.numberOfAttempts?b=this.getRetryFeedback():this.getIsIncomplete()&&a||this.currentAttempt>=this.numberOfAttempts?(b=0,this.incorrectFeedbackCaptions&&
(b=this.incorrectFeedbackCaptions.length-1),b=this.getFailureFeedback(b)):b=this.currentAttempt<=this.incorrectFeedbackCaptions.length?this.getFailureFeedback(this.currentAttempt-1):void 0;return b},hideLastFeedback:function(){this.lastFeedbackShown&&cp.hide(this.lastFeedbackShown.name);this.lastFeedbackShown=void 0},saveAnswerOrder:function(){},pauseQuestion:function(){if(this.state==this.StateEnum.PLAYING){this.state=this.StateEnum.PAUSED;this.stopLatencyTimer();var a=new Date;this.timeBeforePause=
this.startTime.getMilliseconds()-a.getMilliseconds();this.pausedMsecs+=this.timeBeforePause;this.timeLimit-=this.timeBeforePause;this.timeBeforePause=0}},resumeQuestion:function(){this.state==this.StateEnum.PAUSED&&(this.state=this.StateEnum.PLAYING,!this.m_quizController.GetIsInReviewMode()&&0<this.timeLimit&&this.startLatency())},endQuestion:function(a){this.verbose&&cp.log("End Question Called");if(this.state==this.StateEnum.PLAYING||this.state==this.StateEnum.PAUSED){this.state=this.StateEnum.ENDED;
this.stopLatencyTimer();var c=this.m_quizController&&this.m_quizController.GetIsSubmitAll()&&!this.getIsPretest(),b=this.m_quizController&&this.m_quizController.GetIsInReviewMode();c&&!b&&this.checkAndSetQuestionStatus();b||this.saveAnswerOrder();var d=this.getAnsweredCorrectly();this.endTime=new Date;this.m_questionScore.m_endTime=this.endTime;this.m_questionScore.m_answerScores=this.getAnswerScores();var e=this.getIsIncomplete();this.m_questionScore.m_answersIncomplete=a||b||this.m_answersDisabled||
c?e:!0;this.m_questionScore.m_answeredCorrectly=this.getAnsweredCorrectly();this.m_questionScore.m_isShuffled=this.m_isShuffled;this.m_questionScore.m_partiallyCorrect=this.getIsPartiallyCorrect();a?(this.wasJudged=this.m_questionScore.m_wasJudged=a,this.disableAllOptions(),this.disableQuizButtons(),this.setHandledClick(!0),this.stopLatencyTimer(),b=this.getQuestionScoredPoints(),this.setScore(b),this.m_questionScore.m_scoredPoints=this.getScore(),this.getIsPretest()||(d?this.m_quizController&&cp._cpQuizScopeSlide(this.m_quizController.GetNextQuestionSlideNumber()):
cp._cpQuizScopeSlide(cpInfoCurrentSlideIndex))):(!this.getIsPretest()&&!this.getIsKnowledgeCheck()&&cp._cpQuizScopeSlide(cpInfoCurrentSlideIndex),c?(this.m_questionScore.m_wasJudged=!e,this.setCurrentAttempt(1),this.wasJudged=!this.getIsIncomplete(),b=this.getQuestionScoredPoints(),this.setScore(b),this.m_questionScore.m_scoredPoints=this.getScore()):this.getWasJudged()||(this.wasJudged=this.m_questionScore.m_wasJudged=!1,this.setScore(0),this.m_questionScore.m_scoredPoints=0));d&&(c||this.disableAllOptions(),
this.getIsPretest()&&(cpQuizInfoPreTestTotalCorrectAnswers+=1),cpQuizInfoTotalCorrectAnswers+=1);cpQuizInfoAnswerChoice=this.getSelectedAnswerChoices();this.getIsSurvey()?cpQuizInfoLastSlidePointScored=0:(cpQuizInfoNoQuestionsPerQuiz+=1,cpQuizInfoLastSlidePointScored=this.getQuestionScoredPoints());d=this.getDescriptionText();a&&(this.getIsTracked()&&!this.m_quizController.GetIsInReviewMode())&&(this.m_eachAnswerIsSeparateInteraction?this.shouldReportAnswers&&this.sendInteractionDataForEachAnswer&&
this.sendInteractionDataForEachAnswer(d):this.shouldReportAnswers&&this.m_quizController.SendInteractionData(this.getQuestionScore(),d),a=this.m_quizController.GetScore(),d=this.m_quizController.GetMaxScore(),b=this.m_quizController.GetMinScore(),cp.em.fireEvent("SCORE",{score:a,maxScore:d,minScore:b,quizId:cp.D.quizzingData.quizID}));a=this.m_quizController.GetPlaybackController();cp.m_isLMSPreview&&void 0!=cp.LMSDriverHolder&&cp.toggleLMSPreviewDebugLogsColor(cp.LMSDriverHolder);d=a.GetSendCourseDataWithInteractionData();
this.wasJudged&&(d&&!c)&&((c=a.GetLMSType())&&c.toUpperCase(),a.GetIsTracked(),a.SendCourseData(!1))}},autoJudge:function(){this.verbose&&cp.log("inside autojudge");this.setCurrentAttempt(this.numberOfAttempts-1);this.judge(!0,!0)},checkAndSetQuestionStatus:function(){},judge:function(a,c){this.verbose&&cp.log("inside judge");this.saveAnswerOrder();this.hideLastFeedback(!1);var b=this.shouldShowIncompleteCaption(),d=this.getIsSurvey(),e;this.checkAndSetQuestionStatus();d?(this.verbose&&cp.log("inside judge : isSurvey"),
this.getIsIncomplete()?(this.verbose&&cp.log("inside judge : incomplete"),e=this.getFeedbackToShow(a,c)):(this.setCurrentAttempt(this.currentAttempt+1),this.endQuestion(!0),e=this.getFeedbackToShow(a,!1))):this.currentAttempt<this.numberOfAttempts&&(this.getIsIncomplete()&&!a&&b?e=this.getFeedbackToShow(a,c):(this.setCurrentAttempt(this.currentAttempt+1),e=this.getFeedbackToShow(a,c),this.currentAttempt>=this.numberOfAttempts||this.getAnsweredCorrectly()?this.endQuestion(!0):(this.getIsIncorrect()&&
this.setQuestionStatus(this.QuestionStatusEnum.INCOMPLETE),b=this.m_quizController.GetPlaybackController(),b.GetSendCourseDataWithInteractionData()&&((d=b.GetLMSType())&&(d=d.toUpperCase()),b.GetIsTracked()&&"EMAIL"!=d&&"ACROBAT"!=d&&"INTERNALSERVER"!=d&&"AICC"!=d?b.SendCourseData(!0):b.SendCourseData(!1)))));if(e&&(cp.D[e.name]&&e.captionToBeShown?this.showFeedbackCaptionAndDoAction(e):cp.movie.executeAction(e.action),this.m_quizController&&this.getIsLastPretestQuestion()&&(this.currentAttempt>=
this.numberOfAttempts||this.getAnsweredCorrectly())))this.m_quizController.m_PretestQuestionsDisabled=!0;e=this.getQuestionEventData();cp.em.fireEvent("CPQuestionSubmit",e)},getQuestionEventData:function(){var a={};switch(this.getQuestionScoringType()){case this.QuestionScoringTypeEnum.GRADED:a.Name="GradedQuestion";break;case this.QuestionScoringTypeEnum.SURVEY:a.Name="SurveyQuestion";break;case this.QuestionScoringTypeEnum.PRETEST:a.Name="PretestQuestion";break;default:a.Name="GradedQuestion"}var c=
this.getInteractionType(),b=this.getDescriptionText(),d=this.getCorrectAnswerAsString(),e=this.getChosenAnswerAsString();switch(c){case "sequencing":d=b.answerTexts.correct_response.split("-").join(",");e=b.answerTexts.learner_response.split("-").join(",");break;case "likert":d=e=b.answerTexts.learner_response}a={questionType:"hotspot"==c?"hot-spot":c,objectiveID:this.getObjectiveId(),questionScoringType:a,questionMaxScore:this.getWeighting(),correctAnswer:String(d),questionMaxAttempts:this.numberOfAttempts,
selectedAnswer:String(e),slideNumber:this.m_slideIndex,quizName:"QuizName",interactionID:this.getInteractionId(),questionAttempts:this.currentAttempt,questionNumber:this.getQuestionNumberInQuiz(),questionAnswered:!1==this.getIsIncomplete(),questionScore:this.getScore(),reportAnswers:this.shouldReportAnswers,questionAnsweredCorrectly:this.getAnsweredCorrectly(),infiniteAttempts:9999==this.numberOfAttempts,interactionType:this.getInteractionType(),weighting:this.getWeighting()};cp.IsRunningInACAP&&
(a.descriptionData=b);return a},showFeedbackCaptionAndDoAction:function(a){function c(){b.parentNode.removeChild(b);cp.hide(d);h.setHandledClick(f);cp.movie.executeAction(a.action)}var b,d=a.name,e=cp.D[d].mdi;this.hideLastFeedback(!0);var f;this.slide&&(f=cp.D[this.slide].handled);this.setHandledClick(!1);this.lastFeedbackShown=a;var h=this,g=document.getElementById(d);cp.moveDivElemToTop(g);e=document.getElementById(e);void 0!=e&&cp.moveRewrapElemToTop(e.parentNode);e=cp.D[d];g=e.sc;g=new cp.Shortcut(g.k,
g.c?!0:!1,g.s?!0:!1,g.a?!0:!1);(e=new cp.KeyHandler(function(a){a&&c()},g,e.from,e.to,""))&&cp.movie.stage.addKeyHandler(e);cp.show(d);e=cp.movie.stage.getSlideDiv();b=cp.newElem("div");cp.fixWebkitScaling(b);b.id="feedbackClickDiv";b.style.left="0px";b.style.top="0px";b.style.width="100%";b.style.height="100%";b.style.cursor="pointer";b.style.backgroundColor="#FFFFFF";b.style.opacity=0;b.style.display="block";b.style.position="absolute";b.style.WebkitTapHighlightColor="rgba(0,0,0,0)";e.parentNode.appendChild(b);
cp.registerGestureEvent(b,cp.GESTURE_EVENT_TYPES.TAP,c);cp.registerGestureEvent(b,cp.GESTURE_EVENT_TYPES.DRAG_START,cp.m_gestureHandler.ondragstarthandler);cp.registerGestureEvent(b,cp.GESTURE_EVENT_TYPES.DRAG,cp.m_gestureHandler.ondraghandler);cp.registerGestureEvent(b,cp.GESTURE_EVENT_TYPES.DRAG_END,cp.m_gestureHandler.ondragendhandler);b.style.zIndex=1E4},clearButtonClickHandler:function(){this.clearAnswers()},reviewmodemoveForward:function(){if(this.reviewModeNextButtonDivElement&&!this.reviewModeNextButtonDivElement.disabled&&
this.m_quizController){if(!1==this.m_quizController.GetIsInReviewMode()&&(this.getIsPretest()||!this.m_quizController||!this.m_quizController.GetIsSubmitAll())){var a=this.getQuestionEventData();cp.em.fireEvent("CPQuestionSkip",a)}a=this.m_quizController&&this.m_quizController.GetIsSubmitAll();!this.getWasJudged()&&!a&&this.clearAnswers();if(cpInfoCurrentSlideIndex==cpInfoSlideCount)cpCmndResume=!0;else if(this.getIsLastPretestQuestion())this.m_quizController&&this.m_quizController.ExecutePretestAction(this.getSlideIndex());
else{a=-1;if(this.m_quizController){var c=this.m_quizController.GetGraphManager();if(c&&(a=this.m_quizController.GetNextQuestionSlideNumber(),-1==a))for(var c=c.GetPrevBranch(),b=cpInfoCurrentSlideIndex,d=0;d<c.length;++d){var e=c[d],f="",h=this.m_quizController.GetQuestionsOnSlide(e);if(h&&0<h.length){var g=!1;(h=h[0])&&h.getIsKnowledgeCheck()&&(g=!0);g||(f="Question")}else this.m_quizController.GetAnyScoreSlideIndex()==e&&(f="AnyScoreSlide");if(("AnyScoreSlide"==f||"Question"==f)&&e>b){a=e;break}}}-1==
a?cpCmndNextOnReview=!0:cpCmndGotoSlideAndResume=a}}},moveForward:function(){if(this.skipButtonDivElement&&!this.skipButtonDivElement.disabled&&this.m_quizController){var a=this.m_quizController.GetIsInReviewMode();if(!1==a&&(this.getIsPretest()||!this.m_quizController||!this.m_quizController.GetIsSubmitAll())){var c=this.getQuestionEventData();cp.em.fireEvent("CPQuestionSkip",c)}c=this.m_quizController&&this.m_quizController.GetIsSubmitAll();!this.getWasJudged()&&!c&&this.clearAnswers();if(cpInfoCurrentSlideIndex==
cpInfoSlideCount)cpCmndResume=!0;else if(this.getIsLastPretestQuestion())this.m_quizController&&this.m_quizController.ExecutePretestAction(this.getSlideIndex());else{if((a=!1==a&&!(this.getIsPretest()||c))&&this.m_quizController)if(a=this.m_quizController.GetGraphManager(),void 0!=a){c=a.getNextSlideList(this.getSlideIndex());if(1==c.length)cpCmndGotoSlideAndResume=c[0];else for(var c=a.getBranchHistory(),b=c.length-1;0<=b;--b){var d=c[b];if(d==this.getSlideIndex()&&b!=c.length-1){var e=c[b+1];if(a.getIsJumpValid(d,
e)){cpCmndGotoSlideAndResume=e;break}}}return}cpCmndNextOnReview=!0}}},moveBackward:function(){if(this.backButtonDivElement&&!this.backButtonDivElement.disabled&&this.m_quizController){var a=this.m_quizController.GetIsInReviewMode(),c=this.m_quizController&&this.m_quizController.GetIsSubmitAll();if(!1==a&&this.m_quizController&&(a=this.m_quizController.GetGraphManager(),void 0!=a)){for(var b=a.getBranchHistory(),d=b.length-1;0<=d;--d){var e=b[d];if(e==this.getSlideIndex()&&0!=d){var f=b[d-1];if(a.getIsJumpValid(f,
e)){!this.getWasJudged()&&!c&&this.clearAnswers();cpCmndGotoSlideAndResume=f;break}}}return}!this.getWasJudged()&&!c&&this.clearAnswers();cpCmndPreviousOnReview=!0}},reviewmodemoveBackward:function(){if(this.reviewModeBackButtonDivElement&&!this.reviewModeBackButtonDivElement.disabled&&this.m_quizController){this.m_quizController.GetIsInReviewMode();var a=this.m_quizController&&this.m_quizController.GetIsSubmitAll();!this.getWasJudged()&&!a&&this.clearAnswers();cpCmndPreviousOnReview=!0}},skipButtonClickHandler:function(a){cp.D[a.id]&&
this.moveForward()},backButtonClickHandler:function(a){cp.D[a.id]&&this.moveBackward()},reviewModeNextButtonClickHandler:function(a){cp.D[a.id]&&this.reviewmodemoveForward()},reviewModeBackButtonClickHandler:function(a){cp.D[a.id]&&this.reviewmodemoveBackward()},clearAnswers:function(){},disableAllOptions:function(){},getIsStarted:function(){return this.m_isStarted},startQuestion:function(){if(this.m_quizController){void 0==this.m_questionScore&&(this.m_questionScore=new cp.QuestionScore);var a=this.m_quizController.GetIsInReviewMode(),
c=this.m_quizController.GetGoToQuizScopeActionExecuted();if(c&&!a||this.getIsKnowledgeCheck())this.getIsPretest()||this.resetQuestionData(),this.m_quizController.SetGoToQuizScopeActionExecuted(!1);this.verbose&&cp.log("current state : "+this.state);if(this.state==this.StateEnum.INIT||this.state==this.StateEnum.ENDED){this.verbose&&cp.log("startQuestion");this.state=this.StateEnum.PLAYING;this.updateQuizProgressIndicator();if((a||this.getWasJudged())&&!this.getIsKnowledgeCheck()){var b=c&&!this.getIsPretest()&&
!this.getIsKnowledgeCheck();if(a||!b)this.disableAllOptions(),this.disableQuizButtons();a&&this.canShowReviewIcons()&&this.markQuestionFeedback()}else this.startLatency(),this.startTime=new Date,0==this.m_questionScore.m_numTries&&(this.m_questionScore.m_startTime=this.startTime);a=this.m_quizController.GetIsSubmitAll()&&!this.getIsPretest();if(0==this.getCurrentAttempt()&&!a||this.getIsIncomplete())if(this.getCurrentAttempt()<this.getNumberOfAttempts()&&(!this.m_quizController.GetIsPretestQuestionsDisabled()||
!this.getIsPretest()))c||this.clearAnswers();cpQuizInfoPointsPerQuestionSlide=this.getWeighting();cpQuizInfoNegativePointsOnCurrentQuestionSlide=this.getNegativeWeight();cpQuizInfoQuestionPartialScoreOn=this.isPartialScore;void 0!=this.timeLimit&&(cpQuizInfoQuestionSlideTiming=this.timeLimit/1E3);cpQuizInfoAnswerChoice="";cpQuizInfoQuestionSlideType=this.getInteractionType();cpQuizInfoMaxAttemptsOnCurrentQuestion=this.numberOfAttempts;c=this.m_quizController.GetPassingScore();a=this.m_quizController.GetMaxScore();
cpQuizInfoQuizPassPoints=c;0!=a&&(cpQuizInfoQuizPassPercent=parseInt(100*c/a))}this.m_isStarted=!0}},markQuestionFeedback:function(){if(this.getWasJudged()&&this.questionTextCanvasName){var a=cp.D[this.questionTextCanvasName],c="re-"+this.questionTextCanvasName,b=cp.newElem("img");cp.fixWebkitScaling(b);var d=this.getQuestionStatus();d==this.QuestionStatusEnum.CORRECT?(b.src=cp.movie.im.m_projectImages["assets/htmlimages/correct_question_normal.png"].nativeImage.src,b.setAttribute("tabIndex","-1"),
void 0!=this.m_correctFeedbackText&&(b.setAttribute("aria-label",this.m_correctFeedbackText),cp.removeAccessibilityOutline(b),b.setAttribute("role","img"))):d==this.QuestionStatusEnum.PARTIAL_CORRECT?(b.src=cp.movie.im.m_projectImages["assets/htmlimages/partial_correct_question_normal.png"].nativeImage.src,b.setAttribute("tabIndex","-1"),void 0!=this.m_partialCorrectFeedbackText&&(b.setAttribute("aria-label",this.m_partialCorrectFeedbackText),cp.removeAccessibilityOutline(b),b.setAttribute("role",
"img"))):(b.src=cp.movie.im.m_projectImages["assets/htmlimages/incorrect_question_normal.png"].nativeImage.src,void 0!=this.m_incorrectDisplayChosenText&&(void 0!=this.m_incorrectDisplayCorrectText&&"Hotspot"!=this.getQuestionType())&&(d="".concat(this.m_incorrectDisplayChosenText," ",this.getChosenAnswerAsStringForReview()," ",this.m_incorrectDisplayCorrectText," ",this.getCorrectAnswerAsStringForReview()),b.setAttribute("tabIndex","-1"),b.setAttribute("aria-label",d),cp.removeAccessibilityOutline(b),
b.setAttribute("role","img")));a.sh&&(d=a.sh.a,cp.applyShadow(b,a.sh.d*Math.cos(Math.PI*d/180)+"px "+a.sh.d*Math.sin(Math.PI*d/180)+"px "+a.sh.b+"px "+cp.ConvertRGBToRGBA(a.sh.c,a.sh.o)+(a.sh.i?" inset":"")));b.style.left="-30px";b.style.top="0px";b.style.position="absolute";document.getElementById(c).appendChild(b)}},getWasJudged:function(){return this.wasJudged},setHandledClick:function(a){this.slide&&(cp.D[this.slide].handled=a)},enableButton:function(a){void 0!=a&&(cp.enable(a.id),a.disabled=
!1,a.style.cursor="pointer",cp.registerGestureEvent(a,cp.GESTURE_EVENT_TYPES.TAP,cp.QuizButtonCH))},enableQuizButtons:function(){this.verbose&&cp.log("Enabling buttons");this.enableButton(this.submitButtonDivElement);this.enableButton(this.clearButtonDivElement);this.enableButton(this.submitAllButtonDivElement);this.m_areButtonsDisabled=!1},disableButton:function(a){void 0!=a&&(cp.disable(a.id),a.disabled="disabled",a.tabIndex=-1,a.style.cursor="default",a.onclick="",cp.removeGestureEvent(a,cp.GESTURE_EVENT_TYPES.TAP))},
disableQuizButtons:function(){this.verbose&&cp.log("Disabling buttons");if(this.m_quizController){var a=!0;this.m_quizController.GetIsSubmitAll()&&!this.getIsPretest()&&(!this.m_quizController.GetIsInReviewMode()&&!this.m_quizController.m_submittedAllQuestions)&&(a=!1);a&&(this.disableButton(this.submitButtonDivElement),this.disableButton(this.clearButtonDivElement),this.disableButton(this.submitAllButtonDivElement),this.m_areButtonsDisabled=!0)}},shouldDisableSkipButton:function(){var a=!1;if(this.m_quizController.GetIsInReviewMode())return!1;
var c=this.m_quizController.GetIsSubmitAll();if("mustAnswer"==this.m_quizController.GetQuestionAdvanceType()&&!c&&!this.m_answersDisabled&&!this.getIsPretest()&&!this.getIsKnowledgeCheck())return!0;var b=this.getSlideIndex();if(0<=b&&(!this.getIsPretest()&&!c)&&(c=this.m_quizController.GetGraphManager(),void 0!=c)){var d=c.getNextSlideList(b);if(void 0!=d)if(1==d.length)a=!1;else if(a=!0,d=c.getBranchHistory(),void 0!=d)for(var e=d.length-1;0<=e;--e){var f=d[e];if(f==b&&e!=d.length-1&&c.getIsJumpValid(f,
d[e+1])){a=!1;break}}}return a},shouldDisableReviewModeNextButton:function(){return this.m_quizController.GetIsInReviewMode()?!1:!0},canShowReviewIcons:function(){return this.getIsSurvey()||this.getIsIncomplete()||!this.m_quizController||!this.m_quizController.GetIsInReviewMode()||this.getIsPretest()||this.getIsKnowledgeCheck()?!1:!0},getIsAttempted:function(){return 0<this.currentAttempt},resumeSelectedAnswers:function(a){if(void 0!=a){this.m_selectedAnswersArr=[];for(var c=0;c<a.length;++c)"1"==
a[c].m_chosenAnswer&&this.m_selectedAnswersArr.push(a[c].m_answerID)}},getChosenAnswerAsString:function(){return this.getSelectedAnswersAsString()},getCorrectAnswerAsString:function(){var a=this.getExpectedCorrectAnswerIDList();if(0>=a.length)return"0";for(var c=a[0],b=1;b<a.length;++b)c+=";"+a[b];return c},getChosenAnswerAsStringForReview:function(){return""},getCorrectAnswerAsStringForReview:function(){return""},getAnswerScores:function(){var a=[];if(!this.answerOptions)return a;for(var c=this.m_selectedAnswersArr.slice(0),
b={},d=0;d<c.length;++d)b[c[d]]=c[d];for(c=0;c<this.answerOptions.length;++c)if(d=cp.D[this.answerOptions[c]]){var e=new cp.AnswerScore;e.m_answerID=d.aid;e.m_correctAnswer=d.ic?"1":"0";e.m_chosenAnswer=b[e.m_answerID]?"1":"0";a.push(e)}return a},getQuestionScore:function(){if(this.m_questionScore){this.m_questionScore.m_isPretestQuestion=this.getIsPretest();this.m_questionScore.m_isKnowledgeCheck=this.getIsKnowledgeCheck();this.m_questionScore.m_slideNum=this.m_slideIndex;this.m_questionScore.m_questionNumInQuiz=
this.getQuestionNumberInQuiz();this.getQuestionStatus();this.m_questionScore.m_numTries=this.getCurrentAttempt();this.m_questionScore.setinteractionType(this.getInteractionType());this.setQuestionSpecificScoreProperties(this.m_questionScore.m_questionSpecificScore);this.m_questionScore.m_interactionID=this.getInteractionId();this.m_questionScore.m_objectiveID=this.getObjectiveId();this.m_questionScore.m_chosenAnswersAsString=this.getChosenAnswerAsString();this.m_questionScore.m_isCorrectAsString=
this.getAnsweredCorrectly()?"C":"W";this.m_questionScore.m_correctAnswersAsString=this.getCorrectAnswerAsString();this.m_questionScore.m_scoringType=this.getQuestionScoringType();this.m_questionScore.m_maxTries=this.numberOfAttempts;var a=this.getDescriptionText();this.m_questionScore.m_descriptionTexts=a;this.m_questionScore.m_weighting=this.getWeighting();this.m_questionScore.m_scoredPoints=this.getScore();this.m_questionScore.m_negativeWeight=this.getNegativeWeight();addLeadingZero=function(a){return 10>
a?"0"+a:a};a=this.getLatency();this.m_questionScore.m_latencyAsSeconds=a;this.m_questionScore.m_latencyAsString=addLeadingZero(Math.round(a/3600))+":"+addLeadingZero(Math.round(a%3600/60))+":"+addLeadingZero(Math.round(a)%60);a=new Date;this.m_questionScore.m_curDateAsString=addLeadingZero(a.getMonth()+1)+"/"+addLeadingZero(a.getDate())+"/"+a.getFullYear();this.m_questionScore.m_curDateAsString2=a.getFullYear()+"/"+addLeadingZero(a.getMonth()+1)+"/"+addLeadingZero(a.getDate());this.m_questionScore.m_curTimeAsSecondsSinceMidnight=
3600*a.getHours()+60*a.getMinutes()+a.getSeconds();return this.m_questionScore}},getSlide:function(){return this.slide},updateQuizProgressIndicator:function(){if(this.m_quizController&&!(0>=this.m_quizController.GetQuestionsOnSlide(this.m_slideIndex).length)&&this.state==this.StateEnum.PLAYING){var a=this.m_quizController.GetGraphManager();a&&(!this.getIsPretest()&&!this.getIsKnowledgeCheck())&&(a.setQuestionSlideProgressNumber(this.m_slideIndex),this.m_quizController.GetFirstNonPretestQuestionEncountered()||
(this.m_quizController.SetFirstNonPretestQuestionEncountered(!0),0>=a.getCompletionBranch().length&&this.m_quizController.SetForceAbsoluteProgressType(!0)))}},setQuestionSpecificScoreProperties:function(a){if(void 0!=a){var c="",b=this.questionData.ao,d=this.m_answerOrderArray;if(d&&b&&0<d.length&&d.length==b.length){for(var e={},f=0;f<b.length;++f){var h=b[f].split(":");e[h[0]]=h[1]}b=d[0];c+=e[b];for(f=1;f<d.length;++f)b=d[f],c+=";"+e[b]}a.m_answerOrderArrayAsString=c}},restoreFromQuestionSpecificScoreProperties:function(a){if(void 0!=
a&&(a=a.m_answerOrderArrayAsString,!(void 0==a||""==a))){var a=a.split(";"),c=this.questionData.ao,b=this.answerOptions;if(b&&c&&!(0>=b.length||b.length!=c.length||b.length!=a.length)){for(var b={},d=0;d<c.length;++d){var e=c[d].split(":");b[e[1]]=e[0]}d=a[0];c=""+b[d];for(e=1;e<a.length;++e)d=a[e],c+=";"+b[d];this.setAnswerOrder(c)}}}};
cp.InteractiveItemQuestion=function(a,b){cp.InteractiveItemQuestion.baseConstructor.call(this,a,b);this.m_item=void 0};cp.inherits(cp.InteractiveItemQuestion,cp.Question);cp.InteractiveItemQuestion.prototype.getIsInteractiveWidget=function(){return!1};cp.InteractiveItemQuestion.prototype.startQuestion=function(){cp.InteractiveItemQuestion.superClass.startQuestion.call(this);this.setInteractionQuestionState();0==this.currentAttempt&&this.enable();this.m_quizController.GetIsInReviewMode()&&this.disable()};
cp.InteractiveItemQuestion.prototype.endQuestion=function(a){if(this.state==this.StateEnum.PLAYING||this.state==this.StateEnum.PAUSED)(!this.m_quizController||!this.m_quizController.GetIsInReviewMode())&&this.saveAnswerOrder(),this.m_questionScore&&this.setQuestionSpecificScoreProperties(this.m_questionScore.m_questionSpecificScore);a?cp.InteractiveItemQuestion.superClass.endQuestion.call(this,a):this.flushToLMS()};
cp.InteractiveItemQuestion.prototype.flushToLMS=function(){if(this.m_questionScore){this.m_questionScore.m_answerScores=this.getAnswerScores();var a=this.getIsIncomplete();this.m_questionScore.m_answersIncomplete=a;this.m_questionScore.m_answeredCorrectly=this.getAnsweredCorrectly();this.m_questionScore.m_isShuffled=this.m_isShuffled;this.m_questionScore.m_partiallyCorrect=this.getIsPartiallyCorrect();this.m_questionScore.m_wasJudged=this.wasJudged;this.m_questionScore.m_scoredPoints=this.getScore()}var a=
this.m_quizController.GetPlaybackController(),b=a.GetSendCourseDataWithInteractionData(),c=this.m_quizController&&this.m_quizController.GetIsSubmitAll()&&!this.getIsPretest();b&&!c&&((b=a.GetLMSType())&&(b=b.toUpperCase()),a.GetIsTracked()&&"EMAIL"!=b&&"ACROBAT"!=b&&"INTERNALSERVER"!=b?a.SendCourseData(!0):a.SendCourseData(!1))};cp.InteractiveItemQuestion.prototype.enable=function(){};cp.InteractiveItemQuestion.prototype.disable=function(){};
cp.InteractiveItemQuestion.prototype.setInteractionQuestionState=function(){};cp.InteractiveItemQuestion.prototype.saveAnswerOrder=function(){this.m_questionScore&&(this.m_answerOrderArray=[])};cp.InteractiveItemQuestion.prototype.disableAnswers=function(){};
cp.InteractiveItemQuestion.prototype.disableAllOptions=function(){if(this.m_quizController){var a=!0;this.m_quizController.GetIsSubmitAll()&&!this.getIsPretest()&&(!this.m_quizController.GetIsInReviewMode()&&!this.m_quizController.m_submittedAllQuestions)&&(a=!1);a&&(this.disableAnswers(),this.m_answersDisabled=!0)}};cp.InteractiveItemQuestion.prototype.setQuestionSpecificScoreProperties=function(a){void 0!=a&&(a.m_answerOrderArrayAsString="")};
cp.InteractiveItemQuestion.prototype.restoreFromQuestionSpecificScoreProperties=function(){};
cp.DragDropQuestion=function(a,c,b){cp.DragDropQuestion.baseConstructor.call(this,a,c,b);this.m_DDInteraction=void 0;this.answerOptions=this.getAnswerOptions();this.m_PendingFuncs=[]};cp.inherits(cp.DragDropQuestion,cp.InteractiveItemQuestion);cp.DragDropQuestion.prototype.setDDInteraction=function(a){this.m_DDInteraction=a;this.m_DDInteraction_loaded=!0;this.doPostInteractionLoadedStuff();this.m_isStarted||this.startQuestion()};
cp.DragDropQuestion.prototype.callLaterAfterInteractionLoad=function(a,c){var b=new cp.DDInteractionCallLaterData;b.m_Function=a;b.m_Args=c;this.m_PendingFuncs.push(b)};cp.DragDropQuestion.prototype.doPostInteractionLoadedStuff=function(){for(var a=this.m_PendingFuncs.length,c=0;c<a;++c){var b=this.m_PendingFuncs[c];b&&b.m_Function&&(void 0===b.m_Args?b.m_Function():b.m_Function(b.m_Args))}this.m_PendingFuncs=[]};
cp.DragDropQuestion.prototype.setInteractionQuestionState=function(){if(this.m_questionScore)if(this.m_DDInteraction)this.m_DDInteraction.setStateToStore&&this.m_DDInteraction.setStateToStore(this.m_answerOrderArray.toString());else{var a=this;this.callLaterAfterWidgetLoad(function(){a.setInteractionQuestionState()})}};
cp.DragDropQuestion.prototype.resetQuestionData=function(){cp.DragDropQuestion.superClass.resetQuestionData.call(this);this.m_quizController.GetGoToQuizScopeActionExecuted()||(this.m_selectedAnswersArr=[],this.m_answerOrderArray=[],this.isDisabled=!1)};cp.DragDropQuestion.prototype.startQuestion=function(){if(this.m_DDInteraction)cp.DragDropQuestion.superClass.startQuestion.call(this);else{var a=this;this.callLaterAfterInteractionLoad(function(){a.startQuestion()})}};
cp.DragDropQuestion.prototype.clearAnswers=function(){this.verbose&&cp.log("Inside Clear Answers");var a=this.m_quizController&&this.m_quizController.GetIsSubmitAll()&&!this.getIsPretest(),a=(a=!1===this.getWasJudged()||a&&!1===this.m_quizController.m_submittedAllQuestions)&&!this.m_quizController.GetIsInReviewMode();if(!1!==a)if(this.m_selectedAnswersArr=[],this.verbose&&cp.log("Not Attempted. Hence Clearing"),this.m_DDInteraction)this.m_DDInteraction.resetAnswers();else{var c=this;this.callLaterAfterInteractionLoad(function(){c.clearAnswers()})}};
cp.DragDropQuestion.prototype.disableAnswers=function(){this.isDisabled=!0;if(this.m_DDInteraction)this.m_DDInteraction.disableInteraction();else{var a=this;this.callLaterAfterInteractionLoad(function(){a.disableAnswers()})}};cp.DragDropQuestion.prototype.getAnswerScores=function(){return cp.DragDropQuestion.superClass.getAnswerScores.call(this)};cp.DragDropQuestion.prototype.setQuestionSpecificScoreProperties=function(a){void 0!==a&&(a.m_answerOrderArrayAsString=this.m_answerOrderArray.toString())};
cp.DragDropQuestion.prototype.restoreFromQuestionSpecificScoreProperties=function(a){void 0!==a&&(a=a.m_answerOrderArrayAsString,void 0===a||""===a||this.setAnswerOrder(a))};cp.DragDropQuestion.prototype.setAnswerOrder=function(a){a&&!(0>=a.length)&&(this.m_answerOrderArray=a.split(",").slice(0))};cp.DragDropQuestion.prototype.resumeSelectedAnswers=function(){return cp.DragDropQuestion.superClass.resumeSelectedAnswers.call(this)};cp.DragDropQuestion.prototype.getChosenAnswerAsString=function(){return cp.DragDropQuestion.superClass.getChosenAnswerAsString.call(this)};
cp.DragDropQuestion.prototype.getCorrectAnswerAsString=function(){return cp.DragDropQuestion.superClass.getCorrectAnswerAsString.call(this)};cp.DragDropQuestion.prototype.getChosenAnswerAsStringForReview=function(){return this.getChosenAnswerAsString()};cp.DragDropQuestion.prototype.getCorrectAnswerAsStringForReview=function(){return this.getCorrectAnswerAsString()};cp.DragDropQuestion.prototype.saveAnswerOrder=function(){this.m_DDInteraction.getStateToStore&&(this.m_answerOrderArray=this.m_DDInteraction.getStateToStore().split(","))};
cp.MatchingItem=function(a,c){cp.MatchingItem.baseConstructor.call(this,a,c);this.canvasDivName=this.getAttribute("cn");this.labelCanvasDivName=this.getAttribute("ln");var d=this.getAttribute("b");this.bounds={minX:d[0],minY:d[1],maxX:d[2],maxY:d[3]};d=this.getAttribute("vb");this.vbounds={minX:d[0],minY:d[1],maxX:d[2],maxY:d[3]};this.answerHolderLeft=this.getAttribute("ahl");this.answerHolderTop=this.getAttribute("aht");this.sh=this.getAttribute("sh");this.args=c;cp.responsive&&(this.responsiveCSS=
this.getAttribute("css"))};cp.inherits(cp.MatchingItem,cp.Answer);
cp.MatchingItem.prototype.addAndGetResponsiveLabelCombo=function(a,c){if(cp.responsive){this.answerLabelCanvasNames=a.getAnswerLabels();document.getElementById(c.answerTextCanvasHolder);var d=cp(this.element.id+"_labelDD");d||(d=cp.newElem("div"),cp.fixWebkitScaling(d),d.id=this.element.id+"_labelDD",d.style.position="absolute",d.style.left="0px",d.style.top="0px",d.style.width="100%",d.style.height="100%",this.answerLabelDivElem&&this.answerLabelDivElem.appendChild(d));if(""==d.innerHTML){var e;
e=""+("<select id='"+this.element.id+"_matchingLabel' name='"+this.group+"'>");for(var b=0;b<this.answerLabelCanvasNames.length;++b){var g=cp.D[this.answerLabelCanvasNames[b]];e+="<option value='"+this.answerLabelCanvasNames[b]+"' style='width:100%;height:100%;left:0px;top:0px;'>";g=cp.getAccessibilityString(g);e+=g;e+="</option>"}document.getElementById(d.id).innerHTML=e+"</select> ";var h=document.getElementById(this.element.id+"_matchingLabel");h.style.width="100%";h.style.height="100%";h.style.position=
"absolute";h.style.zIndex=1E3;h.style.opacity=0;var i=this;h.onchange=function(){i.element.oHandler.setIndex(h.selectedIndex)};d="<img id='"+this.element.id+"_spanImageArrow' class='spanArrow' style='position:absolute;right:5px;margin:auto;top:0px;bottom:0px;'>";d+="<div id='"+this.element.id+"_spanImage' style='position:absolute;left:5px; top:5px;height:100%;width:100%;'/>";e=cp(this.element.id+"spanComboBoxTitleImage");e||(e=cp.newElem("span"),e.id=this.element.id+"spanComboBoxTitleImage",e.className=
"spanComboBox",e.innerHTML=d,e.style.width="100%",e.style.height="100%",this.answerLabelDivElem.appendChild(e));var f=document.getElementById(this.element.id+"_spanImage");h.setNewIndex=function(b){if(b!=-1){i.answerLabelCanvasName=i.answerLabelCanvasNames[b];var a=cp.D[i.answerLabelCanvasName];h.selectedIndex=b;i.element.drawLine(i.m_questionObj.getXYForColumn2Option(a.aid,i.element));if(f)if(b=cp.D[a.dn])f.innerHTML=b.rpvt[cp.ResponsiveProjWidth].vt}else{cp.verbose&&cp.log("Inside setNewIndex : "+
b);i.answerLabelCanvasName="";h.selectedIndex=-1;h.value="";h.text="";if(f)f.innerHTML=""}};this.sh&&(d=this.sh.a,cp.applyShadow(this.element,this.sh.d*Math.cos(Math.PI*d/180)+"px "+this.sh.d*Math.sin(Math.PI*d/180)+"px "+this.sh.b+"px "+cp.ConvertRGBToRGBA(this.sh.c,this.sh.o)+(this.sh.i?" inset":"")));h.resetIndex=function(){i.element.oHandler.setIndex(-1)};h.setIndex=function(b){i.element.oHandler.setNewIndex(b)};h.getIndex=function(){return i.element.oHandler.selectedIndex};h.disable=function(){i.element.oHandler.disabled=
"disabled"};h.getWidth=function(){return parseFloat(i.element.oHandler.style.width)};e=h}return e}};
cp.MatchingItem.prototype.drawForResponsive=function(a){if(this.m_questionObj&&this.m_questionObj.getIsStarted()){if(!this.responsiveCSS)return!1;if(this.isDrawn&&!a)return!0;var c=cp.getResponsiveCSS(this.responsiveCSS),d=!1,d=this.re||this.sh&&!this.sh.i,e=void 0!=this.tr;if(this.currentCSS==c&&!d&&!e&&!a)return!0;this.currentCSS=c;a=this.element.id;if(cp.movie.playbackController&&(d=cp.movie.playbackController.GetQuizController())){d.GetIsInReviewMode();var b=this.m_questionObj.shouldDisableOptions(),
d=cp.movie.stage.getSlideDiv(),e=d.firstChild;d.getBoundingClientRect();this.group=this.m_questionObj.getAnswerGroupName();var g=cp.D[a];this.isSkipped=this.isCorrect=!1;var h=b?"default":"pointer";this.currentOptionObj||(this.currentOptionObj=this.m_questionObj.getAnswerOption(a),this.answerTextCanvasDivName=this.currentOptionObj.name,g.answerTextDivName=this.answerTextCanvasDivName);var i=cp.D[this.answerTextCanvasDivName];this.zIndex=cp.D[g.actid].zIndex;var f=this,l=cp.movie.stage.getSlideDiv();
this.element.drawLine=function(b){var a=false;if(b==void 0){var d=cp(f.lLineCanvasID+"_matchingLineCanvasDiv");if(d==void 0)return;d.innerHTML="";f.answerLabelCanvasName=f.answerLabelCanvasNames[f.element.oHandler.getIndex()];b=f.m_questionObj.getXYForColumn2Option(cp.D[f.answerLabelCanvasName].aid,f.element);a=true}var c=l.getBoundingClientRect(),d=f.element.parentElement.getBoundingClientRect(),e=(d.left+d.width-c.left)/cp("div_Slide").scaleFactor,c=(d.top+d.height/2-c.top)/cp("div_Slide").scaleFactor,
h=b.x,b=b.y;if(cp.verbose){cp.log("lElemBoundingRect.left : "+d.left);cp.log("lElemBoundingRect.top : "+d.top);cp.log("lElemBoundingRect.width : "+d.width);cp.log("lElemBoundingRect.height : "+d.height);cp.log("startX : "+e);cp.log("startY : "+c);cp.log("endX : "+h);cp.log("endY : "+b)}var i=e<h?e:h,g=c<b?c:b,j=h-e>0?h-e:e-h,k=b-c>0?b-c:c-b;f.lLineCanvasID=f.element.id+"_Line";d=document.getElementById(f.lLineCanvasID+"_matchingLineCanvasDiv");if(d==void 0&&!a){d=cp.newElem("div");cp.fixWebkitScaling(d);
d.id=f.lLineCanvasID+"_matchingLineCanvasDiv"}else d.innerHTML="";d.style.display="block";d.style.position="absolute";d.style.left=i-10+"px";d.style.top=g-10+"px";d.style.width=j+20+"px";d.style.height=k+20+"px";cp.addRewrapObjectAsPerRestOfProjectItem(d);a=cp.newElem("canvas");a.id=f.lLineCanvasID+"_matchingLineCanvas";d.appendChild(a);d.style.zIndex=f.zIndex;a.width=j+20;a.height=k+20;j=a.getContext("2d");j.beginPath();j.moveTo(e-parseFloat(d.style.left),c-parseFloat(d.style.top));j.lineTo(h-parseFloat(d.style.left),
b-parseFloat(d.style.top));j.stroke();a.style.display="block"};this.element.resetMatch=function(){f.element.oHandler.resetIndex();var b=document.getElementById(f.lLineCanvasID+"_matchingLineCanvasDiv");b!=void 0&&b.parentElement&&b.parentElement.removeChild(b)};this.element.removeOpenReviewAreas=function(){var b=document.getElementById(f.m_questionObj.getAssociatedObjName()),a=document.getElementById(f.element.id+"_correctMatchingReview");a!=void 0&&b.parentNode.removeChild(a)};this.element.addReviewButton=
function(){var b=document.getElementById(f.m_questionObj.getAssociatedObjName()),a=f.element,d=f.element.id+"_reviewButton",c=document.getElementById(d);c||(c=cp.newElem("img"));c.id=d;cp.fixWebkitScaling(c);c.className="sequenceReviewImage";c.style.position="absolute";var d=l.getBoundingClientRect(),e=a.parentElement.getBoundingClientRect();c.style.left=e.left-d.left+"px";c.style.top=e.bottom-d.top+"px";f.reviewButtonCH=function(b){if(!cp.disableInteractions){var d=a.id+"_correctMatchingReview",
c=document.getElementById(d);c==void 0&&(c=cp.newElem("div"));cp.fixWebkitScaling(c);var e="cp-reviewUL";cp.MSIE==cp.browser&&(e="cp-reviewULIE");for(var e="<ul class='"+e+"' style='padding-left:20px;padding-right:20px'>",h=0;h<f.m_questionObj.Column2Options.length;++h){var i=cp.D[f.m_questionObj.Column2Options[h]],g=cp.D[cp.D[i.dn+"mtcha"].cn];i.aid==cp.D[cp.D[a.id].answerTextDivName].aid&&(e=e+("<li>"+cp.getAccessibilityString(g)+cp(i.dn+"c-vtext").innerText+"</li>"))}e=e+"</ul>"+("<img id='matchingReviewCloseButton' src='"+
cp.movie.im.m_projectImages["assets/htmlimages/closeReviewButton.png"].nativeImage.src+"' style='right:6px;top:6px;position:absolute'>");c.id=d;c.className="sequenceReviewArea";c.style.position="absolute";h=document.getElementById(a.id+"_reviewButton");d=l.getBoundingClientRect();h=h.getBoundingClientRect();c.style.left=h.right-d.left+"px";c.style.top=h.top-d.top+"px";c.innerHTML=e;b.stopPropagation&&b.stopPropagation();f.m_questionObj.showReviewArea(c)}};cp.registerGestureEvent(c,cp.GESTURE_EVENT_TYPES.TAP,
f.reviewButtonCH);b.parentNode.appendChild(c);c.style.zIndex=1E3};this.element.disableOption=function(){b=true;f.element.tabIndex=-1};this.answertextParentDiv=cp(this.element.id+"canvasHolder");if(!this.answertextParentDiv&&(this.answertextParentDiv=cp.newElem("div"),cp.fixWebkitScaling(this.answertextParentDiv),cp.addRewrapObjectAsPerRestOfProjectItem(this.answertextParentDiv),this.answertextParentDiv.id=this.element.id+"canvasHolder",g.answerTextCanvasHolder=this.answertextParentDiv.id,this.answertextParentDiv.setAttribute("class",
"cp-rewrap"),this.answertextParentDiv.style.zIndex=this.zIndex,cp.applyResponsiveStyles(this.answertextParentDiv,c),this.adjustPositionWithAnswerArea(c,this.answertextParentDiv),this.matchingAnswerCanvasElement=cp(this.answerTextCanvasDivName),this.matchingAnswerCanvasElement||(this.matchingAnswerCanvasElement=cp.newElem("canvas"),canvas=this.canvas=cp.createCanvas(0,0,cp.D.project.w,cp.D.project.h,this.matchingAnswerCanvasElement),this.matchingAnswerCanvasElement.setAttribute("class","cp-shape"),
this.matchingAnswerCanvasElement.setAttribute("name",this.group),this.matchingAnswerCanvasElement.id=this.answerTextCanvasDivName,this.answertextParentDiv.appendChild(this.matchingAnswerCanvasElement)),!this.answertextCanvasShape))this.answertextCanvasShape=new cp.Shape(this.matchingAnswerCanvasElement,cp.D[this.answerTextCanvasDivName]),this.answertextCanvasShape.modifyParent=!1,this.answertextCanvasShape.start(),i&&cp.updateVarText(cp(i.dn),!0,!0);var i=cp.D[this.labelCanvasDivName],j=i.dn,k=document.getElementById(this.labelCanvasDivName);
k&&(this.answerLabelCanvasParentElement=k.parentElement);this.answerLabelDivElem=document.getElementById(j);cp.applyResponsiveStyles(this.answerLabelDivElem,i.css[cp.ResponsiveProjWidth]);this.element.oHandler?this.element.oHandler.setIndex(this.element.oHandler.getIndex()):(j=this.m_questionObj.getSelectedIndex(this.currentOptionObj.selectedAnswerLabel),this.element.oHandler=this.addAndGetResponsiveLabelCombo(this.m_questionObj,g,j),g.oHandler=this.element.oHandler,this.element.oHandler.setIndex(j),
-1==j&&(this.isSkipped=!0),this.isCorrect=this.m_questionObj.getIsOptionCorrect(this.element,j));cp.applyResponsiveStyles(this.element.parentElement,c);this.adjustPositionWithAnswerArea(g.css[cp.ResponsiveProjWidth],this.matchingAnswerCanvasElement.parentElement,!0);this.adjustPositionWithAnswerArea(g.css[cp.ResponsiveProjWidth],this.element.parentElement,!0);this.matchingAnswerCanvasElement.parentElement.getBoundingClientRect();this.answerLabelDivElem.getBoundingClientRect();this.adjustPositionWithAnswerArea(i.css[cp.ResponsiveProjWidth],
this.answerLabelDivElem,!0);this.adjustPositionWithAnswerArea(i.css[cp.ResponsiveProjWidth],this.answerLabelCanvasParentElement,!0);e.insertBefore(this.answertextParentDiv,this.answerLabelCanvasParentElement);d.insertBefore(this.element.parentElement,this.answerLabelDivElem);this.element.style.left="0px";this.element.style.top="0px";this.element.style.width="100%";this.element.style.height="100%";this.element.style.cursor=h;this.element.style.borderRadius="5px";this.element.style.position="absolute";
this.element.style.background="#000000";this.element.style.opacity=0;b||this.m_questionObj.addDragEvents(this.element.id);this.element.parentElement.getBoundingClientRect();this.element.getBoundingClientRect();cp(this.answerAreaItemName).getBoundingClientRect();b&&(this.element.style.cursor="default",this.element.oHandler.disable(),this.element.tabIndex=-1,this.m_questionObj.getWasJudged()&&this.m_questionObj.canShowReviewIcons()&&(this.m_questionObj.getAnsweredCorrectly()?this.reviewIconImage||(this.reviewIconImage=
cp.newElem("img"),this.reviewIconImage.id=a+"_reviewCorrect",this.reviewIconImage.src=cp.movie.im.m_projectImages["assets/htmlimages/correct_answer_normal.png"].nativeImage.src,this.reviewIconImage.tabIndex=-1,this.reviewIconImage.style.position="absolute",this.answerLabelDivElem.appendChild(this.reviewIconImage),this.reviewIconImage.style.zIndex=this.zIndex,f.sh&&(c=f.sh.a,cp.applyShadow(this.reviewIconImage,f.sh.d*Math.cos(Math.PI*c/180)+"px "+f.sh.d*Math.sin(Math.PI*c/180)+"px "+f.sh.b+"px "+cp.ConvertRGBToRGBA(f.sh.c,
f.sh.o)+(f.sh.i?" inset":"")+(f.sh.i?" inset":"")))):(c=this.isCorrect?cp.movie.im.m_projectImages["assets/htmlimages/correct_answer_normal.png"].nativeImage.src:this.isSkipped?cp.movie.im.m_projectImages["assets/htmlimages/skip_answer_normal.png"].nativeImage.src:cp.movie.im.m_projectImages["assets/htmlimages/incorrect_answer_normal.png"].nativeImage.src,this.reviewIconImage||(this.reviewIconImage=cp.newElem("img"),this.reviewIconImage.id=a+"_reviewIncorrect",this.reviewIconImage.src=c,this.reviewIconImage.tabIndex=
-1,this.reviewIconImage.style.position="absolute",this.answerLabelDivElem.appendChild(this.reviewIconImage),this.isCorrect||this.element.addReviewButton(),this.reviewIconImage.style.zIndex=this.zIndex,f.sh&&(c=f.sh.a,cp.applyShadow(this.reviewIconImage,f.sh.d*Math.cos(Math.PI*c/180)+"px "+f.sh.d*Math.sin(Math.PI*c/180)+"px "+f.sh.b+"px "+cp.ConvertRGBToRGBA(f.sh.c,f.sh.o)+(f.sh.i?" inset":""))))),this.reviewIconImage.style.left="-20px",this.reviewIconImage.style.top="0px"));this.isDrawn||this.m_questionObj.registerColumn1Option(this.element);
this.isDrawn=!0;this.visible||(this.element.style.visibility="hidden");return!0}}};
cp.MatchingItem.prototype.addAndGetLabelCombo=function(a,c){if(!cp.responsive){this.answerLabelCanvasNames=a.getAnswerLabels();var d=cp.D[this.answerLabelCanvasNames[0]].b;if(4==d.length)for(var e=0;4>e;++e)d[e]=parseFloat(d[e]);else d=[0,0,0,0];this.answerLabelCanvasImageBounds={minX:d[0],minY:d[1],maxX:d[2],maxY:d[3]};var e=this.answerLabelCanvasImageBounds.maxX-this.answerLabelCanvasImageBounds.minX,b=this.answerLabelCanvasImageBounds.maxY-this.answerLabelCanvasImageBounds.minY;document.getElementById(c.answerTextCanvasHolder);
var g=cp.newElem("div");cp.fixWebkitScaling(g);g.id=this.element.id+"_labelDD";g.style.position="absolute";g.style.left="0px";g.style.top="-2px";g.style.width=e+"px";g.style.height=b+"px";this.element.parentElement.appendChild(g);if(""==g.innerHTML){var h;h=""+("<select class='mydds' id='"+this.element.id+"_matchingLabel' name='"+this.group+"'>");for(var i=0;i<this.answerLabelCanvasNames.length;++i){var f=cp.D[this.answerLabelCanvasNames[i]];h+="<option value='"+this.answerLabelCanvasNames[i]+"' style='position:absolute;width:"+
e+"px' title='"+f.lip+"'>";h=cp.DESKTOP!=cp.device?h+f.accstr:h+(f.accstr+a.getTextForColumn2Option(cp.trimStartingAndTrailingSpaces(f.accstr)));h+="</option>"}document.getElementById(g.id).innerHTML=h+"</select> ";var l=document.getElementById(this.element.id+"_matchingLabel");l.style.width=e+30+"px";l.style.height=b+"px";l.style.position="absolute";l.style.zIndex=1E3;if(cp.DESKTOP!=cp.device){var j;l.style.opacity=0;var k=this;l.onchange=function(){k.element.oHandler.setIndex(l.selectedIndex)};
d="<img id='"+this.element.id+"_spanImage' style='position:absolute;top:2px; left:5px; width:"+e+"px; height:"+b+"px;'/>";d+="<img id='"+this.element.id+"_spanImageArrow' class='spanArrow' style='position:absolute;left:"+(e+5)+"px;top:3px'/>";g=cp.newElem("span");g.id="spanComboBoxTitleImage";g.className="spanComboBox";g.innerHTML=d;g.style.width=e+30+"px";g.style.height=b+3+"px";this.answerLabelDivElem.appendChild(g);var m=document.getElementById(this.element.id+"_spanImage");l.setNewIndex=function(b){if(-1!=
b){k.answerLabelCanvasName=k.answerLabelCanvasNames[b];var a=cp.D[k.answerLabelCanvasName];j=a.ip;l.selectedIndex=b;k.element.drawLine(k.questionObj.getXYForColumn2Option(a.aid,k.element))}else cp.verbose&&cp.log("Inside setNewIndex : "+b),k.answerLabelCanvasName="",j="assets/htmlimages/placeholder.png",l.selectedIndex=-1,l.value="",l.text="";m.style.display="none";m.src=j;m.onload=setTimeout(function(){-1!=l.selectedIndex&&(m.style.display="block")},100)};this.answerLabelDivElem.style.position="absolute";
this.answerLabelDivElem.style.left=this.answerHolderLeft-e-40+"px";this.answerLabelDivElem.style.width=e+"px";this.answerLabelDivElem.style.height=b+"px";this.sh&&(e=this.sh.a,cp.applyShadow(this.element,this.sh.d*Math.cos(Math.PI*e/180)+"px "+this.sh.d*Math.sin(Math.PI*e/180)+"px "+this.sh.b+"px "+cp.ConvertRGBToRGBA(this.sh.c,this.sh.o)+(this.sh.i?" inset":"")));l.resetIndex=function(){k.element.oHandler.setIndex(-1)};l.setIndex=function(b){k.element.oHandler.setNewIndex(b)};l.getIndex=function(){return k.element.oHandler.selectedIndex};
l.disable=function(){k.element.oHandler.disabled="disabled"};l.getWidth=function(){return parseFloat(k.element.oHandler.style.width)};h=l}else{l.style.position="absolute";l.style.left="10px";l.style.width=e+30+"px";l.style.height=b+"px";jQuery("#"+this.element.id+"_matchingLabel").css("width",e+30);h=jQuery("#"+this.element.id+"_matchingLabel").msDropDown({style:"position:fixed, z-index:1000;left:"+(d.minX+20)+"px, top:"+d.minY+"px, height:"+b+"px, width:"+e+"px,"},"").data("dd");h.set("width",e+
30);var k=this,n=function(b){-1!=b&&(k.answerLabelCanvasName=k.answerLabelCanvasNames[b],k.element.drawLine(k.questionObj.getXYForColumn2Option(cp.D[k.answerLabelCanvasName].aid,k.element)))};h.addMyEvent("onClose",function(){var b=k.element.oHandler.get("selectedIndex");n(b);k.element.parentElement.style.zIndex=k.zIndex});this.sh&&(e=this.sh.a,cp.applyShadow(this.element,this.sh.d*Math.cos(Math.PI*e/180)+"px "+this.sh.d*Math.sin(Math.PI*e/180)+"px "+this.sh.b+"px "+cp.ConvertRGBToRGBA(this.sh.c,
this.sh.o)+(this.sh.i?" inset":"")));var o=h.open;h.open=function(){k.element.parentElement.style.zIndex=1E3;o()};cp.addDCHDiv(g,function(){k.element.parentElement.style.zIndex=1E3;k.element.oHandler.open()});h.resetIndex=function(){k.element.oHandler.setIndex(-1)};h.setIndex=function(b){k.element.oHandler.selectedIndex(b);n(b)};h.getIndex=function(){return k.element.oHandler.get("selectedIndex")};h.disable=function(){k.element.oHandler.disabled(true)};h.getWidth=function(){return k.element.oHandler.get("width")};
l.onchange=function(b){k.element.oHandler.setIndex(l.selectedIndex);b.preventDefault();return false}}}return h}};
cp.MatchingItem.prototype.addIfNeeded=function(a){if(!cp.responsive||!this.drawForResponsive(a))if(a=cp.getQuestionObject(this.relatedQuestionSlide))if(this.questionObj=a,!this.isDrawn&&a.getIsStarted()){var c=this.element.id;if(cp.movie.playbackController){var d=cp.movie.playbackController.GetQuizController();if(d){d.GetIsInReviewMode();var e=a.shouldDisableOptions(),b=document.getElementById(this.labelCanvasDivName),g=cp.movie.stage.getSlideDiv().firstChild;this.group=a.getAnswerGroupName();var h=
cp.D[c];this.isSkipped=this.isCorrect=!1;var d=e?"default":"pointer",i=a.getAnswerOption(c);this.answerTextCanvasDivName=i.name;var f=cp.D[this.answerTextCanvasDivName];h.answerTextDivName=this.answerTextCanvasDivName;this.zIndex=cp.D[h.actid].zIndex;f=f.b;if(4==f.length)for(var l=0;4>l;++l)f[l]=parseFloat(f[l]);else f=[0,0,0,0];this.answerTextCanvasImageBounds={minX:f[0],minY:f[1],maxX:f[2],maxY:f[3]};var j=this;this.element.drawLine=function(b){if(void 0!=b){var a=parseFloat(j.element.parentElement.style.left)+
parseFloat(j.element.parentElement.style.width),d=parseFloat(j.element.parentElement.style.top)+parseFloat(j.element.parentElement.style.height)/2,c=b.x,b=b.y;cp.verbose&&(cp.log("self.element.parentElement.style.left : "+j.element.parentElement.style.left),cp.log("self.element.parentElement.style.top : "+j.element.parentElement.style.top),cp.log("self.element.parentElement.style.width : "+j.element.parentElement.style.width),cp.log("self.element.parentElement.style.height : "+j.element.parentElement.style.height),
cp.log("startX : "+a),cp.log("startY : "+d),cp.log("endX : "+c),cp.log("endY : "+b));var e=a<c?a:c,f=d<b?d:b,h=0<c-a?c-a:a-c,i=0<b-d?b-d:d-b;j.lLineCanvasID=j.element.id+a.toString()+d.toString();var g=document.getElementById(j.lLineCanvasID+"_matchingLineCanvasDiv");void 0==g?(g=cp.newElem("div"),cp.fixWebkitScaling(g),g.id=j.lLineCanvasID+"_matchingLineCanvasDiv"):g.innerHTML="";g.style.display="block";g.style.position="absolute";g.style.left=e-10+"px";g.style.top=f-10+"px";g.style.width=h+20+"px";
g.style.height=i+20+"px";cp.addRewrapObjectAsPerRestOfProjectItem(g);e=cp.newElem("canvas");e.id=j.lLineCanvasID+"_matchingLineCanvas";g.appendChild(e);g.style.zIndex=j.zIndex;e.width=h+20;e.height=i+20;h=e.getContext("2d");h.beginPath();h.moveTo(a-parseFloat(g.style.left),d-parseFloat(g.style.top));h.lineTo(c-parseFloat(g.style.left),b-parseFloat(g.style.top));h.stroke();e.style.display="block"}};this.element.resetMatch=function(){j.element.oHandler.resetIndex();var b=document.getElementById(j.lLineCanvasID+
"_matchingLineCanvasDiv");void 0!=b&&b.parentElement&&b.parentElement.removeChild(b)};this.element.removeOpenReviewAreas=function(){var b=document.getElementById(j.questionObj.getAssociatedObjName()),a=document.getElementById(j.element.id+"_correctMatchingReview");void 0!=a&&b.parentNode.removeChild(a)};this.element.addReviewButton=function(){var b=document.getElementById(j.questionObj.getAssociatedObjName()),a=j.element,d=j.element.id+"_reviewButton",c=document.getElementById(d);c||(c=cp.newElem("img"));
c.id=d;cp.fixWebkitScaling(c);c.className="sequenceReviewImage";c.style.position="absolute";c.style.left=parseFloat(a.parentElement.style.left)+parseFloat(a.style.left)+"px";c.style.top=parseFloat(a.parentElement.style.top)+parseFloat(a.parentElement.style.height)+"px";cp.registerGestureEvent(c,cp.GESTURE_EVENT_TYPES.TAP,function(b){if(!cp.disableInteractions){var d=a.id+"_correctMatchingReview",c=document.getElementById(d);void 0==c&&(c=cp.newElem("div"));cp.fixWebkitScaling(c);var e="cp-reviewUL";
cp.MSIE==cp.browser&&(e="cp-reviewULIE");for(var e="<ul class='"+e+"' style='padding-left:20px;padding-right:20px'>",f=0;f<j.questionObj.Column2Options.length;++f){var h=cp.D[j.questionObj.Column2Options[f]],g=cp.D[cp.D[h.dn+"mtcha"].cn];h.aid==cp.D[cp.D[a.id].answerTextDivName].aid&&(e+="<li>"+cp.getAccessibilityString(g)+h.atxtlms+"</li>")}e=e+"</ul>"+("<img id='matchingReviewCloseButton' src='"+cp.movie.im.m_projectImages["assets/htmlimages/closeReviewButton.png"].nativeImage.src+"' style='right:6px;top:6px;position:absolute'>");
c.id=d;c.className="sequenceReviewArea";c.style.position="absolute";d=document.getElementById(a.id+"_reviewButton");c.style.left=parseFloat(d.style.left)+parseFloat(d.width)+10+"px";c.style.top=parseFloat(d.style.top)+"px";c.innerHTML=e;b.stopPropagation&&b.stopPropagation();j.questionObj.showReviewArea(c)}});b.parentNode.appendChild(c);c.style.zIndex=1E3};this.element.disableOption=function(){e=!0;j.element.tabIndex=-1};f=cp.newElem("div");cp.fixWebkitScaling(f);cp.addRewrapObjectAsPerRestOfProjectItem(f);
f.id=this.element.id+"canvasHolder";h.answerTextCanvasHolder=f.id;f.setAttribute("class","cp-rewrap");l=cp.newElem("canvas");canvas=this.canvas=cp.createCanvas(0,0,cp.D.project.w,cp.D.project.h,l);l.setAttribute("class","cp-shape");l.setAttribute("name",this.group);l.id=this.answerTextCanvasDivName;f.appendChild(l);f.style.zIndex=this.zIndex;var k=new cp.Shape(l,cp.D[this.answerTextCanvasDivName]);k.modifyParent=!1;k.start();g.removeChild(b.parentElement);this.answerLabelDivElem=document.getElementById(cp.D[this.labelCanvasDivName].dn);
b=a.getSelectedIndex(i.selectedAnswerLabel);this.element.oHandler=this.addAndGetLabelCombo(a,h,b);h.oHandler=this.element.oHandler;this.element.oHandler.setIndex(b);h=parseFloat(this.element.oHandler.getWidth())+10;g=this.answerHolderTop;l.style.left=h+"px";l.parentElement.style.top=g+"px";g=parseFloat(l.style.width)+h;l=parseFloat(l.style.height);f.style.width=g+"px";f.style.left=this.answerHolderLeft-h+"px";this.element.parentElement.style.width=g+"px";this.element.parentElement.style.left=this.answerHolderLeft-
h+"px";this.element.parentElement.style.height=l+"px";this.element.parentElement.style.top=this.answerHolderTop+"px";this.element.style.cursor=d;this.element.style.borderRadius="5px";this.element.style.left=h+"px";this.element.style.top="-2px";this.element.style.width=this.answerTextCanvasImageBounds.maxX-this.answerTextCanvasImageBounds.minX+"px";this.element.style.height=this.answerTextCanvasImageBounds.maxY-this.answerTextCanvasImageBounds.minY+6+"px";this.element.style.position="absolute";this.element.style.background=
"#000000";this.element.style.opacity=0;-1==b&&(this.isSkipped=!0);e||a.addDragEvents(this.element.id);d=parseFloat(this.element.style.left)-parseFloat(f.style.left)-30+"px";this.isCorrect=a.getIsOptionCorrect(this.element,b);e&&(this.element.style.cursor="default",this.element.oHandler.disable(),this.element.tabIndex=-1,a.getWasJudged()&&a.canShowReviewIcons()&&(a.getAnsweredCorrectly()?(f=cp.newElem("img"),f.id=c+"_reviewCorrect",f.src=cp.movie.im.m_projectImages["assets/htmlimages/correct_answer_normal.png"].nativeImage.src,
f.tabIndex=-1,f.style.position="absolute",f.style.left=d,f.style.top="0px",this.element.parentNode.appendChild(f),f.style.zIndex=this.zIndex,j.sh&&(c=j.sh.a,cp.applyShadow(f,j.sh.d*Math.cos(Math.PI*c/180)+"px "+j.sh.d*Math.sin(Math.PI*c/180)+"px "+j.sh.b+"px "+cp.ConvertRGBToRGBA(j.sh.c,j.sh.o)+(j.sh.i?" inset":"")+(j.sh.i?" inset":"")))):(h=this.isCorrect?cp.movie.im.m_projectImages["assets/htmlimages/correct_answer_normal.png"].nativeImage.src:this.isSkipped?cp.movie.im.m_projectImages["assets/htmlimages/skip_answer_normal.png"].nativeImage.src:
cp.movie.im.m_projectImages["assets/htmlimages/incorrect_answer_normal.png"].nativeImage.src,f=cp.newElem("img"),f.id=c+"_reviewIncorrect",f.src=h,f.tabIndex=-1,f.style.position="absolute",f.style.left=d,f.style.top="0px",this.element.parentNode.appendChild(f),this.isCorrect||this.element.addReviewButton(),f.style.zIndex=this.zIndex,j.sh&&(c=j.sh.a,cp.applyShadow(f,j.sh.d*Math.cos(Math.PI*c/180)+"px "+j.sh.d*Math.sin(Math.PI*c/180)+"px "+j.sh.b+"px "+cp.ConvertRGBToRGBA(j.sh.c,j.sh.o)+(j.sh.i?" inset":
""))))));this.isDrawn=!0;a.registerColumn1Option(this.element);this.visible||(this.element.style.visibility="hidden")}}}};
cp.MatchingAnswer=function(a,c){cp.MatchingAnswer.baseConstructor.call(this,a,c);this.canvasDivName=this.getAttribute("cn");var d=this.getAttribute("b");this.bounds={minX:d[0],minY:d[1],maxX:d[2],maxY:d[3]};d=this.getAttribute("vb");this.vbounds={minX:d[0],minY:d[1],maxX:d[2],maxY:d[3]};this.answerHolderLeft=this.getAttribute("ahl");this.answerHolderTop=this.getAttribute("aht");this.sh=this.getAttribute("sh");this.args=c;cp.responsive&&(this.responsiveCSS=this.getAttribute("css"))};
cp.inherits(cp.MatchingAnswer,cp.Answer);
cp.MatchingAnswer.prototype.drawForResponsive=function(a){if(this.m_questionObj&&this.m_questionObj.getIsStarted()){if(!this.responsiveCSS)return!1;if(this.isDrawn&&!a)return!0;var c=cp.getResponsiveCSS(this.responsiveCSS),d=!1,d=this.re||this.sh&&!this.sh.i,e=void 0!=this.tr;if(this.currentCSS==c&&!d&&!e&&!a)return!0;this.currentCSS=c;a=this.element.id;if(cp.movie.playbackController&&(d=cp.movie.playbackController.GetQuizController())){d.GetIsInReviewMode();var b=this.m_questionObj.shouldDisableOptions();
this.answerLabelCanvasElement=document.getElementById(this.canvasDivName);var g=cp.movie.stage.getSlideDiv().firstChild;cp.movie.stage.getSlideDiv().getBoundingClientRect();this.group=this.m_questionObj.getAnswerGroupName();d=cp.D[a];this.isSkipped=this.isCorrect=!1;e=b?"default":"pointer";this.answerTextCanvasDivName=cp.D[d.actid].mdi;d.answerTextDivName=this.answerTextCanvasDivName;this.zIndex=cp.D[d.actid].zIndex;this.answertextParentDiv=cp(a+"canvasHolder");if(!this.answertextParentDiv&&(this.answertextParentDiv=
cp.newElem("div"),cp.fixWebkitScaling(this.answertextParentDiv),g.insertBefore(this.answertextParentDiv,this.answerLabelCanvasElement.parentElement),this.answertextParentDiv.id=a+"canvasHolder",d.answerTextCanvasHolder=this.answertextParentDiv.id,this.answertextParentDiv.setAttribute("class","cp-rewrap"),this.answertextParentDiv.style.zIndex=this.zIndex,this.matchingAnswerCanvasElement=cp(this.answerTextCanvasDivName),this.matchingAnswerCanvasElement||(this.matchingAnswerCanvasElement=cp.newElem("canvas"),
canvas=this.canvas=cp.createCanvas(0,0,cp.D.project.w,cp.D.project.h,this.matchingAnswerCanvasElement),this.matchingAnswerCanvasElement.setAttribute("class","cp-shape"),this.matchingAnswerCanvasElement.setAttribute("name",this.group),this.matchingAnswerCanvasElement.id=this.answerTextCanvasDivName,this.answertextParentDiv.appendChild(this.matchingAnswerCanvasElement)),!this.answertextCanvasShape))this.answertextCanvasShape=new cp.Shape(this.matchingAnswerCanvasElement,cp.D[this.answerTextCanvasDivName]),
this.answertextCanvasShape.start();var g=cp.D[this.canvasDivName],h=cp(g.dn);cp.applyResponsiveStyles(this.matchingAnswerCanvasElement.parentElement,c);this.adjustPositionWithAnswerArea(d.css[cp.ResponsiveProjWidth],this.matchingAnswerCanvasElement.parentElement);this.adjustPositionWithAnswerArea(d.css[cp.ResponsiveProjWidth],this.element.parentElement);this.matchingAnswerCanvasElement.parentElement.getBoundingClientRect();h.getBoundingClientRect();this.adjustPositionWithAnswerArea(g.css[cp.ResponsiveProjWidth],
h,!0);this.adjustPositionWithAnswerArea(g.css[cp.ResponsiveProjWidth],this.answerLabelCanvasElement.parentElement,!0);this.matchingAnswerCanvasElement.lineOffset=parseFloat(this.matchingAnswerCanvasElement.parentElement.style.left)-parseFloat(this.answerLabelCanvasElement.parentElement.style.left);this.matchingAnswerCanvasElement.parentElement.style.width=this.matchingAnswerCanvasElement.parentElement.clientWidth+this.answerLabelCanvasElement.clientWidth+"px";this.element.parentElement.style.width=
this.matchingAnswerCanvasElement.parentElement.style.width;this.matchingAnswerCanvasElement.style.width=this.element.parentElement.clientWidth-this.answerLabelCanvasElement.clientWidth+"px";this.element.style.width=this.matchingAnswerCanvasElement.style.width;this.element.style.left="0px";this.element.style.top="0px";this.element.style.width="100%";this.element.style.height="100%";this.element.style.cursor=e;this.element.style.borderRadius="5px";this.element.style.position="absolute";this.element.style.background=
"#000000";this.element.style.opacity=0;var i=this;this.element.disableOption=function(){b=!0;i.element.tabIndex=-1};b||this.m_questionObj.addDragEvents(a);b&&(this.element.style.cursor="default",this.element.tabIndex=-1);this.isDrawn||this.m_questionObj.registerColumn2Option(this);this.isDrawn=!0;this.visible||(this.element.style.visibility="hidden");return!0}}};
cp.MatchingAnswer.prototype.addIfNeeded=function(a){if(!cp.responsive||!this.drawForResponsive(a))if((a=cp.getQuestionObject(this.relatedQuestionSlide))&&!this.isDrawn&&a.getIsStarted()){var c=this.element.id;if(cp.movie.playbackController){var d=cp.movie.playbackController.GetQuizController();if(d){d.GetIsInReviewMode();var e=a.shouldDisableOptions(),b=document.getElementById(this.canvasDivName),d=cp.movie.stage.getSlideDiv().firstChild;this.group=a.getAnswerGroupName();var g=cp.D[c];this.isSkipped=
this.isCorrect=!1;var h=e?"default":"pointer";this.answerTextCanvasDivName=cp.D[g.actid].mdi;var i=cp.D[this.answerTextCanvasDivName];g.answerTextDivName=this.answerTextCanvasDivName;this.zIndex=cp.D[g.actid].zIndex;i=i.b;if(4==i.length)for(var f=0;4>f;++f)i[f]=parseFloat(i[f]);else i=[0,0,0,0];this.answerTextCanvasImageBounds={minX:i[0],minY:i[1],maxX:i[2],maxY:i[3]};f=g.actid;i=cp.newElem("div");cp.fixWebkitScaling(i);d.insertBefore(i,b.parentElement);i.id=c+"canvasHolder";g.answerTextCanvasHolder=
i.id;i.setAttribute("class","cp-rewrap");g=cp.newElem("canvas");canvas=this.canvas=cp.createCanvas(0,0,cp.D.project.w,cp.D.project.h,g);g.setAttribute("class","cp-shape");g.setAttribute("name",this.group);g.id=this.answerTextCanvasDivName;i.appendChild(g);i.style.zIndex=this.zIndex;(new cp.Shape(g,cp.D[this.answerTextCanvasDivName])).start();var l=cp.D[f].mdi,f=parseFloat(g.parentElement.style.left)+(cp.D[l].b[0]-this.answerTextCanvasImageBounds.minX),l=parseFloat(g.parentElement.style.top)+(cp.D[l].b[1]-
this.answerTextCanvasImageBounds.minY);g.parentElement.style.left=f+"px";g.parentElement.style.top=l+"px";b=b.parentElement;f-=parseFloat(b.style.left);l-=parseFloat(b.style.top);d.removeChild(b);i.appendChild(b);g.style.left=parseFloat(g.style.left)+f+"px";i.style.left=parseFloat(i.style.left)-f+"px";i.style.width=parseFloat(i.style.width)+f+"px";b.style.left="0px";b.style.top=l+"px";this.element.style.cursor=h;this.element.style.borderRadius="5px";this.element.style.left=-f+"px";this.element.style.top=
"-2px";this.element.style.width=this.answerTextCanvasImageBounds.maxX-this.answerTextCanvasImageBounds.minX+f+"px";this.element.style.height=this.answerTextCanvasImageBounds.maxY-this.answerTextCanvasImageBounds.minY+6+"px";this.element.style.position="absolute";this.element.style.background="#000000";this.element.style.opacity=0;var j=this;this.element.disableOption=function(){e=!0;j.element.tabIndex=-1};e||a.addDragEvents(c);e&&(this.element.style.cursor="default",this.element.tabIndex=-1);this.isDrawn=
!0;a.registerColumn2Option(this);this.visible||(this.element.style.visibility="hidden")}}}};
cp.MatchingQuestion=function(a,c){cp.MatchingQuestion.baseConstructor.call(this,a,c);this.answerOptions=this.getAnswerOptions();this.Column1Options=this.getColumn1Options();this.Column2Options=this.getColumn2Options();this.Column1OptionsMap={};this.Column2OptionsMap={};this.answerLabels=this.questionData.anslb;this.isShuffleEnabled=this.questionData.ish;this.shuffledColumn1Options=this.Column1Options.slice(0);this.answerOptionsDrawnCtr=this.isCorrectCounter=this.shuffleCounter=-1;this.answerOptionsDrawn=
!1;this.drawLaterMap={};this.column1OptionsList=[]};cp.inherits(cp.MatchingQuestion,cp.Question);cp.MatchingQuestion.prototype.resetQuestionData=function(){cp.MatchingQuestion.superClass.resetQuestionData.call(this);this.m_quizController.GetGoToQuizScopeActionExecuted()||(this.m_selectedAnswersArr=[]);this.answerOptionsDrawnCtr=this.isCorrectCounter=this.shuffleCounter=-1;this.answerOptionsDrawn=!1};
cp.MatchingQuestion.prototype.getColumn1Options=function(){var a=[],c=this.questionData.aio;if(!c||0>=c.length)return"";for(var d=0;d<c.length;++d){var e=c[d].split(":");a.push(e[0])}return a};cp.MatchingQuestion.prototype.getColumn2Options=function(){var a=[],c=this.questionData.aco;if(!c||0>=c.length)return"";for(var d=0;d<c.length;++d){var e=c[d].split(":");a.push(e[0])}return a};
cp.MatchingQuestion.prototype.getTextForColumn2Option=function(a){for(var c=0;c<this.Column2Options.length;++c){var d=cp.D[this.Column2Options[c]];if(d.aid==a||d.aid+")"==a)return d.atxtlms}};
cp.MatchingQuestion.prototype.getXYForColumn2Option=function(a,c){for(var d=cp.movie.stage.getSlideDiv().getBoundingClientRect(),e=0;e<this.Column2Options.length;++e){var b=cp.D[this.Column2Options[e]];if(b.aid==a||b.aid+")"==a){var b={},g=document.getElementById(this.Column2Options[e]);if(g)return b.name=this.Column2Options[e],cp.responsive?(e=g.parentElement.getBoundingClientRect(),b.x=(e.left-d.left-g.lineOffset)/cp("div_Slide").scaleFactor,b.y=(e.top-d.top+e.height/2)/cp("div_Slide").scaleFactor):
(b.x=parseFloat(g.parentElement.style.left),b.y=parseFloat(g.parentElement.style.top)+parseFloat(g.parentElement.style.height)/2),b;cp.verbose&&(cp.log("Elem not found. Adding it to drawLaterMap : "+this.Column2Options[e]),cp.log("Elem not found. Adding it for : "+c.id));void 0==this.drawLaterMap[this.Column2Options[e]]&&(this.drawLaterMap[this.Column2Options[e]]={});this.drawLaterMap[this.Column2Options[e]][c.id]=c.id;break}}};
cp.MatchingQuestion.prototype.startQuestion=function(){this.answerOptionsDrawnCtr=this.isCorrectCounter=this.shuffleCounter=-1;this.answerOptionsDrawn=!1;this.drawLaterMap={};this.m_quizController&&(this.m_quizController.GetIsInReviewMode(),this.m_isShuffled||this.shuffleAnswers(),cp.MatchingQuestion.superClass.startQuestion.call(this))};cp.MatchingQuestion.prototype.adjustCustomObjects=function(){for(var a in this.Column1OptionsMap){var c=this.Column1OptionsMap[a];c&&c.drawLine&&c.drawLine()}};
cp.MatchingQuestion.prototype.updateCustomReviewAreaTransforms=function(){var a=cp.movie.stage.getSlideDiv(),c;for(c in this.Column1OptionsMap){var d=this.Column1OptionsMap[c];d.removeOpenReviewAreas();var e=cp(d.id+"_reviewButton");if(e){var b=a.getBoundingClientRect(),g=d.parentElement.getBoundingClientRect();e.style.left=g.left-b.left+"px";e.style.top=g.bottom-b.top+"px";e.getBoundingClientRect();if(d=cp(d.id+"_correctMatchingReview"))d.style.left=e.right-b.left+"px",d.style.top=e.top-b.top+"px"}}};
cp.MatchingQuestion.prototype.showReviewArea=function(a){for(var c in this.Column1OptionsMap)this.Column1OptionsMap[c].removeOpenReviewAreas();var d=document.getElementById(this.getAssociatedObjName());d.parentNode.appendChild(a);var e=cp.movie.stage.getSlideDiv(),b=e.onclick;e.style.cursor="pointer";cp.registerGestureEvent(e,cp.GESTURE_EVENT_TYPES.TAP,function(c){cp.disableInteractions||(d.parentNode.removeChild(a),e.style.cursor="default",cp.registerGestureEvent(e,cp.GESTURE_EVENT_TYPES.TAP,b),
cp.handleClick(c))});c=document.getElementById("matchingReviewCloseButton");cp.registerGestureEvent(c,cp.GESTURE_EVENT_TYPES.TAP,function(){cp.disableInteractions||(d.parentNode.removeChild(a),e.style.cursor="default",cp.registerGestureEvent(e,cp.GESTURE_EVENT_TYPES.TAP,b))})};cp.MatchingQuestion.prototype.registerColumn1Option=function(a){for(var c=0;c<this.Column1Options.length;++c){var d=this.Column1Options[c];if(cp.D[a.id].answerTextDivName==d){this.Column1OptionsMap[d]=a;break}}};
cp.MatchingQuestion.prototype.registerColumn2Option=function(a){for(var c=a.element,d=cp.movie.stage.getSlideDiv().getBoundingClientRect(),e=0;e<this.Column2Options.length;++e){var b=this.Column2Options[e];if(-1!=c.id.indexOf(cp.D[b].dn)){for(var g in this.drawLaterMap)if(b==g){var e=this.drawLaterMap[g],h;for(h in e)if(e=document.getElementById(h)){var i={};i.name=b;if(cp.responsive){var f=a.answerLabelCanvasElement.parentElement.getBoundingClientRect();i.x=f.left-d.left;i.y=f.top-d.top+f.height/
2}else i.x=parseFloat(c.parentElement.style.left)+parseFloat(c.style.left),i.y=parseFloat(c.parentElement.style.top)+parseFloat(c.parentElement.style.height)/2;e.drawLine(i)}}this.Column2OptionsMap[b]=c;break}}};
cp.MatchingQuestion.prototype.clearAnswers=function(){this.verbose&&cp.log("Inside Clear Answers");var a=this.m_quizController&&this.m_quizController.GetIsSubmitAll()&&!this.getIsPretest(),a=(a=!1==this.getWasJudged()||a&&!1==this.m_quizController.m_submittedAllQuestions)&&!this.m_quizController.GetIsInReviewMode();if(!1!=a){this.m_selectedAnswersArr=[];this.verbose&&cp.log("Not Attempted. Hence Clearing");for(a=0;a<this.Column1Options.length;++a){var c=this.Column1OptionsMap[this.Column1Options[a]];
c&&c.resetMatch()}}};
cp.MatchingQuestion.prototype.addDragEvents=function(a){cp.verbose&&cp.log("Adding drag events : "+a);var c=document.getElementById(a),d=document.getElementById(this.getAssociatedObjName()),e=cp.movie.stage.getSlideDiv();this.lDraggableItem=void 0;this.lDroppableItemsMap=[];var b=this;if(cp.DESKTOP!=cp.device)cp.IDEVICE!=cp.device&&document.body.addEventListener("touchstart",function(){}),c.ontouchstart=function(a){a=a.touches;if(!(1<a.length)){cp.m_gestureHandler.enabled=!1;a=a[0];b.lDraggableItem=
a.target;b.lIsColumn1ItemDragged=!1;for(var c=0;c<b.Column1Options.length;++c){var f=cp.D[b.Column1Options[c]],f=f.dn;-1!=b.lDraggableItem.id.indexOf(f)&&(b.lDroppableItemsMap=b.Column2OptionsMap,b.lIsColumn1ItemDragged=!0)}if(!b.lIsColumn1ItemDragged)for(c=0;c<b.Column2Options.length;++c)f=cp.D[b.Column2Options[c]],f=f.dn,-1!=b.lDraggableItem.id.indexOf(f)&&(b.lDroppableItemsMap=b.Column1OptionsMap);var f=cp.D[b.lDraggableItem.id].answerTextDivName,c=cp.getScaledPosition(a.pageX,a.pageY),f=cp.D[f],
g=e.getBoundingClientRect();cp.responsive?(b.draggedImageCopy=cp.newElem("div"),b.draggedImageCopy.innerHTML=cp.D[f.dn].rpvt[cp.ResponsiveProjWidth].vt,b.draggedImageCopy.style.left=a.pageX+"px",b.draggedImageCopy.style.top=a.pageY+"px",b.draggedImageCopy.style.zIndex=1E3,cp.scaleItem(b.draggedImageCopy,cp("div_Slide").scaleFactor,cp("div_Slide").scaleFactor),document.body.appendChild(b.draggedImageCopy)):(b.draggedImageCopy=cp.newElem("img"),b.draggedImageCopy.src=f.ip,cp.shouldScale?(b.draggedImageCopy.style.left=
c.X-g.left+10+"px",b.draggedImageCopy.style.top=c.Y+"px",d.parentNode.appendChild(b.draggedImageCopy)):(b.draggedImageCopy.style.left=a.pageX+"px",b.draggedImageCopy.style.top=a.pageY+"px",b.draggedImageCopy.style.zIndex=1E3,cp.scaleItem(b.draggedImageCopy,cp("div_Slide").scaleFactor,cp("div_Slide").scaleFactor),document.body.appendChild(b.draggedImageCopy)));b.draggedImageCopy.id="draggedImageCopy";b.draggedImageCopy.style.width=f.b[2]-f.b[0]+"px";b.draggedImageCopy.style.height=f.b[3]-f.b[1]+"px";
b.draggedImageCopy.style.display="block";b.draggedImageCopy.style.position="absolute";b.lTouchStarted=!0}},c.ontouchmove=function(a){cp.m_gestureHandler.enabled=!1;a.preventDefault&&a.preventDefault();if(1==a.touches.length&&b.lTouchStarted){var a=a.touches[0],c=cp.getScaledPosition(a.pageX,a.pageY),d=e.getBoundingClientRect();cp.shouldScale?(b.draggedImageCopy.style.left=c.X-d.left+10+"px",b.draggedImageCopy.style.top=c.Y+"px"):(b.draggedImageCopy.style.left=a.pageX+"px",b.draggedImageCopy.style.top=
a.pageY+"px")}},c.ontouchend=function(a){cp.m_gestureHandler.enableGestures&&cp.m_gestureHandler.enableGestures();a.stopPropagation&&a.stopPropagation();b.lTouchStarted=!1;if(b.draggedImageCopy){var c,d,g;if(cp.shouldScale)a=parseFloat(b.draggedImageCopy.style.left),c=parseFloat(b.draggedImageCopy.style.top),d=parseFloat(b.draggedImageCopy.style.left)+parseFloat(b.draggedImageCopy.style.width),g=parseFloat(b.draggedImageCopy.style.top)+parseFloat(b.draggedImageCopy.style.height);else{g=b.draggedImageCopy.getBoundingClientRect();
var j=e.getBoundingClientRect(),a=g.left-j.left;c=g.top-j.top;d=g.right-j.left;g=g.bottom-j.top}b.draggedImageCopy.parentNode&&b.draggedImageCopy.parentNode.removeChild(b.draggedImageCopy);b.draggedImageCopy=void 0;for(var k in b.lDroppableItemsMap){var m=b.lDroppableItemsMap[k],n,o,q,p;cp.shouldScale?(n=parseFloat(m.style.left)+parseFloat(m.parentElement.style.left),o=parseFloat(m.style.top)+parseFloat(m.parentElement.style.top),q=parseFloat(m.parentElement.style.width)+n,p=parseFloat(m.parentElement.style.height)+
o):(p=m.getBoundingClientRect(),n=p.left-j.left,o=p.top-j.top,q=p.right-j.left,p=p.bottom-j.top);n=a>q||c>p||d<n||g<o?!1:!0;if(n){cp.verbose&&cp.log("Dropped on : "+m.id);b.lDraggableItem.drawLine?(m=cp.D[k],n=k,b.lDraggableItem.drawLine(b.getXYForColumn2Option(m.aid,b.lDraggableItem)),m=b.lDraggableItem.oHandler):(o=cp.D[b.lDraggableItem.id],n=cp.D[o.actid].mdi,m.drawLine(b.getXYForColumn2Option(o.aid,m)),m=m.oHandler);for(o=0;o<b.Column2Options.length;++o)if(n==b.Column2Options[o]){lIndex=o;break}m.setIndex(lIndex)}}}};
else{var g=function(a){if(!cp.disableInteractions&&b.isMouseDown&&b.draggedImageCopy)if(a=cp.getScaledPosition(a.clientX,a.clientY),cp.responsive){var c=e.getBoundingClientRect();b.draggedImageCopy.style.left=a.X-c.left+"px";b.draggedImageCopy.style.top=a.Y-c.top+"px"}else b.draggedImageCopy.style.left=window.pageXOffset+a.X+"px",b.draggedImageCopy.style.top=window.pageYOffset+a.Y+"px"};c.ondragstart=function(){return!1};document.onselectstart=function(){return!1};c.onmousedown=function(a){if(!cp.disableInteractions){b.lDraggableItem=
a.target;b.lIsColumn1ItemDragged=!1;for(var i=0;i<b.Column1Options.length;++i){var f=cp.D[b.Column1Options[i]],f=f.dn;-1!=b.lDraggableItem.id.indexOf(f)&&(b.lDroppableItemsMap=b.Column2OptionsMap,b.lIsColumn1ItemDragged=!0)}if(!b.lIsColumn1ItemDragged)for(i=0;i<b.Column2Options.length;++i)f=cp.D[b.Column2Options[i]],f=f.dn,-1!=b.lDraggableItem.id.indexOf(f)&&(b.lDroppableItemsMap=b.Column1OptionsMap);f=cp.D[b.lDraggableItem.id].answerTextDivName;a=cp.getScaledPosition(a.clientX,a.clientY);f=cp.D[f];
cp.responsive?(b.draggedImageCopy=cp.newElem("div"),b.draggedImageCopy.innerHTML=cp.D[f.dn].rpvt[cp.ResponsiveProjWidth].vt,i=e.getBoundingClientRect(),b.draggedImageCopy.style.left=a.X-i.left+"px",b.draggedImageCopy.style.top=a.Y-i.top+"px"):(b.draggedImageCopy=cp.newElem("img"),b.draggedImageCopy.src=f.ip,b.draggedImageCopy.style.left=window.pageXOffset+a.X+10+"px",b.draggedImageCopy.style.top=window.pageYOffset+a.Y+"px");cp.fixWebkitScaling(b.draggedImageCopy);b.draggedImageCopy.id="draggedImageCopy";
b.draggedImageCopy.style.width=f.b[2]-f.b[0]+"px";b.draggedImageCopy.style.height=f.b[3]-f.b[1]+"px";b.draggedImageCopy.style.display="block";b.draggedImageCopy.style.position="absolute";d.parentNode.appendChild(b.draggedImageCopy);b.isMouseDown=!0;c.onmousemove=g;document.onmousemove=g;return!1}};document.onmouseup=function(){if(!cp.disableInteractions&&(document.onmousemove=void 0,c.onmousemove=void 0,b.isMouseDown)){b.isMouseDown=!1;cp.verbose&&cp.log("Drag Ended");var a=e.getBoundingClientRect(),
d,f,g,j;if(cp.responsive){var k=b.draggedImageCopy.getBoundingClientRect();d=k.left-a.left;f=k.top-a.top;g=k.right-a.left;j=k.bottom-a.top}else d=parseFloat(b.draggedImageCopy.style.left),f=parseFloat(b.draggedImageCopy.style.top),g=parseFloat(b.draggedImageCopy.style.left)+parseFloat(b.draggedImageCopy.style.width),j=parseFloat(b.draggedImageCopy.style.top)+parseFloat(b.draggedImageCopy.style.height);(k=document.getElementById(b.draggedImageCopy.id))&&k.parentNode.removeChild(k);b.draggedImageCopy=
void 0;for(var m in b.lDroppableItemsMap){var k=b.lDroppableItemsMap[m],n,o,q,p;cp.responsive?(p=k.parentElement.getBoundingClientRect(),n=p.left-a.left,o=p.top-a.top,q=p.right-a.left,p=p.bottom-a.top):(n=parseFloat(k.style.left)+parseFloat(k.parentElement.style.left),o=parseFloat(k.style.top)+parseFloat(k.parentElement.style.top),q=parseFloat(k.parentElement.style.width)+n,p=parseFloat(k.parentElement.style.height)+o);n=d>q||f>p||g<n||j<o?!1:!0;if(n){cp.verbose&&cp.log("Dropped on : "+k.id);b.lDraggableItem.drawLine?
(a=cp.D[m],b.lDraggableItem.drawLine(b.getXYForColumn2Option(a.aid,b.lDraggableItem)),a=b.lDraggableItem.oHandler):(a=cp.D[b.lDraggableItem.id],m=cp.D[a.actid].mdi,k.drawLine(b.getXYForColumn2Option(a.aid,k)),a=k.oHandler);for(d=0;d<b.Column2Options.length;++d)if(m==b.Column2Options[d]){lIndex=d;break}a.setIndex(lIndex);break}}}}}};
cp.MatchingQuestion.prototype.removeDragEvents=function(a){cp.verbose&&cp.log("Removing drag events for : "+a);if(a=document.getElementById(a))document.onmouseup=void 0,a.onmousedown=void 0,a.ondragstart=void 0,a.onselectstart=void 0,a.ontouchstart=void 0,a.ontouchmove=void 0,a.ontouchend=void 0,a.style.cursor="default"};
cp.MatchingQuestion.prototype.shuffleAnswers=function(){var a=!this.m_quizController.GetIsAttemptFinished()&&this.getWasJudged()&&!this.m_quizController.GetIsSubmitAll(),c=this.getIsPretest()&&this.m_quizController.GetIsPretestQuestionsDisabled();if(!((!this.isShuffleEnabled||(a||this.m_quizController.GetIsInReviewMode()||c)||this.m_isShuffled)&&0<this.Column1Options.length)){for(var d=this.Column1Options.length,e,c=[],a=0;a<d;++a)c[a]=this.Column1Options[a];for(a=d;1<a;a--)d=Math.floor(Math.random()*
a),d!=a&&(e=c[d],c[d]=c[a-1],c[a-1]=e);this.shuffledColumn1Options=c;this.m_isShuffled=!0}};cp.MatchingQuestion.prototype.getAnswerLabels=function(){return this.answerLabels};cp.MatchingQuestion.prototype.getSelectedIndex=function(a){if(this.answerLabels)for(var c=0;c<this.answerLabels.length;++c)if(a==cp.D[this.answerLabels[c]].aid)return c;return-1};
cp.MatchingQuestion.prototype.getAnswerOption=function(a){if(!this.column1OptionsList||0>=this.column1OptionsList.length||this.column1OptionsList.length>=this.shuffledColumn1Options.length)this.column1OptionsList=[];this.column1OptionsList.push(a);this.shuffleCounter>=this.shuffledColumn1Options.length&&(this.shuffleCounter=-1);a={};this.shuffleCounter++;a.name=this.shuffledColumn1Options[this.shuffleCounter];if(this.m_selectedAnswersArr&&0<this.m_selectedAnswersArr.length){for(var c=-1,d=0;d<this.Column1Options.length;++d)this.Column1Options[d]==
a.name&&(c=d);a.selectedAnswerLabel=this.m_selectedAnswersArr[c]}this.shuffleCounter==this.shuffledColumn1Options.length-1&&(this.answerOptionsDrawn=!0);return a};cp.MatchingQuestion.prototype.getIsOptionCorrect=function(a,c){return-1==c?!1:cp.D[this.Column2Options[c]].aid==cp.D[cp.D[a.id].answerTextDivName].aid?!0:!1};
cp.MatchingQuestion.prototype.disableAllOptions=function(){if(this.m_quizController){var a=!0;this.m_quizController.GetIsSubmitAll()&&!this.getIsPretest()&&(!this.m_quizController.GetIsInReviewMode()&&!this.m_quizController.m_submittedAllQuestions)&&(a=!1);if(a){for(a=0;a<this.Column1Options.length;++a){var c=this.Column1Options[a];if(c=this.Column1OptionsMap[c])this.removeDragEvents(c.id),c.disableOption(),!0==this.answerOptionsDrawn&&c.oHandler.disable()}for(a=0;a<this.Column2Options.length;++a)if(c=
this.Column2Options[a],c=this.Column2OptionsMap[c])this.removeDragEvents(c.id),c.disableOption();this.m_answersDisabled=!0}}};cp.MatchingQuestion.prototype.checkIfAttempted=function(){for(var a in this.Column1OptionsMap)if(-1!=this.Column1OptionsMap[a].oHandler.getIndex())return!0;return!1};cp.MatchingQuestion.prototype.checkIfCorrect=function(){for(var a in this.Column1OptionsMap){var c=this.Column1OptionsMap[a],d=c.oHandler.getIndex();if(-1==d||cp.D[this.Column2Options[d]].aid!=cp.D[cp.D[c.id].answerTextDivName].aid)return!1}return!0};
cp.MatchingQuestion.prototype.checkAndSetQuestionStatus=function(){var a=this.QuestionStatusEnum.INCOMPLETE,a=!1;a=this.getIsSurvey()?this.checkIfAttempted()?this.QuestionStatusEnum.CORRECT:this.QuestionStatusEnum.INCOMPLETE:this.checkIfAttempted()?(a=this.checkIfCorrect())?this.QuestionStatusEnum.CORRECT:this.QuestionStatusEnum.INCORRECT:this.QuestionStatusEnum.INCOMPLETE;this.setQuestionStatus(a)};
cp.MatchingQuestion.prototype.getAnswerScores=function(){for(var a=[],c=0,d=0;d<this.Column1Options.length;++d){var e=this.Column1OptionsMap[this.Column1Options[d]];if(void 0!=e){var b=cp.D[cp.D[e.id].answerTextDivName],g=new cp.AnswerScore;g.m_answerID=c.toString();g.m_correctAnswer=b.aid;e=e.oHandler.getIndex();g.m_chosenAnswer=-1==e?"0":cp.D[this.Column2Options[e]].aid;a.push(g);c++}}return a};
cp.MatchingQuestion.prototype.setQuestionSpecificScoreProperties=function(a){void 0!=a&&(a.m_answerOrderArrayAsString=this.m_answerOrderArray)};cp.MatchingQuestion.prototype.restoreFromQuestionSpecificScoreProperties=function(a){void 0!=a&&(a=a.m_answerOrderArrayAsString,void 0==a||""==a||this.setAnswerOrder(a))};
cp.MatchingQuestion.prototype.setAnswerOrder=function(a){if(a&&!(0>=a.length)){var c=a.split(";"),d=this.questionData.itemlb;this.shuffledColumn1Options=Array(this.Column1Options.length);for(var e=c.length-1;0<=e;--e)for(var b=c[e].split(":"),g=b[0],b=b[1],h=0;h<d.length;++h){var i=cp.D[d[h]].b;i[0]==g&&i[1]==b&&(this.shuffledColumn1Options[h]=this.Column1Options[e])}this.answerOptions=c.slice(0);this.m_answerOrderArray=a}};
cp.MatchingQuestion.prototype.resumeSelectedAnswers=function(a){if(!(0>=a.length)){this.m_selectedAnswersArr=[];for(var c=0;c<a.length;++c){var d=unescape(a[c].m_chosenAnswer);"0"==d?this.m_selectedAnswersArr.push(void 0):this.m_selectedAnswersArr.push(d)}}};
cp.MatchingQuestion.prototype.setSelectedAnswers=function(){this.m_selectedAnswersArr=[];for(var a=0;a<this.Column1Options.length;++a){var c=this.Column1OptionsMap[this.Column1Options[a]];void 0!=c&&(c=c.oHandler.getIndex(),-1==c?this.m_selectedAnswersArr.push(void 0):this.m_selectedAnswersArr.push(cp.D[this.Column2Options[c]].aid))}};
cp.MatchingQuestion.prototype.getChosenAnswerAsString=function(){for(var a="",c=0,d=0;d<this.Column1Options.length;++d){var e=this.Column1OptionsMap[this.Column1Options[d]];void 0!=e&&(e=e.oHandler.getIndex(),e=cp.D[this.Column2Options[e]],a=0==c?a+(c+"."+(e?e.aid:" ")):a+(","+c+"."+(e?e.aid:" ")),c++)}return a};
cp.MatchingQuestion.prototype.getCorrectAnswerAsString=function(){for(var a="",c=0,d=0;d<this.Column1Options.length;++d){var e=this.Column1OptionsMap[this.Column1Options[d]];void 0!=e&&(e=cp.D[cp.D[e.id].answerTextDivName],a=0==c?a+(c+"."+e.aid):a+(","+c+"."+e.aid),c++)}return a};cp.MatchingQuestion.prototype.getChosenAnswerAsStringForReview=function(){return this.getChosenAnswerAsString()};cp.MatchingQuestion.prototype.getCorrectAnswerAsStringForReview=function(){return this.getCorrectAnswerAsString()};
cp.MatchingQuestion.prototype.getAnswerTexts=function(){for(var a={},c={},d={},e=0,b=0;b<this.Column1Options.length;++b){var g=this.Column1Options[b],g=this.Column1OptionsMap[g];void 0!=g&&(g=cp.D[g.id],g=cp.D[g.answerTextDivName],a[e++]=escape(g.aAnsTxtlms))}for(e=0;e<this.Column2Options.length;++e)g=this.Column2Options[e],b=this.Column2OptionsMap[g],void 0!=b&&(g=cp.D[b.id],g=cp.D[g.answerTextDivName],c[g.aid]=escape(g.atxtlms));d.left=a;d.right=c;return d};
cp.MatchingQuestion.prototype.saveAnswerOrder=function(){for(var a="",c=0,d=0;d<this.Column1Options.length;++d){var e=document.getElementById(this.Column1Options[d]);e&&e.parentElement&&(e=e.parentElement.id.split("canvasHolder"),e=cp.D[cp.D[e[0]].ln],0!=c&&(a+=";"),a+=e.b[0],a+=":",a+=e.b[1],c++)}this.m_answerOrderArray=a;this.setSelectedAnswers()};
cp.MCQInput=function(a,c){cp.MCQInput.baseConstructor.call(this,a);this.isSingleChoice="radio"==this.type;if(cp.responsive){var b=cp.D[cp.D[this.element.id].ahn];this.responsiveCSS=b?b.css:this.getAttribute("css")}this.isCorrect=this.getAttribute("ic");this.tabIndex=-1;this.accessibilityText=this.getAttribute("ad");this.canvasDivName=this.getAttribute("cn");this.value="enabled";this.checked="unchecked";b=this.getAttribute("b");this.bounds={minX:b[0],minY:b[1],maxX:b[2],maxY:b[3]};b=this.getAttribute("vb");
this.vbounds={minX:b[0],minY:b[1],maxX:b[2],maxY:b[3]};this.answerHolderLeft=this.getAttribute("ahl");this.answerHolderTop=this.getAttribute("aht");this.sh=this.getAttribute("sh");this.args=c};cp.inherits(cp.MCQInput,cp.Answer);cp.MCQInput.prototype.start=function(a){this.addIfNeeded();if(!this.effectIsStarted||a)this.updateEffects(this.hasEffect),this.effectIsStarted=!0};
cp.MCQInput.prototype.reset=function(){delete cp.ropMap[this.element.id];this.isDrawn=!1;this.element.width="0";this.element.height="0";this.element.style.width="0px";this.element.style.height="0px";this.element.left="0";this.element.top="0";this.element.style.left="0px";this.element.style.top="0px"};
cp.MCQInput.prototype.disableOption=function(){if("disabled"!=this.value&&(this.element.style.cursor="default",this.value="disabled",this.inputControl.disabled="disabled",this.inputControl.style.cursor="default",this.inputControl.parentNode.style.cursor="default",this.inputControl.parentNode.parentNode.style.cursor="default","checked"==this.checked||this.inputControl.checked?this.loadAndDrawImage(this.m_questionObj.getImageForState(this.type,"selectedDisabled")):this.loadAndDrawImage(this.m_questionObj.getImageForState(this.type,
"disabled")),this.m_questionObj.getWasJudged()&&this.m_questionObj.canShowReviewIcons())){if(!this.reviewIconImage){this.reviewIconImage=cp.newElem("img");this.reviewIconImage.tabIndex=-1;this.reviewIconImage.style.position="absolute";this.reviewIconImage.style.zIndex=this.zIndex;if(this.sh){var a=this.sh.a;cp.applyShadow(this.reviewIconImage,this.sh.d*Math.cos(Math.PI*a/180)+"px "+this.sh.d*Math.sin(Math.PI*a/180)+"px "+this.sh.b+"px "+cp.ConvertRGBToRGBA(this.sh.c,this.sh.o)+(this.sh.i?" inset":
""))}this.isCorrect?(this.reviewIconImage.src=this.isSingleChoice?cp.movie.im.m_projectImages["assets/htmlimages/correct_answer_normal.png"].nativeImage.src:"checked"==this.checked?cp.movie.im.m_projectImages["assets/htmlimages/correct_answer_normal.png"].nativeImage.src:cp.movie.im.m_projectImages["assets/htmlimages/skip_answer_normal.png"].nativeImage.src,this.element.parentNode.appendChild(this.reviewIconImage)):this.m_questionObj.getWasJudged()&&"checked"==this.checked?(this.reviewIconImage.src=
cp.movie.im.m_projectImages["assets/htmlimages/incorrect_answer_normal.png"].nativeImage.src,this.element.parentNode.appendChild(this.reviewIconImage)):this.reviewIconImage=void 0}if(this.reviewIconImage){var a=this.inputControlCanvasElement.parentElement.getBoundingClientRect(),c=cp("div_Slide").getBoundingClientRect();cp.responsive?(this.element.parentElement.getBoundingClientRect(),this.element.getBoundingClientRect(),this.reviewIconImage.style.left=parseFloat(this.inputControl.style.left)-20+
"px",this.reviewIconImage.style.top=this.inputControl.style.top):(this.reviewIconImage.style.left=parseFloat(this.element.style.left)-20+"px",this.reviewIconImage.style.top=(a.top-c.top)/cp.movie.m_scaleFactor+"px")}}};
cp.MCQInput.prototype.loadAndDrawImage=function(a){var c=this.sh&&!this.sh.i,b=cp.movie.im.m_projectImages[a].nativeImage;null==this.loadedBtnImages&&(this.loadedBtnImages={});this.loadedBtnImages[a]=b;this.inputControlCanvasElement.img=a;cp.clearCanvasProperly(this.canvas);b=this.canvas.gc;if(!cp.responsive){var d=0<this.vbounds.minX&&c?0:this.vbounds.minX,e=0<this.vbounds.minY&&c?0:this.vbounds.minY,f=(cp.model.data.project.h>this.vbounds.maxY&&c?cp.model.data.project.h:this.vbounds.maxY+4)-e;b.width=
(cp.model.data.project.w>this.vbounds.maxX&&c?cp.model.data.project.w:this.vbounds.maxX+4)-d;b.height=f;b.left=d;b.top=e}this.sh&&!this.sh.i&&(b.shadowOffsetX=this.sh.d*Math.cos(Math.PI*this.sh.a/180),b.shadowOffsetY=this.sh.d*Math.sin(Math.PI*this.sh.a/180),b.shadowBlur=this.sh.b,b.shadowColor=cp.ConvertRGBToRGBA(this.sh.c,this.sh.o));c?cp.responsive?(c=this.answerLabelCanvasParentElement.getBoundingClientRect(),d=cp("div_Slide").getBoundingClientRect(),b.drawImage(this.loadedBtnImages[a],c.left-
d.left-30,c.top-d.top)):b.drawImage(this.loadedBtnImages[a],this.bounds.minX-2,this.bounds.minY-2):b.drawImage(this.loadedBtnImages[a],0,0)};
cp.MCQInput.prototype.addHighlightBoxMouseHandlers=function(){if(cp.DESKTOP==cp.device){var a=this,c=document.getElementById(this.element.id+"_dummyhighlight");this.highlightElement.onmouseover=function(){if(!cp.disableInteractions&&"disabled"!=a.value&&(c.style.backgroundColor="#000000",c.style.opacity="0.3",a.sh)){var b=a.sh.a;cp.applyShadow(c,a.sh.d*Math.cos(Math.PI*b/180)+"px "+a.sh.d*Math.sin(Math.PI*b/180)+"px "+a.sh.b+"px "+cp.ConvertRGBToRGBA(a.sh.c,a.sh.o)+(a.sh.i?" inset":""))}};this.highlightElement.onmouseout=
function(){!cp.disableInteractions&&"disabled"!=a.value&&(c.style.backgroundColor="transparent",cp.applyShadow(c,""))}}};
cp.MCQInput.prototype.addDummyHighlightDiv=function(a,c){var b=cp(this.element.id+"_dummyhighlight");b||(b=cp.newElem("div"),cp.fixWebkitScaling(b),a.insertBefore(b,this.answerLabelCanvasElement.parentElement),b.id=this.element.id+"_dummyhighlight",b.style.cursor=c,b.style.position="absolute",b.style.zIndex=this.zIndex,b.style.borderRadius="5px");var d=cp.movie.stage.mainSlideDiv.getBoundingClientRect(),e=this.element.getBoundingClientRect(),f=this.inputControlCanvasElement.parentElement.getBoundingClientRect();
b.style.left=(f.left-d.left-5)/cp.movie.m_scaleFactor+"px";b.style.top=(e.top-d.top-2)/cp.movie.m_scaleFactor+"px";b.style.width=this.element.clientWidth+"px";b.style.height=this.element.clientHeight+"px"};
cp.MCQInput.prototype.adjustVerticalAlignment=function(a,c,b,d){if(c&&b){d=d?0:parseFloat(c.parentElement.style.top);switch(a){case cp.TextLayoutEnum.kTLCenter:d+=(c.parentElement.clientHeight-b.clientHeight)/2;break;case cp.TextLayoutEnum.kTLBottom:d+=c.parentElement.clientHeight-b.clientHeight}b.style.top=d+"px"}};
cp.MCQInput.prototype.drawForResponsive=function(a){if(!this.m_questionObj||!this.m_questionObj.getIsStarted()||!this.responsiveCSS)return!1;if(this.isDrawn&&!a)return!0;var c=cp.getResponsiveCSS(this.responsiveCSS),b=!1,b=this.re||this.sh&&!this.sh.i||this.fillOuterArea,d=void 0!=this.tr;if(this.currentCSS==c&&!b&&!d&&!a)return!0;this.currentCSS=c;a=this.element.id;if(cp.movie.playbackController){var e=cp.movie.playbackController.GetQuizController();if(e){var f=cp.D[this.element.id],g=cp.D[f.actid+
"c"];this.answerTextCanvasDivName||(this.answerTextCanvasDivName=this.m_questionObj.getAnswerOption(f));if(this.answerLabelCanvasElement=document.getElementById(this.canvasDivName)){var d=cp.movie.stage.getSlideDiv().firstChild,j=cp.D[this.answerTextCanvasDivName],i=cp.D[f.cn];e.GetIsInReviewMode();var l=(e=this.m_questionObj.shouldDisableOptions())?"default":"pointer";this.group=this.m_questionObj.getAnswerGroupName();this.accessibilityText=cp.getAccessibilityString(j);cp.modifyAlternativeAccessibleText(this.element.parentElement,
this.accessibilityText);this.isCorrect=j.ic;f.ic=this.isCorrect;this.value="enabled";this.m_questionObj.getIfSelected(this.answerID)&&(this.checked="checked");this.zIndex=cp.D[f.actid].zIndex;this.inputIdSuffix=this.isSingleChoice?"_radioInputField":"_checkBoxInputField";""==this.element.innerHTML&&(this.element.innerHTML+="<div id='"+this.element.id+"_highlight' style='"+cp.accOutlineStyleStr+";cursor:"+l+";border-radius:5px; left:0px;top: 0px;width:100%;height:100%;position:absolute;background-color:#FF0000;opacity:.5'><label><input type='"+
this.type+"' "+this.value+" "+this.checked+" name='"+this.group+"' id='"+a+this.inputIdSuffix+"' role='"+(this.isSingleChoice?"radio":"checkbox")+"' aria-label='"+this.accessibilityText+"' style='cursor:"+l+";opacity:0;left: 0px; top:0px;width: 22px; height: 22px;position:absolute;border-radius:0px;'></input></label></div>");this.inputControl=document.getElementById(this.element.id+this.inputIdSuffix);this.inputControl.answerObject=this;this.inputControl.tabIndex=0;var k=f.actid,h=cp(k+"canvasHolder");
h||(h=cp.newElem("div"),cp.fixWebkitScaling(h),d.insertBefore(h,this.answerLabelCanvasElement.parentElement),h.setAttribute("class","cp-rewrap"),h.id=k+"canvasHolder",f.answerTextCanvasHolder=h.id,h.style.zIndex=this.zIndex,this.answertextCanvas=cp(this.answerTextCanvasDivName),this.answertextCanvas||(this.answertextCanvas=cp.newElem("canvas"),this.answertextCanvas.setAttribute("class","cp-shape"),this.answertextCanvas.id=this.answerTextCanvasDivName,h.appendChild(this.answertextCanvas)),f=document.getElementById(j.dn),
f.drawingBoard=h,cp.D[this.answerTextCanvasDivName].dns=this.element.id,this.answertextCanvasShape||(this.answertextCanvasShape=new cp.Shape(this.answertextCanvas,cp.D[this.answerTextCanvasDivName]),this.answertextCanvasShape.start()),cp.updateVarText(f));f=cp.movie.stage.mainSlideDiv.getBoundingClientRect();this.parentElementClientBoundingRect=this.element.parentElement.getBoundingClientRect();this.isDrawn||(this.answerLabelCanvasParentElement=this.answerLabelCanvasElement.parentElement,this.answerLabelCanvasParentSiblingElement=
this.answerLabelCanvasParentElement.nextSibling,d.removeChild(this.answerLabelCanvasParentElement),d.insertBefore(this.answerLabelCanvasParentElement,this.answerLabelCanvasParentSiblingElement));this.inputControlCanvasElement||(this.inputControlCanvasElement=cp.newElem("canvas"),h=b?cp.project.clientWidth:26,k=b?cp.project.clientHeight:26,canvas=this.canvas=cp.createCanvas(0,0,h,k,this.inputControlCanvasElement),this.inputControlCanvasElement.style.display="block",this.inputControlCanvasElement.style.position=
"absolute",h=cp.newElem("div"),cp.fixWebkitScaling(h),d.insertBefore(h,this.answerLabelCanvasParentSiblingElement),h.appendChild(this.inputControlCanvasElement),h.style.display="block",h.style.position="absolute",h.style.width="22px",h.style.height="22px",h.style.zIndex=this.zIndex);this.adjustPositionWithAnswerArea(i.css[cp.ResponsiveProjWidth],this.answerLabelCanvasParentElement);this.adjustPositionWithAnswerArea(i.css[cp.ResponsiveProjWidth],cp(i.dn));this.adjustPositionWithAnswerArea(g.css[cp.ResponsiveProjWidth],
this.answertextCanvas.parentElement);this.inputControlCanvasElement&&this.inputControlCanvasElement.img&&(h=b?cp.project.clientWidth:26,k=b?cp.project.clientHeight:26,this.inputControlCanvasElement.width=h,this.inputControlCanvasElement.height=k,this.inputControlCanvasElement.style.width=h+"px",this.inputControlCanvasElement.style.height=k+"px",this.loadAndDrawImage(this.inputControlCanvasElement.img));g=this.answerLabelCanvasParentElement.getBoundingClientRect();h=this.answertextCanvas.parentElement.getBoundingClientRect();
this.inputControlCanvasElement.parentElement.style.left=g.left-f.left-30+"px";this.inputControlCanvasElement.parentElement.style.top=g.top-f.top+"px";b&&(this.inputControlCanvasElement.style.left=-(g.left-f.left-30)+"px",this.inputControlCanvasElement.style.top=-(g.top-f.top)+"px");b=this.inputControlCanvasElement.parentElement.getBoundingClientRect();this.element.style.left="0px";this.element.style.top="0px";this.element.style.right="auto";this.element.style.bottom="auto";this.element.style.width=
"100%";this.element.style.height="100%";this.element.style.position="absolute";this.element.style.backgroundColor="#ff0000";this.element.style.opacity=0;this.adjustPositionWithAnswerArea(c,this.element.parentElement);c=this.element.getBoundingClientRect();this.answertextCanvas.parentElement.style.top=c.top-f.top+"px";this.element.parentElement.style.width=b.width+g.width+h.width+20+"px";this.element.parentElement.style.height=h.height+6+"px";c=cp.D[j.dn];j=c.rptl[cp.ResponsiveProjWidth];this.adjustVerticalAlignment(j,
this.answertextCanvas,this.answerLabelCanvasParentElement);this.adjustVerticalAlignment(j,this.answertextCanvas,this.inputControlCanvasElement.parentElement);this.adjustVerticalAlignment(j,this.answertextCanvas,this.inputControl,!0);this.addDummyHighlightDiv(d,l);this.element.parentElement.style.left=b.left-f.left-5+"px";cp.D[i.dn].rptl=c.rptl;if(!this.isDrawn){var m=this;this.highlightElement=document.getElementById(a+"_highlight");this.addHighlightBoxMouseHandlers();a=function(){cp.disableInteractions||
m.value!="disabled"&&m.m_questionObj.selectAnswerOption(m)};cp.registerGestureEvent(this.element,cp.GESTURE_EVENT_TYPES.TAP,a);cp.DESKTOP==cp.device?cp.registerGestureEvent(this.inputControl,cp.GESTURE_EVENT_TYPES.TAP,a):cp.useg||(this.inputControl.onclick=a);"checked"==this.checked?this.loadAndDrawImage(this.m_questionObj.getImageForState(this.type,"selected")):this.loadAndDrawImage(this.m_questionObj.getImageForState(this.type,"default"))}e&&this.disableOption();this.isDrawn=!0;this.visible||(this.element.style.visibility=
"hidden");return!0}}}};
cp.MCQInput.prototype.addIfNeeded=function(a){if((!cp.responsive||!this.drawForResponsive(a))&&this.m_questionObj&&!this.isDrawn&&this.m_questionObj.getIsStarted()){var a=this.element.id,c=this.type;if(cp.movie.playbackController){var b=cp.movie.playbackController.GetQuizController();if(b){b.GetIsInReviewMode();b=this.m_questionObj.shouldDisableOptions();this.group=this.m_questionObj.getAnswerGroupName();var d=b?"default":"pointer",e=cp.D[this.element.id];this.answerTextCanvasDivName=this.m_questionObj.getAnswerOption(e);
if(this.answerLabelCanvasElement=document.getElementById(this.canvasDivName)){var f=cp.movie.stage.getSlideDiv().firstChild,g=cp.D[this.answerTextCanvasDivName];this.m_questionObj.getIfSelected(this.answerID)&&(this.checked="checked");this.accessibilityText=cp.getAccessibilityString(g);this.isCorrect=g.ic;e.ic=this.isCorrect;var j=!1,j=this.re||this.sh&&!this.sh.i,i=g.b;this.answerTextCanvasImageBounds={minX:i[0],minY:i[1],maxX:i[2],maxY:i[3]};i=cp.D[e.cn].b;this.lAnswerLabelBounds={minX:i[0],minY:i[1],
maxX:i[2],maxY:i[3]};this.zIndex=cp.D[e.actid].zIndex;this.inputIdSuffix=this.isSingleChoice?"_radioInputField":"_checkBoxInputField";""==this.element.innerHTML&&(this.element.innerHTML+="<div id='"+a+"_highlight' style='"+cp.accOutlineStyleStr+";cursor:"+d+";border-radius:5px; left: -5px; top: -1px;width: "+(this.answerTextCanvasImageBounds.maxX-this.answerTextCanvasImageBounds.minX+50)+"px;height: "+(this.answerTextCanvasImageBounds.maxY-this.answerTextCanvasImageBounds.minY+6)+"px;position:absolute;background-color:#FF0000;opacity:.5'><label><input type='"+
c+"' "+this.value+" "+this.checked+" role='"+(this.isSingleChoice?"radio":"checkbox")+"' aria-label='"+this.accessibilityText+"' name='"+this.group+"' id='"+a+this.inputIdSuffix+"' style='cursor:"+d+";opacity:0;left: 0px; top: "+(this.lAnswerLabelBounds.maxY-this.lAnswerLabelBounds.minY-22)/2+"px;width: 22px; height: 22px;position:absolute;border-radius:0px;'></input></label></div>");this.inputControl=document.getElementById(a+this.inputIdSuffix);this.inputControl.answerObject=this;this.inputControl.tabIndex=
0;c=e.actid;i=cp.newElem("div");cp.fixWebkitScaling(i);f.insertBefore(i,this.answerLabelCanvasElement.parentElement);i.setAttribute("class","cp-rewrap");i.id=c+"canvasHolder";e.answerTextCanvasHolder=i.id;e=cp.newElem("canvas");e.setAttribute("class","cp-shape");e.id=this.answerTextCanvasDivName;i.appendChild(e);i.style.zIndex=this.zIndex;var l=document.getElementById(g.dn);l.drawingBoard=i;cp.updateVarText(l);cp.D[this.answerTextCanvasDivName].dns=this.element.id;(new cp.Shape(e,cp.D[this.answerTextCanvasDivName])).start();
i=cp.D[c].mdi;e.parentElement.style.left=parseFloat(e.parentElement.style.left)+(cp.D[i].b[0]-this.answerTextCanvasImageBounds.minX)+"px";e.parentElement.style.top=parseFloat(e.parentElement.style.top)+(cp.D[i].b[1]-this.answerTextCanvasImageBounds.minY)+"px";c=this.answerLabelCanvasElement.parentElement;l=c.nextSibling;f.removeChild(c);f.insertBefore(c,l);this.inputControlCanvasElement=cp.newElem("canvas");canvas=this.canvas=cp.createCanvas(0,0,(cp.model.data.project.w>this.vbounds.maxX&&j?cp.model.data.project.w:
this.vbounds.maxX+4)-(0<this.vbounds.minX&&j?0:this.vbounds.minX),(cp.model.data.project.h>this.vbounds.maxY&&j?cp.model.data.project.h:this.vbounds.maxY+4)-(0<this.vbounds.minY&&j?0:this.vbounds.minY),this.inputControlCanvasElement);this.inputControlCanvasElement.style.display="block";this.inputControlCanvasElement.style.position="absolute";var k=cp.newElem("div");cp.fixWebkitScaling(k);f.insertBefore(k,l);k.appendChild(this.inputControlCanvasElement);k.style.display="block";k.style.position="absolute";
k.style.left=this.vbounds.minX+"px";k.style.top=this.lAnswerLabelBounds.minY+(this.lAnswerLabelBounds.maxY-this.lAnswerLabelBounds.minY-22)/2+"px";k.style.width="22px";k.style.height="22px";k.style.zIndex=this.zIndex;j?(this.inputControlCanvasElement.style.marginLeft=-this.vbounds.minX+"px",this.inputControlCanvasElement.style.marginTop=-this.lAnswerLabelBounds.minY+"px"):(this.inputControlCanvasElement.style.marginLeft="-2px",this.inputControlCanvasElement.style.marginTop="-2px");var h=this;this.element.style.left=
parseFloat(e.parentElement.style.left)+(cp.D[i].b[0]-this.answerTextCanvasImageBounds.minX)+"px";this.element.style.top=cp.D[i].b[1]+"px";this.element.style.width=this.answerTextCanvasImageBounds.maxX-this.answerTextCanvasImageBounds.minX+50+"px";this.element.style.height=this.answerTextCanvasImageBounds.maxY-this.answerTextCanvasImageBounds.minY+6+"px";this.element.style.position="absolute";this.element.style.backgroundColor="#ff0000";this.element.style.opacity=0;g=cp.D[g.dn].txtl;this.adjustVerticalAlignment(g,
e,c);this.adjustVerticalAlignment(g,e,this.inputControlCanvasElement.parentElement);this.adjustVerticalAlignment(g,e,this.inputControl,!0);g=this.inputControlCanvasElement.parentElement.getBoundingClientRect();j=cp.movie.stage.mainSlideDiv.getBoundingClientRect();this.addDummyHighlightDiv(f,d);this.highlightElement=document.getElementById(a+"_highlight");this.addHighlightBoxMouseHandlers();this.element.style.left=(g.left-j.left-5)/cp.movie.m_scaleFactor+"px";a=function(){cp.disableInteractions||h.value!=
"disabled"&&h.m_questionObj.selectAnswerOption(h)};cp.registerGestureEvent(this.element,cp.GESTURE_EVENT_TYPES.TAP,a);cp.DESKTOP==cp.device?cp.registerGestureEvent(this.inputControl,cp.GESTURE_EVENT_TYPES.TAP,a):cp.useg||(this.inputControl.onclick=a);"checked"==this.checked?this.loadAndDrawImage(this.m_questionObj.getImageForState(this.type,"selected")):this.loadAndDrawImage(this.m_questionObj.getImageForState(this.type,"default"));b&&this.disableOption();this.isDrawn=!0;this.visible||(this.element.style.visibility=
"hidden")}}}}};
cp.MultipleChoiceQuestion=function(a,c){cp.MultipleChoiceQuestion.baseConstructor.call(this,a,c);this.answerOptions=this.getAnswerOptions();this.shuffleCounter=-1;this.isShuffleEnabled=this.questionData.ish;this.correctAnswersList="";this.chosenAnswerHasAdvancedFeedback=!1;this.typeStatesMap={radio:{"default":"assets/htmlimages/radioButton_normal.png",selected:"assets/htmlimages/radioButton_selected.png",disabled:"assets/htmlimages/radioButton_disabled.png",selectedDisabled:"assets/htmlimages/radioButton_selectedDisabled.png"},checkbox:{"default":"assets/htmlimages/checkBox_normal.png",
selected:"assets/htmlimages/checkBox_selected.png",disabled:"assets/htmlimages/checkBox_disabled.png",selectedDisabled:"assets/htmlimages/checkBox_selectedDisabled.png"}};this.verbose=!1};cp.inherits(cp.MultipleChoiceQuestion,cp.Question);cp.MultipleChoiceQuestion.prototype.getImageForState=function(a,c){return this.typeStatesMap[a][c]};
cp.MultipleChoiceQuestion.prototype.getAnswerScore=function(a){for(var c=0,b=0;b<this.answerOptions.length;++b){var d=cp.D[this.answerOptions[b]];if(a==d.aid){c=d.ap;break}}return c};
cp.MultipleChoiceQuestion.prototype.getSelectedAnswerChoices=function(){var a="",c=this.m_selectedAnswersArr.slice(0);if(c&&0>=c.length)return"";for(var b=[],d=this.questionData.ao,e=0;e<d.length;++e)for(var f=d[e].split(":"),f=cp.D[f[0]],g=0;g<c.length;++g)f.aid==c[g]&&b.push(cp.D[this.answerOptions[e]].aid);a+=b[0];for(c=1;c<b.length;++c)a+=";",a+=b[c];return a};
cp.MultipleChoiceQuestion.prototype.getAnswerScores=function(){var a=[];if(!this.answerOptions)return a;for(var c=document.getElementsByName(this.getAnswerGroupName()),b=this.m_selectedAnswersArr.slice(0),d={},e=0;e<b.length;++e)d[b[e]]=b[e];for(b=0;b<c.length;++b){var e=cp.D[c[b].parentElement.parentElement.parentElement.id],f=cp(e.answerTextCanvasHolder).firstChild,f=cp.D[f.id],g=new cp.AnswerScore;g.m_answerID=e.aid;g.m_correctAnswer=f.ic?"1":"0";g.m_chosenAnswer=d[e.aid]?"1":"0";a.push(g)}return a};
cp.MultipleChoiceQuestion.prototype.getQuestionScoredPoints=function(){if(this.getIsSurvey()||!this.getWasJudged())return 0;if(!this.isPartialScore)return this.getQuestionLevelScoredPoints();var a=this.getSelectedOptions(this.getAnswerGroupName());if(!a)return 0;for(var c=0,b=0;b<a.length;++b){var d=this.getAnswerID(a[b].parentNode);d&&(c+=this.getAnswerScore(d))}return c};
cp.MultipleChoiceQuestion.prototype.shuffleAnswers=function(){var a=!this.m_quizController.GetIsAttemptFinished()&&this.getWasJudged()&&!this.m_quizController.GetIsSubmitAll(),c=this.getIsPretest()&&this.m_quizController.GetIsPretestQuestionsDisabled();if(this.isShuffleEnabled&&(!a&&!this.m_quizController.GetIsInReviewMode()&&!c)&&!this.m_isShuffled){for(var b=this.answerOptions.length,d,c=[],a=0;a<b;++a)c[a]=this.answerOptions[a];for(a=b;1<a;a--)b=Math.floor(Math.random()*a),b!=a&&(d=c[b],c[b]=c[a-
1],c[a-1]=d);this.answerOptions=c;this.m_isShuffled=!0}};cp.MultipleChoiceQuestion.prototype.getAnswerOption=function(){this.shuffleAnswers();return this.answerOptions[++this.shuffleCounter]};cp.MultipleChoiceQuestion.prototype.getIfSelected=function(a){if(!this.m_selectedAnswersArr||0>=this.m_selectedAnswersArr.length)return!1;for(var c=0;c<this.m_selectedAnswersArr.length;++c)if(a==this.m_selectedAnswersArr[c])return!0;return!1};
cp.MultipleChoiceQuestion.prototype.resetQuestionData=function(){cp.MultipleChoiceQuestion.superClass.resetQuestionData.call(this);this.m_quizController.GetGoToQuizScopeActionExecuted()||(this.m_selectedAnswersArr=[]);this.correctAnswersList="";this.shuffleCounter=-1;this.chosenAnswerHasAdvancedFeedback=!1};
cp.MultipleChoiceQuestion.prototype.selectAnswerOption=function(a){if(a&&(a.inputControl&&!a.inputControl.disabled)&&!this.m_answersDisabled){this.getSelectedOptions();for(var c=document.getElementsByName(this.getAnswerGroupName()),b=0;b<c.length;++b){var d=c[b],e=d.answerObject;a.isSingleChoice?(a.inputControl==d?(d.checked=!0,a.checked=!0):(d.checked=!1,a.checked=!1),d.checked?e.loadAndDrawImage(this.getImageForState(a.type,"selected")):e.loadAndDrawImage(this.getImageForState(a.type,"default"))):
a.inputControl==d&&(d.checked=!d.checked,d.checked?(e.loadAndDrawImage(this.getImageForState(a.type,"selected")),a.checked=!0):(e.loadAndDrawImage(this.getImageForState(a.type,"default")),a.checked=!1))}}};cp.MultipleChoiceQuestion.prototype.setSelectedAnswers=function(){var a=this.getSelectedOptions(this.getAnswerGroupName());if(a&&!(0>=a.length)){this.m_selectedAnswersArr=[];for(var c=0;c<a.length;++c)this.m_selectedAnswersArr.push(cp.D[a[c].parentElement.parentElement.parentElement.id].aid)}};
cp.MultipleChoiceQuestion.prototype.disableAllOptions=function(){if(this.m_quizController){var a=!0;this.m_quizController.GetIsSubmitAll()&&!this.getIsPretest()&&(!this.m_quizController.GetIsInReviewMode()&&!this.m_quizController.m_submittedAllQuestions)&&(a=!1);if(a&&(a=document.getElementsByName(this.getAnswerGroupName()),!(1>a.length))){for(var c=0;c<a.length;++c){var b=a[c].answerObject;b&&b.disableOption&&b.disableOption()}this.m_answersDisabled=!0}}};
cp.MultipleChoiceQuestion.prototype.getChosenAnswerFeedback=function(){for(var a=document.getElementsByName(this.getAnswerGroupName()),c=0,b,d=0;d<a.length;++d)if(!0==a[d].checked){c++;var e=cp(cp.D[a[d].parentElement.parentElement.parentElement.id].answerTextCanvasHolder).firstChild,f=cp.D[e.id],e=f.fb,f=f.ac;if(e||f)if(b={},void 0!=e&&cp.D[e]&&(b.name=e,b.captionToBeShown=!0),void 0!=f)b.action=f}return b};
cp.MultipleChoiceQuestion.prototype.getSelectedOptions=function(a){for(var a=document.getElementsByName(a),c=[],b=0,d=0;d<a.length;++d)!0==a[d].checked&&(c[b++]=a[d]);return c};
cp.MultipleChoiceQuestion.prototype.clearAnswers=function(){this.verbose&&cp.log("Inside Clear Answers");var a=this.m_quizController&&this.m_quizController.GetIsSubmitAll()&&!this.getIsPretest(),a=(a=!1==this.getWasJudged()||a&&!1==this.m_quizController.m_submittedAllQuestions)&&!this.m_quizController.GetIsInReviewMode();if(!1!=a&&(this.m_selectedAnswersArr=[],this.verbose&&cp.log("Not Attempted. Hence Clearing"),a=document.getElementsByName(this.getAnswerGroupName()),!(1>a.length)))for(var c=0;c<
a.length;++c){var b=a[c];b&&(b.checked=!1,b.answerObject&&b.answerObject.loadAndDrawImage(this.getImageForState(b.type,"default")))}};cp.MultipleChoiceQuestion.prototype.checkIfPartiallyCorrect=function(a){if(!this.isPartialScore)return!1;for(var c=this.getExpectedCorrectAnswerIDList(),b={},d=c.length,e=0;e<c.length;++e)b[c[e]]=c[e];for(var f=e=c=0;f<a.length;++f){var g=this.getAnswerID(a[f].parentNode);b[g]?++c:++e}a=!1;0<c&&(a=!0,c==d&&0==e&&(a=!1));return a};
cp.MultipleChoiceQuestion.prototype.checkIfCorrect=function(a){for(var c=this.getExpectedCorrectAnswerIDList(),b={},d=0;d<c.length;++d)b[c[d]]=c[d];for(var e=[],d={},f=0,g=0;g<a.length;++g){var j=a[g];if(!cp.D[j.parentNode.parentNode.parentNode.id].ic)return!1;j=this.getAnswerID(j.parentNode);if(!b[j])return!1;e[f++]=j;d[j]=j}if(e.length!=c.length)return!1;for(a=0;a<c.length;++a)if(!d[c[a]])return!1;return!0};
cp.MultipleChoiceQuestion.prototype.getChosenAnswerAsString=function(){if("choice"==this.getInteractionType())return this.getSelectedAnswerChoices();for(var a=this.getAnsweredCorrectly(),c=0;c<this.answerOptions.length;++c){var b=cp.D[this.answerOptions[c]];if(b.ic){if(a)return b.isTrue}else if(!a)return b.isTrue}};
cp.MultipleChoiceQuestion.prototype.getCorrectAnswerAsString=function(){if("choice"==this.getInteractionType()){var a=this.getExpectedCorrectAnswerIDList();if(0>=a.length)return"0";for(var c=a[0],b=1;b<a.length;++b)c+=";"+a[b];return c}for(b=0;b<this.answerOptions.length;++b)if(a=cp.D[this.answerOptions[b]],a.ic)return a.isTrue};cp.MultipleChoiceQuestion.prototype.getChosenAnswerAsStringForReview=function(){return this.getSelectedAnswerChoices()};
cp.MultipleChoiceQuestion.prototype.getCorrectAnswerAsStringForReview=function(){var a=this.getExpectedCorrectAnswerIDList();if(0>=a.length)return"0";for(var c=a[0],b=1;b<a.length;++b)c+=";"+a[b];return c};
cp.MultipleChoiceQuestion.prototype.getExpectedCorrectAnswerTextList=function(a){for(var c=[],b=-1,d=0;d<this.answerOptions.length;++d){var e=cp.D[this.answerOptions[d]];e.ic&&(c[++b]=cp.trimStartingAndTrailingSpaces(e.atxtlms))}if(0>=c.length)return"";b=c[0];for(d=1;d<c.length;++d)b+=a+c[d];cp.verbose&&cp.log("Expected Answer Text List : "+b);return b};
cp.MultipleChoiceQuestion.prototype.getSelectedAnswerTextList=function(a){var c=this.getSelectedOptions(this.getAnswerGroupName());if(c&&!(0>=c.length)){for(var b=[],d=-1,e=0;e<c.length;++e){var f=cp.D[c[e].parentNode.parentNode.parentNode.id].answerTextCanvasHolder.replace("canvasHolder",""),f=cp.D[cp.D[f].mdi];b[++d]=cp.trimStartingAndTrailingSpaces(f.atxtlms)}if(0>=b.length)return"";c=b[0];for(e=1;e<b.length;++e)c+=a+b[e];cp.verbose&&cp.log("Expected Answer Text List : "+c);return c}};
cp.MultipleChoiceQuestion.prototype.getAnswerTexts=function(){for(var a=cp.MultipleChoiceQuestion.superClass.getAnswerTexts.call(this),c={},b=this.questionData.ao,d=0;d<b.length;++d){var e=b[d].split(":"),e=cp.D[e[0]];c[e.aid]=cp.trimStartingAndTrailingSpaces(e.atxtlms)}a.answerTextMap=c;return a};cp.MultipleChoiceQuestion.prototype.saveAnswerOrder=function(){this.m_answerOrderArray=this.answerOptions.slice(0);this.setSelectedAnswers()};
cp.MultipleChoiceQuestion.prototype.checkAndSetQuestionStatus=function(){var a=this.QuestionStatusEnum.INCOMPLETE,a=this.getSelectedOptions(this.getAnswerGroupName()),a=!a||0==a.length?this.QuestionStatusEnum.INCOMPLETE:this.getIsSurvey()?this.QuestionStatusEnum.CORRECT:this.checkIfPartiallyCorrect(a)?this.QuestionStatusEnum.PARTIAL_CORRECT:this.checkIfCorrect(a)?this.QuestionStatusEnum.CORRECT:this.QuestionStatusEnum.INCORRECT;this.setQuestionStatus(a)};
cp.MultipleChoiceQuestion.prototype.startQuestion=function(){this.chosenAnswerFeedback=this.correctAnswersList="";this.shuffleCounter=-1;this.chosenAnswerHasAdvancedFeedback=!1;cp.MultipleChoiceQuestion.superClass.startQuestion.call(this)};
cp.playbar=function(a){return document.getElementById(a)};cp.PB=cp.playbar;cp.PB.Btns={kBtnAudioOff:"AudioOff",kBtnAudioOn:"AudioOn",kBtnBackward:"Backward",kBtnCC:"CC",kBtnExit:"Exit",kBtnFastForward:"FastForward",kBtnFastForward1:"FastForward1",kBtnFastForward2:"FastForward2",kBtnForward:"Forward",kBtnInfo:"Info",kBtnLogo:"Logo",kBtnPlay:"Play",kBtnPause:"Pause",kBtnPrint:"Print",kBtnProgress:"Progress",kBtnRewind:"Rewind",kBtnThumb:"Thumb",kBtnThumbBase:"ThumbBase",kBtnTOC:"TOC"};
cp.PB.BtnStyleImages="Color ColorSmall Glow GlowSmall Height Shadow ShadowSmall InnerStroke InnerStrokeSmall Shade ShadeSmall Stroke StrokeSmall".split(" ");cp.PB.kLargeBtn=0;cp.PB.kSmallBtn=1;cp.PB.kBtnMargin=2;cp.PB.kIndentMargin=8;cp.PB.movieProperties=null;cp.PB.assetsLoaded=0;cp.PB.assetsLoadedArray={};cp.PB.isVertical=!1;cp.PB.numBtns=0;cp.PB.playBarDim=0;cp.PB.mainMovie=null;cp.PB.playBarOtherDim=0;cp.PB.playbarHasLogo=!1;cp.PB.playbarHasInfo=!1;cp.PB.playbarHasPrint=!1;
cp.PB.loadedAssetArr={};cp.PB.playBarIconsFolder="./assets/playbar/PlaybarIcons/";cp.PB.PNGSuffix=".png";cp.PB.btnSizeMap={};cp.PB.btnSizeMap[cp.PB.Btns.kBtnAudioOff]=cp.PB.kSmallBtn;cp.PB.btnSizeMap[cp.PB.Btns.kBtnAudioOn]=cp.PB.kSmallBtn;cp.PB.btnSizeMap[cp.PB.Btns.kBtnBackward]=cp.PB.kSmallBtn;cp.PB.btnSizeMap[cp.PB.Btns.kBtnCC]=cp.PB.kSmallBtn;cp.PB.btnSizeMap[cp.PB.Btns.kBtnExit]=cp.PB.kSmallBtn;cp.PB.btnSizeMap[cp.PB.Btns.kBtnFastForward]=cp.PB.kSmallBtn;
cp.PB.btnSizeMap[cp.PB.Btns.kBtnFastForward1]=cp.PB.kSmallBtn;cp.PB.btnSizeMap[cp.PB.Btns.kBtnFastForward2]=cp.PB.kSmallBtn;cp.PB.btnSizeMap[cp.PB.Btns.kBtnForward]=cp.PB.kSmallBtn;cp.PB.btnSizeMap[cp.PB.Btns.kBtnPlay]=cp.PB.kLargeBtn;cp.PB.btnSizeMap[cp.PB.Btns.kBtnPause]=cp.PB.kLargeBtn;cp.PB.btnSizeMap[cp.PB.Btns.kBtnRewind]=cp.PB.kSmallBtn;cp.PB.btnSizeMap[cp.PB.Btns.kBtnTOC]=cp.PB.kSmallBtn;cp.PB.btnSizeMap[cp.PB.Btns.kBtnInfo]=cp.PB.kSmallBtn;cp.PB.btnSizeMap[cp.PB.Btns.kBtnPrint]=cp.PB.kSmallBtn;
cp.PB.playBarHeight=0;cp.PB.playBarCSSLoaded=!1;cp.PB.toolTips={};cp.PB.toolTips[cp.PB.Btns.kBtnRewind]="Rewind ;\u5012\u5e36 ;Rembobiner ;Zur\u00fcckspulen ;Riavvolgi ;\u5dfb\u304d\u623b\u3057 ;Rebobinar ;\ub418\uac10\uae30 ;Retroceder ".split(";");cp.PB.toolTips[cp.PB.Btns.kBtnBackward]="Back ;\u5f8c\u9000 ;Retour ;Zur\u00fcck ;Indietro ;\u623b\u308b ;Atr\u00e1s ;\ub4a4\ub85c ;Voltar ".split(";");cp.PB.toolTips[cp.PB.Btns.kBtnPlay]="Play ;\u64ad\u653e ;Lire ;Abspielen ;Esegui ;\u518d\u751f ;Reproducir ;\uc7ac\uc0dd ;Reproduzir ".split(";");
cp.PB.toolTips[cp.PB.Btns.kBtnPause]="Pause ;\u66ab\u505c ;Pause ;Anhalten ;Pausa ;\u4e00\u6642\u505c\u6b62 ;Pausa ;\uc77c\uc2dc \uc911\uc9c0 ;Pausar ".split(";");cp.PB.toolTips[cp.PB.Btns.kBtnForward]="Forward ;\u524d\u9032 ;Avancer ;Weiter ;Avanti ;\u9032\u3080 ;Adelante ;\uc55e\uc73c\ub85c ;Avan\u00e7ar ".split(";");cp.PB.toolTips[cp.PB.Btns.kBtnCC]="Closed Captioning ;\u96b1\u85cf\u5f0f\u5b57\u5e55 ;Sous-titrage ;Bilduntertitel ;Didascalie ;\u30af\u30ed\u30fc\u30ba\u30c9\u30ad\u30e3\u30d7\u30b7\u30e7\u30f3 ;Subt\u00edtulos opcionales ;\ud3d0\uc1c4 \ucea1\uc158 ;Legenda codificada ".split(";");
cp.PB.toolTips[cp.PB.Btns.kBtnAudioOn]="Audio Off ;\u95dc\u9589\u97f3\u8a0a ;Audio d\u00e9sactiv\u00e9 ;Audio aus ;Audio spento ;\u97f3\u58f0 \u30aa\u30d5 ;Audio desact. ;\uc624\ub514\uc624 \ub044\uae30 ;\u00c1udio ligado ".split(";");cp.PB.toolTips[cp.PB.Btns.kBtnAudioOff]="Audio On ;\u958b\u555f\u97f3\u8a0a ;Audio activ\u00e9 ;Audio an ;Audio acceso ;\u97f3\u58f0 \u30aa\u30f3 ;Audio act.;\uc624\ub514\uc624 \ucf1c\uae30 ;\u00c1udio desligado ".split(";");cp.PB.toolTips[cp.PB.Btns.kBtnExit]="Exit ;\u7d50\u675f ;Quitter ;Beenden ;Esci ;\u9589\u3058\u308b ;Salir ;\ub05d\ub0b4\uae30 ;Sair ".split(";");
cp.PB.toolTips[cp.PB.Btns.kBtnInfo]="Information ;\u8cc7\u8a0a ;Informations ;Informationen ;Informazioni ;\u60c5\u5831 ;Informaci\u00f3n ;\uc815\ubcf4 ;Informa\u00e7\u00f5es ".split(";");cp.PB.toolTips[cp.PB.Btns.kBtnTOC]="Table of Contents ;\u76ee\u9304 ;Table des mati\u00e8res ;Inhaltsverzeichnis ;Sommario ;\u76ee\u6b21 ;Contenido ;\ubaa9\ucc28 ;\u00cdndice anal\u00edtico ".split(";");cp.PB.toolTips[cp.PB.Btns.kBtnFastForward]="2x Fast Forward Speed ;2 \u500d\u901f\u5feb\u8f49 ;Vitesse d'avance rapide x2 ;Zweifache Vorspulgeschwindigkeit ;Velocit\u00e0 avanzamento rapido 2x ;2 \u500d\u901f ;Velocidad de avance r\u00e1pido 2x ;2\ubc30\uc18d \ube68\ub9ac \uac10\uae30 ;Velocidade 2x de avan\u00e7ar ".split(";");
cp.PB.toolTips[cp.PB.Btns.kBtnFastForward1]="4x Fast Forward Speed ;4 \u500d\u901f\u5feb\u8f49 ;Vitesse d'avance rapide x4 ;Vierfache Vorspulgeschwindigkeit ;Velocit\u00e0 avanzamento rapido 4x ;4 \u500d\u901f ;Velocidad de avance r\u00e1pido 4x ;4\ubc30\uc18d \ube68\ub9ac \uac10\uae30 ;Velocidade 4x de avan\u00e7ar ".split(";");cp.PB.toolTips[cp.PB.Btns.kBtnFastForward2]="Normal Speed ;\u6b63\u5e38\u901f\u5ea6 ;Vitesse normale ;Normale Geschwindigkeit ;Velocit\u00e0 normale ;\u6a19\u6e96\u901f\u5ea6 ;Velocidad normal ;\uc77c\ubc18 \uc18d\ub3c4 ;Velocidade normal ".split(";");
cp.PB.toolTips[cp.PB.Btns.kBtnPrint]="Print;\u5217\u5370 ;Imprimer ;Drucken ;Stampa ;\u5370\u5237 ;Imprimir ;\uc778\uc1c4 ;Imprimir ".split(";");cp.PB.toolTipLocaleIndex=0;cp.PB.hideExitButton=0;cp.localizeToolTips=function(a){return cp.playbarTooltips&&cp.playbarTooltips[a]?cp.playbarTooltips[a]:cp.PB.toolTips[a][cp.PB.toolTipLocaleIndex]?cp.PB.toolTips[a][cp.PB.toolTipLocaleIndex]:a};
cp.PB.PlayBarButton=function(a,b,c){this.SmallSuffix="Small";this.isSmall=cp.PB.btnSizeMap[a];this.iconName=a;this.playBarDiv=b;this.currDiv=document.createElement("canvas");this.currDiv.parentObj=this;this.playBarDiv.appendChild(this.currDiv);this.currDiv.setAttribute("class",this.isSmall?"playbarSmallButton":"playbarBigButton");this.currDiv.width=this.currDiv.clientWidth;this.currDiv.height=this.currDiv.clientHeight;this.ctx=this.currDiv.getContext("2d");this.currDiv.imgElemArray=[];this.currDiv.toggleimgElemArray=
[];this.currDiv.title=cp.PB.MP.PBP.noToolTips?"":this.iconName;this.currDiv.curIcon=0;this.currDiv.tabIndex=0;this.currDiv.setAttribute("role","button");this.clickHandler=c;this.currDiv.style.marginTop=0==cp.PB.MP.PBP.tworow?(this.playBarDiv.height-this.currDiv.height)/2+"px":"0px";this.currDiv.style.marginLeft="0px"};
cp.PB.PlayBarButton.prototype={setImage:function(a){var b=cp.PB.loadedAssetArr[a+(this.isSmall?this.SmallSuffix:"")];void 0!=b&&(b.isGlow="Glow"==a,b.showImage=!0,b.imageName=a+(this.isSmall?this.SmallSuffix:""),this.currDiv.imgElemArray[this.currDiv.imgElemArray.length]=b)},getWidth:function(){void 0==this.actualClientWidth&&(this.actualClientWidth=this.currDiv.clientWidth);return this.actualClientWidth},destroy:function(){this.currDiv&&(this.currDiv.style.display="none",this.currDiv.parentElement&&
this.currDiv.parentElement.removeChild(this.currDiv))},setPosNWidth:function(a,b,c,d){if(0>=d)return 0;cp.registerGestureEvent(this.currDiv,cp.GESTURE_EVENT_TYPES.TAP,this.onClick);this.currDiv.onkeydown=this.onKeyDown;d=a?0:parseFloat(window.getComputedStyle(this.currDiv).marginLeft.replace("px",""));this.currDiv.style.marginLeft=d+b+"px";b=parseFloat(window.getComputedStyle(this.currDiv).marginTop.replace("px",""));this.currDiv.style.marginTop=b+(a?0:c)+"px";this.refresh();return cp.PB.kBtnMargin},
setIcon:function(a){var b=cp.PB.loadedAssetArr[a];b.parentElem=this.currDiv;b.isGlow=!1;b.imageName=a;cp.PB.isVertical&&cp.applyTransform(b,"matrix(0,1,-1,0,0,0)");this.currDiv.toggleimgElemArray[this.currDiv.toggleimgElemArray.length]=b;this.currDiv.currImageName=a;this.currDiv.title=cp.PB.MP.PBP.noToolTips?"":cp.localizeToolTips(this.currDiv.toggleimgElemArray[this.currDiv.curIcon].imageName)},onClick:function(a){this.parentObj.toggleImage(a);void 0!=this.parentObj.clickHandler&&this.parentObj.clickHandler()},
onKeyDown:function(a){var b;a.keyCode?b=a.keyCode:a.which&&(b=a.which);32==b&&(this.parentObj.toggleImage(a),void 0!=this.parentObj.clickHandler&&this.parentObj.clickHandler())},toggleImage:function(a){var b=this.currDiv;null==b&&(b=this);b.curIcon=(b.curIcon+1)%b.toggleimgElemArray.length;var c=cp.localizeToolTips(b.toggleimgElemArray[b.curIcon].imageName);b.title=cp.PB.MP.PBP.noToolTips?"":c;cp.modifyAlternativeAccessibleText(b,c);b.parentObj.onMouseOver(a)},changeImage:function(a){var b=this.currDiv;
null==b&&(b=this);this.currDiv.currImageName=a;for(var c=0;c<b.toggleimgElemArray.length;++c)if(a==b.toggleimgElemArray[c].imageName){if(c==b.curIcon)return;b.curIcon=c;b.title=cp.localizeToolTips(b.toggleimgElemArray[b.curIcon].imageName)}if(b.rollover)b.parentObj.onMouseOver(null);else b.parentObj.onMouseOut(null)},refresh:function(){this.onMouseOut(null)},onMouseOver:function(){var a=this.ctx,b=this.currDiv;null==b&&(b=this);null==a&&(a=this.getContext("2d"));b.rollover=!0;var c;a.clearRect(0,
0,b.clientWidth,b.clientHeight);for(var d=0;d<b.imgElemArray.length;++d)c=b.imgElemArray[d],a.drawImage(c,(b.clientWidth-c.width)/2,(b.clientHeight-c.height)/2);c=b.toggleimgElemArray[b.curIcon];var d=b.clientWidth/2,f=b.clientHeight/2,g=c.width,e=c.height;a.translate(d,f);a.rotate(Math.PI/180*(cp.PB.isVertical?-90:0));a.drawImage(c,-g/2,-e/2,g,e);b.currImageName=c.imageName;a.rotate(Math.PI/180*(cp.PB.isVertical?90:0));a.translate(-d,-f)},onMouseOut:function(){var a=this.ctx,b=this.currDiv;null==
b&&(b=this);null==a&&(a=this.getContext("2d"));b.rollover=!1;a.clearRect(0,0,b.clientWidth,b.clientHeight);if(b.imgElemArray){for(var c=0;c<b.imgElemArray.length;++c){var d=b.imgElemArray[c];d.isGlow||a.drawImage(d,(b.clientWidth-d.width)/2,(b.clientHeight-d.height)/2)}var d=b.toggleimgElemArray[b.curIcon],c=b.clientWidth/2,f=b.clientHeight/2,g=d.width,e=d.height;a.translate(c,f);a.rotate(Math.PI/180*(cp.PB.isVertical?-90:0));a.drawImage(d,-g/2,-e/2,g,e);b.currImageName=d.imageName;a.rotate(Math.PI/
180*(cp.PB.isVertical?90:0));a.translate(-c,-f)}}};
cp.PB.PlayBarSlider=function(a){this.thumbBase="ThumbBase";this.progress="Progress";this.thumb="Thumb";this.playBarDiv=a;this.currDiv=document.createElement("div");this.currDiv.setAttribute("class","playbarSlider");this.playBarDiv.appendChild(this.currDiv);this.currDiv.border="0px";this.currDiv.margin="0px";this.currDiv.padding="0px";this.progressDiv=document.createElement("canvas");this.currDiv.appendChild(this.progressDiv);this.currDiv.progressDiv=this.progressDiv;this.progressDiv.id="playbarSlider";
this.thumbimg=cp.PB.loadedAssetArr[this.thumb];this.thumbDiv=document.createElement("div");a=-1;0===cp.D.pref.rkt&&(a=10006);this.thumbDiv.setAttribute("tabindex",a);this.thumbDiv.setAttribute("class","playbarSliderThumb");this.currDiv.appendChild(this.thumbDiv);cp.fixWebkitScaling(this.thumbDiv);this.thumbimg.style.display="block";this.thumbDiv.appendChild(this.thumbimg);this.progressDiv.thumbDiv=this.thumbDiv;this.thumbDiv.progressDiv=this.progressDiv;this.thumbDiv.id="playbarSliderThumb";this.currDiv.style.marginLeft=
"0px";""==this.currDiv.style.marginTop&&(this.currDiv.style.marginTop="0px");this.currDiv.height=1==cp.PB.MP.PBP.tworow?this.playBarDiv.height/2:this.playBarDiv.height};
cp.PB.PlayBarSlider.prototype={adjustWidth:function(){this.currDiv.style.width="58px"},setPosNWidth:function(a,b,c,d){d-=this.progressDiv.thumbDiv.clientWidth;if(0>=d)return 0;this.currDiv.width=d;this.currDiv.style.width=d+"px";d=a?0:parseFloat(window.getComputedStyle(this.currDiv).marginLeft.replace("px",""));this.currDiv.style.marginLeft=d+b+2*cp.PB.kBtnMargin+"px";b=a?0:parseFloat(window.getComputedStyle(this.currDiv).marginTop.replace("px",""));a||(this.currDiv.style.marginTop=b+c+"px");this.init(a);
this.refresh(a);this.currDiv.style.display="inline";return 2*cp.PB.kBtnMargin},getWidth:function(){void 0==this.actualClientWidth&&(this.actualClientWidth=this.currDiv.clientWidth+this.progressDiv.thumbDiv.clientWidth);return this.actualClientWidth},destroy:function(){this.currDiv&&(this.currDiv.style.display="none",this.currDiv.parentElement&&this.currDiv.parentElement.removeChild(this.currDiv))},init:function(){this.thumbDiv.width=this.thumbDiv.clientWidth;this.thumbDiv.height=this.thumbDiv.clientHeight;
var a=cp.PB.loadedAssetArr[this.thumbBase];this.progressDiv.parentObj=this;cp.registerGestureEvent(this.progressDiv,cp.GESTURE_EVENT_TYPES.TAP,this.moveSlider);this.progressDiv.updateSlider=this.updateSlider;this.progressDiv.thumbBasePattern=this.progressDiv.getContext("2d").createPattern(a,"repeat");a=cp.PB.loadedAssetArr[this.progress];this.progressDiv.progressPattern=this.progressDiv.getContext("2d").createPattern(a,"repeat");this.progressDiv.width=this.currDiv.width;this.progressDiv.height=a.height;
this.progressDiv.style.marginTop="0px";this.progressDiv.style.marginLeft=this.thumbDiv.width/2+"px";this.progressDiv.maxFrameWidth=this.progressDiv.width;this.progressDiv.maxFrameHeight=this.progressDiv.height;this.progressDiv.style.marginTop=0==cp.PB.MP.PBP.tworow?(this.playBarDiv.height-this.progressDiv.height)/2+"px":(this.playBarDiv.height/2-this.progressDiv.height)/2+"px";this.currDiv.width+=this.thumbDiv.width;this.currDiv.style.width=this.currDiv.width+"px";this.currDiv.height=this.playBarDiv.height;
cp.device==cp.IDEVICE?this.thumbDiv.ontouchstart=this.onMouseDown:this.thumbDiv.onmousedown=this.onMouseDown;a=parseFloat(window.getComputedStyle(this.thumbDiv).top.replace("px",""));if(1==cp.PB.MP.PBP.tworow){var b=0;cp.responsive&&(b=-this.thumbDiv.clientHeight/2);this.thumbDiv.style.top=a+b+this.playBarDiv.height/2+(this.playBarDiv.height/2-this.progressDiv.height)/2+"px"}else this.thumbDiv.style.top=a+(this.playBarDiv.height-this.progressDiv.height)/2+"px";cp.pg||cp.createAlternativeAccessibleText(this.thumbDiv,
"Progress, Slide "+(cpInfoCurrentSlideIndex+1)+" of "+cp.movie.stage.slides.length,"slider")},refresh:function(){cp.responsive?this.updateSlider(cpInfoCurrentFrame):this.updateSlider(1)},onMouseDown:function(a){this.underDrag=!0;cp.em&&cp.em.fireEvent("CPStartPlaybarScrubbing");this.style.position="absolute";var b=document.getElementById("playbarSliderThumb").progressDiv,c=b.progLen,d=document.onmousemove,f=document.onmouseup;cp.device==cp.IDEVICE&&(d=document.ontouchmove,f=document.ontouchend);var g=
a;cp.device==cp.IDEVICE&&(g=a.touches[0]);a=function(a){cp.playbarMoved();a.stopPropagation();var d=a;if(cp.device==cp.IDEVICE){d=a.touches[0];a.preventDefault()}a=0;a=cp.PB.isVertical?d.clientY-g.clientY:d.clientX-g.clientX;if(a!=0){d=Math.round((c+a)*cp.PB.MP.project_main.to/b.width);if(d<1)d=1;else if(cp.frame>cp.PB.MP.project_main.to)d=cp.PB.MP.project_main.to;if(cp.PB.mainMovie&&!cp.PB.mainMovie.virgin){cp.PB.mainMovie.pause(cp.ReasonForPause.PLAYBAR_ACTION);cp.PB.mainMovie.jumpToFrame(d)}}};
cp.device==cp.IDEVICE?document.ontouchmove=a:document.onmousemove=a;a=function(){if(cp.device==cp.IDEVICE){document.ontouchmove=d;document.ontouchend=f}else{document.onmousemove=d;document.onmouseup=f}cp.em&&cp.em.fireEvent("CPEndPlaybarScrubbing")};cp.device==cp.IDEVICE?document.ontouchend=a:document.onmouseup=a;return!1},moveSlider:function(a){cp.playbarMoved();a=Math.round((void 0==a.offsetX?a.layerX-a.currentTarget.offsetLeft:a.offsetX)*cp.PB.MP.project_main.to/this.width);1>a?a=1:a>cp.PB.MP.project_main.to&&
(a=cp.PB.MP.project_main.to);cp.PB.mainMovie&&!cp.PB.mainMovie.virgin&&(cp.PB.mainMovie.pause(cp.ReasonForPause.PLAYBAR_ACTION),cp.PB.mainMovie.jumpToFrame(a))},updateSlider:function(a){a>cp.PB.MP.project_main.to&&(a=cp.PB.MP.project_main.to);var b=this.progressDiv;null==b&&(b=this);var c=b.getContext("2d");c.clearRect(0,0,b.width,b.height);c.fillStyle=b.thumbBasePattern;c.fillRect(0,0,b.width,b.height);c.fillStyle=b.progressPattern;c.fillRect(0,0,b.width*a/cp.PB.MP.project_main.to,b.height);b.progLen=
b.width*a/cp.PB.MP.project_main.to;b.thumbDiv.style.marginLeft=b.progLen+"px";b.thumbDiv.title=cpInfoCurrentSlideIndex+1+"/"+cp.movie.stage.slides.length;cp.modifyAlternativeAccessibleText(this.thumbDiv,"Progress, Slide "+(cpInfoCurrentSlideIndex+1)+" of "+cp.movie.stage.slides.length)}};
cp.PB.playBarConstruct=function(a){this.playBarDiv=a;this.slider=this.bkGrndDiv=null;this.firstRowArray=[];this.secondRowArray=[];this.btnMap={};this.secondRowMinWidth=this.firstRowMinWidth=this.minWidth=0;this.logo=null};
cp.PB.playBarConstruct.prototype={createSlider:function(a,b,c){this.slider&&cp.responsive&&this.slider.destroy();if(void 0==cp.PB.MP.playBarProperties.hasSlider||0==cp.PB.MP.playBarProperties.hasSlider)return 0;this.slider=new cp.PB.PlayBarSlider(this.bkGrndDiv);if(this.slider.getWidth()+4*cp.PB.kBtnMargin+c+2*cp.PB.kIndentMargin>cp.PB.playBarDim)return this.slider.destroy(),0;b[b.length]=this.slider;this.slider.expectedWidth=this.slider.getWidth();return this.slider.expectedWidth+4*cp.PB.kBtnMargin},
createBackground:function(){var a=document.getElementById("playbarBkGrnd");a.height=a.clientHeight;this.bkGrndDiv=a},setBackGroundWidth:function(a){this.bkGrndDiv.width=a;this.bkGrndDiv.style.width=a+"px";a=cp.PB.loadedAssetArr.BackGround.src;if(cp.PB.MP.PBP.applyColors){var b=document.createElement("canvas");b.width=this.bkGrndDiv.width;b.height=this.bkGrndDiv.height;a=b.getContext("2d");a.clearRect(0,0,this.bkGrndDiv.width,this.bkGrndDiv.height);a.globalAlpha=cp.PB.MP.PBP.alpha/100;cp.setFillStrokeStyle(cp.PB.MP.PBP.BkColor,
b);a.fillRect(0,0,this.bkGrndDiv.width,this.bkGrndDiv.height);""==this.bkGrndDiv.style.backgroundImage&&(a=b.toDataURL("image/png"),this.bkGrndDiv.style.backgroundImage='url("'+a+'")');this.bkGrndDiv.style.backgroundSize="100% 100%"}else b=document.createElement("canvas"),this.bkGrndDiv.insertBefore(b,this.bkGrndDiv.firstChild),b.width=this.bkGrndDiv.width,b.height=this.bkGrndDiv.height,b.style.position="absolute",b.style.display="block",a=b.getContext("2d"),a.clearRect(0,0,this.bkGrndDiv.width,this.bkGrndDiv.height),
a.globalAlpha=cp.PB.MP.PBP.alpha/100,a.drawImage(cp.PB.loadedAssetArr.BackGround,0,0,this.bkGrndDiv.width,this.bkGrndDiv.height),b.style.zIndex=-10},createButton:function(a,b,c,d,f,g){var e,h;if(cp.responsive&&(e=this.btnMap[b[0]]))e.currDiv&&(h=e.currDiv.currImageName),e.destroy();if(b[0]!=cp.PB.Btns.kBtnInfo&&b[0]!=cp.PB.Btns.kBtnPrint){if(void 0==cp.PB.MP.playBarProperties["has"+b[0]]||0==cp.PB.MP.playBarProperties["has"+b[0]])return 0}else if(b[0]==cp.PB.Btns.kBtnInfo&&!1==cp.PB.playbarHasInfo||
b[0]==cp.PB.Btns.kBtnPrint&&!1==cp.PB.playbarHasPrint)return 0;if(void 0==cp.PB.loadedAssetArr[b[0]])return 0;e=new cp.PB.PlayBarButton(b[0],this.bkGrndDiv,d);if(e.getWidth()+cp.PB.kBtnMargin+f+2*cp.PB.kIndentMargin>cp.PB.playBarDim)return e.destroy(),0;e.setImage("Shadow");e.setImage("Stroke");e.setImage("Color");e.setImage("Shade");e.setImage("InnerStroke");e.setImage("Glow");e.setImage("InnerShade");a&&(e.currDiv.style.display="block");for(d=0;d<b.length;++d)e.setIcon(b[d]),a&&e.changeImage(h),
this.btnMap[b[d]]=e;e.currDiv.setAttribute("tabindex",g);cp.createAlternativeAccessibleText(e.currDiv,cp.localizeToolTips(b[0]),"");e.currDiv.onmouseover=e.onMouseOver;cp.registerGestureEvent(e.currDiv,cp.GESTURE_EVENT_TYPES.TAP,e.toggleImage);e.currDiv.onmouseout=e.onMouseOut;c[c.length]=e;e.expectedWidth=e.getWidth();b[0]==cp.PB.Btns.kBtnExit&&cp.PB.hideExitButton&&(e.currDiv&&e.currDiv.style.display)&&(e.currDiv.style.display="none");return e.expectedWidth+cp.PB.kBtnMargin},createLogo:function(a,
b){if(!1==cp.PB.playbarHasLogo)return 0;var c;a?(c=document.getElementById("playbarLogo"),this.bkGrndDiv.removeChild(c),this.bkGrndDiv.appendChild(c)):(c=document.createElement("div"),c.id="playbarLogo",this.bkGrndDiv.appendChild(c),c.setAttribute("class","playbarLogo"));c.style.marginTop=0==cp.PB.MP.PBP.tworow?(this.bkGrndDiv.height-c.clientHeight)/2+"px":"0px";if(c.clientWidth+cp.PB.kBtnMargin+b+2*cp.PB.kIndentMargin>cp.PB.playBarDim)return this.bkGrndDiv.removeChild(c),0;this.logo=c;return c.clientWidth+
cp.PB.kBtnMargin},initComponents:function(a){var b=cp.D.quizzingData.quizBranchAware;if(0==cp.PB.MP.PBP.tworow){for(var c=cp.PB.kIndentMargin,d=0,d=void 0==this.slider&&!b?1<this.firstRowArray.length?(this.bkGrndDiv.width-this.firstRowMinWidth)/(this.firstRowArray.length-1):(this.bkGrndDiv.width-this.firstRowMinWidth)/2:0,b=0;b<this.firstRowArray.length;++b)cp.responsive&&0>=this.firstRowArray[b].expectedWidth||(c=this.firstRowArray[b].setPosNWidth(a,c,0,this.firstRowArray[b].expectedWidth),c+=d);
null!=this.logo&&(this.logo.style.marginLeft=c+"px")}else{for(var c=cp.PB.kIndentMargin,d=1<this.firstRowArray.length?(this.bkGrndDiv.width-this.firstRowMinWidth)/(this.firstRowArray.length-1):(this.bkGrndDiv.width-this.firstRowMinWidth)/2,f=0,b=0;b<this.firstRowArray.length;++b)c=this.firstRowArray[b].setPosNWidth(a,c,(this.bkGrndDiv.height/2-this.firstRowArray[b].currDiv.height)/2,this.firstRowArray[b].expectedWidth),c+=d,f<(this.bkGrndDiv.height/2+this.firstRowArray[b].currDiv.height)/2&&(f=(this.bkGrndDiv.height/
2+this.firstRowArray[b].currDiv.height)/2);c=cp.PB.kIndentMargin;d=void 0==this.slider?1<this.secondRowArray.length?(this.bkGrndDiv.width-this.secondRowMinWidth)/(this.secondRowArray.length-1):(this.bkGrndDiv.width-this.secondRowMinWidth)/2:0;for(b=0;b<this.secondRowArray.length;++b)c=this.secondRowArray[b].setPosNWidth(a,c,this.bkGrndDiv.height/2-f+(this.bkGrndDiv.height/2-this.secondRowArray[b].currDiv.height)/2,this.secondRowArray[b].expectedWidth),c+=d;null!=this.logo&&(this.logo.style.marginLeft=
c+"px",this.logo.style.marginTop=this.bkGrndDiv.height/2-f+(this.bkGrndDiv.height/2-this.secondRowArray[b].currDiv.height)/2+"px")}},transformPlaybar:function(){var a="matrix(",a=cp.PB.isVertical?a+"0,1,-1,0,":a+"1,0,0,1,";this.playBarDiv.style.left="0px";this.playBarDiv.style.top="0px";var b=0,c=0;switch(cp.PB.MP.PBP.position){case 2:b+=cp.PB.playBarOtherDim,cp.PB.MP.PBP.overlay&&(b-=this.bkGrndDiv.height);case 0:b+=(-this.bkGrndDiv.width+this.bkGrndDiv.height)/2;cp.loadedModules.toc&&1==cp.toc.movieProperties.tocProperties.position&&
(b+=cp.D.tocProperties.width);switch(cp.PB.MP.PBP.layout){case 0:c=(this.bkGrndDiv.width-this.bkGrndDiv.height)/2;break;case 1:c=(cp.PB.playBarDim-this.bkGrndDiv.height)/2;break;case 2:c=cp.PB.playBarDim-(this.bkGrndDiv.width+this.bkGrndDiv.height)/2;break;case 3:c=(cp.PB.playBarDim-this.bkGrndDiv.height)/2}break;case 3:c+=cp.PB.playBarOtherDim,cp.PB.MP.PBP.overlay&&(c-=this.bkGrndDiv.height);case 1:switch(cp.PB.MP.PBP.layout){case 0:b=0;break;case 1:b=cp.PB.playBarDim-this.bkGrndDiv.width;break;
case 2:b=(cp.PB.playBarDim-this.bkGrndDiv.width)/2;break;case 3:b=0}cp.loadedModules.toc&&(1==cp.toc.movieProperties.tocProperties.position&&!cp.toc.movieProperties.tocProperties.overlay)&&(b+=cp.D.tocProperties.width)}cp.applyTransform(this.playBarDiv,a+(b+","+c+")"))},applyColor:function(a,b){var c=document.createElement("canvas"),d=document.createElement("canvas");d.width=b.width;d.height=b.height;c.width=b.width;c.height=b.height;var f=c.getContext("2d");f.clearRect(0,0,b.width,b.height);cp.setFillStrokeStyle(a,
c,void 0,!0);f.fillRect(0,0,b.width,b.height);f=d.getContext("2d");f.clearRect(0,0,b.width,b.height);f.globalAlpha=a.alpha/100;f.drawImage(b,0,0,b.width,b.height);f.globalCompositeOperation="source-atop";f.drawImage(c,0,0,b.width,b.height);return d},setHasButtons:function(){if(cp.responsive&&cp.PB&&(cp.PB.MP&&cp.PB.MP.PBP)&&cp.responsiveButtons){cp.PB.MP.PBPO||(cp.PB.MP.PBPO={});var a=cp.responsiveAllBPWidths.indexOf(cp.ResponsiveProjWidth);if(!(0>a||a>=cp.responsiveAllBPWidths.length)){var a=cp.responsiveAllBPWidths.length-
1-a,b;for(b in cp.responsiveButtons){if(void 0===cp.PB.MP.PBPO["has"+b]||"undefined"===cp.PB.MP.PBPO["has"+b])cp.PB.MP.PBPO["has"+b]=cp.PB.MP.PBP["has"+b];cp.PB.MP.PBPO["has"+b]&&(cp.PB.MP.PBP["has"+b]=cp.responsiveButtons[b][a])}}}},layoutPlaybar:function(a){this.firstRowArray=[];this.secondRowArray=[];var b=0,c=-cp.PB.kBtnMargin;cp.PB.isVertical=0==cp.PB.MP.PBP.position%2?!0:!1;cp.responsive?(this.setHasButtons(),cp.PB.playBarDim=cp("project").clientWidth*cp.respGestureScaleFactor>window.innerWidth?
window.innerWidth:cp("project").clientWidth):cp.PB.playBarDim=cp.PB.isVertical?cp.PB.MP.project.h:cp.PB.MP.project.w;cp.PB.playBarOtherDim=!1==cp.PB.isVertical?cp.PB.MP.project.h:cp.PB.MP.project.w;this.createBackground(cp.PB.playBarDim);if(cp.PB.MP.PBP.tworow)c+=this.createButton(a,[cp.PB.Btns.kBtnRewind],this.firstRowArray,this.rewindHandler,c),c+=this.createButton(a,[cp.PB.Btns.kBtnBackward],this.firstRowArray,this.backwardHandler,c),c+=this.createButton(a,[cp.PB.Btns.kBtnPlay,cp.PB.Btns.kBtnPause],
this.firstRowArray,this.playPauseHandler,c),c+=this.createButton(a,[cp.PB.Btns.kBtnForward],this.firstRowArray,this.forwardHandler,c),c+=this.createButton(a,[cp.PB.Btns.kBtnFastForward,cp.PB.Btns.kBtnFastForward1,cp.PB.Btns.kBtnFastForward2],this.firstRowArray,this.fastForwardHandler,c),this.firstRowMinWidth=c+=2*cp.PB.kIndentMargin,c=-cp.PB.kBtnMargin,c+=this.createButton(a,[cp.PB.Btns.kBtnTOC],this.secondRowArray,this.tocHandler,c),c+=this.createButton(a,[cp.PB.Btns.kBtnPrint],this.secondRowArray,
null,c),c+=this.createButton(a,[cp.PB.Btns.kBtnExit],this.secondRowArray,this.exitHandler,c),d=this.createSlider(a,this.secondRowArray,c),cp.device!=cp.IDEVICE&&(c+=this.createButton(a,[cp.PB.Btns.kBtnAudioOn,cp.PB.Btns.kBtnAudioOff],this.secondRowArray,this.audioOnOffHandler,c)),c+=this.createButton(a,[cp.PB.Btns.kBtnCC],this.secondRowArray,this.ccHandler,c),c+=this.createButton(a,[cp.PB.Btns.kBtnInfo],this.secondRowArray,this.showInfoHandler,c),c+=this.createLogo(a,c),c+=2*cp.PB.kIndentMargin,this.secondRowMinWidth=
c+d,this.minWidth=this.firstRowMinWidth>this.secondRowMinWidth?this.firstRowMinWidth:this.secondRowMinWidth,3==cp.PB.MP.PBP.layout?(b=cp.PB.playBarDim,void 0!=this.slider&&(d=b-c-4*cp.PB.kBtnMargin,this.slider.expectedWidth=d,cp.responsive&&58>=this.slider.expectedWidth&&(this.slider.destroy(),this.slider=void 0))):b=this.minWidth;else{if(0===cp.D.pref.rkt){var c=c+this.createButton(a,[cp.PB.Btns.kBtnRewind],this.firstRowArray,this.rewindHandler,c,10001),c=c+this.createButton(a,[cp.PB.Btns.kBtnPlay,
cp.PB.Btns.kBtnPause],this.firstRowArray,this.playPauseHandler,c,10002),c=c+this.createButton(a,[cp.PB.Btns.kBtnBackward],this.firstRowArray,this.backwardHandler,c,10003),c=c+this.createButton(a,[cp.PB.Btns.kBtnForward],this.firstRowArray,this.forwardHandler,c,10004),c=c+this.createButton(a,[cp.PB.Btns.kBtnFastForward,cp.PB.Btns.kBtnFastForward1,cp.PB.Btns.kBtnFastForward2],this.firstRowArray,this.fastForwardHandler,c,10005),d=this.createSlider(a,this.firstRowArray,c);cp.device!=cp.IDEVICE&&(c+=this.createButton(a,
[cp.PB.Btns.kBtnAudioOn,cp.PB.Btns.kBtnAudioOff],this.firstRowArray,this.audioOnOffHandler,c,10007));c+=this.createButton(a,[cp.PB.Btns.kBtnCC],this.firstRowArray,this.ccHandler,c,10008);c+=this.createButton(a,[cp.PB.Btns.kBtnTOC],this.firstRowArray,this.tocHandler,c,10009);c+=this.createButton(a,[cp.PB.Btns.kBtnPrint],this.firstRowArray,null,c,10010);c+=this.createButton(a,[cp.PB.Btns.kBtnExit],this.firstRowArray,this.exitHandler,c,10011);c+=this.createButton(a,[cp.PB.Btns.kBtnInfo],this.firstRowArray,
this.showInfoHandler,c,10012)}else c+=this.createButton(a,[cp.PB.Btns.kBtnRewind],this.firstRowArray,this.rewindHandler,c,-1),c+=this.createButton(a,[cp.PB.Btns.kBtnPlay,cp.PB.Btns.kBtnPause],this.firstRowArray,this.playPauseHandler,c,-1),c+=this.createButton(a,[cp.PB.Btns.kBtnBackward],this.firstRowArray,this.backwardHandler,c,-1),c+=this.createButton(a,[cp.PB.Btns.kBtnForward],this.firstRowArray,this.forwardHandler,c,-1),c+=this.createButton(a,[cp.PB.Btns.kBtnFastForward,cp.PB.Btns.kBtnFastForward1,
cp.PB.Btns.kBtnFastForward2],this.firstRowArray,this.fastForwardHandler,c,-1),d=this.createSlider(a,this.firstRowArray,c),cp.device!=cp.IDEVICE&&(c+=this.createButton(a,[cp.PB.Btns.kBtnAudioOn,cp.PB.Btns.kBtnAudioOff],this.firstRowArray,this.audioOnOffHandler,c,-1)),c+=this.createButton(a,[cp.PB.Btns.kBtnCC],this.firstRowArray,this.ccHandler,c,-1),c+=this.createButton(a,[cp.PB.Btns.kBtnTOC],this.firstRowArray,this.tocHandler,c,-1),c+=this.createButton(a,[cp.PB.Btns.kBtnPrint],this.firstRowArray,null,
c,-1),c+=this.createButton(a,[cp.PB.Btns.kBtnExit],this.firstRowArray,this.exitHandler,c,-1),c+=this.createButton(a,[cp.PB.Btns.kBtnInfo],this.firstRowArray,this.showInfoHandler,c,-1);c+=this.createLogo(a,c);this.minWidth=this.firstRowMinWidth=c+=2*cp.PB.kIndentMargin;3==cp.PB.MP.PBP.layout?(b=cp.PB.playBarDim,void 0!=this.slider&&(d=b-c-4*cp.PB.kBtnMargin,this.slider.expectedWidth=d,cp.responsive&&58>=this.slider.expectedWidth&&(this.slider.destroy(),this.slider=void 0))):b=c+d}this.setBackGroundWidth(b);
this.initComponents(a);cp.responsive||this.transformPlaybar();this.playBarDiv.constrObj=this;this.playBarDiv.play=this.onMovieResume;this.playBarDiv.pause=this.onMoviePaused;this.playBarDiv.mute=this.onAudioOff;this.playBarDiv.unmute=this.onAudioOn;cp.handleSpecialForPlaybar(this);cp.PB.MP.PBP.showOnHover&&!cp("playbar").animator&&(a=new cp.PB.playbarAnimator(this.playBarDiv),a.init(cp.PB.playBarHeight),this.playBarDiv.animator=a)},morphImages:function(){for(var a=0;a<cp.playbarAssetArr.length;++a){var b=
cp.PB.loadedAssetArr[cp.playbarAssetArr[a]];if(void 0!=b){var c=b.playbarassetName,c=c.replace("Small","");if("Glow"==c||"Progress"==c)cp.PB.loadedAssetArr[cp.playbarAssetArr[a]]=this.applyColor(cp.PB.MP.PBP.GlowColor,b);else if("Color"==c||"ThumbBase"==c)cp.PB.loadedAssetArr[cp.playbarAssetArr[a]]=this.applyColor(cp.PB.MP.PBP.FaceColor,b);else if(c==cp.PB.Btns.kBtnAudioOff||c==cp.PB.Btns.kBtnAudioOn||c==cp.PB.Btns.kBtnBackward||c==cp.PB.Btns.kBtnCC||c==cp.PB.Btns.kBtnExit||c==cp.PB.Btns.kBtnFastForward||
c==cp.PB.Btns.kBtnFastForward1||c==cp.PB.Btns.kBtnFastForward2||c==cp.PB.Btns.kBtnForward||c==cp.PB.Btns.kBtnPlay||c==cp.PB.Btns.kBtnPause||c==cp.PB.Btns.kBtnRewind||c==cp.PB.Btns.kBtnTOC)cp.PB.loadedAssetArr[cp.playbarAssetArr[a]]=this.applyColor(cp.PB.MP.PBP.IconColor,b)}}},exitHandler:function(){DoCPExit&&DoCPExit()},showInfoHandler:function(){cp.infoBgImg?cp.showInfoDialog():(cp.infoBgImg=new Image,cp.infoBgImg.onload=function(){cp.showInfoDialog()},cp.infoBgImg.src="assets/playbar/PlaybarIcons/infobg.png")},
audioOnOffHandler:function(){cp.toggleMute()},playPauseHandler:function(){cp.playPause(!0)},backwardHandler:function(){cp.goToPreviousSlide()},forwardHandler:function(){cp.goToNextSlide()},fastForwardHandler:function(){cp.fastForward();cp.movie.play(cp.ReasonForPlay.PLAYBAR_ACTION)},rewindHandler:function(){cp.rewind()},ccHandler:function(){cp.showHideCC()},tocHandler:function(){cp.showHideTOC()},onMoviePaused:function(){var a=this.constrObj;void 0!=a&&void 0!=a.btnMap[cp.PB.Btns.kBtnPause]&&a.btnMap[cp.PB.Btns.kBtnPause].changeImage(cp.PB.Btns.kBtnPlay)},
onMovieResume:function(){var a=this.constrObj;void 0!=a&&void 0!=a.btnMap[cp.PB.Btns.kBtnPlay]&&a.btnMap[cp.PB.Btns.kBtnPlay].changeImage(cp.PB.Btns.kBtnPause)},onAudioOn:function(){var a=this.constrObj;void 0!=a&&void 0!=a.btnMap[cp.PB.Btns.kBtnAudioOff]&&a.btnMap[cp.PB.Btns.kBtnAudioOff].changeImage(cp.PB.Btns.kBtnAudioOn)},onAudioOff:function(){var a=this.constrObj;void 0!=a&&void 0!=a.btnMap[cp.PB.Btns.kBtnAudioOn]&&a.btnMap[cp.PB.Btns.kBtnAudioOn].changeImage(cp.PB.Btns.kBtnAudioOff)},playbarAssetsLoaded:function(a){cp.PB.playbarCreated=
!1;a&&a.target&&(a=a.target.playbarassetName,!1==cp.PB.assetsLoadedArray[a]&&(cp.PB.assetsLoadedArray[a]=!0,cp.PB.assetsLoaded++));cp.PB.assetsLoaded==cp.playbarAssetArr.length&&(cp.PB.assetsLoaded=0,cp.PB.MP.PBP.applyColors&&this.parentObj.morphImages(),this.parentObj.layoutPlaybar(),cp.PB.playbarCreated=!0,cp.complete())},createBkDiv:function(){if(!(0<document.getElementsByClassName("playbarBackGround").length)){var a=document.createElement("div");this.playBarDiv.appendChild(a);a.setAttribute("class",
"playbarBackGround");a.style.webkitBoxShadow="";a.style.boxShadow="";a.style.mozBoxShadow="";a.id="playbarBkGrnd";cp.PB.MP.PBP.tworow&&(a.style.height=2*a.clientHeight+"px");a=parseFloat(window.getComputedStyle(a).height.replace("px",""));cp.PB.playBarHeight=a;cp.PB.MP.PBP.playBarHeight=a;if(cp.PB.MP.PBP.overlay)cp.setMovieLeftTopRightBottom(0,0,0,0);else{var b=0,c=0,d=0,f=0;0==cp.PB.MP.PBP.position?b=a:1==cp.PB.MP.PBP.position?c=a:2==cp.PB.MP.PBP.position?d=a:3==cp.PB.MP.PBP.position&&(f=a);cp.setMovieLeftTopRightBottom(b,
c,d,f)}3==cp.PB.MP.PBP.position?cp.setCCPosition(a):cp.setCCPosition(0)}},loadPlaybarAssets:function(){for(var a=0;a<cp.playbarAssetArr.length;++a){var b=new Image;b.playbarassetName=cp.playbarAssetArr[a];cp.playbarAssetArr[a]==cp.PB.Btns.kBtnLogo&&(cp.PB.playbarHasLogo=!0);cp.playbarAssetArr[a]==cp.PB.Btns.kBtnInfo&&(cp.PB.playbarHasInfo=!0);cp.playbarAssetArr[a]==cp.PB.Btns.kBtnPrint&&(cp.PB.playbarHasPrint=!0);b.parentObj=this;cp.PB.loadedAssetArr[cp.playbarAssetArr[a]]=b;b.onload=this.playbarAssetsLoaded;
b.onerror=this.playbarAssetsLoaded;b.src=cp.PB.playBarIconsFolder+cp.playbarAssetArr[a]+cp.PB.PNGSuffix}},shrinkPlaybarAssetsArr:function(){var a={},b;for(b in cp.PB.Btns)a[cp.PB.Btns[b]]=cp.playbarAssetArr.indexOf(cp.PB.Btns[b]);!cp.PB.MP.PBP.hasRewind&&0<=a[cp.PB.Btns.kBtnRewind]&&delete cp.playbarAssetArr[a[cp.PB.Btns.kBtnRewind]];!cp.PB.MP.PBP.hasBackward&&0<=a[cp.PB.Btns.kBtnBackward]&&delete cp.playbarAssetArr[a[cp.PB.Btns.kBtnBackward]];!cp.PB.MP.PBP.hasForward&&0<=a[cp.PB.Btns.kBtnForward]&&
delete cp.playbarAssetArr[a[cp.PB.Btns.kBtnForward]];!cp.PB.MP.PBP.hasCC&&0<=a[cp.PB.Btns.kBtnCC]&&delete cp.playbarAssetArr[a[cp.PB.Btns.kBtnCC]];!cp.PB.MP.PBP.hasExit&&0<=a[cp.PB.Btns.kBtnExit]&&delete cp.playbarAssetArr[a[cp.PB.Btns.kBtnExit]];cp.PB.MP.PBP.hasPlay||(0<=a[cp.PB.Btns.kBtnPlay]&&delete cp.playbarAssetArr[a[cp.PB.Btns.kBtnPlay]],0<=a[cp.PB.Btns.kBtnPause]&&delete cp.playbarAssetArr[a[cp.PB.Btns.kBtnPause]]);cp.PB.MP.PBP.hasSlider||(0<=a[cp.PB.Btns.kBtnProgress]&&delete cp.playbarAssetArr[a[cp.PB.Btns.kBtnProgress]],
0<=a[cp.PB.Btns.kBtnThumb]&&delete cp.playbarAssetArr[a[cp.PB.Btns.kBtnThumb]],0<=a[cp.PB.Btns.kBtnThumbBase]&&delete cp.playbarAssetArr[a[cp.PB.Btns.kBtnThumbBase]]);cp.PB.MP.PBP.hasAudioOn||(0<=a[cp.PB.Btns.kBtnAudioOn]&&delete cp.playbarAssetArr[a[cp.PB.Btns.kBtnAudioOn]],0<=a[cp.PB.Btns.kBtnAudioOff]&&delete cp.playbarAssetArr[a[cp.PB.Btns.kBtnAudioOff]]);cp.PB.MP.PBP.hasFastForward||(0<=a[cp.PB.Btns.kBtnFastForward]&&delete cp.playbarAssetArr[a[cp.PB.Btns.kBtnFastForward]],0<=a[cp.PB.Btns.kBtnFastForward1]&&
delete cp.playbarAssetArr[a[cp.PB.Btns.kBtnFastForward1]],0<=a[cp.PB.Btns.kBtnFastForward2]&&delete cp.playbarAssetArr[a[cp.PB.Btns.kBtnFastForward2]]);(!cp.PB.MP.project.hasTOC||!cp.PB.MP.tocProperties.overlay)&&0<=a[cp.PB.Btns.kBtnTOC]&&delete cp.playbarAssetArr[a[cp.PB.Btns.kBtnTOC]];a=!1;for(b in cp.PB.Btns)cp.playbarAssetArr.indexOf(0<=cp.PB.Btns[b])&&(a=!0);if(!a)for(b=0;b<cp.PB.BtnStyleImages.length;++b)a=cp.playbarAssetArr.indexOf(cp.PB.BtnStyleImages[b]),0<=a&&cp.playbarAssetArr.splice(a,
1);for(b=cp.playbarAssetArr.length-1;0<=b;--b)void 0==cp.playbarAssetArr[b]&&cp.playbarAssetArr.splice(b,1)}};cp.loadplaybar=function(){!0!=cp.PB.playbarCreated?(cp.PB.rootObj.createBkDiv(),cp.PB.rootObj.shrinkPlaybarAssetsArr(),cp.PB.rootObj.loadPlaybarAssets()):cp.PB.rootObj.layoutPlaybar(!0)};cp.PB.playbarAnimator=function(a){this.endVal=this.startVal=0;this.param="";this.objDiv=a;this.totalSteps=25;this.currStep=0;this.direction=1;this.intervalId=this.timeoutId=-1;this.isAnimating=!1};
cp.PB.playbarAnimator.prototype={init:function(a){3==cp.PB.MP.PBP.position?(this.startVal=cp.responsive?cp("div_Slide").getBoundingClientRect().bottom-a:parseFloat(window.getComputedStyle(this.objDiv).top.replace("px","")),this.endVal=this.startVal+a,this.param="top"):2==cp.PB.MP.PBP.position?(this.startVal=cp.responsive?this.objDiv.getBoundingClientRect().left:parseFloat(window.getComputedStyle(this.objDiv).left.replace("px","")),this.endVal=this.startVal+a,cp.loadedModules.toc&&0==cp.toc.movieProperties.tocProperties.position&&
(this.endVal+=cp.toc.movieProperties.tocProperties.width),this.param="left"):1==cp.PB.MP.PBP.position?(this.startVal=cp.responsive?this.objDiv.getBoundingClientRect().top:parseFloat(window.getComputedStyle(this.objDiv).top.replace("px","")),this.endVal=this.startVal-a,this.param="top"):0==cp.PB.MP.PBP.position&&(this.startVal=cp.responsive?this.objDiv.getBoundingClientRect().left:parseFloat(window.getComputedStyle(this.objDiv).left.replace("px","")),this.endVal=this.startVal-a,cp.loadedModules.toc&&
1==cp.toc.movieProperties.tocProperties.position&&(this.endVal-=cp.toc.movieProperties.tocProperties.width),this.param="left")},resetStartEndValForResponsive:function(){cp.responsive&&(this.startVal=cp("div_Slide").getBoundingClientRect().bottom-cp.PB.playBarHeight,this.endVal=this.startVal+cp.PB.playBarHeight)},startTimer:function(){clearTimeout(this.timeoutId);this.timeoutId=setTimeout(this.hidePlaybar,2E3)},easeOut:function(a,b){var c=a+Math.pow(1/this.totalSteps*this.currStep,0.3)*(b-a);return Math.ceil(c)},
beginAnim:function(){var a=document.getElementById("playbar");if(null!=a){a.style.position="absolute";var b=a.animator;b.direction?(b.currStep++,b.currStep>=b.totalSteps?(clearInterval(b.intervalId),b.currStep=0,b.isAnimating=!1,a.style[b.param]=b.endVal+"px"):a.style[b.param]=b.easeOut(b.startVal,b.endVal)+"px"):(b.currStep++,b.currStep>=b.totalSteps?(clearInterval(b.intervalId),b.currStep=0,b.isAnimating=!1,a.style[b.param]=b.startVal+"px"):a.style[b.param]=b.easeOut(b.endVal,b.startVal)+"px")}},
hidePlaybar:function(){var a=document.getElementById("playbar");a&&(clearTimeout(a.animator.timeoutId),a.animator.direction=1,a.animator.isAnimating=!0,clearInterval(a.animator.intervalId),a.animator.playbarHidden=!0,a.animator.intervalId=setInterval(a.animator.beginAnim,20))},showPlaybar:function(a){var b=document.getElementById("playbar");if(b&&(clearTimeout(b.animator.timeoutId),a||(b.animator.timeoutId=setTimeout(b.animator.hidePlaybar,2E3)),!(b.animator.isAnimating&&0==b.animator.direction)&&
parseFloat(window.getComputedStyle(b)[b.animator.param].replace("px",""))!=this.startVal))b.animator.direction=0,b.animator.isAnimating=!0,clearInterval(b.animator.intervalId),b.animator.playbarHidden=!1,b.animator.intervalId=setInterval(b.animator.beginAnim,20)}};
cp.playBarInit=function(a,b){if(!cp.PB.playbarCreated){cp.PB.movieProperties=a;cp.PB.MP=cp.PB.movieProperties;cp.PB.MP.PBP=cp.PB.MP.playBarProperties;cp.PB.MP.PBP.locale&&(cp.PB.toolTipLocaleIndex=cp.PB.MP.PBP.locale);var c=document.getElementById("playbar");cp.PB.MP.PBP.hasPlayBar||(c.style.display="none",cp.setMovieLeftTopRightBottom(0,0,0,0));cp.PB.rootObj=new cp.PB.playBarConstruct(c);for(var d=0;d<cp.playbarAssetArr.length;d++)cp.PB.assetsLoadedArray[cp.playbarAssetArr[d]]=!1;cp.responsive||
(c.style.left=0==cp.PB.MP.PBP.position?"0px":(cp.PB.MP.project.hasTOC&&!cp.PB.MP.tocProperties.overlay?cp.D.tocProperties.width:0)+"px",c.style.top="0px");cp.PB.MP.project.hasTOC&&cp.PB.MP.tocProperties.overlay&&(cp.PB.MP.PBP.hasTOC=!0);cp.PB.MP.PBP.hasPlayBar&&cp.loadplaybar(b)}};cp.setPlaybarCallback=function(a){cp.PB.mainMovie=a};
(function(){function A(b,a,c,e,d,f){for(var a=a.split(" "),g="",h=0;h<a.length;h++){var k=a[h];h<a.length-1&&(k+=" ");var l=g+k;if(b.measureText(l).width>d&&0!=g.length){var l=b,m=d,o=l.measureText(g);if(o.width<m)l=[g];else{for(var p=g.length,r=[],n="",t=0;t<p;++t)o=l.measureText(n+g.charAt(t)),o.width>m?(r.push(n),n=g.charAt(t)):n+=g.charAt(t);""!=n&&r.push(n);l=r}for(g=0;g<l.length-1;++g)b.fillText(l[g].trim(),c,e),e+=f;b.measureText(l[l.length-1]+" "+k).width>d?(b.fillText(l[l.length-1].trim(),
c,e),e+=f,g=k):g=l[l.length-1]+" "+k}else g=l}b.fillText(g.trim(),c,e)}cp.DD={};cp.DD.SnapBehaviourPos={};cp.DD.SnapBehaviourPos.kCPSBPNone=0;cp.DD.SnapBehaviourPos.kCPSBPAbsolute=1;cp.DD.SnapBehaviourPos.kCPSBPAnchorTopLeft=2;cp.DD.SnapBehaviourPos.kCPSBPAnchorTopCenter=3;cp.DD.SnapBehaviourPos.kCPSBPAnchorTopRight=4;cp.DD.SnapBehaviourPos.kCPSBPAnchorCenterLeft=5;cp.DD.SnapBehaviourPos.kCPSBPAnchorCenterCenter=6;cp.DD.SnapBehaviourPos.kCPSBPAnchorCenterRight=7;cp.DD.SnapBehaviourPos.kCPSBPAnchorBottomLeft=
8;cp.DD.SnapBehaviourPos.kCPSBPAnchorBottomCenter=9;cp.DD.SnapBehaviourPos.kCPSBPAnchorBottomRight=10;cp.DD.SnapBehaviourPos.kCPSBPStackHorizonatally=11;cp.DD.SnapBehaviourPos.kCPSBPStackVertically=12;cp.DD.SnapBehaviourPos.kCPSBPTileLeftRightStartingTop=13;cp.DD.SnapBehaviourPos.kCPSBPTileLeftRightStartingBottom=14;cp.DD.SnapBehaviourPos.kCPSBPTileBottomTopStartingLeft=15;cp.DD.SnapBehaviourPos.kCPSBPTileTopBottomStartingLeft=16;cp.DD.ReasonForUpdatingCurrentState={};cp.DD.ReasonForUpdatingCurrentState.kRegular=
0;cp.DD.ReasonForUpdatingCurrentState.kOrientationChangeOrResize=1;cp.DD.ReasonForUpdatingCurrentState.kReset=2;cp.DD.ReasonForUpdatingCurrentState.kUndo=3;cp.DD.ObjectStateNames={};cp.DD.ObjectStateNames.kCPNormal="Normal";cp.DD.ObjectStateNames.kCPDragStart="DragStart";cp.DD.ObjectStateNames.kCPDragOver="DragOver";cp.DD.ObjectStateNames.kCPDropAccept="DropAccept";cp.DD.ObjectStateNames.kCPDropReject="DropReject";cp.DD.ObjectStateNames.kCPDropCorrect="DropCorrect";cp.DD.ObjectStateNames.kCPDropIncorrect=
"DropIncorrect";var B=20;cp.DD.getAttribute=function(b,a){var c=cp.D[b];return!c?null:c[a]};cp.DDch=function(b){var a=cp.DD.CurrInteractionManager.m_ActiveInteraction;if(null!==a){if(a.m_questionObj){if(a.m_questionObj.isDisabled)return}else if(a.m_InteractionCompleted)return;0<a.m_maxAttempts&&a.m_CurrentAttempt>=a.m_maxAttempts||(b=cp.D[b.id],b.type===cp.kCPOTDDSubmitButton?a.OnSubmitButtonClicked():b.type===cp.kCPOTUndoButton?a.OnUndoButtonClicked():b.type===cp.kCPOTResetButton&&a.OnResetButtonClicked())}};
cp.DD.AnimationState=function(b,a,c,e,d){this.x=b;this.y=a;this.w=c;this.h=e;this.opac=d};cp.DD.GetRectFromBounds=function(b,a,c,e){var d={};d.left=b;d.right=b+c;d.top=a;d.bottom=a+e;return d};cp.DD.doRectangleIntersect=function(b,a){return a.left>b.right||a.right<b.left||a.top>b.bottom||a.bottom<b.top?!1:!0};cp.DD.getMidPoint=function(b,a,c,e,d){var f=3.1415*d/180,d=Math.cos(f),f=Math.sin(f),c=c/2,e=e/2;return{x:b+c*d-e*f,y:a+c*f+e*d}};cp.DD.getEndPointsAfterRotation=function(b,a,c,e,d){var f=cp.DD.getMidPoint(b,
a,c,e,d),g=[],g={x:b,y:a},h={x:b+c,y:a},c={x:b+c,y:a+e},a=a+e,g=cp.DD.Rotate(g.x,g.y,f.x,f.y,d),h=cp.DD.Rotate(h.x,h.y,f.x,f.y,d),c=cp.DD.Rotate(c.x,c.y,f.x,f.y,d);cp.DD.Rotate(b,a,f.x,f.y,d);return g=[g,h,c,h]};cp.DD.getEndPointsAfterRotation2=function(b,a,c,e,d){var f=b+c/2,g=a+e/2,h=[],h={x:b,y:a},k={x:b+c,y:a},c={x:b+c,y:a+e},b={x:b,y:a+e},h=cp.DD.Rotate(h.x,h.y,f,g,d),k=cp.DD.Rotate(k.x,k.y,f,g,d),c=cp.DD.Rotate(c.x,c.y,f,g,d),b=cp.DD.Rotate(b.x,b.y,f,g,d);return h=[h,k,c,b]};cp.DD.GetDimensionsAfterRotation=
function(b,a,c,e,d){if(null===b||void 0===b||null===a||void 0===a||null===c||void 0===c||null===e||void 0===e||null===d||void 0===d)return null;b=cp.DD.getEndPointsAfterRotation2(b,a,c,e,d);return cp.DD.GetBoundingRectForTransformedPoints(b)};cp.DD.GetBoundingRectForTransformedPoints=function(b){if(4!=b.length)return null;for(var a=b[0],c=a.x,e=a.y,d=a.x,a=a.y,f=1;f<b.length;f++){var g=b[f];c>g.x&&(c=g.x);e>g.y&&(e=g.y);d<g.x&&(d=g.x);a<g.y&&(a=g.y)}return{minX:c,minY:e,maxX:d,maxY:a}};cp.DD.Rotate=
function(b,a,c,e,d){var d=d*Math.PI/180,b=b-c,f=a-e,a=Math.atan2(f,b),b=Math.sqrt(b*b+f*f),a=a+d,d=Math.cos(a)*b,b=Math.sin(a)*b;return{x:d+c,y:b+e}};cp.DD.getRotationAngle=function(b){b=b.style.getPropertyValue("-webkit-transform");if(null===b)return 0;b=cp.getAngleFromRotateStr(b);return isNaN(b)?0:b};cp.DD.ChangeMouseCursor=function(b){cp.movie.stage.getSlideDiv().style.cursor=b};cp.DD.DefaultDocumentTouchStart=function(){};cp.DD.DefaultDocumentTouchMove=function(b){if(b.target&&b.target.isTocItem)cp.origTouchMove&&
cp.origTouchMove!=cp.DD.DefaultDocumentTouchMove&&cp.origTouchMove(b);else{var a=document.documentElement;document.getElementById("cpDocument");var c=cp.D.project.w,e=cp.D.project.h,d=cp.D.project.shc;c<=a.clientWidth&&e<=a.clientHeight&&b.preventDefault();c<=a.clientHeight&&e<=a.clientWidth&&b.preventDefault();d&&b.preventDefault()}};cp.DD.DefaultDocumentTouchEnd=function(){};cp.DD.asg=function(b,a,c,e){Object.defineProperty?Object.defineProperty(b,a,{get:c,set:e}):b.__defineGetter__&&(c&&b.__defineGetter__(a,
c),e&&b.__defineSetter__(a,e))};cp.DD.CustomDivStruct=function(){this.Height=this.Width=this.postop=this.posleft=null;if(cp.responsive){var b=this;this.R_posleft={};this.R_postop={};this.R_Width={};this.R_Height={};cp.DD.asg(this,"posleft",function(){return void 0==b.R_posleft[cp.ResponsiveProjWidth]?null:b.R_posleft[cp.ResponsiveProjWidth]},function(a){b.R_posleft[cp.ResponsiveProjWidth]=a});cp.DD.asg(this,"postop",function(){return void 0==b.R_postop[cp.ResponsiveProjWidth]?null:b.R_postop[cp.ResponsiveProjWidth]},
function(a){b.R_postop[cp.ResponsiveProjWidth]=a});cp.DD.asg(this,"Width",function(){return void 0==b.R_Width[cp.ResponsiveProjWidth]?null:b.R_Width[cp.ResponsiveProjWidth]},function(a){b.R_Width[cp.ResponsiveProjWidth]=a});cp.DD.asg(this,"Height",function(){return void 0==b.R_Height[cp.ResponsiveProjWidth]?null:b.R_Height[cp.ResponsiveProjWidth]},function(a){b.R_Height[cp.ResponsiveProjWidth]=a})}};cp.DD.copyCustomDivStructObject=function(b){var a=new cp.DD.CustomDivStruct;a.R_posleft=JSON.parse(JSON.stringify(b.R_posleft));
a.R_postop=JSON.parse(JSON.stringify(b.R_postop));a.R_Width=JSON.parse(JSON.stringify(b.R_Width));a.R_Height=JSON.parse(JSON.stringify(b.R_Height));return a};cp.DD.CustomCanvasStruct=function(){this.MarginTop=this.MarginLeft=this.Height=this.Width=this.postop=this.posleft=null;if(cp.responsive){this.textChildHeight=this.textChildWidth=this.textChildPosTop=this.textChildPosLeft=this.textHeight=this.textWidth=this.textPosTop=this.textPosLeft=null;var b=this;this.R_posleft={};this.R_postop={};this.R_Width=
{};this.R_Height={};this.R_MarginLeft={};this.R_MarginTop={};this.R_TextPosLeft={};this.R_TextPosTop={};this.R_TextWidth={};this.R_TextHeight={};this.R_TextChildPosLeft={};this.R_TextChildPosTop={};this.R_TextChildWidth={};this.R_TextChildHeight={};cp.DD.asg(this,"posleft",function(){return void 0==b.R_posleft[cp.ResponsiveProjWidth]?null:b.R_posleft[cp.ResponsiveProjWidth]},function(a){b.R_posleft[cp.ResponsiveProjWidth]=a});cp.DD.asg(this,"postop",function(){return void 0==b.R_postop[cp.ResponsiveProjWidth]?
null:b.R_postop[cp.ResponsiveProjWidth]},function(a){b.R_postop[cp.ResponsiveProjWidth]=a});cp.DD.asg(this,"Width",function(){return void 0==b.R_Width[cp.ResponsiveProjWidth]?null:b.R_Width[cp.ResponsiveProjWidth]},function(a){b.R_Width[cp.ResponsiveProjWidth]=a});cp.DD.asg(this,"Height",function(){return void 0==b.R_Height[cp.ResponsiveProjWidth]?null:b.R_Height[cp.ResponsiveProjWidth]},function(a){b.R_Height[cp.ResponsiveProjWidth]=a});cp.DD.asg(this,"MarginLeft",function(){return void 0==b.R_MarginLeft[cp.ResponsiveProjWidth]?
null:b.R_MarginLeft[cp.ResponsiveProjWidth]},function(a){b.R_MarginLeft[cp.ResponsiveProjWidth]=a});cp.DD.asg(this,"MarginTop",function(){return void 0==b.R_MarginTop[cp.ResponsiveProjWidth]?null:b.R_MarginTop[cp.ResponsiveProjWidth]},function(a){b.R_MarginTop[cp.ResponsiveProjWidth]=a});cp.DD.asg(this,"textPosLeft",function(){return void 0==b.R_TextPosLeft[cp.ResponsiveProjWidth]?null:b.R_TextPosLeft[cp.ResponsiveProjWidth]},function(a){b.R_TextPosLeft[cp.ResponsiveProjWidth]=a});cp.DD.asg(this,
"textPosTop",function(){return void 0==b.R_TextPosTop[cp.ResponsiveProjWidth]?null:b.R_TextPosTop[cp.ResponsiveProjWidth]},function(a){b.R_TextPosTop[cp.ResponsiveProjWidth]=a});cp.DD.asg(this,"textWidth",function(){return void 0==b.R_TextWidth[cp.ResponsiveProjWidth]?null:b.R_TextWidth[cp.ResponsiveProjWidth]},function(a){b.R_TextWidth[cp.ResponsiveProjWidth]=a});cp.DD.asg(this,"textHeight",function(){return void 0==b.R_TextHeight[cp.ResponsiveProjWidth]?null:b.R_TextHeight[cp.ResponsiveProjWidth]},
function(a){b.R_TextHeight[cp.ResponsiveProjWidth]=a});cp.DD.asg(this,"textChildPosLeft",function(){return void 0==b.R_TextChildPosLeft[cp.ResponsiveProjWidth]?null:b.R_TextChildPosLeft[cp.ResponsiveProjWidth]},function(a){b.R_TextChildPosLeft[cp.ResponsiveProjWidth]=a});cp.DD.asg(this,"textChildPosTop",function(){return void 0==b.R_TextChildPosTop[cp.ResponsiveProjWidth]?null:b.R_TextChildPosTop[cp.ResponsiveProjWidth]},function(a){b.R_TextChildPosTop[cp.ResponsiveProjWidth]=a});cp.DD.asg(this,"textChildWidth",
function(){return void 0==b.R_TextChildWidth[cp.ResponsiveProjWidth]?null:b.R_TextChildWidth[cp.ResponsiveProjWidth]},function(a){b.R_TextChildWidth[cp.ResponsiveProjWidth]=a});cp.DD.asg(this,"textChildHeight",function(){return void 0==b.R_TextChildHeight[cp.ResponsiveProjWidth]?null:b.R_TextChildHeight[cp.ResponsiveProjWidth]},function(a){b.R_TextChildHeight[cp.ResponsiveProjWidth]=a})}};cp.DD.copyCustomCanvasStructObject=function(b){var a=new cp.DD.CustomCanvasStruct;a.R_posleft=JSON.parse(JSON.stringify(b.R_posleft));
a.R_postop=JSON.parse(JSON.stringify(b.R_postop));a.R_Width=JSON.parse(JSON.stringify(b.R_Width));a.R_Height=JSON.parse(JSON.stringify(b.R_Height));a.R_MarginLeft=JSON.parse(JSON.stringify(b.R_MarginLeft));a.R_MarginTop=JSON.parse(JSON.stringify(b.R_MarginTop));a.R_TextPosLeft=JSON.parse(JSON.stringify(b.R_TextPosLeft));a.R_TextPosTop=JSON.parse(JSON.stringify(b.R_TextPosTop));a.R_TextWidth=JSON.parse(JSON.stringify(b.R_TextWidth));a.R_TextHeight=JSON.parse(JSON.stringify(b.R_TextHeight));a.R_TextChildPosLeft=
JSON.parse(JSON.stringify(b.R_TextChildPosLeft));a.R_TextChildPosTop=JSON.parse(JSON.stringify(b.R_TextChildPosTop));a.R_TextChildWidth=JSON.parse(JSON.stringify(b.R_TextChildWidth));a.R_TextChildHeight=JSON.parse(JSON.stringify(b.R_TextChildHeight));return a};cp.DD.DragSourcePropertiesObject=function(b){this.objectID=b;this.fset=document.getElementById(b);this.div=document.getElementById("re-"+b+"c");this.canvas=document.getElementById(b+"c");this.Height=this.Width=this.postop=this.posleft=this.Index=
this.Opacity=this.DropTargetId=null;if(cp.responsive){var a=this;this.R_posleft={};this.R_postop={};this.R_Width={};this.R_Height={};this.currentPositionId=this.objectID;this.postopRel=this.posleftRel=0;cp.DD.asg(this,"posleft",function(){return void 0==a.R_posleft[cp.ResponsiveProjWidth]?null:a.R_posleft[cp.ResponsiveProjWidth]},function(b){a.R_posleft[cp.ResponsiveProjWidth]=b});cp.DD.asg(this,"postop",function(){return void 0==a.R_postop[cp.ResponsiveProjWidth]?null:a.R_postop[cp.ResponsiveProjWidth]},
function(b){a.R_postop[cp.ResponsiveProjWidth]=b});cp.DD.asg(this,"Width",function(){return void 0==a.R_Width[cp.ResponsiveProjWidth]?null:a.R_Width[cp.ResponsiveProjWidth]},function(b){a.R_Width[cp.ResponsiveProjWidth]=b});cp.DD.asg(this,"Height",function(){return void 0==a.R_Height[cp.ResponsiveProjWidth]?null:a.R_Height[cp.ResponsiveProjWidth]},function(b){a.R_Height[cp.ResponsiveProjWidth]=b})}this.objectState=this.zIndex=this.canvasStruct=this.divStruct=null};cp.DD.copyDragSourcePropertiesObject=
function(b){var a=new cp.DD.DragSourcePropertiesObject(b.objectID);a.DropTargetId=b.DropTargetId;a.Opacity=b.Opacity;a.Index=b.Index;a.R_posleft=JSON.parse(JSON.stringify(b.R_posleft));a.R_postop=JSON.parse(JSON.stringify(b.R_postop));a.R_Width=JSON.parse(JSON.stringify(b.R_Width));a.R_Height=JSON.parse(JSON.stringify(b.R_Height));a.currentPositionId=b.currentPositionId;a.posleftRel=b.posleftRel;a.postopRel=b.postopRel;a.divStruct=cp.DD.copyCustomDivStructObject(b.divStruct);a.canvasStruct=cp.DD.copyCustomCanvasStructObject(b.canvasStruct);
a.zIndex=b.zIndex;a.objectState=b.objectState;return a};cp.DD.UpdateDragSourceStatePropertiesObject=function(b,a,c,e,d,f,g,h,k,l,m,o){if(b&&(null!==a&&(b.Index=a),null!==c&&(b.posleft=c),null!==e&&(b.postop=e),null!==d&&(b.Width=d),null!==f&&(b.Height=f),null!==g&&(b.Opacity=g),null!==h&&(b.divStruct=cp.responsive?cp.DD.copyCustomDivStructObject(h):h),null!==k&&(b.canvasStruct=cp.responsive?cp.DD.copyCustomCanvasStructObject(k):k),null!=l&&(b.zIndex=l),null!=m&&(b.currentPositionId=m),null!=o))b.objectState=
o};cp.DD.R_UpdateDragSourceStatePropertiesObject=function(b,a,c,e,d,f,g,h,k,l,m,o,p){if(b&&(null!==c&&(b.Index=c),null!==e&&(b.R_posleft[a]=e),null!==d&&(b.R_postop[a]=d),null!==f&&(b.R_Width[a]=f),null!==g&&(b.R_Height[a]=g),null!==h&&(b.Opacity=h),null!==k&&(b.divStruct=cp.DD.copyCustomDivStructObject(k)),null!==l&&(b.canvasStruct=cp.DD.copyCustomCanvasStructObject(l)),null!=m&&(b.zIndex=m),null!=o&&(b.currentPositionId=o),null!=p))b.objectState=p};cp.DD.ClearDragSourcePropertiesList=function(b){if(b)for(i=
0;i<b.length;++i)cp.DD.UpdateDragSourceStatePropertiesObject(b[i],null,null,null,null,null,null,null,null,null,null,null)};cp.DD.DragSourceLMSPropertiesObject=function(b){this.objectID=b;this.currentDTID=this.previousDTID=this.postop=this.posleft=null;if(cp.responsive){var a=this;this.R_posleft={};this.R_postop={};this.currentPositionId=this.objectID;cp.DD.asg(this,"posleft",function(){return void 0==a.R_posleft[cp.ResponsiveProjWidth]?null:a.R_posleft[cp.ResponsiveProjWidth]},function(b){a.R_posleft[cp.ResponsiveProjWidth]=
b});cp.DD.asg(this,"postop",function(){return void 0==a.R_postop[cp.ResponsiveProjWidth]?null:a.R_postop[cp.ResponsiveProjWidth]},function(b){a.R_postop[cp.ResponsiveProjWidth]=b})}};cp.DD.DropTargetLMSPropertiesObject=function(b){this.objectID=b;this.dsHeight=this.dsWidth=null;this.acceptedDragSources=[];this.acceptedSourceObjects=[];this.prevAcceptedDragSources=[];this.prevAcceptedDragSourceObjects=[];if(cp.responsive){var a=this;this.R_dsWidth={};this.R_dsHeight={};cp.DD.asg(this,"dsWidth",function(){return void 0==
a.R_dsWidth[cp.ResponsiveProjWidth]?null:a.R_dsWidth[cp.ResponsiveProjWidth]},function(b){a.R_dsWidth[cp.ResponsiveProjWidth]=b});cp.DD.asg(this,"dsHeight",function(){return void 0==a.R_dsHeight[cp.ResponsiveProjWidth]?null:a.R_dsHeight[cp.ResponsiveProjWidth]},function(b){a.R_dsHeight[cp.ResponsiveProjWidth]=b})}};cp.DD.UpdateDivStructure=function(b){var a,c=document.getElementById("div_Slide"),e=c.getElementsByClassName("cp-frameset"),d=null,f=[],g={};for(a=0;a<b.length;++a)if(d=b[a]){f.push(d);
d.fset=document.getElementById(d.objectID);d.div=document.getElementById("re-"+d.objectID+"c");d.canvas=document.getElementById(d.objectID+"c");null==g[d.fset.id]&&(g[d.fset.id]=[]);for(var h=cp.DD.GetAllItemsInAllStates(d.fset.id),k=0;k<h.length;k++){var l=h[k],m=document.getElementById(l),o=document.getElementById(cp.D[l].mdi).parentElement;g[d.fset.id].push([l,m,o]);c.removeChild(m);e[0].removeChild(o)}}f.sort(cp.DD.DragSourceSortFunction);e[0].getElementsByClassName("cp-rewrap");for(a=0;a<f.length;++a)if(d=
f[a])if(b=d.Index,null!==b){c=g[d.fset.id];null!==d.posleft&&(d.fset.style.left=parseFloat(d.posleft)+"px");null!==d.postop&&(d.fset.style.top=parseFloat(d.postop)+"px");h=b;c&&(h=b-c.length+1);cp.MSIE==cp.browser?cp.DD.UpdateDivProperties(d.fset,d,null):cp.DD.UpdateDivProperties(d.fset,d,d.Opacity);cp.DD.InsertBeforeConsideringStates_Cached(c,e[h+1].id);cp.DD.UpdateDivProperties(d.div,d.divStruct,d.Opacity);d.fset.style.zIndex=d.zIndex;d.div.style.zIndex=d.zIndex;cp.DD.updateZIndicesOfAllStateItems(d.fset.id);
if(null!==cp.DD.CurrInteractionManager.m_ActiveInteraction&&(document.getElementById(cp.D[d.fset.id].mdi),b=cp.DD.GetBaseItemInState(d.fset.id),c=d.fset.id,null!==b&&(c=b.framesetID),b=document.getElementById(cp.D[c].mdi),b.style.visibility="hidden",cp.responsive&&cp.hide(d.objectID),c=cp.DD.CreateDummyCanvas(b),null!==c&&null!==d.divStruct)){if("cp-WebObject"===b.className&&(h=b.firstChild))cp.applyTransform(c.element,h.style.webkitTransform),c.element.style.width=b.clientWidth+"px",c.element.style.height=
b.clientHeight+"px";c.element.style.visibility="visible";cp.DD.AnimateObjectGliding(b,c,parseFloat(d.div.style.left),parseFloat(d.div.style.top),parseFloat(d.divStruct.posleft),parseFloat(d.divStruct.postop),20,d)}d.canvas.style.opacity=d.Opacity;cp.DD.updateOpacityOfAllStateItems(d.fset.id,d.Opacity);b=d.divStruct;if(null!==b&&(null!==b.posleft&&(d.div.style.left=parseFloat(b.posleft)+"px"),null!==b.postop&&(d.div.style.top=parseFloat(b.postop)+"px"),null!==b.Width&&(d.div.style.width=parseFloat(b.Width)+
"px"),null!==b.Height))d.div.style.height=parseFloat(b.Height)+"px";b=d.canvasStruct;if(null!==b&&(null!==b.posleft&&(d.canvas.style.left=parseFloat(b.posleft)+"px"),null!==b.postop&&(d.canvas.style.top=parseFloat(b.postop)+"px"),null!==b.Width&&(d.canvas.style.width=parseFloat(b.Width)+"px"),null!==b.Height&&(d.canvas.style.height=parseFloat(b.Height)+"px"),null!==b.MarginLeft&&(d.canvas.style.marginLeft=parseFloat(b.MarginLeft)+"px"),null!==b.MarginTop))d.canvas.style.marginTop=parseFloat(b.MarginTop)+
"px";cp.DD.UpdateSizeNPosOfAllStateItems(d.fset.id,cp.DD.populateBoundsForStateItems(d,2))}};cp.DD.AnimateObjectGliding=function(b,a,c,e,d,f,g,h){function k(){if(0===g){document.getElementById("div_Slide").removeChild(a.element);b.style.visibility="visible";if(cp.responsive&&h){cp.show(h.objectID);var c=cp(h.objectID+"_vTxtHolder");if(c){cp(h.objectID);var d=h.canvasStruct;d&&(c.style.left=d.textPosLeft,c.style.top=d.textPosTop,c.style.width=d.textWidth,c.style.height=d.textHeight);var e={bUpdateTextChildSize:!1};
if(c.firstChild){c.firstChild.style.left=d.textChildPosLeft;c.firstChild.style.top=d.textChildPosTop;c.firstChild.style["-ms-transform-origin"]="left top";c.firstChild.style["-moz-transform-origin"]="left top";c.firstChild.style["-webkit-transform-origin"]="left top";c.firstChild.style["-o-transform-origin"]="left top";c.firstChild.style["transform-origin"]="left top";var d=1,f="scale(1)";if(h.currentPositionId!=h.objectID){var t=cp.DD.CurrInteractionManager.m_ActiveInteraction.GetDTObjFromDTID(h.currentPositionId);
t&&(f="scale("+t.sbs/100+")",d=t.sbs/100)}cp.applyTransform(c.firstChild,f);e.bUpdateScale=!0;e.scale=d}cp.DD.UpdateTextBoundsOfAllStateItems(h.objectID,cp.DD.populateTextBoundsForStateItems(h,e))}}cp.DD.changeState(h.objectID,h.objectState,cp.DD.CurrInteractionManager.m_ActiveInteraction)}else a.element.style.left=parseFloat(a.element.style.left)+m+"px",a.element.style.top=parseFloat(a.element.style.top)+l+"px",g-=1,setTimeout(k,20)}var l=(f-e)/g,m=(d-c)/g;setTimeout(k,20)};cp.DD.CreateDummyCanvas=
function(b,a){var c=0,e=0,c=b.style&&parseFloat(b.style.width)?parseFloat(b.style.width):b.width,e=b.style&&parseFloat(b.style.height)?parseFloat(b.style.height):b.height,d=cp.createCanvas(0,0,c,e,cp.newElem("canvas"));d.element.style.display="block";d.element.style.position="absolute";d.element.style.visibility="hidden";d.element.style.marginLeft="0px";d.element.style.marginTop="0px";""!==b.style.opacity&&(d.element.style.opacity=b.style.opacity);gc=d.gc;if("cp-animationItem"===b.className||"cp-WebObject"===
b.className){var f=new Image,g=cp.D[b.id];f.onload=function(){d.gc.drawImage(f,0,0,c,e)};f.src=g.ip}else if(gc.drawImage(b,0,0,c,e),g=b.parentElement,1<g.childNodes.length&&(g=g.getElementsByClassName("cp-vtxt"),null!=g&&1==g.length)){var g=g[0],h="";g.firstChild.firstChild.firstChild.firstChild&&(h=g.firstChild.firstChild.firstChild.firstChild.textContent);gc.font=g.firstChild.firstChild.firstChild.style.font;gc.fillStyle=g.firstChild.firstChild.firstChild.style.color;var k=g.firstChild.firstChild.style.textAlign;
gc.textBaseline="top";"left"==k?(gc.textAlign="left",gc.fillText(h,parseFloat(g.style.marginLeft),parseFloat(g.style.marginTop)-2)):"center"==k?(gc.textAlign="center",gc.fillText(h,parseFloat(g.style.marginLeft)+parseFloat(g.style.width)/2,parseFloat(g.style.marginTop)-2)):"right"==k?(gc.textAlign="right",gc.fillText(h,parseFloat(g.style.marginLeft)+parseFloat(g.style.width),parseFloat(g.style.marginTop)-2)):(gc.textAlign="left",gc.fillText(h,parseFloat(g.style.marginLeft),parseFloat(g.style.marginTop)-
2))}void 0===a?(document.getElementById("div_Slide").appendChild(d.element),d.element.style.zIndex=2E3):a.parentNode&&"div_Slide"===a.parentNode.id?(document.getElementById("div_Slide").insertBefore(d.element,a),d.element.style.zIndex=a.style.zIndex):(document.getElementById("div_Slide").appendChild(d.element),d.element.style.zIndex=2E3);parentEl=b.parentElement;d.element.style.left=parseFloat(parentEl.style.left)+parseFloat(b.style.marginLeft)+"px";d.element.style.top=parseFloat(parentEl.style.top)+
parseFloat(b.style.marginTop)+"px";return d};cp.DD.UpdateDivProperties=function(b,a,c){if(b&&(null!==a.Width&&(b.style.width=parseFloat(a.Width)+"px"),null!==a.Height&&(b.style.height=parseFloat(a.Height)+"px"),null!==c))b.style.opacity=c;return b};cp.DD.SortDragSourceList=function(){};cp.DD.CurrInteractionManager=null;cp.DD.IsTouchDevice=function(){return cp.device==cp.IDEVICE||cp.device==cp.ANDROID||cp.device==cp.KINDLE?!0:!1};cp.CreateInteractionManager=function(b){return new cp.DD.InteractionManager(b)};
cp.SetCurrentInteractionManager=function(b){cp.DD.CurrInteractionManager=b};cp.GetCurrentInteractionManager=function(){return cp.DD.CurrInteractionManager};cp.DD.spv=function(b,a,c){if(b&&cp.responsive){b.getBoundingClientRect();var e=cp("div_Slide");b.parentElement.getBoundingClientRect();var d=b.parentElement;"div_Slide"==d.id&&(d=e);""!=b.style.left&&-1!=b.style.left.indexOf("%")?b.style.left=parseFloat(b.style.left)*d.clientWidth/100+"px":-1==b.style.left.indexOf("px")&&""!=b.style.right&&(b.style.left=
-1!=b.style.right.indexOf("%")?Math.ceil(d.clientWidth-b.clientWidth)-parseFloat(b.style.right)*d.clientWidth/100+"px":Math.ceil(d.clientWidth-b.clientWidth)-parseFloat(b.style.right)+"px");""!=b.style.top&&-1!=b.style.top.indexOf("%")?b.style.top=parseFloat(b.style.top)*d.clientHeight/100+"px":-1==b.style.top.indexOf("px")&&""!=b.style.bottom&&(-1!=b.style.bottom.indexOf("%")?b.style.top=Math.ceil(d.clientHeight-b.clientHeight)-parseFloat(b.style.bottom)*d.clientHeight/100+"px":-1!=b.style.bottom.indexOf("px")&&
(b.style.top=Math.ceil(d.clientHeight-b.clientHeight)-parseFloat(b.style.bottom)+"px"));b.style.width=Math.ceil(b.clientWidth)+"px";b.style.height=Math.ceil(b.clientHeight)+"px";isNaN(parseFloat(b.style.marginLeft))&&(b.style.marginLeft="0px");isNaN(parseFloat(b.style.marginTop))&&(b.style.marginTop="0px");cp.DD.spvOfAllStateItems(a,c)}};cp.DD.spvOfAllStateItems=function(b,a){if(!(void 0===b||void 0===a))for(var c=cp.DD.GetBaseItemsInAllStates(b),e=0;e<c.length;e++){var d=c[e];if(d&&(d=d.item,d.framesetID!==
b)){var f;switch(a){case 0:f=document.getElementById(d.framesetID);break;case 1:f=document.getElementById(d.divID);break;case 2:f=document.getElementById(d.canvasID)}f&&cp.DD.spv(f)}}};cp.DD.GetObjectStateItems=function(b,a){var c=[],e=[],d=cp.D[b];if(!d)return e;var f=!1;void 0===a&&(f=!0);var g=cp.getDisplayObjByKey(d.mdi);if(g)if(d=g.states,g=g.currentState,f)0<=g&&g<d.length&&(c=d[g].stsi);else for(f=0;f<d.length;f++)if((g=d[f])&&g.stn==a)c=g.stsi;for(d=0;d<c.length;d++)f=c[d],g=cp.getDisplayObjNameByCP_UID(f),
e.push({UID:f,framesetID:g,divID:"re-"+g+"c",canvasID:g+"c"});return e};cp.DD.getBaseStateItem=function(b){var a=b;if(b=cp.D[b])(b=cp.getDisplayObjByKey(b.mdi))&&-1!==b.baseStateItemID&&(a=cp.getDisplayObjNameByCP_UID(b.baseStateItemID));return a};cp.DD.GetBaseItemInState=function(b,a){for(var c=null,e=cp.DD.GetObjectStateItems(b,a),d=0;d<e.length;d++){var f=e[d];if(f){var g=cp.getDisplayObjByKey(f.canvasID);if(g)if(-1===g.baseStateItemID){c=f;break}else if(g.cloneOfBaseStateItem){c=f;break}}}return c};
cp.DD.GetBaseItemsInAllStates=function(b){var a=[],c=cp.D[b];if(!c)return a;if(c=cp.getDisplayObjByKey(c.mdi))for(var c=c.states,e=0;e<c.length;e++){var d=c[e];if(d){var f=cp.DD.GetBaseItemInState(b,d.stn);f&&a.push({item:f,stateType:d.stt})}}return a};cp.DD.getCurrentObjectStateProperties=function(b){var a=void 0,b=cp.D[b];if(!b)return a;var c=cp.getDisplayObjByKey(b.mdi);c&&(b=c.states,c=c.currentState,0<=c&&c<b.length&&(a=b[c]));return a};cp.DD.getCurrentStateName=function(b){var a="";if(b=cp.DD.getCurrentObjectStateProperties(b))a=
b.stn;return a};cp.DD.RegisterObjectStateItems=function(b,a){var c=cp.DD.GetBaseItemInState(b);if(c&&(c=document.getElementById(c.framesetID)))cp.DD.IsTouchDevice()?c.ontouchstart=a.ItemOnMouseDown:c.onmousedown=a.ItemOnMouseDown,!0===cp.DD.getAttribute(a.m_elId,"hc")&&(c.onmouseover=a.ItemOnMouseOver,c.onmouseout=a.ItemOnMouseOut)};cp.DD.UnregisterObjectStateItems=function(b,a){var c=cp.DD.GetBaseItemInState(b);if(c&&(c=document.getElementById(c.framesetID)))cp.DD.IsTouchDevice()?c.ontouchstart=
null:c.onmousedown=null,!0===cp.DD.getAttribute(a.m_elId,"hc")&&(c.onmouseover=null,c.onmouseout=null)};cp.DD.populateBoundsForStateItems=function(b,a){var c={fsLeft:null,fsTop:null,fsW:null,fsH:null,divLeft:null,divTop:null,divW:null,divH:null,canvasW:null,canvasH:null,canvasMarginLeft:null,canvasMarginTop:null},e=0===a||2===a,d=1===a||2===a;if(b){var f=b.divStruct,g=b.canvasStruct;e&&(c.fsLeft=b.posleft,c.fsTop=b.postop);d&&(c.fsW=b.Width,c.fsH=b.Height);if(f&&(e&&(c.divLeft=f.posleft,c.divTop=
f.postop),d))c.divW=f.Width,c.divH=f.Height;g&&d&&(c.canvasW=g.Width,c.canvasH=g.Height,c.canvasMarginLeft=g.MarginLeft,c.canvasMarginTop=g.MarginTop)}return c};cp.DD.IsTransitionState=function(b){return b===cp.kSTTDragOver||b===cp.kSTTDragStart?!0:!1};cp.DD.UpdateSizeNPosOfAllStateItems=function(b,a){for(var c=cp.DD.GetBaseItemsInAllStates(b),e=0;e<c.length;e++){var d=c[e];if(d){var d=d.item,f=!cp.DD.IsTransitionState(c[e].stateType);if(d.framesetID!==b){var g=document.getElementById(d.framesetID),
d=document.getElementById(cp.D[d.framesetID].mdi);if(!d||!g)break;var h=d.parentElement;if(!h)break;f&&null!==a.divW&&(h.style.width=a.divW);f&&null!==a.divH&&(h.style.height=a.divH);f&&null!==a.fsW&&(g.style.width=a.fsW);f&&null!==a.fsH&&(g.style.height=a.fsH);f&&null!==a.canvasW&&(d.style.width=a.canvasW);f&&null!==a.canvasH&&(d.style.height=a.canvasH);null!==a.canvasMarginLeft&&(d.style.marginLeft=a.canvasMarginLeft);null!==a.canvasMarginTop&&(d.style.marginTop=a.canvasMarginTop);null!==a.fsLeft&&
(g.style.left=a.fsLeft);null!==a.fsTop&&(g.style.top=a.fsTop);null!==a.divLeft&&(h.style.left=a.divLeft);null!==a.divTop&&(h.style.top=a.divTop)}}}};cp.DD.updateOpacityOfAllStateItems=function(b,a){for(var c=cp.DD.GetBaseItemsInAllStates(b),e=0;e<c.length;e++){var d=c[e];if(d&&(d=d.item,d.framesetID!==b)){d=document.getElementById(cp.D[d.framesetID].mdi);if(!d)break;d.style.opacity=a}}};cp.DD.initializeTextBoundsForStateItems=function(){return{textPosLeft:null,textPosTop:null,textWidth:null,textHeight:null,
textChildPosLeft:null,textChildPosTop:null,textChildWidth:null,textChildHeight:null,scale:null}};cp.DD.populateTextBoundsForStateItems=function(b,a){void 0===a&&(a.bUpdateTextChildSize=!0,a.bUpdateScale=!1,a.scale=1);var c=cp.DD.initializeTextBoundsForStateItems();if(!b||!b.canvasStruct)return c;if(cp.responsive&&(c.textPosLeft=b.canvasStruct.textPosLeft,c.textPosTop=b.canvasStruct.textPosTop,c.textWidth=b.canvasStruct.textWidth,c.textHeight=b.canvasStruct.textHeight,c.textChildPosLeft=b.canvasStruct.textChildPosLeft,
c.textChildPosTop=b.canvasStruct.textChildPosTop,void 0!==a.bUpdateTextChildSize&&a.bUpdateTextChildSize&&(c.textChildWidth=b.canvasStruct.textChildWidth,c.textChildHeight=b.canvasStruct.textChildHeight),void 0!==a.bUpdateScale&&a.bUpdateScale))c.scale=a.scale;return c};cp.DD.UpdateTextBoundsOfAllStateItems=function(b,a){for(var c=cp.DD.GetBaseItemsInAllStates(b),e=0;e<c.length;e++){var d=c[e];if(d&&(d=d.item,!cp.DD.IsTransitionState(c[e].stateType)&&(d=d.framesetID,d!==b&&cp.responsive&&(d=cp(d+
"_vTxtHolder")))))if(null!=a.textPosLeft&&(d.style.left=a.textPosLeft),null!=a.textPosTop&&(d.style.top=a.textPosTop),null!=a.textWidth&&(d.style.width=a.textWidth),null!=a.textHeight&&(d.style.height=a.textHeight),d.firstChild)if(null!=a.textChildPosLeft&&(d.firstChild.style.left=a.textChildPosLeft),null!=a.textChildPosTop&&(d.firstChild.style.top=a.textChildPosTop),null!==a.textChildWidth&&(d.firstChild.style.width=a.textChildWidth),null!==a.textChildHeight&&(d.firstChild.style.height=a.textChildHeight),
null!=a.scale)d.firstChild.style["-ms-transform-origin"]="left top",d.firstChild.style["-moz-transform-origin"]="left top",d.firstChild.style["-webkit-transform-origin"]="left top",d.firstChild.style["-o-transform-origin"]="left top",d.firstChild.style["transform-origin"]="left top",cp.applyTransform(d.firstChild,"scale("+a.scale+")")}};cp.DD.changeStateAfterSomeTime=function(b,a,c,e){setTimeout(function(){cp.DD.changeState(b,a,c)},e)};cp.DD.changeStateForSomeTime=function(b,a,c,e,d,f){void 0===d&&
(d=!1);var g=cp.DD.getCurrentStateName(b);cp.DD.changeState(b,a,c);!0===d&&cp.DD.DisableDrag(b);setTimeout(function(){var e=cp.DD.getCurrentStateName(b);!0===d&&cp.DD.EnableDrag(b);e===a&&(void 0==f?cp.DD.changeState(b,g,c):cp.DD.changeState(b,f,c))},e)};cp.DD.DisableDrag=function(b){var a,b=cp.DD.GetBaseItemInState(b);null!==b&&(a=document.getElementById(b.framesetID));void 0!=a&&(cp.DD.IsTouchDevice()?a.ontouchstart=null:a.onmousedown=null)};cp.DD.EnableDrag=function(b){var a=cp.DD.CurrInteractionManager.m_ActiveInteraction,
c,b=cp.DD.GetBaseItemInState(b);null!==b&&(c=document.getElementById(b.framesetID));void 0!=c&&(cp.DD.IsTouchDevice()?c.ontouchstart=a.ItemOnMouseDown:c.onmousedown=a.ItemOnMouseDown)};cp.DD.HasMouseHandlers=function(b){var a=!1,c=cp.DD.GetBaseItemInState(b);null!==c&&(b=c.framesetID);(c=document.getElementById(b))&&(a=cp.DD.IsTouchDevice()?null!==c.ontouchstart:null!==c.onmousedown);return a};cp.DD.changeState=function(b,a,c){var e=cp.DD.HasMouseHandlers(b);c&&e&&cp.DD.UnregisterObjectStateItems(b,
c);cp.changeState(b,a);c&&e&&cp.DD.RegisterObjectStateItems(b,c)};cp.DD.GetAllItemsInAllStates=function(b){for(var a=[],b=cp.DD.getBaseStateItem(b),c=document.getElementById("div_Slide").getElementsByClassName("cp-frameset"),e=1;e<c.length;++e){var d=c[e].id;cp.DD.getBaseStateItem(d)===b&&a.push(d)}return a};cp.DD.InsertBeforeConsideringStates=function(b,a){var c=cp.DD.GetAllItemsInAllStates(b),e=cp.DD.GetAllItemsInAllStates(a);if(0!==e.length)for(var d=e[0],e=c.length-1;0<=e;e--){var f=c[e],g=document.getElementById(f),
h=document.getElementById(cp.D[f].mdi).parentElement,k=document.getElementById(d),d=document.getElementById(cp.D[d].mdi).parentElement;k.parentNode.insertBefore(g,k);d.parentNode.insertBefore(h,d);d=f}};cp.DD.InsertBeforeConsideringStates_Cached=function(b,a){var c=cp.DD.GetAllItemsInAllStates(a);if(0!==c.length)for(var e=c[0],c=b.length-1;0<=c;c--){var d=b[c],f=d[0],g=d[1],d=d[2],h=document.getElementById(e),e=document.getElementById(cp.D[e].mdi).parentElement;h.parentNode.insertBefore(g,h);e.parentNode.insertBefore(d,
e);e=f}};cp.DD.GetZIndexValue=function(b,a,c){var e=cp.DD.GetAllItemsInAllStates(b),d=document.getElementById(b),b=document.getElementById(cp.D[b].mdi).parentElement;a.fset=d.style.zIndex;a.div=b.style.zIndex;for(d=e.length-1;0<=d;d--){var f=e[d],b=document.getElementById(f),f=document.getElementById(cp.D[f].mdi).parentElement;0===c?(a.fset=Math.max(a.fset,b.style.zIndex),a.div=Math.max(a.div,f.style.zIndex)):1===c&&(a.fset=Math.min(a.fset,b.style.zIndex),a.div=Math.min(a.div,f.style.zIndex))}};cp.DD.updateZIndicesOfAllStateItems=
function(b){for(var a=cp.DD.GetAllItemsInAllStates(b),c=document.getElementById(b),b=document.getElementById(cp.D[b].mdi).parentElement,e=a.length-1;0<=e;e--){var d=a[e],f=document.getElementById(d),d=document.getElementById(cp.D[d].mdi).parentElement;f.style.zIndex=c.style.zIndex;d.style.zIndex=b.style.zIndex}};cp.DD.parseAnswerStringIntoMap=function(b,a){var c={};if(0===a)for(var e=/\(|\}|\}\(/g,e=b.replace(/\\b/g,"").split(e),d=0;d<e.length;d++){var f=e[d];if(""!==f){var g=f.split("){");if(2===
g.length&&(f=g[0],g=g[1],f=f.replace(/t:/g,""),f=f.split("-"),2===f.length)){var h=f[0],f=f[1],h={sourceType:h,count:parseInt(g,10)};void 0===c[f]&&(c[f]=[]);c[f].push(h)}}}else if(1===a){e=/t:|-t:/g;e=b.split(e);g=null;h=!0;for(d=0;d<e.length;d++)if(f=e[d],""!==f)if(h)g=h=f,h=!1;else{if(g)if(void 0===c[f])c[f]=[],h={sourceType:g,count:1},c[f].push(h);else{for(var h=c[f],k=!1,l=0;l<h.length;l++){var m=h[l];if(m&&g===m.sourceType){m.count+=1;k=!0;break}}k||(h={sourceType:g,count:1},c[f].push(h))}h=
!0}}return c};cp.DD.updateObjectStateNames=function(){cp.DD.ObjectStateNames.kCPNormal=cp.getLocalisedStateName("kCPNormalState");cp.DD.ObjectStateNames.kCPDragStart=cp.getLocalisedStateName("kCPDragstartState");cp.DD.ObjectStateNames.kCPDragOver=cp.getLocalisedStateName("kCPDragoverState");cp.DD.ObjectStateNames.kCPDropAccept=cp.getLocalisedStateName("kCPDropAccept");cp.DD.ObjectStateNames.kCPDropReject=cp.getLocalisedStateName("kCPDropReject");cp.DD.ObjectStateNames.kCPDropCorrect=cp.getLocalisedStateName("kCPDropCorrect");
cp.DD.ObjectStateNames.kCPDropIncorrect=cp.getLocalisedStateName("kCPDropIncorrect")};cp.DD.hasStateWithName=function(b,a){var c=!1,e=cp.D[b];if(!e)return c;if(e=cp.getDisplayObjByKey(e.mdi))for(var e=e.states,d=0;d<e.length;d++){var f=e[d];f&&f.stn==a&&(c=!0)}return c};cp.DD.InteractionManager=function(b){this.m_ActiveInteraction=null;this.m_InteractionList=b;null!==this.m_InteractionList&&0<this.m_InteractionList.length&&(this.m_ActiveInteraction=new cp.DD.Interaction(this.m_InteractionList[0].n),
this.m_ActiveInteractionIndex=0);cp.DD.updateObjectStateNames()};cp.DD.InteractionManager.prototype.getActiveInteraction=function(){return this.m_ActiveInteraction};cp.DD.InteractionManager.prototype.changeActiveInteraction=function(){var b=this.m_ActiveInteraction;if(null!==b){if(0<b.m_dsList.length)for(var a=0;a<b.m_dsList.length;++a){dsDiv=document.getElementById(b.m_dsList[a].n);var c=cp.DD.GetBaseItemInState(b.m_dsList[a].n);null!==c&&(dsDiv=document.getElementById(c.framesetID));cp.DD.IsTouchDevice()?
(dsDiv.ontouchstart=null,dsDiv.ontouchmove=null,dsDiv.ontouchend=null):(dsDiv.onmousedown=null,dsDiv.onmouseover=null,dsDiv.onmouseout=null)}b.clearAnswerList();this.m_ActiveInteractionIndex+=1;null!==this.m_InteractionList&&this.m_InteractionList.length>this.m_ActiveInteractionIndex&&(this.m_ActiveInteraction=new cp.DD.Interaction(this.m_InteractionList[this.m_ActiveInteractionIndex].n))}};cp.DD.InteractionManager.prototype.PauseAtFrame=function(){return this.m_ActiveInteraction?this.m_ActiveInteraction.m_PauseAt:
-1};cp.DD.InteractionManager.prototype.CheckInteractionPause=function(b){var a=this.m_ActiveInteraction;if(a.m_questionObj){if(!0===a.m_questionObj.isDisabled)return!1}else if(a.m_InteractionCompleted)return!1;return 0<a.m_maxAttempts&&a.m_CurrentAttempt>=a.m_maxAttempts?!1:a.m_PauseAt===b?!0:!1};cp.DD.InteractionManager.prototype.handleSlideExit=function(){this.m_ActiveInteraction&&cp.responsive&&this.m_ActiveInteraction.handleSlideExit(!0)};cp.DD.InteractionManager.prototype.saveResponsiveInteractionState=
function(b){this.m_ActiveInteraction&&(cp.responsive&&b==cp.ReasonForDrawing.kOrientationChangeOrResize)&&this.m_ActiveInteraction.storeSuspendData(!0)};cp.DD.InteractionManager.prototype.adjustResponsiveInteraction=function(b){if(this.m_ActiveInteraction&&cp.responsive&&b==cp.ReasonForDrawing.kOrientationChangeOrResize){this.m_ActiveInteraction.m_attemptedAnswerString=[];this.m_ActiveInteraction.resumeInteraction(!0);var b=this.m_ActiveInteraction.m_dsList,a=this.m_ActiveInteraction.DSMap,c=this.m_ActiveInteraction.DragSourceCurrentStateList,
e=this.m_ActiveInteraction.DragSourcePreviousStateList;if(b)for(i=0;i<b.length;++i){var d=c[a[b[i].n]],f=e[a[b[i].n]];""==d.currentPositionId&&(d.currentPositionId=d.objectID);""==f.currentPositionId&&(f.currentPositionId=d.objectID)}}};cp.DD.InteractionManager.prototype.registerDisplayObject=function(b,a){if(null!==this.m_ActiveInteraction){var c=this.m_ActiveInteraction,e=b.substr(0,b.length-1),d="re-"+b,f=cp.getDisplayObjByKey(b),g=e;f&&f.cloneOfBaseStateItem&&(g=cp.getDisplayObjNameByCP_UID(f.baseStateItemID));
f=cp.D[e];!0===f.isDD&&(c.m_buttonIDList.push(d),c.m_questionObj&&c.m_questionObj.isDisabled||0<c.m_maxAttempts&&c.m_CurrentAttempt>=c.m_maxAttempts?(document.getElementById(d).style.visibility="hidden",cp.responsive&&cp.hide(e)):cp.show(e));for(var h=!1,k=!1,l,m=0;m<c.m_dsList.length&&!h;++m){l=c.m_dsList[m].n;document.getElementById(l);if(l===e){h=!0;break}l===g&&(k=!0)}for(m=0;m<c.m_dtList.length&&!h;++m){l=c.m_dtList[m].n;document.getElementById(l);if(l===e){h=!0;break}l===g&&(k=!0)}if(f.isPartOfInteraction=
h){1===c.m_resumeItemsMap[e]&&(c.m_resumeItemsMap[e]=0,c.m_resumeItemsToBeDrawn-=1);for(g=0;g<c.m_dtList.length;++g)if(l=c.m_dtList[g].n,dtObj=c.GetDTObjFromDTID(l),f=document.getElementById(l),null!==dtObj&&null!==f&&(h=dtObj.dep,!(void 0===h||null===h||0>=h.length)&&!cp.DD.IsTouchDevice()))f.setAttribute("onmouseover",'cp.showHint("'+dtObj.dep[0]+'",this)'),f.setAttribute("onmouseout",'cp.hideHint("'+dtObj.dep[0]+'",this)');f=this.m_ActiveInteraction;h=f.DSMap[e];g=document.getElementById(e);o=
document.getElementById(b);p=document.getElementById(d);if(!(null===h||void 0===h)){d=f.DragSourceCurrentStateList[h];f=f.DragSourceInitialStateList[h];h=function(a){cp.DD.spv(p,e,1);a.posleft=p.style.left;a.postop=p.style.top;a.Width=p.style.width;a.Height=p.style.height};k=function(a){cp.DD.spv(o,e,2);a.posleft=o.style.left;a.postop=o.style.top;a.Width=o.style.width;a.Height=o.style.height;a.MarginLeft=o.style.marginLeft;a.MarginTop=o.style.marginTop;var b=cp(e+"_vTxtHolder");if(b){a.textPosLeft=
b.style.left;a.textPosTop=b.style.top;a.textWidth=b.style.width;a.textHeight=b.style.height;if(b.firstChild){a.textChildPosLeft=b.firstChild.style.left;a.textChildPosTop=b.firstChild.style.top;a.textChildWidth=b.firstChild.style.width;a.textChildHeight=b.firstChild.style.height}}};if(void 0!==d&&void 0!==f){cp.DD.spv(g,e,0);if(0===c.registeredMap[e]||cp.responsive)f.posleft=g.style.left,f.postop=g.style.top,f.Width=g.style.width,f.Height=g.style.height,void 0==f.divStruct&&(f.divStruct=new cp.DD.CustomDivStruct),
h(f.divStruct),void 0==f.canvasStruct&&(f.canvasStruct=new cp.DD.CustomCanvasStruct),k(f.canvasStruct),f.DropTargetId=null,f.zIndex=g.style.zIndex,cp.ReasonForDrawing.kOrientationChangeOrResize!=a&&(f.objectState=cp.DD.getCurrentStateName(e)),c.registeredMap[e]=1;d.posleft=g.style.left;d.postop=g.style.top;d.Width=g.style.width;d.Height=g.style.height;void 0==d.divStruct&&(d.divStruct=new cp.DD.CustomDivStruct);h(d.divStruct);void 0==d.canvasStruct&&(d.canvasStruct=new cp.DD.CustomCanvasStruct);k(d.canvasStruct);
d.DropTargetId=null;d.zIndex=g.style.zIndex;d.objectState=cp.DD.getCurrentStateName(e)}void 0==c.DSLMSMap[e]&&(c.DSLMSMap[e]=new cp.DD.DragSourceLMSPropertiesObject(e));if(!c.m_questionObj||!c.m_questionObj.isDisabled)for(m=0;m<c.m_dsList.length;++m)if(l=c.m_dsList[m].n,document.getElementById(l),l===e){cp.DD.RegisterObjectStateItems(e,c);break}}}else if(cp.responsive&&k){var g=document.getElementById(e),o=document.getElementById(b),p=document.getElementById(d);cp.DD.spv(g);cp.DD.spv(o);cp.DD.spv(p)}}};
cp.DD.InteractionManager.prototype.DoNecessaryStuffBeforeChangeState=function(b){var a=!1;if(null!==this.m_ActiveInteraction)for(var c=this.m_ActiveInteraction,e,d=0;d<c.m_dsList.length;++d)e=c.m_dsList[d].n,e===b&&(a=cp.DD.HasMouseHandlers(b),c&&a&&cp.DD.UnregisterObjectStateItems(b,c));return a};cp.DD.InteractionManager.prototype.DoNecessaryStuffAfterChangeState=function(b,a){if(null!==this.m_ActiveInteraction)for(var c=this.m_ActiveInteraction,e,d=0;d<c.m_dsList.length;++d)e=c.m_dsList[d].n,e===
b&&c&&a&&cp.DD.RegisterObjectStateItems(b,c)};cp.DD.DragSourceSortFunction=function(b,a){return b.Index>a.Index?1:b.Index<a.Index?-1:0};cp.DD.DropTargetSortFunction=function(b,a){return b.t>a.t?1:b.t<a.t?-1:0};cp.DD.Interaction=function(b){cp.log("navigator.userAgent = "+navigator.userAgent);this.m_elId=b;this.m_dsList=cp.DD.getAttribute(this.m_elId,"ds");this.m_dtList=cp.DD.getAttribute(this.m_elId,"dt");this.m_dtList.sort(cp.DD.DropTargetSortFunction);this.m_dsCanvasList=[];this.m_buttonIDList=
[];this.DSMap={};this.DTMap={};this.DSLMSMap={};this.DTLMSList=[];this.DragSourceCurrentStateList=[];this.DragSourcePreviousStateList=[];this.DragSourceInitialStateList=[];this.registeredMap={};if(0<this.m_dsList.length)for(b=0;b<this.m_dsList.length;++b){var a=this.m_dsList[b].n;dsDiv=document.getElementById(a);var c=new cp.DD.DragSourcePropertiesObject(a),e=new cp.DD.DragSourcePropertiesObject(a),d=new cp.DD.DragSourcePropertiesObject(a);this.DragSourceCurrentStateList.push(c);this.DragSourcePreviousStateList.push(e);
this.DragSourceInitialStateList.push(d);this.DSMap[a]=this.DragSourceCurrentStateList.length-1;this.registeredMap[a]=0}b=document.getElementById("div_Slide").getElementsByClassName("cp-frameset");c=a=null;e=0;for(d=1;d<b.length;++d){var f=b[d].id,g=cp.DD.getBaseStateItem(f);void 0!==this.DSMap[g]&&null!==this.DSMap[g]?(this.DragSourceCurrentStateList[this.DSMap[g]].Index=d-1,f=this.DragSourceInitialStateList[this.DSMap[g]],f.Index=d-1,f.prevNonDs=a,f.relDepth=e,g!==c&&(e+=1),c=g):(a=f,e=0,c=null)}this.m_DTtoSnapBehaviourAudioMap=
{};if(0<this.m_dtList.length)for(b=0;b<this.m_dtList.length;++b)dtID=this.m_dtList[b].n,this.DTMap[dtID]=new cp.DD.DropTargetLMSPropertiesObject(dtID),dtObj=this.GetDTObjFromDTID(dtID),dsDiv=document.getElementById(dtID),null!==dtObj&&null!==dsDiv&&dtObj.sba&&(this.m_DTtoSnapBehaviourAudioMap[dtID]=dtObj.sba);this.m_autoSubmit=cp.DD.getAttribute(this.m_elId,"as");b=cp.DD.getAttribute(this.m_elId,"sb");void 0!==b&&(null!==b&&0<b.length)&&cp.show(b);b=cp.DD.getAttribute(this.m_elId,"sub");a=cp.DD.getAttribute(this.m_elId,
"ub");b&&(void 0!==a&&null!==a&&0<a.length)&&cp.show(a);b=cp.DD.getAttribute(this.m_elId,"srb");a=cp.DD.getAttribute(this.m_elId,"rb");b&&(void 0!==a&&null!==a&&0<a.length)&&cp.show(a);this.m_PauseAt=cp.DD.getAttribute(this.m_elId,"pa");this.m_successAction=cp.DD.getAttribute(this.m_elId,"oca");this.m_failureAction=cp.DD.getAttribute(this.m_elId,"ofa");this.m_maxAttempts=cp.DD.getAttribute(this.m_elId,"ma");this.m_CurrentAttempt=0;this.m_DummyCanvasWithoutEffect=this.m_dummyCanvas=this.m_dragSourceCanvas=
null;this.m_dummyCanvasOffset={x:0,y:0};this.m_DsFrameSetDataID=null;this.m_InitialMouseTop=this.m_InitialMouseLeft=this.m_previousmousetop=this.m_previousmouseleft=0;this.m_isItemBeingDragged=!1;this.m_attemptedAnswerString=[];this.m_correctAnswerList=cp.DD.getAttribute(this.m_elId,"cal");this.m_tempFrameSetPos={x:0,y:0,w:0,h:0};this.m_DragSourceInitialFsPos={x:0,y:0,w:0,h:0};this.m_SendDragSourceBack=cp.DD.getAttribute(this.m_elId,"sdc2op");this.m_ReturnDragSourceAudio=cp.DD.getAttribute(this.m_elId,
"plaud");this.m_ReplacedDragSourceDummyCanvas=this.m_ReplaceDsFsId=this.m_ReplacedDragSourceCanvas=null;this.m_DTFsIdToDTEffectCanvasMap={};this.m_shouldIncludeInQuiz=cp.DD.getAttribute(this.m_elId,"siq");this.resetAvailable=this.undoAvailable=!1;this.m_StoredViewDataString=this.m_StoredSuspendDataString="";this.m_resumeItemsToBeDrawn=0;this.m_resumeItemsMap={};this.m_InteractionCompleted=!1;this.m_dragSourceStateItemCanvas=this.m_DsStateFsIDAtMouseDown=this.m_DsStateItemFrameSetDataID=null;this.m_DsStateNameAtMouseDown=
"";this.m_tempTimerID=this.m_tempStateChangeMap=null;this.m_DTFsIdToStateBeforeDragOverMap={};this.m_DragSourceDummyCanvasUpdatedWithState=!1;this.m_DropTargetStatePriorToDropAcceptOrRejectState=this.m_DragSourceCurrentTransientState=this.m_DragSourcePreviousTransientState=null;var h=this;cp.em.addEventListener(function(){h.Init()},cp.SLIDEENTEREVENT);this.m_shouldIncludeInQuiz&&(this.m_questionObj=cp.getQuestionObject(this.m_elId),this.m_questionObj instanceof cp.DragDropQuestion?this.m_questionObj.setDDInteraction(this):
this.m_questionObj=void 0);cp.DD.IsTouchDevice()&&(cp.origTouchMove=document.ontouchmove,cp.origTouchEnd=document.ontouchend,cp.origTouchStart=document.ontouchstart,document.ontouchmove=cp.DD.DefaultDocumentTouchMove,document.ontouchend=cp.DD.DefaultDocumentTouchEnd,document.ontouchstart=cp.DD.DefaultDocumentTouchStart)};cp.DD.Interaction.prototype.Init=function(){this.m_buttonIDList=[];this.m_DummyCanvasWithoutEffect=this.m_dummyCanvas=this.m_dragSourceCanvas=null;this.m_InteractionCompleted=!1;
this.m_dummyCanvasOffset={x:0,y:0};this.m_DsFrameSetDataID=null;this.m_InitialMouseTop=this.m_InitialMouseLeft=this.m_previousmousetop=this.m_previousmouseleft=0;this.m_isItemBeingDragged=!1;if(!this.m_shouldIncludeInQuiz){this.m_attemptedAnswerString=[];for(var b=this.m_CurrentAttempt=0;b<this.m_dtList.length;++b){var a=this.DTMap[this.m_dtList[b].n];a&&(a.acceptedDragSources.length=0)}}this.m_tempFrameSetPos={x:0,y:0,w:0,h:0};this.m_DragSourceInitialFsPos={x:0,y:0,w:0,h:0};this.m_ReplacedDragSourceDummyCanvas=
this.m_ReplaceDsFsId=this.m_ReplacedDragSourceCanvas=null;this.m_DTFsIdToDTEffectCanvasMap={};this.resetAvailable=this.undoAvailable=!1;this.m_dragSourceStateItemCanvas=this.m_DsStateFsIDAtMouseDown=this.m_DsStateItemFrameSetDataID=null;this.m_DsStateNameAtMouseDown="";this.m_tempTimerID=this.m_tempStateChangeMap=null;this.m_DTFsIdToStateBeforeDragOverMap={};this.m_DragSourceDummyCanvasUpdatedWithState=!1;this.m_DropTargetStatePriorToDropAcceptOrRejectState=this.m_DragSourceCurrentTransientState=
this.m_DragSourcePreviousTransientState=null};cp.DD.Interaction.prototype.ItemOnMouseDown=function(b){if(!cp.disableInteractions){var a=cp.DD.CurrInteractionManager.m_ActiveInteraction;if(null!==a&&!a.m_dummyCanvas){var c=b.target,e=document.getElementById(cp.DD.getBaseStateItem(c.id));a.m_DsFrameSetDataID=e.id;a.m_DsStateItemFrameSetDataID=c.id;a.m_DsStateFsIDAtMouseDown=c.id;a.m_DsStateNameAtMouseDown=cp.DD.getCurrentStateName(a.m_DsFrameSetDataID);a.m_DragSourcePreviousTransientState=null;var d=
cp.D[c.id];a.m_dragSourceCanvas=document.getElementById(cp.D[e.id].mdi);a.m_dragSourceStateItemCanvas=document.getElementById(d.mdi);"cp-WebObject"===a.m_dragSourceStateItemCanvas.className&&(a.m_dragSourceStateItemCanvas.width=a.m_dragSourceStateItemCanvas.clientWidth,a.m_dragSourceStateItemCanvas.height=a.m_dragSourceStateItemCanvas.clientHeight);cp.DD.IsTouchDevice()?c.ontouchmove=null:c.onmousemove=null;if(d.type===cp.kCPOTAutoShape&&(e=cp.D[d.mdi],!e.svg&&(void 0!==e.ss&&0===e.ss)&&(e=a.isPointInPath(getPageX(b),
getPageY(b)),!e))){cp.log("mouse down isinpath = "+e);return}b=cp.getScaledPosition(getPageX(b),getPageY(b));a.m_isItemBeingDragged||(a.m_InitialMouseLeft=b.X,a.m_InitialMouseTop=b.Y);a.m_tempFrameSetPos.x=parseFloat(c.style.left);a.m_tempFrameSetPos.y=parseFloat(c.style.top);a.m_tempFrameSetPos.w=parseFloat(c.style.width);a.m_tempFrameSetPos.h=parseFloat(c.style.height);a.m_DragSourceInitialFsPos.x=parseFloat(c.style.left);a.m_DragSourceInitialFsPos.y=parseFloat(c.style.top);a.m_DragSourceInitialFsPos.w=
parseFloat(c.style.width);a.m_DragSourceInitialFsPos.h=parseFloat(c.style.height);a.m_DragSourceDummyCanvasUpdatedWithState=!1;a.CreateDragSourceDummyCanvasAndShowEffects(cp.DD.ObjectStateNames.kCPDragStart);cp.DD.IsTouchDevice()?(document.ontouchmove=cp.DD.CurrInteractionManager.m_ActiveInteraction.ItemOnMouseMove,document.ontouchend=cp.DD.CurrInteractionManager.m_ActiveInteraction.ItemOnMouseUp):(document.onmousemove=cp.DD.CurrInteractionManager.m_ActiveInteraction.ItemOnMouseMove,document.onmouseup=
cp.DD.CurrInteractionManager.m_ActiveInteraction.ItemOnMouseUp);document.onselectstart=function(){return false}}}};cp.DD.Interaction.prototype.isPointInPath=function(b,a){var c=document.getElementById(this.m_DsStateItemFrameSetDataID+"c"),e=c.getContext("2d"),d=c.parentElement.getBoundingClientRect(),f=c.getBoundingClientRect();cp("div_Slide").getBoundingClientRect();var g=cp.getScaledPosition(b,a),h=d.left-cp.movie.offset,k=d.top-cp.movie.topOffset,l=f.left-cp.movie.offset,m=f.top-cp.movie.topOffset,
o=parseFloat(c.style.marginLeft),p=parseFloat(c.style.marginTop),o=!isNaN(o)?o:0,p=!isNaN(p)?p:0;if(e){if(cp.responsive)r=g.X-window.pageXOffset-f.left,f=g.Y-window.pageYOffset-f.top,r/=cp("div_Slide").scaleFactor,f/=cp("div_Slide").scaleFactor;else{var r=g.X-window.pageXOffset/cp.movie.m_scaleFactor-(0>o?l:h)/cp.movie.m_scaleFactor,f=g.Y-window.pageYOffset/cp.movie.m_scaleFactor-(0>p?m:k)/cp.movie.m_scaleFactor;cp.shouldScale&&(cp.loadedModules.toc&&(!cp.toc.movieProperties.tocProperties.overlay&&
1==cp.toc.movieProperties.tocProperties.position)&&(r+=cp.toc.movieProperties.tocProperties.width),cp.loadedModules.playbar&&!cp.PB.MP.PBP.overlay&&(0==cp.PB.MP.PBP.position?r+=cp.PB.playBarHeight:1==cp.PB.MP.PBP.position&&(f+=cp.PB.playBarHeight)));r*=parseFloat(c.parentElement.style.width)/d.width*cp.movie.m_scaleFactor;f*=parseFloat(c.parentElement.style.height)/d.height*cp.movie.m_scaleFactor;cp.verbose&&(cp.log("lParentOffsetL : "+h+","+k),cp.log("lElemL : "+l+","+m),cp.log("lElemMarginL : "+
o+p),cp.log("X : "+r+","+f))}return lBool=e.isPointInPath(r,f)}return!1};cp.DD.Interaction.prototype.CreateResponsiveDragSourceDummyCanvasAndShowEffects=function(b){function a(b){if(b){b.id="";"cp-vtxt"!=b.className&&(b.className="");var c=b.nodeName.toLowerCase();if("div"==c||"canvas"==c)b.style.visibility="visible",b.style.display="block";"canvas"==c&&b.getContext("2d").drawImage(f.m_dragSourceStateItemCanvas,0,0);for(var b=b.childNodes,c=b.length,d=0;d<c;++d)a(b[d])}}if(cp.responsive){var c=this.GetDSObjFromDSID(this.m_DsFrameSetDataID);
if(c){var c=c.ef,e=this.m_dragSourceStateItemCanvas;cp.hide(this.m_DsStateItemFrameSetDataID);var d=cp.DD.GetBaseItemInState(this.m_DsFrameSetDataID,b);d&&(this.m_dragSourceStateItemCanvas=e=document.getElementById(d.canvasID),this.m_DsStateItemFrameSetDataID=d.framesetID,this.m_DragSourceCurrentTransientState=this.m_DsStateNameAtMouseDown=b,"cp-WebObject"===this.m_dragSourceStateItemCanvas.className&&(this.m_dragSourceStateItemCanvas.width=this.m_dragSourceStateItemCanvas.clientWidth,this.m_dragSourceStateItemCanvas.height=
this.m_dragSourceStateItemCanvas.clientHeight));this.m_DummyCanvasWithoutEffect={};this.m_DummyCanvasWithoutEffect.element=cp.newElem("div");this.m_DummyCanvasWithoutEffect.element.style.cssText=e.parentElement.style.cssText;this.m_DummyCanvasWithoutEffect.element.innerHTML=e.parentElement.innerHTML;cp.hide(this.m_DsStateItemFrameSetDataID);var f=this;a(this.m_DummyCanvasWithoutEffect.element);cp("div_Slide").appendChild(this.m_DummyCanvasWithoutEffect.element);this.m_DummyCanvasWithoutEffect.element.style.zIndex=
2E3;this.m_DummyCanvasWithoutEffect.element.style.display="none";this.m_dummyCanvas={};this.m_dummyCanvas.element=cp.newElem("div");this.m_dummyCanvas.element.style.cssText=e.parentElement.style.cssText;this.m_dummyCanvas.element.innerHTML=e.parentElement.innerHTML;a(this.m_dummyCanvas.element);this.m_dummyCanvas.id="dummy";document.getElementById("div_Slide").appendChild(this.m_dummyCanvas.element);this.m_dummyCanvas.element.style.zIndex=2E3;2===c&&(c=0);0===c&&(this.m_dummyCanvasOffset.x=0,this.m_dummyCanvasOffset.y=
0,draggedItemParentEl=e.parentElement,this.m_dummyCanvas.element.style.left=parseFloat(draggedItemParentEl.style.left)+"px",this.m_dummyCanvas.element.style.top=parseFloat(draggedItemParentEl.style.top)+"px");1===c&&cp.applyTransform(this.m_dummyCanvas.element,"scale(1.2)");this.m_dummyCanvas.element.style.visibility="visible";cp.hide(this.m_DsStateItemFrameSetDataID);this.UpdateDragSourceAudio(this.m_DsFrameSetDataID,b,this.m_DragSourcePreviousTransientState);this.m_DragSourcePreviousTransientState=
b}}};cp.DD.Interaction.prototype.CreateDragSourceDummyCanvasAndShowEffects=function(b){if(cp.responsive)return this.CreateResponsiveDragSourceDummyCanvasAndShowEffects(b);var a=this.GetDSObjFromDSID(this.m_DsFrameSetDataID);if(a){var c=a.ef,e,d,f,g,a=this.m_dragSourceStateItemCanvas;cp.hide(this.m_DsStateItemFrameSetDataID);var h=cp.DD.GetBaseItemInState(this.m_DsFrameSetDataID,b);h&&(this.m_dragSourceStateItemCanvas=a=document.getElementById(h.canvasID),this.m_DsStateItemFrameSetDataID=h.framesetID,
this.m_DragSourceCurrentTransientState=this.m_DsStateNameAtMouseDown=b,"cp-WebObject"===this.m_dragSourceStateItemCanvas.className&&(this.m_dragSourceStateItemCanvas.width=this.m_dragSourceStateItemCanvas.clientWidth,this.m_dragSourceStateItemCanvas.height=this.m_dragSourceStateItemCanvas.clientHeight));e=parseFloat(a.style.width);d=parseFloat(a.style.height);this.m_DummyCanvasWithoutEffect=cp.createCanvas(0,0,e,d,cp.newElem("canvas"));this.m_DummyCanvasWithoutEffect.element.style.display="block";
this.m_DummyCanvasWithoutEffect.element.style.position="absolute";this.m_DummyCanvasWithoutEffect.element.style.visibility="hidden";this.m_DummyCanvasWithoutEffect.element.style.marginLeft="0px";this.m_DummyCanvasWithoutEffect.element.style.marginTop="0px";f=this.m_DummyCanvasWithoutEffect.gc;h={x:0,y:0,w:e,h:d};this.PaintItemOnDummyCanvas(f,a,h);document.getElementById("div_Slide").appendChild(this.m_DummyCanvasWithoutEffect.element);this.m_DummyCanvasWithoutEffect.element.style.zIndex=2E3;2===c&&
(c=0);0===c&&(this.m_dummyCanvasOffset.x=0,g=h=this.m_dummyCanvasOffset.y=0,"cp-WebObject"===a.className?(h=parseFloat(a.bounds.minX),g=parseFloat(a.bounds.minY),e=parseFloat(a.width),d=parseFloat(a.height)):(e=parseFloat(a.style.width),d=parseFloat(a.style.height)),this.m_dummyCanvas=cp.createCanvas(h,g,e,d,cp.newElem("canvas")),this.m_dummyCanvas.element.style.display="block",this.m_dummyCanvas.element.style.position="absolute",this.m_dummyCanvas.element.style.visibility="hidden",this.m_dummyCanvas.element.style.marginLeft=
"0px",this.m_dummyCanvas.element.style.marginTop="0px",this.m_dummyCanvas.id="dummy",f=this.m_dummyCanvas.gc,h={x:0,y:0,w:e,h:d},this.PaintItemOnDummyCanvas(f,a,h),document.getElementById("div_Slide").appendChild(this.m_dummyCanvas.element),this.m_dummyCanvas.element.style.zIndex=2E3,g=a.parentElement,this.m_dummyCanvas.element.style.left=parseFloat(g.style.left)+parseFloat(a.style.marginLeft)+"px",this.m_dummyCanvas.element.style.top=parseFloat(g.style.top)+parseFloat(a.style.marginTop)+"px");1===
c&&(g=a.parentElement,h=cp.D[this.m_DsStateItemFrameSetDataID],h=cp.D[h.mdi],(h=h.re||h.sh&&!h.sh.i)?(this.m_dummyCanvasOffset.x=this.m_InitialMouseLeft*(1.2-1),this.m_dummyCanvasOffset.y=this.m_InitialMouseTop*(1.2-1)):(this.m_dummyCanvasOffset.x=(this.m_InitialMouseLeft-parseFloat(g.style.left))*(1.2-1),this.m_dummyCanvasOffset.y=(this.m_InitialMouseTop-parseFloat(g.style.top))*(1.2-1)),e=1.2*parseFloat(a.style.width),d=1.2*parseFloat(a.style.height),this.m_dummyCanvas=cp.createCanvas(0,0,e,d,cp.newElem("canvas")),
this.m_dummyCanvas.element.style.display="block",this.m_dummyCanvas.element.style.position="absolute",this.m_dummyCanvas.element.style.visibility="hidden",this.m_dummyCanvas.element.style.marginLeft="0px",this.m_dummyCanvas.element.style.marginTop="0px",this.m_dummyCanvas.id="dummy",f=this.m_dummyCanvas.gc,h={x:0,y:0,w:e,h:d},this.PaintItemOnDummyCanvas(f,a,h),document.getElementById("div_Slide").appendChild(this.m_dummyCanvas.element),this.m_dummyCanvas.element.style.zIndex=2E3,this.m_dummyCanvas.element.style.left=
parseFloat(g.style.left)+parseFloat(a.style.marginLeft)-this.m_dummyCanvasOffset.x+"px",this.m_dummyCanvas.element.style.top=parseFloat(g.style.top)+parseFloat(a.style.marginTop)-this.m_dummyCanvasOffset.y+"px");if(2==c){h=cp.D[this.m_DsFrameSetDataID];h=cp.D[h.mdi];h=h.re||h.sh&&!h.sh.i;this.m_dummyCanvasOffset.x=10;this.m_dummyCanvasOffset.y=10;e=parseFloat(this.m_dragSourceCanvas.style.width)+2*this.m_dummyCanvasOffset.x;d=parseFloat(this.m_dragSourceCanvas.style.height)+2*this.m_dummyCanvasOffset.y;
g=c=0;var k=this.m_dummyCanvasOffset.x,l=this.m_dummyCanvasOffset.y;h&&(this.m_dummyCanvasOffset.x=0,this.m_dummyCanvasOffset.y=0,c=-parseFloat(this.m_dragSourceCanvas.style.marginLeft)-k,g=-parseFloat(this.m_dragSourceCanvas.style.marginTop)-l,e=parseFloat(this.m_dragSourceCanvas.style.width),d=parseFloat(this.m_dragSourceCanvas.style.height));this.m_dummyCanvas=cp.createCanvas(0,0,e,d,cp.newElem("canvas"));this.m_dummyCanvas.element.style.display="block";this.m_dummyCanvas.element.style.position=
"absolute";this.m_dummyCanvas.element.style.visibility="hidden";this.m_dummyCanvas.element.style.marginLeft="0px";this.m_dummyCanvas.element.style.marginTop="0px";this.m_dummyCanvas.id="dummy";f=this.m_dummyCanvas.gc;if("cp-animationItem"===this.m_dragSourceCanvas.className||"cp-WebObject"===this.m_dragSourceCanvas.className){var m=new Image,h=cp.D[this.m_dragSourceCanvas.id];m.onload=function(){f.drawImage(m,0,0,e,d)};m.src=h.ip}else f.drawImage(this.m_dragSourceCanvas,this.m_dummyCanvasOffset.x,
this.m_dummyCanvasOffset.y,parseFloat(this.m_dragSourceCanvas.style.width),parseFloat(this.m_dragSourceCanvas.style.height));document.getElementById("div_Slide").appendChild(this.m_dummyCanvas.element);this.m_dummyCanvas.element.style.zIndex=2E3;h=f.createLinearGradient(c+0,g+l,c+0,g+0);h.addColorStop(0,"#ffff00");h.addColorStop(1,"#ffffff");f.fillStyle=h;f.fillRect(c+k,g+0,this.m_DragSourceInitialFsPos.w,l);h=f.createLinearGradient(c+0,g+l+this.m_DragSourceInitialFsPos.h,c+0,g+2*l+this.m_DragSourceInitialFsPos.h);
h.addColorStop(0,"#ffff00");h.addColorStop(1,"#ffffff");f.fillStyle=h;f.fillRect(c+k,g+l+this.m_DragSourceInitialFsPos.h,this.m_DragSourceInitialFsPos.w,l);h=f.createLinearGradient(c+k,g+0,c+0,g+0);h.addColorStop(0,"#ffff00");h.addColorStop(1,"#ffffff");f.fillStyle=h;f.fillRect(c+0,g+l,k,this.m_DragSourceInitialFsPos.h);h=f.createLinearGradient(c+k+this.m_DragSourceInitialFsPos.w,g+0,c+2*k+this.m_DragSourceInitialFsPos.w,g+0);h.addColorStop(0,"#ffff00");h.addColorStop(1,"#ffffff");f.fillStyle=h;f.fillRect(c+
k+this.m_DragSourceInitialFsPos.w,g+l,k,this.m_DragSourceInitialFsPos.h);h=f.createLinearGradient(c+k,g+l,c+0,g+0);h.addColorStop(0,"#ffff00");h.addColorStop(1,"#ffffff");f.fillStyle=h;f.fillRect(c+0,g+0,k,l);h=f.createLinearGradient(c+k+this.m_DragSourceInitialFsPos.w,g+l,c+2*k+this.m_DragSourceInitialFsPos.w,g+0);h.addColorStop(0,"#ffff00");h.addColorStop(1,"#ffffff");f.fillStyle=h;f.fillRect(c+k+this.m_DragSourceInitialFsPos.w,g+0,k,l);h=f.createLinearGradient(c+k,g+l+this.m_DragSourceInitialFsPos.h,
c+0,g+2*l+this.m_DragSourceInitialFsPos.h);h.addColorStop(0,"#ffff00");h.addColorStop(1,"#ffffff");f.fillStyle=h;f.fillRect(c+0,g+l+this.m_DragSourceInitialFsPos.h,k,l);h=f.createLinearGradient(c+k+this.m_DragSourceInitialFsPos.w,g+l+this.m_DragSourceInitialFsPos.h,c+2*k+this.m_DragSourceInitialFsPos.w,g+2*l+this.m_DragSourceInitialFsPos.h);h.addColorStop(0,"#ffff00");h.addColorStop(1,"#ffffff");f.fillStyle=h;f.fillRect(c+k+this.m_DragSourceInitialFsPos.w,g+this.m_DragSourceInitialFsPos.h+l,k,l);
g=this.m_dragSourceCanvas.parentElement;this.m_dummyCanvas.element.style.left=parseFloat(g.style.left)+parseFloat(this.m_dragSourceCanvas.style.marginLeft)-this.m_dummyCanvasOffset.x+"px";this.m_dummyCanvas.element.style.top=parseFloat(g.style.top)+parseFloat(this.m_dragSourceCanvas.style.marginTop)-this.m_dummyCanvasOffset.y+"px"}this.m_dummyCanvas.element.style.visibility="visible";if("cp-WebObject"===a.className&&(c=a.firstChild))cp.applyTransform(this.m_dummyCanvas.element,c.style.webkitTransform),
this.m_dummyCanvas.element.style.left=parseFloat(a.parentElement.style.left)-this.m_dummyCanvasOffset.x+"px",this.m_dummyCanvas.element.style.top=parseFloat(a.parentElement.style.top)-this.m_dummyCanvasOffset.y+"px";cp.hide(this.m_DsStateItemFrameSetDataID);this.UpdateDragSourceAudio(this.m_DsFrameSetDataID,b,this.m_DragSourcePreviousTransientState);this.m_DragSourcePreviousTransientState=b}};cp.DD.Interaction.prototype.PaintItemOnDummyCanvas=function(b,a,c){if(!cp.responsive&&a&&b&&c)if("cp-animationItem"===
a.className||"cp-WebObject"===a.className){var e=new Image,a=cp.D[a.id];e.onload=function(){b.drawImage(e,c.x,c.y,c.w,c.h)};e.src=a.ip}else if(b.drawImage(a,c.x,c.y,c.w,c.h),a=a.parentElement,1<a.childNodes.length&&(a=a.getElementsByClassName("cp-vtxt"),null!=a&&1==a.length)){var a=a[0],d="";a.firstChild.firstChild.firstChild.firstChild&&(d=a.firstChild.firstChild.firstChild.firstChild.textContent);b.font=a.firstChild.firstChild.firstChild.style.font;b.fillStyle=a.firstChild.firstChild.firstChild.style.color;
var f=a.firstChild.firstChild.style.textAlign;b.textBaseline="top";var g=parseFloat(a.style.marginLeft),h=parseFloat(a.style.marginTop),k=parseFloat(a.style.width);parseFloat(a.style.height);var l=parseFloat(a.firstChild.firstChild.firstChild.style.fontSize),l=parseFloat(a.firstChild.firstChild.firstChild.style.lineHeight)*l/100;cp.responsive&&(d=a.innerText,b.font=a.firstChild.firstChild.firstChild.style.font,b.fillStyle=a.firstChild.firstChild.firstChild.style.color,g=parseFloat(a.style.left),h=
parseFloat(a.firstChild.style.top)+2,k=a.clientWidth);"left"==f?(b.textAlign="left",A(b,d,g,h,k,l)):"center"==f?(b.textAlign="center",A(b,d,g+k/2,h,k,l)):"right"==f?(b.textAlign="right",A(b,d,g+k,h,k,l)):(b.textAlign="left",A(b,d,g,h,k,l))}};cp.DD.Interaction.prototype.UpdateResponsiveDragSourceDummyCanvasWithState=function(b){function a(b){if(b){b.id="";"cp-vtxt"!=b.className&&(b.className="");var d=b.nodeName.toLowerCase();if("div"==d||"canvas"==d)b.style.visibility="visible",b.style.display="block";
"canvas"==d&&b.getContext("2d").drawImage(c,0,0);for(var b=b.childNodes,d=b.length,e=0;e<d;++e)a(b[e])}}if(cp.responsive&&this.m_DummyCanvasWithoutEffect&&this.m_dummyCanvas&&this.GetDSObjFromDSID(this.m_DsFrameSetDataID)){var c=this.m_dragSourceStateItemCanvas,e=this.m_DsStateItemFrameSetDataID,d=cp.DD.GetBaseItemInState(this.m_DsFrameSetDataID,b);d&&(c=document.getElementById(d.canvasID),e=d.framesetID,this.m_dragSourceStateItemCanvas&&this.m_dragSourceStateItemCanvas.id!=d.canvasID&&(this.m_DragSourceDummyCanvasUpdatedWithState=
!0),this.m_dragSourceStateItemCanvas=c,this.m_DsStateItemFrameSetDataID=e,this.m_DragSourceCurrentTransientState=b,d=document.getElementById(e),"cp-WebObject"===this.m_dragSourceStateItemCanvas.className&&(this.m_dragSourceStateItemCanvas.width=this.m_dragSourceStateItemCanvas.clientWidth,this.m_dragSourceStateItemCanvas.height=this.m_dragSourceStateItemCanvas.clientHeight),this.m_tempFrameSetPos.w=parseFloat(d.style.width),this.m_tempFrameSetPos.h=parseFloat(d.style.height));var f=d="0px",d=this.m_DummyCanvasWithoutEffect.element.style.left,
f=this.m_DummyCanvasWithoutEffect.element.style.top;this.m_DummyCanvasWithoutEffect.element.style.cssText=c.parentElement.style.cssText;this.m_DummyCanvasWithoutEffect.element.innerHTML=c.parentElement.innerHTML;cp.hide(e);a(this.m_DummyCanvasWithoutEffect.element);this.m_DummyCanvasWithoutEffect.element.style.left=d;this.m_DummyCanvasWithoutEffect.element.style.top=f;this.m_DummyCanvasWithoutEffect.element.style.zIndex=2E3;this.m_DummyCanvasWithoutEffect.element.style.display="none";d=this.m_dummyCanvas.element.style.left;
f=this.m_dummyCanvas.element.style.top;this.m_dummyCanvas.element.style.cssText=c.parentElement.style.cssText;this.m_dummyCanvas.element.innerHTML=c.parentElement.innerHTML;a(this.m_dummyCanvas.element);this.m_dummyCanvas.element.style.left=d;this.m_dummyCanvas.element.style.top=f;this.m_dummyCanvas.element.style.zIndex=2E3;cp.hide(e);this.UpdateDragSourceAudio(this.m_DsFrameSetDataID,b,this.m_DragSourcePreviousTransientState);this.m_DragSourcePreviousTransientState=b}};cp.DD.Interaction.prototype.PlayStopAudio=
function(b,a){if(b){var c=cp.D[b];c&&c.ia&&cp.movie.am.showHideObjectAudio(c.ia,a)}};cp.DD.Interaction.prototype.UpdateDragSourceAudio=function(b,a,c){if(b&&a!==c&&(null!=c&&(c=cp.DD.GetBaseItemInState(b,c))&&this.PlayStopAudio(c.framesetID,!1),null!=a))(b=cp.DD.GetBaseItemInState(b,a))&&this.PlayStopAudio(b.framesetID,!0)};cp.DD.Interaction.prototype.UpdateDragSourceDummyCanvasWithState=function(b,a){if(cp.responsive)return this.UpdateResponsiveDragSourceDummyCanvasWithState(b,a);if(this.m_DummyCanvasWithoutEffect&&
this.m_dummyCanvas){var c=this.GetDSObjFromDSID(this.m_DsFrameSetDataID);if(c){var c=c.ef,e,d,f,g=this.m_dragSourceStateItemCanvas;if(f=cp.DD.GetBaseItemInState(this.m_DsFrameSetDataID,b))g=document.getElementById(f.canvasID),this.m_dragSourceStateItemCanvas&&this.m_dragSourceStateItemCanvas.id!=f.canvasID&&(this.m_DragSourceDummyCanvasUpdatedWithState=!0),this.m_dragSourceStateItemCanvas=g,this.m_DsStateItemFrameSetDataID=f.framesetID,this.m_DragSourceCurrentTransientState=b,f=document.getElementById(f.framesetID),
"cp-WebObject"===this.m_dragSourceStateItemCanvas.className&&(this.m_dragSourceStateItemCanvas.width=this.m_dragSourceStateItemCanvas.clientWidth,this.m_dragSourceStateItemCanvas.height=this.m_dragSourceStateItemCanvas.clientHeight),this.m_tempFrameSetPos.w=parseFloat(f.style.width),this.m_tempFrameSetPos.h=parseFloat(f.style.height);e=parseFloat(g.style.width);d=parseFloat(g.style.height);f=this.m_DummyCanvasWithoutEffect.gc;f.clearRect(0,0,parseFloat(this.m_DummyCanvasWithoutEffect.element.width),
parseFloat(this.m_DummyCanvasWithoutEffect.element.height));this.m_DummyCanvasWithoutEffect.element.width=e;this.m_DummyCanvasWithoutEffect.element.height=d;this.m_DummyCanvasWithoutEffect.element.style.width=e+"px";this.m_DummyCanvasWithoutEffect.element.style.height=d+"px";e={x:0,y:0,w:e,h:d};this.PaintItemOnDummyCanvas(f,g,e);this.UpdateDragSourceAudio(this.m_DsFrameSetDataID,b,this.m_DragSourcePreviousTransientState);2===c&&(c=0);0===c&&(this.m_dummyCanvasOffset.x=0,this.m_dummyCanvasOffset.y=
0,"cp-WebObject"===g.className?(parseFloat(g.bounds.minX),parseFloat(g.bounds.minY),e=parseFloat(g.width),d=parseFloat(g.height)):(e=parseFloat(g.style.width),d=parseFloat(g.style.height)),f=this.m_dummyCanvas.gc,f.clearRect(0,0,parseFloat(this.m_dummyCanvas.element.width),parseFloat(this.m_dummyCanvas.element.height)),this.m_dummyCanvas.element.width=e,this.m_dummyCanvas.element.height=d,this.m_dummyCanvas.element.style.width=e+"px",this.m_dummyCanvas.element.style.height=d+"px",e={x:0,y:0,w:e,h:d},
this.PaintItemOnDummyCanvas(f,g,e));1===c&&(e=1.2*parseFloat(g.style.width),d=1.2*parseFloat(g.style.height),f=this.m_dummyCanvas.gc,f.clearRect(0,0,parseFloat(this.m_dummyCanvas.element.width),parseFloat(this.m_dummyCanvas.element.height)),this.m_dummyCanvas.element.width=e,this.m_dummyCanvas.element.height=d,this.m_dummyCanvas.element.style.width=e+"px",this.m_dummyCanvas.element.style.height=d+"px",e={x:0,y:0,w:e,h:d},this.PaintItemOnDummyCanvas(f,g,e));this.m_DragSourcePreviousTransientState=
b}}};cp.DD.Interaction.prototype.UpdateDragOverStates=function(){if(this.m_tempStateChangeMap)for(var b=0;b<this.m_tempStateChangeMap.length;b++){var a=this.m_tempStateChangeMap[b];if(0===a.type){var c=cp.DD.getCurrentStateName(a.item);cp.changeState(a.item,a.toState,!0,!0);this.UpdateDropTargetEffect(a.item,c);a.removeFromMap&&(this.m_DTFsIdToStateBeforeDragOverMap[a.item]=null)}else 1===a.type&&(this.m_dummyCanvasObjectState=a.toState,this.UpdateDragSourceDummyCanvasWithState(a.toState,!0))}};cp.DD.Interaction.prototype.ItemOnMouseMove=
function(b){var a=cp.DD.CurrInteractionManager.m_ActiveInteraction;if(null!==a&&!(null===a.m_dummyCanvas||null===a.m_dragSourceCanvas)){cp.m_gestureHandler&&cp.m_gestureHandler.disableGestures();var c=cp("div_Slide");cp.hide(a.m_DsStateItemFrameSetDataID);a.m_dummyCanvas.element.style.visibility="visible";var e=cp.getScaledPosition(getPageX(b),getPageY(b));a.m_isItemBeingDragged||(a.m_previousmouseleft=e.X,a.m_previousmousetop=e.Y);a.m_dummyCanvas.element.style.left=parseInt(a.m_dummyCanvas.element.style.left,
10)+(e.X-a.m_previousmouseleft)/c.scaleFactor+"px";a.m_dummyCanvas.element.style.top=parseInt(a.m_dummyCanvas.element.style.top,10)+(e.Y-a.m_previousmousetop)/c.scaleFactor+"px";cp.DD.ChangeMouseCursor("pointer");a.m_previousmouseleft=e.X;a.m_previousmousetop=e.Y;a.m_isItemBeingDragged=!0;var c=parseFloat(a.m_dummyCanvas.element.style.left)+a.m_dummyCanvasOffset.x,e=parseFloat(a.m_dummyCanvas.element.style.top)+a.m_dummyCanvasOffset.y,d=parseFloat(a.m_dragSourceStateItemCanvas.style.marginLeft),f=
parseFloat(a.m_dragSourceStateItemCanvas.style.marginTop);isNaN(d)&&(d=0);isNaN(f)&&(f=0);cp.responsive&&(c+=d,e+=f);d+=parseFloat(a.m_dragSourceStateItemCanvas.parentElement.style.left);f+=parseFloat(a.m_dragSourceStateItemCanvas.parentElement.style.top);cp.verbose&&(cp.log(c+","+e),cp.log(d+","+f));a.m_DragSourceDummyCanvasUpdatedWithState?(a.m_tempFrameSetPos.x=c,a.m_tempFrameSetPos.y=e):(a.m_tempFrameSetPos.x=a.m_DragSourceInitialFsPos.x+c-d,a.m_tempFrameSetPos.y=a.m_DragSourceInitialFsPos.y+
e-f);cp.verbose&&cp.log(a.m_tempFrameSetPos.x+","+a.m_tempFrameSetPos.y);var d=document.getElementById("div_Slide").getElementsByClassName("cp-frameset"),f=document.getElementById(a.m_DsStateItemFrameSetDataID),g=!1,c=cp.DD.GetDimensionsAfterRotation(0,0,a.m_tempFrameSetPos.w,a.m_tempFrameSetPos.h,cp.DD.getRotationAngle(f)),h=cp.DD.GetRectFromBounds(a.m_tempFrameSetPos.x+c.minX,a.m_tempFrameSetPos.y+c.minY,c.maxX-c.minX,c.maxY-c.minY),e=!0;a.m_tempStateChangeMap=[];for(var c=null,k=d.length-1;1<=
k&&!1===g;--k){var l=d[k];if(f.id!=d[k].id){var m=d[k].id,o=a.GetDTObjFromDTID(m);if(o){cp.DD.spv(d[k],d[k].id,0);g=0;o.ha&&(g=o.ha);var p=cp.DD.GetDimensionsAfterRotation(0,0,parseFloat(l.style.width),parseFloat(l.style.height),cp.DD.getRotationAngle(d[k])),r=parseFloat(l.style.left)+p.minX-g,l=parseFloat(l.style.top)+p.minY-g,g=cp.DD.GetRectFromBounds(r,l,p.maxX-p.minX+2*g,p.maxY-p.minY+2*g),g=cp.DD.doRectangleIntersect(h,g),l=o.dep,p=null;if(!(void 0===l||null===l||0>=l.length)&&!cp.DD.IsTouchDevice())p=
o.dep[0];g?(a.ShowDropTargetEffect(m),null!=p&&void 0!=p&&cp.showHint(p,cp.DD.CurrInteractionManager),c=m):(a.HideDropTargetEffect(m,!1),null!=p&&void 0!=p&&cp.hideHint(p,cp.DD.CurrInteractionManager))}}}if(g){if(c&&(d=cp.DD.getCurrentObjectStateProperties(c))&&d.stn!==cp.DD.ObjectStateNames.kCPDragOver)(f=a.DragSourceCurrentStateList[a.DSMap[a.m_DsFrameSetDataID]])&&(null!==f.DropTargetId&&f.DropTargetId===c)&&(e=!1),e&&(a.m_DTFsIdToStateBeforeDragOverMap[c]=(cp.DD.ObjectStateNames.kCPDropReject===
d.stn||cp.DD.ObjectStateNames.kCPDropAccept===d.stn)&&a&&null!==a.m_DropTargetStatePriorToDropAcceptOrRejectState&&a.m_DropTargetStatePriorToDropAcceptOrRejectState.dropTarget===c?a.m_DropTargetStatePriorToDropAcceptOrRejectState.prevState:d.stn,a.m_tempStateChangeMap.push({type:0,item:c,toState:cp.DD.ObjectStateNames.kCPDragOver,removeFromMap:!1}));e?(!a.m_dummyCanvasObjectState||a.m_dummyCanvasObjectState!=cp.DD.ObjectStateNames.kCPDragOver)&&a.m_tempStateChangeMap.push({type:1,toState:cp.DD.ObjectStateNames.kCPDragOver}):
(!a.m_dummyCanvasObjectState||a.m_dummyCanvasObjectState==cp.DD.ObjectStateNames.kCPDragOver)&&a.m_tempStateChangeMap.push({type:1,toState:a.m_DsStateNameAtMouseDown})}else a.m_dummyCanvasObjectState&&a.m_dummyCanvasObjectState===cp.DD.ObjectStateNames.kCPDragOver&&a.m_tempStateChangeMap.push({type:1,toState:a.m_DsStateNameAtMouseDown});if(0<a.m_dtList.length)for(e=0;e<a.m_dtList.length;++e)if(dtID=a.m_dtList[e].n,dtID!==c&&(d=cp.DD.getCurrentObjectStateProperties(dtID))&&d.stn===cp.DD.ObjectStateNames.kCPDragOver)d=
cp.DD.ObjectStateNames.kCPNormal,a.m_DTFsIdToStateBeforeDragOverMap[dtID]&&(d=a.m_DTFsIdToStateBeforeDragOverMap[dtID]),a.m_tempStateChangeMap.push({type:0,item:dtID,toState:d,removeFromMap:!0});a.m_tempStateChangeMap&&0<a.m_tempStateChangeMap.length&&!a.m_tempTimerID&&(a.m_tempTimerID=setTimeout(function(){a.UpdateDragOverStates();a.m_tempTimerID=null},10));b.preventDefault();b.stopPropagation&&b.stopPropagation()}};cp.DD.Interaction.prototype.ShowDropTargetEffect=function(b){var a=this.GetDTObjFromDTID(b);
if(a&&1===a.ef){var c=document.getElementById(b),a=document.getElementById(cp.D[b].mdi),e=a.parentElement;cp.DD.spv(e,b,1);cp.DD.spv(a,b,2);var d=cp.DD.GetBaseItemInState(b),f=b;d&&(f=d.framesetID,c=document.getElementById(d.framesetID),a=document.getElementById(cp.D[d.framesetID].mdi),e=a.parentElement);if(cp.responsive)cp.applyTransform(a.parentElement,"scale(1.2)");else if(this.m_DTFsIdToDTEffectCanvasMap[b])a.style.visibility="hidden",this.m_DTFsIdToDTEffectCanvasMap[b].element.style.visibility=
"visible";else{var d=cp.D[cp.D[f].mdi],d=d.re||d.sh&&!d.sh.i,f=1.2*parseFloat(a.style.width),g=(f-parseFloat(a.style.width))/2,h=1.2*parseFloat(a.style.height),k=(h-parseFloat(a.style.height))/2,l=cp.createCanvas(0,0,f,h,cp.newElem("canvas"));l.element.style.display="block";l.element.style.position="absolute";l.element.style.visibility="visible";a.style.visibility="hidden";l.element.style.marginLeft="0px";l.element.style.marginTop="0px";l.element.style.opacity=1;this.PaintDropTargetOnEffectCanvas(l.gc,
a,{x:0,y:0,w:f,h:h});try{var m=document.getElementById("div_Slide").getElementsByClassName("cp-frameset")[0],o=e,p=cp.DD.GetAllItemsInAllStates(b);if(0<p.length){var r=p[p.length-1];if(r&&cp.D[r]){var n=document.getElementById(cp.D[r].mdi);n&&(o=n.parentElement)}}m.insertBefore(l.element,o.nextSibling);l.element.style.zIndex=o.style.zIndex}catch(t){}d?(g=(parseInt(c.style.left)+parseInt(c.style.width)/2)*(1.2-1),k=(parseInt(c.style.top)+parseInt(c.style.height)/2)*(1.2-1),l.element.style.left=parseFloat(e.style.left)+
parseFloat(a.style.marginLeft)-g+"px",l.element.style.top=parseFloat(e.style.top)+parseFloat(a.style.marginTop)-k+"px"):(l.element.style.left=parseFloat(e.style.left)-g+"px",l.element.style.top=parseFloat(e.style.top)-k+"px");l.element.style.width=f+"px";l.element.style.height=h+"px";this.m_DTFsIdToDTEffectCanvasMap[b]=l}}};cp.DD.Interaction.prototype.UpdateDropTargetEffect=function(b,a){var c=this.GetDTObjFromDTID(b);if(c&&1===c.ef){var e=document.getElementById(b),c=document.getElementById(cp.D[b].mdi),
d=c.parentElement;cp.DD.spv(d,b,1);cp.DD.spv(c,b,2);var f=cp.DD.GetBaseItemInState(b),g=b;f&&(g=f.framesetID,e=document.getElementById(f.framesetID),c=document.getElementById(cp.D[f.framesetID].mdi),d=c.parentElement);if(cp.responsive){if((e=cp.DD.GetBaseItemInState(b,a))&&e.framesetID&&cp.D[e.framesetID])(e=document.getElementById(cp.D[e.framesetID].mdi))&&cp.applyTransform(e.parentElement,"scale(1)");cp.applyTransform(c.parentElement,"scale(1.2)")}else if(this.m_DTFsIdToDTEffectCanvasMap[b]){var f=
cp.D[cp.D[g].mdi],f=f.re||f.sh&&!f.sh.i,g=1.2*parseFloat(c.style.width),h=(g-parseFloat(c.style.width))/2,k=1.2*parseFloat(c.style.height),l=(k-parseFloat(c.style.height))/2,m=this.m_DTFsIdToDTEffectCanvasMap[b];c.style.visibility="hidden";var o=m.gc;o.clearRect(0,0,parseFloat(m.element.style.width),parseFloat(m.element.style.height));m.element.style.width=g+"px";m.element.style.height=k+"px";m.element.width=g;m.element.height=k;this.PaintDropTargetOnEffectCanvas(o,c,{x:0,y:0,w:g,h:k});f?(h=(parseInt(e.style.left)+
parseInt(e.style.width)/2)*(1.2-1),l=(parseInt(e.style.top)+parseInt(e.style.height)/2)*(1.2-1),m.element.style.left=parseFloat(d.style.left)+parseFloat(c.style.marginLeft)-h+"px",m.element.style.top=parseFloat(d.style.top)+parseFloat(c.style.marginTop)-l+"px"):(m.element.style.left=parseFloat(d.style.left)-h+"px",m.element.style.top=parseFloat(d.style.top)-l+"px")}}};cp.DD.Interaction.prototype.PaintDropTargetOnEffectCanvas=function(b,a,c){if(!(void 0===b||void 0==a))if("cp-animationItem"===a.className||
"cp-WebObject"===a.className){var e=new Image,a=cp.D[a.id];e.onload=function(){b.drawImage(e,c.x,c.y,c.w,c.h)};e.src=a.ip}else if(b.drawImage(a,c.x,c.y,c.w,c.h),a=a.parentElement,1<a.childNodes.length&&(a=a.getElementsByClassName("cp-vtxt"),null!=a&&1==a.length)){var d=a[0],a="";d.firstChild.firstChild.firstChild.firstChild&&(a=d.firstChild.firstChild.firstChild.firstChild.textContent);b.font=d.firstChild.firstChild.firstChild.style.font;b.fillStyle=d.firstChild.firstChild.firstChild.style.color;
var f=d.firstChild.firstChild.style.textAlign,g=parseFloat(d.style.marginLeft),h=parseFloat(d.style.marginTop),k=parseFloat(d.style.width);parseFloat(d.style.height);var l=parseFloat(d.firstChild.firstChild.firstChild.style.fontSize),d=parseFloat(d.firstChild.firstChild.firstChild.style.lineHeight)*l/100;b.textBaseline="top";"left"==f?(b.textAlign="left",A(b,a,g,h,k,d)):"center"==f?(b.textAlign="center",A(b,a,g+k/2,h,k,d)):"right"==f?(b.textAlign="right",A(b,a,g+k,h,k,d)):(b.textAlign="left",A(b,
a,g,h,k,d))}};cp.DD.Interaction.prototype.HideDropTargetEffect=function(b,a){var c=document.getElementById(cp.D[b].mdi),e=cp.DD.GetBaseItemInState(b);e&&(c=document.getElementById(cp.D[e.framesetID].mdi));!cp.responsive&&this.m_DTFsIdToDTEffectCanvasMap[b]?a?(c.style.visibility="visible",document.getElementById("div_Slide").getElementsByClassName("cp-frameset")[0].removeChild(this.m_DTFsIdToDTEffectCanvasMap[b].element),this.m_DTFsIdToDTEffectCanvasMap[b]=null):(c.style.visibility="visible",this.m_DTFsIdToDTEffectCanvasMap[b].element.style.visibility=
"hidden"):cp.applyTransform(c.parentElement,"scale(1)")};cp.DD.Interaction.prototype.GetDTObjFromDTID=function(b){if(0<this.m_dtList.length)for(var a=0;a<this.m_dtList.length;++a)if(this.m_dtList[a].n===b)return this.m_dtList[a];return null};cp.DD.Interaction.prototype.GetDSObjFromDSID=function(b){if(0<this.m_dsList.length)for(var a=0;a<this.m_dsList.length;++a)if(this.m_dsList[a].n===b)return this.m_dsList[a];return null};cp.DD.Interaction.prototype.checkAccepts=function(b,a){var c=!1,e=this.GetDTObjFromDTID(a);
if(null!==e&&(c=e.ac,c=""===c||"*"===c?!0:"\\b()\\b"===c?!1:RegExp(c).test(b))){var d=e.acc;if(0>d)c=!0;else{var f=this.DTMap[a];f&&(c=f.acceptedDragSources.length<d?!0:!1===e.rgo?!1:this.shouldReplaceDragSource=!0)}}return c};cp.DD.Interaction.prototype.ItemOnMouseOver=function(b){var b=b.target,a=cp.D[b.id];if(a)if(a.type===cp.kCPOTAutoShape){this.lCanvas=document.getElementById(b.id+"c");this.lgc=this.lCanvas.getContext("2d");var c=this;b.onmousemove=function(a){if(void 0!==this.lCanvas.ss&&0===
this.lCanvas.ss){var b;if(c.lCanvas&&c.lgc){b=c.lcanvas.parentElement.getBoundingClientRect();var f=c.lcanvas.getBoundingClientRect();cp("div_Slide").getBoundingClientRect();var g=cp.getScaledPosition(window.getPageX(a),window.getPageY(a)),a=b.left-cp.movie.offset,h=b.top-cp.movie.topOffset,k=f.left-cp.movie.offset,l=f.top-cp.movie.topOffset,m=parseFloat(c.lcanvas.style.marginLeft),o=parseFloat(c.lcanvas.style.marginTop),m=!isNaN(m)?m:0,o=!isNaN(o)?o:0;if(c.lgc){if(cp.responsive)p=g.X-window.pageXOffset-
f.left,f=g.Y-window.pageYOffset-f.top;else{var p=g.X-window.pageXOffset/cp.movie.m_scaleFactor-(0>m?k:a)/cp.movie.m_scaleFactor,f=g.Y-window.pageYOffset/cp.movie.m_scaleFactor-(0>o?l:h)/cp.movie.m_scaleFactor;cp.shouldScale&&(cp.loadedModules.toc&&(!cp.toc.movieProperties.tocProperties.overlay&&1==cp.toc.movieProperties.tocProperties.position)&&(p+=cp.toc.movieProperties.tocProperties.width),cp.loadedModules.playbar&&!cp.PB.MP.PBP.overlay&&(0==cp.PB.MP.PBP.position?p+=cp.PB.playBarHeight:1==cp.PB.MP.PBP.position&&
(f+=cp.PB.playBarHeight)));p*=parseFloat(c.lcanvas.parentElement.style.width)/b.width*cp.movie.m_scaleFactor;f*=parseFloat(c.lcanvas.parentElement.style.height)/b.height*cp.movie.m_scaleFactor;cp.verbose&&(cp.log("lParentOffsetL : "+a+","+h),cp.log("lElemL : "+k+","+l),cp.log("lElemMarginL : "+m+o),cp.log("X : "+p+","+f))}b=c.lgc.isPointInPath(p,f)}else b=!1}else cp.log(b),b=!1;b?cp.DD.ChangeMouseCursor("pointer"):cp.DD.ChangeMouseCursor("default")}else cp.DD.ChangeMouseCursor("pointer")}}else cp.DD.ChangeMouseCursor("pointer")};
cp.DD.Interaction.prototype.ItemOnMouseOut=function(b){b.target.onmousemove=null;cp.DD.ChangeMouseCursor("default")};cp.DD.Interaction.prototype.ItemOnMouseUp=function(){if(!cp.disableInteractions){cp.m_gestureHandler&&cp.m_gestureHandler.enableGestures();var b=cp.DD.CurrInteractionManager.m_ActiveInteraction;if(null!==b){var a=b.m_dummyCanvas;b.m_DummyCanvasWithoutEffect.id="dummy";var c=parseFloat(b.m_dummyCanvas.element.style.left),e=parseFloat(b.m_dummyCanvas.element.style.top),d=b.m_dummyCanvasOffset.x,
f=b.m_dummyCanvasOffset.y;cp.verbose&&(cp.log(c+","+e),cp.log(d+","+f));draggedItemParentEl=b.m_dragSourceCanvas.parentElement;b.m_DummyCanvasWithoutEffect.element.style.left=c+d+"px";b.m_DummyCanvasWithoutEffect.element.style.top=e+f+"px";b.m_DummyCanvasWithoutEffect.element.style.visibility="visible";b.m_DummyCanvasWithoutEffect.element.style.display="block";b.m_DummyCanvasWithoutEffect.element.offsetHeight=b.m_DummyCanvasWithoutEffect.element.offsetHeight;"cp-WebObject"===b.m_dragSourceCanvas.className&&
!cp.responsive&&(c=b.m_dragSourceCanvas.firstChild)&&cp.applyTransform(b.m_DummyCanvasWithoutEffect.element,c.style.webkitTransform);b.m_dummyCanvas=b.m_DummyCanvasWithoutEffect;document.getElementById("div_Slide").removeChild(a.element);b.m_dummyCanvasOffset.x=0;b.m_dummyCanvasOffset.y=0;cp.DD.ChangeMouseCursor("default");b.m_isItemBeingDragged=!1;cp.DD.IsTouchDevice()?(document.ontouchmove=cp.DD.DefaultDocumentTouchMove,document.ontouchend=cp.DD.DefaultDocumentTouchEnd,document.ontouchstart=cp.DD.DefaultDocumentTouchStart):
(document.onmouseup=null,document.onmousemove=null);document.onselectstart=null;null!==b.m_dragSourceCanvas&&null!==b.m_dummyCanvas&&b.appendDragSourceToOverlappingDropTarget()}}};cp.DD.Interaction.prototype.deleteDummyCanvas=function(){document.getElementById("div_Slide").removeChild(this.m_dummyCanvas.element);this.UpdateDragSourceAudio(this.m_DsFrameSetDataID,null,this.m_DragSourceCurrentTransientState);this.m_DragSourceCurrentTransientState=this.m_DragSourcePreviousTransientState=null};cp.DD.Interaction.prototype.appendDragSourceToOverlappingDropTarget=
function(){for(var b=document.getElementById("div_Slide").getElementsByClassName("cp-frameset"),a=document.getElementById(this.m_DsStateItemFrameSetDataID),c=!1,e=!1,d=null,f=cp.DD.GetDimensionsAfterRotation(0,0,this.m_tempFrameSetPos.w,this.m_tempFrameSetPos.h,cp.DD.getRotationAngle(a)),f=cp.DD.GetRectFromBounds(this.m_tempFrameSetPos.x+f.minX,this.m_tempFrameSetPos.y+f.minY,f.maxX-f.minX,f.maxY-f.minY),g=b.length-1;1<=g;--g)if(c=b[g],cp.DD.spv(c,c.id,0),a.id!=b[g].id){var h=b[g].id,k=this.GetDTObjFromDTID(h);
if(k&&cp.responsive){var l=this.DTMap[h];l.prevAcceptedDragSources=JSON.parse(JSON.stringify(l.acceptedDragSources));l.prevAcceptedDragSourceObjects=JSON.parse(JSON.stringify(l.acceptedSourceObjects))}}for(var m="",g=b.length-1;1<=g;--g)if(c=b[g],cp.DD.spv(c,c.id,0),a.id!=b[g].id&&(h=b[g].id,k=this.GetDTObjFromDTID(h))){cp.responsive&&(l=this.DTMap[h],l.prevAcceptedDragSources=JSON.parse(JSON.stringify(l.acceptedDragSources)),l.prevAcceptedDragSourceObjects=JSON.parse(JSON.stringify(l.acceptedSourceObjects)));
l=0;k.ha&&(l=k.ha);var o=cp.DD.GetDimensionsAfterRotation(0,0,parseFloat(c.style.width),parseFloat(c.style.height),cp.DD.getRotationAngle(b[g])),p=parseFloat(c.style.left)+o.minX-l,c=parseFloat(c.style.top)+o.minY-l,c=cp.DD.GetRectFromBounds(p,c,o.maxX-o.minX+2*l,o.maxY-o.minY+2*l);if(c=cp.DD.doRectangleIntersect(f,c)){c=this.m_DTFsIdToStateBeforeDragOverMap[h];this.m_DTFsIdToStateBeforeDragOverMap[h]=null;if(0<this.m_dtList.length)for(e=0;e<this.m_dtList.length;++e)if(dtID=this.m_dtList[e].n,this.HideDropTargetEffect(dtID,
!0),dtID!==h&&(l=cp.DD.getCurrentObjectStateProperties(dtID))&&l.stn===cp.DD.ObjectStateNames.kCPDragOver)l=cp.DD.ObjectStateNames.kCPNormal,this.m_DTFsIdToStateBeforeDragOverMap[dtID]&&(l=this.m_DTFsIdToStateBeforeDragOverMap[dtID],this.m_DTFsIdToStateBeforeDragOverMap[dtID]=null),cp.changeState(dtID,l);o=this.GetDSObjFromDSID(this.m_DsFrameSetDataID);if(null===k||null===o)return;e=this.DragSourceCurrentStateList[this.DSMap[this.m_DsFrameSetDataID]];this.shouldReplaceDragSource=!1;if(e=e.DropTargetId===
h?!0:this.checkAccepts(o.t,h)){this.resetAvailable=this.undoAvailable=!0;this.UpdateDragSourcePreviousStatePropertiesObjects();cp.responsive&&(l=this.DTMap[h],l.prevAcceptedDragSources=JSON.parse(JSON.stringify(l.acceptedDragSources)),l.prevAcceptedDragSourceObjects=JSON.parse(JSON.stringify(l.acceptedSourceObjects)));this.shouldReplaceDragSource&&this.ReplaceDragSource(h);this.DoOnMouseUpNAccept(o,k,h,c);break}else null===d?(d=h,m=c):cp.changeState(h,c)}}!1===e&&(null!==d?(this.DoOnDropTargetRejects(d,
m),this.MoveDragSourceOnDropTargetReject(a,!0)):this.MoveDragSourceOnDropTargetReject(a,!1))};cp.DD.Interaction.prototype.PlayReturnDragSourceAudio=function(){this.m_ReturnDragSourceAudio&&cp.playAudio(this.m_ReturnDragSourceAudio,!1)};cp.DD.Interaction.prototype.MoveDragSourceOnDropTargetReject=function(b,a){var c=parseFloat(this.m_dummyCanvas.element.style.left),e=parseFloat(this.m_dummyCanvas.element.style.left)+parseFloat(this.m_dummyCanvas.element.style.width),d=parseFloat(this.m_dummyCanvas.element.style.top),
f=parseFloat(this.m_dummyCanvas.element.style.top)+parseFloat(this.m_dummyCanvas.element.style.height),g=parseFloat(this.m_dummyCanvas.element.parentElement.style.width),h=parseFloat(this.m_dummyCanvas.element.parentElement.style.height);cp.responsive&&(g=cp("div_Slide").clientWidth,h=cp("div_Slide").clientHeight);var k=!0;if(c>g||0>e||d>h||0>f)k=!1;if(!0===a||this.m_SendDragSourceBack||!k)c=parseFloat(this.m_dummyCanvas.element.style.left),e=parseFloat(this.m_dummyCanvas.element.style.top),d=this.m_dummyCanvasOffset.x,
f=this.m_dummyCanvasOffset.y,g=parseFloat(this.m_dragSourceCanvas.style.marginLeft)+parseFloat(this.m_dragSourceCanvas.parentElement.style.left),h=parseFloat(this.m_dragSourceCanvas.style.marginTop)+parseFloat(this.m_dragSourceCanvas.parentElement.style.top),"cp-WebObject"===this.m_dragSourceCanvas.className&&(g=parseFloat(this.m_dragSourceCanvas.parentElement.style.left),h=parseFloat(this.m_dragSourceCanvas.parentElement.style.top)),cp.responsive&&(g=0<g?g:this.m_DragSourceInitialFsPos.x,h=0<h?h:
this.m_DragSourceInitialFsPos.y),cp.verbose&&(cp.log(c+","+e),cp.log(g+","+h)),!0===a?(this.UpdateDragSourceDummyCanvasWithState(cp.DD.ObjectStateNames.kCPDropReject,!1),k={},k[this.m_DsFrameSetDataID]={type:1,toState:cp.DD.ObjectStateNames.kCPDropReject,disableDrag:!0},this.AnimateObjectGliding(this.m_dummyCanvas.element,new cp.DD.AnimationState(c,e,null,null,null),new cp.DD.AnimationState(g-d,h-f,null,null,null),10,this.ReturnDragSourceAnimationCallback,k)):this.AnimateObjectGliding(this.m_dummyCanvas.element,
new cp.DD.AnimationState(c,e,null,null,null),new cp.DD.AnimationState(g-d,h-f,null,null,null),10,this.ReturnDragSourceAnimationCallback),!0===a&&this.PlayReturnDragSourceAudio();else{this.resetAvailable=this.undoAvailable=!0;this.UpdateDragSourcePreviousStatePropertiesObjects();c=b.id;c=cp.DD.getBaseStateItem(c);b=document.getElementById(c);d=this.m_dragSourceCanvas.parentElement;e=null;for(f=0;f<this.DragSourceInitialStateList.length;++f)g=this.DragSourceInitialStateList[f],g.objectID==c&&(e=g);
if(null!=e){null!==e.Width&&(b.style.width=parseFloat(e.Width)+"px");null!==e.Height&&(b.style.height=parseFloat(e.Height)+"px");cp.DD.UpdateDragSourceStatePropertiesObject(this.DragSourceCurrentStateList[this.DSMap[c]],null,null,null,b.style.width,b.style.height,null,null,null,null,"",null);f=e.divStruct;null!==f&&(null!==f.Width&&(d.style.width=parseFloat(f.Width)+"px"),null!==f.Height&&(d.style.height=parseFloat(f.Height)+"px"),cp.DD.UpdateDragSourceStatePropertiesObject(this.DragSourceCurrentStateList[this.DSMap[c]],
null,null,null,null,null,null,f,null,null,"",null));d=e.canvasStruct;if(null!==d){null!==d.Width&&(this.m_dragSourceCanvas.style.width=parseFloat(d.Width)+"px");null!==d.Height&&(this.m_dragSourceCanvas.style.height=parseFloat(d.Height)+"px");null!==d.MarginLeft&&(this.m_dragSourceCanvas.style.marginLeft=parseFloat(d.MarginLeft)+"px");null!==d.MarginTop&&(this.m_dragSourceCanvas.style.marginTop=parseFloat(d.MarginTop)+"px");f=e.objectID+"_vTxtHolder";if(f=cp(f))if(null!==d.textPosLeft&&(f.style.left=
parseFloat(d.textPosLeft)+"px"),null!==d.textPosTop&&(f.style.top=parseFloat(d.textPosTop)+"px"),null!==d.textWidth&&(f.style.width=parseFloat(d.textWidth)+"px"),null!==d.textHeight&&(f.style.height=parseFloat(d.textHeight)+"px"),f.firstChild)if(null!==d.textChildPosLeft&&(f.firstChild.style.left=parseFloat(d.textChildPosLeft)+"px"),null!==d.textChildPosTop&&(f.firstChild.style.top=parseFloat(d.textChildPosTop)+"px"),null!==d.textChildWidth&&(f.firstChild.style.width=parseFloat(d.textChildWidth)+
"px"),null!==d.textChildHeight)f.firstChild.style.height=parseFloat(d.textChildHeight)+"px";cp.DD.UpdateDragSourceStatePropertiesObject(this.DragSourceCurrentStateList[this.DSMap[c]],null,null,null,null,null,null,null,d,null,"",null)}cp.DD.UpdateSizeNPosOfAllStateItems(c,cp.DD.populateBoundsForStateItems(this.DragSourceCurrentStateList[this.DSMap[c]],1));cp.DD.UpdateTextBoundsOfAllStateItems(c,cp.DD.populateTextBoundsForStateItems(this.DragSourceCurrentStateList[this.DSMap[c]],{bUpdateTextChildSize:!0,
bUpdateScale:!1}));this.SetDsFramesetAndCanvasDivPos(c,this.m_tempFrameSetPos.x,this.m_tempFrameSetPos.y);this.m_dragSourceCanvas.style.opacity=1;cp.DD.UpdateDragSourceStatePropertiesObject(this.DragSourceCurrentStateList[this.DSMap[c]],null,null,null,null,null,1,null,null,null,"",null);cp.DD.updateOpacityOfAllStateItems(c,1);this.RestoreOriginalIndexOfDsFramesetId(c);f=b;g=cp.DD.GetBaseItemInState(c);null!==g&&(f=document.getElementById(g.framesetID));cp.DD.IsTouchDevice()?f.ontouchstart=this.ItemOnMouseDown:
f.onmousedown=this.ItemOnMouseDown;!0===cp.DD.getAttribute(this.m_elId,"hc")&&!cp.DD.IsTouchDevice()&&(f.onmouseover=this.ItemOnMouseOver,f.onmouseout=this.ItemOnMouseOut);g=this.DSLMSMap[b.id];g.posleft=b.style.left;g.postop=b.style.top;g.previousDTID=g.currentDTID;if(null!==g.currentDTID){h=this.DTMap[g.currentDTID];for(f=0;f<h.acceptedSourceObjects.length;++f)if(h.acceptedSourceObjects[f].objectID===g.objectID){h.acceptedSourceObjects.splice(f,1);break}}g.currentDTID=null;g.currentPositionId=g.objectID;
if(g=this.DragSourceCurrentStateList[this.DSMap[this.m_DsFrameSetDataID]].DropTargetId){for(f=0;f<this.DTMap[g].acceptedDragSources.length;++f)if(this.DTMap[g].acceptedDragSources[f]===this.m_DsFrameSetDataID){this.DTMap[g].acceptedDragSources.splice(f,1);break}for(f=0;f<this.DTMap[g].acceptedSourceObjects.length;++f)if(this.DTMap[g].acceptedSourceObjects[f].objectID===this.m_DsFrameSetDataID){this.DTMap[g].acceptedSourceObjects.splice(f,1);break}f=this.GetDTObjFromDTID(g).sbp;(f==cp.DD.SnapBehaviourPos.kCPSBPTileLeftRightStartingTop||
f==cp.DD.SnapBehaviourPos.kCPSBPTileLeftRightStartingBottom||f==cp.DD.SnapBehaviourPos.kCPSBPTileBottomTopStartingLeft||f==cp.DD.SnapBehaviourPos.kCPSBPTileTopBottomStartingLeft)&&this.SetSnapPosition(g,null)}this.DragSourceCurrentStateList[this.DSMap[this.m_DsFrameSetDataID]].DropTargetId=null;if(cp.responsive&&(f=this.m_DsFrameSetDataID+"_vTxtHolder",f=cp(f)))g=cp.DD.initializeTextBoundsForStateItems(),h=cp(this.m_DsFrameSetDataID),null!==d?(f.style.width=d.textWidth,f.style.height=d.textHeight):
(f.style.width=h.clientWidth+"px",f.style.height=h.clientHeight+"px"),g.textWidth=f.style.width,g.textHeight=f.style.height,f.firstChild&&(f.firstChild.style["-ms-transform-origin"]="left top",f.firstChild.style["-moz-transform-origin"]="left top",f.firstChild.style["-webkit-transform-origin"]="left top",f.firstChild.style["-o-transform-origin"]="left top",f.firstChild.style["transform-origin"]="left top",cp.applyTransform(f.firstChild,"scale(1)"),g.scale=1),cp.DD.UpdateTextBoundsOfAllStateItems(this.m_DsFrameSetDataID,
g);cp.show(this.m_DsFrameSetDataID);e=e.objectState;cp.DD.changeState(c,e,this);cp.DD.UpdateDragSourceStatePropertiesObject(this.DragSourceCurrentStateList[this.DSMap[c]],null,null,null,null,null,null,null,null,null,null,e);this.deleteDummyCanvas();this.m_dummyCanvas=this.m_dragSourceCanvas=null}}};cp.DD.Interaction.prototype.DoOnMouseUpNAccept=function(b,a,c,e){var d=this.DragSourceCurrentStateList[this.DSMap[this.m_DsFrameSetDataID]].DropTargetId;if(d){for(var f=0;f<this.DTMap[d].acceptedDragSources.length;++f)if(this.DTMap[d].acceptedDragSources[f]===
this.m_DsFrameSetDataID){this.DTMap[d].acceptedDragSources.splice(f,1);break}for(f=0;f<this.DTMap[d].acceptedSourceObjects.length;++f)if(this.DTMap[d].acceptedSourceObjects[f].objectID===this.m_DsFrameSetDataID){this.DTMap[d].acceptedSourceObjects.splice(f,1);this.DSLMSMap[this.m_DsFrameSetDataID].currentDTID=null;break}}this.appendDivAsChildOfAnotherDiv(c,this.m_DsFrameSetDataID);var d=cp.D[cp.D[this.m_DsFrameSetDataID].mdi],d=d.re||d.sh&&!d.sh.i,f=parseFloat(this.m_dummyCanvas.element.style.left),
g=parseFloat(this.m_dummyCanvas.element.style.top),h=parseFloat(this.m_dragSourceCanvas.style.marginLeft),k=parseFloat(this.m_dragSourceCanvas.style.marginTop);cp.responsive&&(f+=h,g+=k);var l=this.m_dummyCanvasOffset.x,m=this.m_dummyCanvasOffset.y,h=h+parseFloat(this.m_dragSourceCanvas.parentElement.style.left),k=k+parseFloat(this.m_dragSourceCanvas.parentElement.style.top);cp.verbose&&(cp.log(f+","+g),cp.log(h+","+k));var o=cp.DD.ObjectStateNames.kCPDropAccept;cp.DD.UpdateDragSourceStatePropertiesObject(this.DragSourceCurrentStateList[this.DSMap[this.m_DsFrameSetDataID]],
null,null,null,null,null,null,null,null,null,null,o);var p=!1,r=this.DragSourceCurrentStateList[this.DSMap[this.m_DsFrameSetDataID]];r&&(null!==r.DropTargetId&&r.DropTargetId===c)&&(p=!0);r={};r[this.m_DsFrameSetDataID]={type:0,toState:o};p?cp.changeState(c,e):this.m_autoSubmit||(cp.DD.hasStateWithName(c,o)?(this.m_DropTargetStatePriorToDropAcceptOrRejectState={dropTarget:c,prevState:e},r[c]={type:1,toState:o,finalState:e}):cp.changeState(c,e));d?this.AnimateObjectGliding(this.m_dummyCanvas.element,
new cp.DD.AnimationState(f,g,parseFloat(this.m_dummyCanvas.element.style.width),parseFloat(this.m_dummyCanvas.element.style.height),1),new cp.DD.AnimationState(h-l,k-m,parseFloat(this.m_dragSourceCanvas.style.width)+2*l,parseFloat(this.m_dragSourceCanvas.style.height)+2*m,parseFloat(this.m_dragSourceCanvas.style.opacity)),10,this.ReturnDragSourceAnimationCallback,r):this.AnimateObjectGliding(this.m_dummyCanvas.element,new cp.DD.AnimationState(f,g,parseFloat(this.m_dummyCanvas.element.style.width),
parseFloat(this.m_dummyCanvas.element.style.height),1),new cp.DD.AnimationState(h-l,k-m,parseFloat(this.m_dragSourceCanvas.parentElement.style.width)+2*l,parseFloat(this.m_dragSourceCanvas.parentElement.style.height)+2*m,parseFloat(this.m_dragSourceCanvas.style.opacity)),10,this.ReturnDragSourceAnimationCallback,r);this.DTMap[c].acceptedDragSources.push(this.m_DsFrameSetDataID);this.DragSourceCurrentStateList[this.DSMap[this.m_DsFrameSetDataID]].DropTargetId=c;this.DSLMSMap[this.m_DsFrameSetDataID].currentDTID!==
c&&(d=document.getElementById(this.m_DsFrameSetDataID),this.DTMap[c].acceptedSourceObjects.push(this.DSLMSMap[this.m_DsFrameSetDataID]),this.DSLMSMap[this.m_DsFrameSetDataID].posleft=d.style.left,this.DSLMSMap[this.m_DsFrameSetDataID].postop=d.style.top,this.DSLMSMap[this.m_DsFrameSetDataID].previousDTID=this.DSLMSMap[this.m_DsFrameSetDataID].currentDTID,this.DSLMSMap[this.m_DsFrameSetDataID].currentDTID=c,this.DSLMSMap[this.m_DsFrameSetDataID].currentPositionId=c,this.DTLMSList.push(this.DTMap[c]));
this.appendToAnswerList(b.t,a.t);this.DoOnDropTargetAccepts(c,e);cp.DD.ChangeMouseCursor("default")};cp.DD.Interaction.prototype.UpdateDragSourcePreviousStatePropertiesObjects=function(){for(var b=0;b<this.DragSourceCurrentStateList.length;++b){var a=this.DragSourceCurrentStateList[b];if(cp.responsive)for(var c=cp.responsiveWidths.length,e=0;e<c;++e){var d=cp.responsiveWidths[e];if(""!=a.DropTargetId&&void 0!=a.DropTargetId){var f=cp(a.objectID).getBoundingClientRect(),g=cp(a.DropTargetId).getBoundingClientRect();
this.DragSourcePreviousStateList[b].posleftRel=(f.left-g.left)/g.width;this.DragSourcePreviousStateList[b].postopRel=(f.top-g.top)/g.height}cp.DD.R_UpdateDragSourceStatePropertiesObject(this.DragSourcePreviousStateList[b],d,a.Index,null,null,null,null,a.Opacity,a.divStruct,a.canvasStruct,a.zIndex,""==a.currentPositionId?a.objectID:a.currentPositionId,a.objectState)}else cp.DD.UpdateDragSourceStatePropertiesObject(this.DragSourcePreviousStateList[b],a.Index,a.posleft,a.postop,a.Width,a.Height,a.Opacity,
a.divStruct,a.canvasStruct,a.zIndex,null,a.objectState);this.DragSourcePreviousStateList[b].DropTargetId=a.DropTargetId;this.DragSourcePreviousStateList[b].Opacity=a.Opacity}};cp.DD.Interaction.prototype.R_UpdateDragSourceCurrentStatePropertiesObject=function(b,a){if(cp.responsive)for(var c=cp.responsiveWidths.length,e=0;e<c;++e){var d=cp.responsiveWidths[e];cp.DD.R_UpdateDragSourceStatePropertiesObject(b,d,a.Index,a.R_posleft[d],a.R_postop[d],a.R_Width[d],a.R_Height[d],a.Opacity,a.divStruct,a.canvasStruct,
a.zIndex,a.currentPositionId,a.objectState)}};cp.DD.Interaction.prototype.UpdateDragSourceCurrentStatePropertiesObjects=function(b){for(var a=0;a<b.length;++a){var c=b[a];c&&(cp.responsive?this.R_UpdateDragSourceCurrentStatePropertiesObject(this.DragSourceCurrentStateList[a],c):cp.DD.UpdateDragSourceStatePropertiesObject(this.DragSourceCurrentStateList[a],c.Index,c.posleft,c.postop,c.Width,c.Height,c.Opacity,c.divStruct,c.canvasStruct,c.zIndex,null,c.objectState),this.DragSourceCurrentStateList[a].DropTargetId=
c.DropTargetId,this.DragSourceCurrentStateList[a].Opacity=c.Opacity)}};cp.DD.Interaction.prototype.ReplaceDragSource=function(b){var a=this.GetDTObjFromDTID(b);if(a&&a.rgo){b=this.DTMap[b];this.m_ReplaceDsFsId=b.acceptedDragSources[0];var c=null,a=cp.DD.GetBaseItemInState(this.m_ReplaceDsFsId),c=null==a?this.m_ReplaceDsFsId:a.framesetID,e=document.getElementById(cp.D[c].mdi),d=cp.D[this.m_ReplaceDsFsId],f=cp.D[d.mdi],a=document.getElementById(this.m_ReplaceDsFsId),d=document.getElementById(d.mdi);
if(a&&d&&e){var g=d.parentElement;if(g){this.m_ReplacedDragSourceDummyCanvas=cp.DD.CreateDummyCanvas(e,this.m_dummyCanvas.element);this.m_ReplacedDragSourceDummyCanvas.element.style.visibility="visible";this.m_ReplacedDragSourceCanvas=e;cp.hide(c);c=null;for(e=0;e<this.DragSourceInitialStateList.length;++e){var h=this.DragSourceInitialStateList[e];h.objectID==this.m_ReplaceDsFsId&&(c=h)}if(null!=c){null!==c.Width&&(a.style.width=parseFloat(c.Width)+"px");null!==c.Height&&(a.style.height=parseFloat(c.Height)+
"px");cp.DD.UpdateDragSourceStatePropertiesObject(this.DragSourceCurrentStateList[this.DSMap[this.m_ReplaceDsFsId]],null,null,null,a.style.width,a.style.height,null,null,null,null,null,null);e=c.divStruct;null!==e&&(null!==e.Width&&(g.style.width=parseFloat(e.Width)+"px"),null!==e.Height&&(g.style.height=parseFloat(e.Height)+"px"),cp.DD.UpdateDragSourceStatePropertiesObject(this.DragSourceCurrentStateList[this.DSMap[this.m_ReplaceDsFsId]],null,null,null,null,null,null,e,null,null,null,null));g=c.canvasStruct;
if(null!==g){null!==g.Width&&(d.style.width=parseFloat(g.Width)+"px");null!==g.Height&&(d.style.height=parseFloat(g.Height)+"px");null!==g.MarginLeft&&(d.style.marginLeft=parseFloat(g.MarginLeft)+"px");null!==g.MarginTop&&(d.style.marginTop=parseFloat(g.MarginTop)+"px");h=c.objectID+"_vTxtHolder";if(h=cp(h))if(null!==g.textPosLeft&&(h.style.left=parseFloat(g.textPosLeft)+"px"),null!==g.textPosTop&&(h.style.top=parseFloat(g.textPosTop)+"px"),null!==g.textWidth&&(h.style.width=parseFloat(g.textWidth)+
"px"),null!==g.textHeight&&(h.style.height=parseFloat(g.textHeight)+"px"),h.firstChild)if(null!==g.textChildPosLeft&&(h.firstChild.style.left=parseFloat(g.textChildPosLeft)+"px"),null!==g.textChildPosTop&&(h.firstChild.style.top=parseFloat(g.textChildPosTop)+"px"),null!==g.textChildWidth&&(h.firstChild.style.width=parseFloat(g.textChildWidth)+"px"),null!==g.textChildHeight)h.firstChild.style.height=parseFloat(g.textChildHeight)+"px";cp.DD.UpdateDragSourceStatePropertiesObject(this.DragSourceCurrentStateList[this.DSMap[this.m_ReplaceDsFsId]],
null,null,null,null,null,null,null,g,null,null,null)}cp.DD.UpdateSizeNPosOfAllStateItems(this.m_ReplaceDsFsId,cp.DD.populateBoundsForStateItems(this.DragSourceCurrentStateList[this.DSMap[this.m_ReplaceDsFsId]],1));cp.DD.UpdateTextBoundsOfAllStateItems(this.m_ReplaceDsFsId,cp.DD.populateTextBoundsForStateItems(this.DragSourceCurrentStateList[this.DSMap[this.m_ReplaceDsFsId]],{bUpdateTextChildSize:!0,bUpdateScale:!1}));c=cp.D[cp.D[this.m_ReplaceDsFsId].mdi];c=c.re||c.sh&&!c.sh.i;e=1;""!==d.style.opacity&&
(e=d.style.opacity);if(cp.responsive){if(this.SetDsFramesetAndCanvasDivPos(this.m_ReplaceDsFsId,parseFloat(this.DragSourceInitialStateList[this.DSMap[this.m_ReplaceDsFsId]].posleft),parseFloat(this.DragSourceInitialStateList[this.DSMap[this.m_ReplaceDsFsId]].postop)),h=this.m_ReplaceDsFsId+"_vTxtHolder",h=cp(h)){var f=cp.DD.initializeTextBoundsForStateItems(),k=cp(this.m_ReplaceDsFsId);null!==g?(h.style.width=g.textWidth,h.style.height=g.textHeight):(h.style.width=k.clientWidth+"px",h.style.height=
k.clientHeight+"px");f.textWidth=h.style.width;f.textHeight=h.style.height;h.firstChild&&(h.firstChild.style["-ms-transform-origin"]="left top",h.firstChild.style["-moz-transform-origin"]="left top",h.firstChild.style["-webkit-transform-origin"]="left top",h.firstChild.style["-o-transform-origin"]="left top",h.firstChild.style["transform-origin"]="left top",cp.applyTransform(h.firstChild,"scale(1)"),f.scale=1);cp.DD.UpdateTextBoundsOfAllStateItems(this.m_ReplaceDsFsId,f)}}else this.SetDsFramesetAndCanvasDivPos(this.m_ReplaceDsFsId,
f.b[0],f.b[1]);d.style.opacity=1;cp.DD.UpdateDragSourceStatePropertiesObject(this.DragSourceCurrentStateList[this.DSMap[this.m_ReplaceDsFsId]],null,null,null,null,null,1,null,null,null,this.DragSourceInitialStateList[this.DSMap[this.m_ReplaceDsFsId]].currentPositionId,null);cp.DD.updateOpacityOfAllStateItems(this.m_ReplaceDsFsId,1);this.RestoreOriginalIndexOfDsFramesetId(this.m_ReplaceDsFsId);f=this.DragSourceInitialStateList[this.DSMap[this.m_ReplaceDsFsId]].objectState;cp.DD.UpdateDragSourceStatePropertiesObject(this.DragSourceCurrentStateList[this.DSMap[this.m_ReplaceDsFsId]],
null,null,null,null,null,null,null,null,null,null,f);c?this.AnimateObjectGliding(this.m_ReplacedDragSourceDummyCanvas.element,new cp.DD.AnimationState(parseFloat(this.m_ReplacedDragSourceDummyCanvas.element.style.left),parseFloat(this.m_ReplacedDragSourceDummyCanvas.element.style.top),parseFloat(this.m_ReplacedDragSourceDummyCanvas.element.style.width),parseFloat(this.m_ReplacedDragSourceDummyCanvas.element.style.height),e),new cp.DD.AnimationState(parseFloat(d.style.marginLeft)+parseFloat(d.parentElement.style.left),
parseFloat(d.style.marginTop)+parseFloat(d.parentElement.style.top),parseFloat(d.style.width),parseFloat(d.style.height),1),20,this.ReplaceDragSourceAnimationCallback,f):this.AnimateObjectGliding(this.m_ReplacedDragSourceDummyCanvas.element,new cp.DD.AnimationState(parseFloat(this.m_ReplacedDragSourceDummyCanvas.element.style.left),parseFloat(this.m_ReplacedDragSourceDummyCanvas.element.style.top),parseFloat(this.m_ReplacedDragSourceDummyCanvas.element.style.width),parseFloat(this.m_ReplacedDragSourceDummyCanvas.element.style.height),
e),new cp.DD.AnimationState(parseFloat(d.style.marginLeft)+parseFloat(d.parentElement.style.left),parseFloat(d.style.marginTop)+parseFloat(d.parentElement.style.top),parseFloat(d.parentElement.style.width),parseFloat(d.parentElement.style.height),1),20,this.ReplaceDragSourceAnimationCallback,f);d=a;f=cp.DD.GetBaseItemInState(a.id);null!==f&&(d=document.getElementById(f.framesetID));cp.DD.IsTouchDevice()?d.ontouchstart=this.ItemOnMouseDown:d.onmousedown=this.ItemOnMouseDown;!0===cp.DD.getAttribute(this.m_elId,
"hc")&&!cp.DD.IsTouchDevice()&&(d.onmouseover=this.ItemOnMouseOver,d.onmouseout=this.ItemOnMouseOut);d=this.DSLMSMap[this.m_ReplaceDsFsId];d.posleft=a.style.left;d.postop=a.style.top;d.previousDTID=d.currentDTID;d.currentDTID=null;d.currentPositionId=d.objectID;b.acceptedSourceObjects.splice(0,1);b.acceptedDragSources.splice(0,1);this.DragSourceCurrentStateList[this.DSMap[this.m_ReplaceDsFsId]].DropTargetId=null}}}}};cp.DD.Interaction.prototype.ReplaceDragSourceAnimationCallback=function(b){var a=
cp.DD.CurrInteractionManager.m_ActiveInteraction;null!==a&&(a.m_ReplacedDragSourceCanvas&&a.m_ReplacedDragSourceDummyCanvas)&&(cp.show(a.m_ReplaceDsFsId),void 0!==b&&cp.DD.changeState(a.m_ReplaceDsFsId,b,a),document.getElementById("div_Slide").removeChild(a.m_ReplacedDragSourceDummyCanvas.element),a.m_ReplacedDragSourceCanvas=null,a.m_ReplacedDragSourceDummyCanvas=null)};cp.DD.Interaction.prototype.RestoreOriginalIndexOfDsFramesetId=function(b){var a=this.DragSourceInitialStateList[this.DSMap[b]];
if(a){var c=a.prevNonDs,a=a.relDepth,e=document.getElementById("div_Slide").getElementsByClassName("cp-frameset"),d=null,f=null,g=!1;null===c&&(g=!0);for(j=1;j<e.length;++j)if(d=e[j].id,g){var h=cp.DD.getBaseStateItem(d);if(void 0!==this.DSMap[h]&&null!==this.DSMap[h]){if(d!==b&&h!=f&&(a--,0>=a))break;f=h}else break}else d===c&&(g=!0);this.SetFramesetDepth(b,d);for(j=1;j<e.length;++j)d=e[j].id,h=cp.DD.getBaseStateItem(d),void 0!==this.DSMap[h]&&null!==this.DSMap[h]&&cp.DD.UpdateDragSourceStatePropertiesObject(this.DragSourceCurrentStateList[this.DSMap[h]],
j-1,null,null,null,null,null,null,null,null,null,null)}};cp.DD.Interaction.prototype.SetFramesetDepth=function(b,a){var c=null;a&&(c=document.getElementById(a),document.getElementById(cp.D[c.id].mdi));var c=document.getElementById(b),e=document.getElementById(cp.D[b].mdi).parentElement;cp.DD.InsertBeforeConsideringStates(b,a);var d=this.DragSourceInitialStateList[this.DSMap[b]];d&&(c.style.zIndex=d.zIndex,e.style.zIndex=d.zIndex,cp.DD.UpdateDragSourceStatePropertiesObject(this.DragSourceCurrentStateList[this.DSMap[b]],
null,null,null,null,null,null,null,null,d.zIndex,null,null),cp.DD.updateZIndicesOfAllStateItems(b))};cp.DD.Interaction.prototype.PerformOnDropActions=function(b){var b=this.GetDTObjFromDTID(b),a=this.GetDSObjFromDSID(this.m_DsFrameSetDataID);null===b||null===a||(b=b["oda_"+a.t],void 0===b||null===b||cp.movie.executeAction(b))};cp.DD.Interaction.prototype.CheckAutoSubmit=function(b,a){if(this.m_autoSubmit){var c={},e=this.CheckIfCorrect(c),d=!1;e==cp.QuestionStatusEnum.CORRECT||e==cp.QuestionStatusEnum.PARTIAL_CORRECT?
(this.m_questionObj&&this.storeSuspendData(),cp.SubmitInteractions(this.m_elId,e,this.m_CurrentAttempt),this.m_CurrentAttempt++,this.ShowInteractionSuccessCaption(),cp.movie.executeAction(this.m_successAction),d=this.m_InteractionCompleted=!0,cp.DD.hasStateWithName(b,cp.DD.ObjectStateNames.kCPDropCorrect)||cp.changeState(b,a),this.updateCorrectIncorrectStatesOnTarget(c)):cp.DD.hasStateWithName(b,cp.DD.ObjectStateNames.kCPDropAccept)?cp.DD.changeStateForSomeTime(b,cp.DD.ObjectStateNames.kCPDropAccept,
this,1E3,!1,a):cp.changeState(b,a);(0<this.m_maxAttempts&&this.m_CurrentAttempt>=this.m_maxAttempts||d)&&this.disableInteraction()}};cp.DD.Interaction.prototype.getCorrectAnswersArray=function(){for(var b=[],a=cp.DD.getAttribute(this.m_elId,"cal"),c=0;c<a.length;++c){var e=a[c];e.a&&b.push(e.a)}return b};cp.DD.Interaction.prototype.OnSubmitButtonClicked=function(){if(!(0<this.m_maxAttempts&&this.m_CurrentAttempt>=this.m_maxAttempts)){this.m_questionObj&&this.storeSuspendData();var b={},a=this.CheckIfCorrect(b),
c=!1;cp.SubmitInteractions(this.m_elId,a,this.m_CurrentAttempt);this.m_CurrentAttempt++;a==cp.QuestionStatusEnum.CORRECT||a==cp.QuestionStatusEnum.PARTIAL_CORRECT?(this.ShowInteractionSuccessCaption(),cp.movie.executeAction(this.m_successAction),this.updateCorrectIncorrectStatesOnTarget(b),c=this.m_InteractionCompleted=!0):(a=cp.DD.getAttribute(this.m_elId,"cal"),void 0===a||null===a||0>=a.length?this.m_InteractionCompleted=!0:0<this.m_maxAttempts&&this.m_CurrentAttempt===this.m_maxAttempts?(this.ShowInteractionFailureCaption(),
cp.movie.executeAction(this.m_failureAction),this.updateCorrectIncorrectStatesOnTarget(b),this.m_InteractionCompleted=!0):(this.ShowInteractionFailureCaption(),!0===cp.DD.getAttribute(this.m_elId,"re")?this.ResetEverythingOnFailure():!0===cp.DD.getAttribute(this.m_elId,"ri")&&this.ResetOnlyInCorrectOnFailure()));(0<this.m_maxAttempts&&this.m_CurrentAttempt>=this.m_maxAttempts||c)&&this.disableInteraction()}};cp.DD.Interaction.prototype.OnUndoButtonClicked=function(){var b,a;if(!0===this.undoAvailable){if(cp.responsive){var c=
[];if(this.m_dsList)for(b=0;b<this.m_dsList.length;++b){var e=this.DragSourceCurrentStateList[this.DSMap[this.m_dsList[b].n]],e=this.DragSourceInitialStateList[this.DSMap[this.m_dsList[b].n]],d=cp.DD.copyDragSourcePropertiesObject(this.DragSourcePreviousStateList[this.DSMap[this.m_dsList[b].n]]);if(""!=d.currentPositionId){if(d.currentPositionId==e.currentPositionId)cp.DD.UpdateDragSourceStatePropertiesObject(d,null,e.posleft,e.postop,e.Width,e.Height,e.Opacity,e.divStruct,e.canvasStruct,e.zIndex,
e.currentPositionId,null);else{a=this.GetDTObjFromDTID(d.currentPositionId);if(!a)continue;var f=a.sbp;a=f===cp.DD.SnapBehaviourPos.kCPSBPAbsolute;var g=!1;if(f==cp.DD.SnapBehaviourPos.kCPSBPTileLeftRightStartingTop||f==cp.DD.SnapBehaviourPos.kCPSBPTileLeftRightStartingBottom||f==cp.DD.SnapBehaviourPos.kCPSBPTileBottomTopStartingLeft||f==cp.DD.SnapBehaviourPos.kCPSBPTileTopBottomStartingLeft)g=!0;f=absoluteTop=0;if(a){var h=cp(d.currentPositionId).getBoundingClientRect(),f=h.left+d.posleftRel*h.width;
absoluteTop=h.top+d.postopRel*h.height}this.updatePreviousStateSnapSize(d,e.currentPositionId,d.currentPositionId);g||this.updatePreviousStateSnapPosition(d,e.currentPositionId,d.currentPositionId,a,f,absoluteTop);this.updatePreviousStateSnapOpacity(d,e.currentPositionId,d.currentPositionId)}c.push(d)}}this.updateTiledPreviousStateSnapPosition(c);cp.DD.UpdateDivStructure(c)}else cp.DD.UpdateDivStructure(this.DragSourcePreviousStateList);if(0<this.m_dsList.length)for(b=0;b<this.m_dsList.length;++b)if(e=
this.DragSourceCurrentStateList[this.DSMap[this.m_dsList[b].n]],d=this.DragSourcePreviousStateList[this.DSMap[this.m_dsList[b].n]],c=e.DropTargetId,d=d.DropTargetId,e=this.DSLMSMap[this.m_dsList[b].n],null===c&&null===d&&e&&(a=document.getElementById(this.m_dsList[b].n),e.posleft=a.style.left,e.postop=a.style.top,e.currentDTID=null,e.previousDTID=null,e.currentPositionId=e.objectID),c===d)cp.responsive&&(c&&d)&&(this.DTMap[d].acceptedDragSources=JSON.parse(JSON.stringify(this.DTMap[c].prevAcceptedDragSources)),
this.DTMap[d].acceptedSourceObjects=JSON.parse(JSON.stringify(this.DTMap[c].prevAcceptedDragSourceObjects)),this.DTLMSList.push(this.DTMap[d]));else{if(c){for(a=0;a<this.DTMap[c].acceptedDragSources.length;++a)if(this.DTMap[c].acceptedDragSources[a]===this.m_dsList[b].n){this.DTMap[c].acceptedDragSources.splice(a,1);break}for(a=0;a<this.DTMap[c].acceptedSourceObjects.length;++a)if(this.DTMap[c].acceptedSourceObjects[a].objectID===this.m_dsList[b].n){this.DTMap[c].acceptedSourceObjects.splice(a,1);
break}}d?(this.DTMap[d].acceptedDragSources.push(this.m_dsList[b].n),this.DTMap[d].acceptedSourceObjects.push(this.DSLMSMap[this.m_dsList[b].n]),this.DTLMSList.push(this.DTMap[d]),e&&(e.posleft=null,e.postop=null,e.currentDTID=d,e.previousDTID=c,e.currentPositionId=d)):e&&(a=document.getElementById(this.m_dsList[b].n),e.posleft=a.style.left,e.postop=a.style.top,e.currentDTID=null,e.previousDTID=c,e.currentPositionId=e.objectID)}this.UpdateDragSourceCurrentStatePropertiesObjects(this.DragSourcePreviousStateList,
cp.DD.ReasonForUpdatingCurrentState.kUndo);if(0<this.m_dsList.length)for(b=0;b<this.m_dsList.length;++b)if(c=this.m_dsList[b].n,e=this.DragSourceCurrentStateList[this.DSMap[this.m_dsList[b].n]],d=e.DropTargetId,dsDiv=document.getElementById(c),c=cp.DD.GetBaseItemInState(c),null!==c&&(dsDiv=document.getElementById(c.framesetID)),c=cp.DD.getAttribute(this.m_elId,"reds"),null==d||null!==d&&c)cp.DD.IsTouchDevice()?dsDiv.ontouchstart=this.ItemOnMouseDown:dsDiv.onmousedown=this.ItemOnMouseDown,!0===cp.DD.getAttribute(this.m_elId,
"hc")&&!cp.DD.IsTouchDevice()&&(dsDiv.onmouseover=this.ItemOnMouseOver,dsDiv.onmouseout=this.ItemOnMouseOut);this.DTLMSList.pop();this.m_attemptedAnswerString.pop();this.undoAvailable=!1}};cp.DD.Interaction.prototype.OnResetButtonClicked=function(){if(!0===this.resetAvailable){cp.DD.UpdateDivStructure(this.DragSourceInitialStateList);this.UpdateDragSourceCurrentStatePropertiesObjects(this.DragSourceInitialStateList,cp.DD.ReasonForUpdatingCurrentState.kReset);cp.DD.ClearDragSourcePropertiesList(this.DragSourcePreviousStateList);
if(0<this.m_dsList.length)for(var b=0;b<this.m_dsList.length;++b){var a=this.m_dsList[b].n;dsDiv=document.getElementById(a);a=cp.DD.GetBaseItemInState(a);null!==a&&(dsDiv=document.getElementById(a.framesetID));cp.DD.IsTouchDevice()?dsDiv.ontouchstart=this.ItemOnMouseDown:dsDiv.onmousedown=this.ItemOnMouseDown;!0===cp.DD.getAttribute(this.m_elId,"hc")&&!cp.DD.IsTouchDevice()&&(dsDiv.onmouseover=this.ItemOnMouseOver,dsDiv.onmouseout=this.ItemOnMouseOut);if(a=this.DSLMSMap[this.m_dsList[b].n])a.posleft=
null,a.postop=null,a.currentDTID=null,a.previousDTID=null,a.currentPositionId=a.objectID}for(b=0;b<this.m_dtList.length;++b)if(a=this.DTMap[this.m_dtList[b].n])a.acceptedDragSources.length=0,a.acceptedSourceObjects.length=0;this.clearAnswerList();this.DTLMSList=[];this.undoAvailable=this.resetAvailable=!1}};cp.DD.Interaction.prototype.ResetEverythingOnFailure=function(){this.OnResetButtonClicked()};cp.DD.Interaction.prototype.ResetOnlyInCorrectOnFailure=function(){};cp.DD.Interaction.prototype.CheckIfCorrect=
function(b){var a=cp.DD.getAttribute(this.m_elId,"cal");if(void 0===a||null===a||0>=a.length){var a=this.convertAnswerListToString(!0),c=cp.QuestionStatusEnum.INCORRECT,c=""===a?cp.QuestionStatusEnum.CORRECT:cp.QuestionStatusEnum.INCORRECT;this.CalculateDropTargetCorrectIncorrectStates(c,a,{a:"",isSeq:!0},b);return c}for(c=0;c<a.length;++c){var e=a[c];if(this.checkCorrectAnswers(e.a,e.isSeq))return this.CalculateDropTargetCorrectIncorrectStates(cp.QuestionStatusEnum.CORRECT,this.convertAnswerListToString(e.isSeq),
e,b),cp.QuestionStatusEnum.CORRECT}e={a:"",isSeq:!0};0<a.length&&(e=a[0]);this.CalculateDropTargetCorrectIncorrectStates(cp.QuestionStatusEnum.INCORRECT,this.convertAnswerListToString(e.isSeq),e,b);return cp.QuestionStatusEnum.INCORRECT};cp.DD.Interaction.prototype.CalculateDropTargetCorrectIncorrectStates=function(b,a,c,e){if(void 0!==e&&!(void 0===c||void 0===a))if(c.isSeq){for(var d=[],c=a.split(/t:|-t:/g),f=!0,a=0;a<c.length;a++){var g=c[a];""!==g&&(f?f=!1:(d.push(g),f=!0))}c="";if(cp.QuestionStatusEnum.CORRECT===
b){c=cp.DD.ObjectStateNames.kCPDropCorrect;for(a=0;a<d.length;a++)e[d[a]]=c}}else if(cp.QuestionStatusEnum.CORRECT===b)for(a=0;a<this.m_dtList.length;++a){if(d=this.DTMap[this.m_dtList[a].n]){var h=d.acceptedDragSources;0<h.length&&(d=d.objectID,e[d]=cp.DD.ObjectStateNames.kCPDropCorrect)}}else{f=cp.DD.parseAnswerStringIntoMap(c.a,0);g=cp.DD.parseAnswerStringIntoMap(a,1);b=[];c=[];for(d in f){var h=f[d],k=[];void 0!==g[d]&&(k=g[d]);if(h.length!==k.length)c.push(d);else{for(var l=!1,a=0;a<h.length;a++){var m=
h[a].count,o=k[a].count;if(h[a].sourceType!==k[a].sourceType||m!==o){l=!0;break}}l?c.push(d):b.push(d)}}f={};for(a=0;a<this.m_dtList.length;++a)if(d=this.GetDTObjFromDTID(this.m_dtList[a].n),g=d.t,void 0===f[g]&&(f[g]={withSources:[],withoutSources:[]}),k=this.m_dtList[a].n,d=this.DTMap[this.m_dtList[a].n])k=d.objectID,h=d.acceptedDragSources,0<h.length?f[g].withSources.push(k):f[g].withoutSources.push(k);for(a=0;a<b.length;a++)if(g=b[a],d=f[g].withSources)for(h=0;h<d.length;h++)e[d[h]]=cp.DD.ObjectStateNames.kCPDropCorrect;
for(a=0;a<c.length;a++)if(g=c[a],(d=f[g].withSources)&&0<d.length)for(h=0;h<d.length;h++)e[d[h]]=cp.DD.ObjectStateNames.kCPDropIncorrect;else{if(d=f[g].withSources)for(h=0;h<d.length;h++)e[d[h]]=cp.DD.ObjectStateNames.kCPDropIncorrect;if(d=f[g].withoutSources)for(h=0;h<d.length;h++)e[d[h]]=cp.DD.ObjectStateNames.kCPDropIncorrect}for(a=0;a<this.m_dtList.length;++a)if(d=this.GetDTObjFromDTID(this.m_dtList[a].n),g=d.t,d=this.DTMap[this.m_dtList[a].n])h=d.acceptedDragSources,0<h.length&&(-1===b.indexOf(g)&&
-1===c.indexOf(g))&&(d=d.objectID,e[d]=cp.DD.ObjectStateNames.kCPDropIncorrect)}};cp.DD.Interaction.prototype.DoOnDropTargetAccepts=function(b,a){this.ShowDropTargetAcceptCaption(b);var c=cp.DD.getCurrentStateName(b);this.PerformOnDropActions(b);var e=cp.DD.getCurrentStateName(b);c!==e&&(a=e);this.SetRedrag();this.CheckAutoSubmit(b,a)};cp.DD.Interaction.prototype.SetRedrag=function(){if(!cp.DD.getAttribute(this.m_elId,"reds")){dsFrameset=document.getElementById(this.m_DsFrameSetDataID);var b=cp.DD.GetBaseItemInState(this.m_DsFrameSetDataID);
null!==b&&(dsFrameset=document.getElementById(b.framesetID));cp.DD.IsTouchDevice()?dsFrameset.ontouchstart=null:(dsFrameset.onmousedown=null,dsFrameset.onmouseover=null,dsFrameset.onmouseout=null)}};cp.DD.Interaction.prototype.DoOnDropTargetRejects=function(b,a){this.ShowDropTargetRejectCaption(b);var c=1E3+10*B;cp.DD.hasStateWithName(b,cp.DD.ObjectStateNames.kCPDropReject)?(this.m_DropTargetStatePriorToDropAcceptOrRejectState={dropTarget:b,prevState:a},cp.DD.changeStateForSomeTime(b,cp.DD.ObjectStateNames.kCPDropReject,
this,c,!1,a)):cp.changeState(b,a)};cp.DD.Interaction.prototype.ShowDropTargetAcceptCaption=function(b){b=this.GetDTObjFromDTID(b);if(null!==b){var b=b.osc,a=!0;void 0===b&&(a=!1);void 0!==b&&2>b.length&&(a=!1);var c=null;a&&(c=new cp.Feedback(b,null,!1,cp.FeedbackType.SUCCESS,null),c.show());return!0}};cp.DD.Interaction.prototype.ShowDropTargetRejectCaption=function(b){b=this.GetDTObjFromDTID(b);if(null!==b){var b=b.ofc,a=!0;void 0===b&&(a=!1);void 0!==b&&2>b.length&&(a=!1);var c=null;a&&(c=new cp.Feedback(b,
null,!1,cp.FeedbackType.FAILURE,null),c.show());return!0}};cp.DD.Interaction.prototype.ShowInteractionFailureCaption=function(){cp.DD.getAttribute(this.m_elId,"ofct");var b=cp.DD.getAttribute(this.m_elId,"ofc"),a=!0;void 0===b&&(a=!1);void 0!==b&&2>b.length&&(a=!1);var c=null;a&&(c=new cp.Feedback(b,null,!1,cp.FeedbackType.FAILURE,null),c.show());return!0};cp.DD.Interaction.prototype.ShowInteractionSuccessCaption=function(){cp.DD.getAttribute(this.m_elId,"osct");var b=cp.DD.getAttribute(this.m_elId,
"osc"),a=!0;void 0===b&&(a=!1);void 0!==b&&2>b.length&&(a=!1);var c=null;a&&(c=new cp.Feedback(b,null,!1,cp.FeedbackType.SUCCESS,null),c.show());return!0};cp.DD.Interaction.prototype.SetDsFramesetAndCanvasDivPos=function(b,a,c){var e=document.getElementById(b),d=document.getElementById(cp.D[b].mdi).parentElement,f=parseFloat(e.style.left),g=parseFloat(e.style.top);e.style.left=a+"px";e.style.top=c+"px";d.style.left=parseFloat(e.style.left)-(f-parseFloat(d.style.left))+"px";d.style.top=parseFloat(e.style.top)-
(g-parseFloat(d.style.top))+"px";a=new cp.DD.CustomDivStruct;a.posleft=d.style.left;a.postop=d.style.top;if(d=this.DragSourceCurrentStateList[this.DSMap[b]].divStruct)a.Width=d.Width,a.Height=d.Height;cp.DD.UpdateDragSourceStatePropertiesObject(this.DragSourceCurrentStateList[this.DSMap[b]],null,e.style.left,e.style.top,null,null,null,a,null,null,null,null);cp.DD.UpdateSizeNPosOfAllStateItems(b,cp.DD.populateBoundsForStateItems(this.DragSourceCurrentStateList[this.DSMap[b]],0))};cp.DD.Interaction.prototype.appendDivAsChildOfAnotherDiv=
function(b,a){this.SetSnapSize(b,a);this.SetSnapPosition(b,a);var c=this.DragSourceCurrentStateList[this.DSMap[this.m_DsFrameSetDataID]].DropTargetId;if(c){var e=this.GetDTObjFromDTID(c).sbp;(e==cp.DD.SnapBehaviourPos.kCPSBPTileLeftRightStartingTop||e==cp.DD.SnapBehaviourPos.kCPSBPTileLeftRightStartingBottom||e==cp.DD.SnapBehaviourPos.kCPSBPTileBottomTopStartingLeft||e==cp.DD.SnapBehaviourPos.kCPSBPTileTopBottomStartingLeft)&&this.SetSnapPosition(c,null)}if(c=this.GetDTObjFromDTID(b))e=document.getElementById(cp.D[a].mdi),
e.style.opacity=c.sbo/100,cp.DD.UpdateDragSourceStatePropertiesObject(this.DragSourceCurrentStateList[this.DSMap[a]],null,null,null,null,null,e.style.opacity,null,null,null,b,null),cp.DD.updateOpacityOfAllStateItems(a,e.style.opacity);this.SetSnapDepth(b,a);this.PlaySnapBehaviourAudio(b)};cp.DD.Interaction.prototype.PlaySnapBehaviourAudio=function(b){var a=this.GetDTObjFromDTID(b);a&&a.sba&&(b=this.m_DTtoSnapBehaviourAudioMap[b])&&cp.playAudio(b,!1)};cp.DD.Interaction.prototype.SetSnapDepth=function(b,
a){var c=this.GetDTObjFromDTID(b);if(c){for(var e=c.sbd,d=null,f=null,c=null,c=this.DTMap[b].acceptedDragSources.length?document.getElementById(this.DTMap[b].acceptedDragSources[this.DTMap[b].acceptedDragSources.length-1]):document.getElementById(b),g=document.getElementById(cp.D[c.id].mdi).parentElement,h=document.getElementById(a),k=document.getElementById(cp.D[a].mdi).parentElement,l=document.getElementById("div_Slide").getElementsByClassName("cp-frameset"),m=1;m<l.length;++m){var o=l[m].id;o===
b&&(d=m);o===a&&(f=m);if(null!==d&&null!==f)break}l={fset:c.style.zIndex,div:g.style.zIndex};0===e?(e=c,o=cp.DD.GetAllItemsInAllStates(c.id),0<o.length&&(e=document.getElementById(o[o.length-1])),cp.DD.InsertBeforeConsideringStates(h.id,e.nextSibling.id),cp.DD.GetZIndexValue(c.id,l,0)):1===e&&(cp.DD.InsertBeforeConsideringStates(h.id,c.id),cp.DD.GetZIndexValue(c.id,l,1));h.style.zIndex=parseInt(l.fset,10);k.style.zIndex=parseInt(l.div,10);cp.DD.updateZIndicesOfAllStateItems(h.id);cp.DD.UpdateDragSourceStatePropertiesObject(this.DragSourceCurrentStateList[this.DSMap[a]],
null,null,null,null,null,null,null,null,h.style.zIndex,null,null);l=document.getElementById("div_Slide").getElementsByClassName("cp-frameset");for(c=1;c<l.length;++c)o=l[c].id,h=cp.DD.getBaseStateItem(o),void 0!==this.DSMap[h]&&null!==this.DSMap[h]&&cp.DD.UpdateDragSourceStatePropertiesObject(this.DragSourceCurrentStateList[this.DSMap[h]],c-1,null,null,null,null,null,null,null,null,null,null)}};cp.DD.Interaction.prototype.SetSnapSize=function(b,a){var c=this.GetDTObjFromDTID(b);if(c&&this.m_dragSourceCanvas){var e=
this.m_dragSourceCanvas.parentElement,c=c.sbs,d=this.DragSourceInitialStateList[this.DSMap[a]],f=d.Width,g=d.Height;e.style.width=parseFloat(d.divStruct.Width)*c/100+"px";e.style.height=parseFloat(d.divStruct.Height)*c/100+"px";var h=parseFloat(d.canvasStruct.Width)*c/100,k=parseFloat(d.canvasStruct.Height)*c/100;this.m_dragSourceCanvas.style.width=h+"px";this.m_dragSourceCanvas.style.height=k+"px";this.m_dragSourceCanvas.style.marginLeft=parseFloat(d.canvasStruct.MarginLeft)*c/100+"px";this.m_dragSourceCanvas.style.marginTop=
parseFloat(d.canvasStruct.MarginTop)*c/100+"px";var e=new cp.DD.CustomDivStruct,l=new cp.DD.CustomCanvasStruct,m=this.DragSourceCurrentStateList[this.DSMap[a]].divStruct;m?(e.posleft=m.posleft,e.postop=m.postop):(m=document.getElementById(a),e.posleft=m.style.left,e.postop=m.style.top);e.Width=h+"px";e.Height=k+"px";(m=this.DragSourceCurrentStateList[this.DSMap[a]].canvasStruct)?(l.posleft=m.posleft,l.postop=m.postop):(l.posleft=this.m_dragSourceCanvas.style.left,l.posleft=this.m_dragSourceCanvas.style.top);
l.Width=h+"px";l.Height=k+"px";l.MarginTop=this.m_dragSourceCanvas.style.marginTop;l.MarginLeft=this.m_dragSourceCanvas.style.marginLeft;if(m=document.getElementById(a)){h=parseFloat(f)*c/100;k=parseFloat(g)*c/100;m.style.width=h+"px";m.style.height=k+"px";if(cp.responsive&&(f=cp(a+"_vTxtHolder")))if(g=parseFloat(d.canvasStruct.textWidth),d=parseFloat(d.canvasStruct.textHeight),f.style.left=parseFloat(f.style.left)*(c/100)+"px",f.style.top=parseFloat(f.style.top)*(c/100)+"px",f.style.width=g*c/100+
"px",f.style.height=d*c/100+"px",l&&(l.textPosLeft=f.style.left,l.textPosTop=f.style.top,l.textWidth=f.style.width,l.textHeight=f.style.height),f.firstChild)f.firstChild.style.left=parseFloat(f.firstChild.style.left)*(c/100)+"px",f.firstChild.style.top=parseFloat(f.firstChild.style.top)*(c/100)+"px",l.textChildPosLeft=f.firstChild.style.left,l.textChildPosTop=f.firstChild.style.top,f.firstChild.style["-ms-transform-origin"]="left top",f.firstChild.style["-moz-transform-origin"]="left top",f.firstChild.style["-webkit-transform-origin"]=
"left top",f.firstChild.style["-o-transform-origin"]="left top",f.firstChild.style["transform-origin"]="left top",cp.applyTransform(f.firstChild,"scale("+c/100+")");cp.DD.UpdateDragSourceStatePropertiesObject(this.DragSourceCurrentStateList[this.DSMap[a]],null,null,null,m.style.width,m.style.height,null,null,null,null,b,null)}cp.DD.UpdateDragSourceStatePropertiesObject(this.DragSourceCurrentStateList[this.DSMap[a]],null,null,null,null,null,null,e,l,null,b,null);cp.DD.UpdateSizeNPosOfAllStateItems(a,
cp.DD.populateBoundsForStateItems(this.DragSourceCurrentStateList[this.DSMap[a]],1));cp.DD.UpdateTextBoundsOfAllStateItems(a,cp.DD.populateTextBoundsForStateItems(this.DragSourceCurrentStateList[this.DSMap[a]],{bUpdateTextChildSize:!1,bUpdateScale:!0,scale:c/100}))}};cp.DD.Interaction.prototype.SetSnapPosition=function(b,a){var c=document.getElementById(b),e=this.GetDTObjFromDTID(b);if(c&&e){var d=parseFloat(c.style.left),f=parseFloat(c.style.top),g=parseFloat(c.style.width),c=parseFloat(c.style.height),
h=null,k=0,l=0;a&&(h=document.getElementById(a),k=parseFloat(h.style.width),l=parseFloat(h.style.height));var h=this.DTMap[b],m,o=null,p=null,r=null,n=null,t,u,s,v,q,w;switch(e.sbp){case cp.DD.SnapBehaviourPos.kCPSBPNone:d=this.m_tempFrameSetPos.x;f=this.m_tempFrameSetPos.y;this.SetDsFramesetAndCanvasDivPos(a,d,f);break;case cp.DD.SnapBehaviourPos.kCPSBPAbsolute:d=this.m_tempFrameSetPos.x;f=this.m_tempFrameSetPos.y;this.SetDsFramesetAndCanvasDivPos(a,d,f);break;case cp.DD.SnapBehaviourPos.kCPSBPAnchorTopLeft:this.SetDsFramesetAndCanvasDivPos(a,
d,f);break;case cp.DD.SnapBehaviourPos.kCPSBPAnchorTopCenter:this.SetDsFramesetAndCanvasDivPos(a,d+g/2-k/2,f);break;case cp.DD.SnapBehaviourPos.kCPSBPAnchorTopRight:this.SetDsFramesetAndCanvasDivPos(a,d+g-k,f);break;case cp.DD.SnapBehaviourPos.kCPSBPAnchorCenterLeft:this.SetDsFramesetAndCanvasDivPos(a,d,f+c/2-l/2);break;case cp.DD.SnapBehaviourPos.kCPSBPAnchorCenterCenter:this.SetDsFramesetAndCanvasDivPos(a,d+g/2-k/2,f+c/2-l/2);break;case cp.DD.SnapBehaviourPos.kCPSBPAnchorCenterRight:this.SetDsFramesetAndCanvasDivPos(a,
d+g-k,f+c/2-l/2);break;case cp.DD.SnapBehaviourPos.kCPSBPAnchorBottomLeft:this.SetDsFramesetAndCanvasDivPos(a,d,f+c-l);break;case cp.DD.SnapBehaviourPos.kCPSBPAnchorBottomCenter:this.SetDsFramesetAndCanvasDivPos(a,d+g/2-k/2,f+c-l);break;case cp.DD.SnapBehaviourPos.kCPSBPAnchorBottomRight:this.SetDsFramesetAndCanvasDivPos(a,d+g-k,f+c-l);break;case cp.DD.SnapBehaviourPos.kCPSBPStackHorizonatally:break;case cp.DD.SnapBehaviourPos.kCPSBPStackVertically:break;case cp.DD.SnapBehaviourPos.kCPSBPTileLeftRightStartingTop:for(e=
0;e<=h.acceptedDragSources.length;++e)if(o=e!==h.acceptedDragSources.length?h.acceptedDragSources[e]:a){p=document.getElementById(o);0!==e&&(r=h.acceptedDragSources[e-1]);r&&(n=document.getElementById(r));m=parseFloat(p.style.width);t=parseFloat(p.style.height);s=v=l=k=0;if(w=cp.DD.GetDimensionsAfterRotation(0,0,m,t,cp.DD.getRotationAngle(p)))k=-w.minX,l=-w.minY,m=w.maxX-w.minX;v=s=p=u=0;n&&(u=parseFloat(n.style.left),p=parseFloat(n.style.top),s=parseFloat(n.style.width),v=parseFloat(n.style.height),
q=cp.DD.GetDimensionsAfterRotation(0,0,s,v,cp.DD.getRotationAngle(n)),w&&(v=-q.minX,s=-q.minY,u-=v,p-=s,s=q.maxX-q.minX,v=q.maxY-q.minY));q=null!==n?u+s:d;w=null!==n?p:f;if(null!==n&&q+m>d+g){u=v;for(m=e-1;0<=m;--m)if(s=document.getElementById(h.acceptedDragSources[m]),c=parseFloat(s.style.top),p===c)s=parseFloat(s.style.height),u=s>u?s:u;else break;q=d;w=null!==n?p+u:f}q+=k;w+=l;this.SetDsFramesetAndCanvasDivPos(o,q,w)}break;case cp.DD.SnapBehaviourPos.kCPSBPTileLeftRightStartingBottom:for(e=0;e<=
h.acceptedDragSources.length;++e)if(n=r=null,o=e!==h.acceptedDragSources.length?h.acceptedDragSources[e]:a){p=document.getElementById(o);0!==e&&(r=h.acceptedDragSources[e-1]);r&&(n=document.getElementById(r));m=parseFloat(p.style.width);t=parseFloat(p.style.height);l=k=0;if(w=cp.DD.GetDimensionsAfterRotation(0,0,m,t,cp.DD.getRotationAngle(p)))k=-w.minX,l=-w.minY,m=w.maxX-w.minX,t=w.maxY-w.minY;v=s=p=u=0;n&&(u=parseFloat(n.style.left),p=parseFloat(n.style.top),s=parseFloat(n.style.width),v=parseFloat(n.style.height),
q=cp.DD.GetDimensionsAfterRotation(0,0,s,v,cp.DD.getRotationAngle(n)),w&&(v=-q.minX,s=-q.minY,u-=v,p-=s,s=q.maxX-q.minX,v=q.maxY-q.minY));q=null!==n?u+s:d;w=null!==n?p+v-t:f+c-t;if(null!==n&&q+m>d+g){u=v;for(m=e-1;0<=m;--m)if(s=document.getElementById(h.acceptedDragSources[m]),r=parseFloat(s.style.top)+parseFloat(s.style.height),p+v===r)s=parseFloat(s.style.height),u=s>u?s:u;else break;q=d;w=null!==n?p+v-u-t:c-t}q+=k;w+=l;this.SetDsFramesetAndCanvasDivPos(o,q,w)}break;case cp.DD.SnapBehaviourPos.kCPSBPTileBottomTopStartingLeft:for(e=
0;e<=h.acceptedDragSources.length;++e)if(n=r=null,o=e!==h.acceptedDragSources.length?h.acceptedDragSources[e]:a){p=document.getElementById(o);0!==e&&(r=h.acceptedDragSources[e-1]);r&&(n=document.getElementById(r));m=parseFloat(p.style.width);t=parseFloat(p.style.height);l=k=0;if(w=cp.DD.GetDimensionsAfterRotation(0,0,m,t,cp.DD.getRotationAngle(p)))k=-w.minX,l=-w.minY,t=w.maxY-w.minY;s=p=u=0;n&&(u=parseFloat(n.style.left),p=parseFloat(n.style.top),s=parseFloat(n.style.width),v=parseFloat(n.style.height),
q=cp.DD.GetDimensionsAfterRotation(0,0,s,v,cp.DD.getRotationAngle(n)),w&&(v=-q.minX,s=-q.minY,u-=v,p-=s,s=q.maxX-q.minX));q=null!==n?u:d;w=null!==n?p-t:f+c-t;if(null!==n&&w<f){g=s;for(m=e-1;0<=m;--m)if(s=document.getElementById(h.acceptedDragSources[m]),r=parseFloat(s.style.left),u===r)r=parseFloat(s.style.width),g=r>g?r:g;else break;q=null!==n?u+g:d;w=f+c-t}q+=k;w+=l;this.SetDsFramesetAndCanvasDivPos(o,q,w)}break;case cp.DD.SnapBehaviourPos.kCPSBPTileTopBottomStartingLeft:for(e=0;e<=h.acceptedDragSources.length;++e)if(n=
r=null,o=e!==h.acceptedDragSources.length?h.acceptedDragSources[e]:a){p=document.getElementById(o);0!==e&&(r=h.acceptedDragSources[e-1]);r&&(n=document.getElementById(r));m=parseFloat(p.style.width);t=parseFloat(p.style.height);l=k=0;if(w=cp.DD.GetDimensionsAfterRotation(0,0,m,t,cp.DD.getRotationAngle(p)))k=-w.minX,l=-w.minY,t=w.maxY-w.minY;v=s=p=u=0;n&&(u=parseFloat(n.style.left),p=parseFloat(n.style.top),s=parseFloat(n.style.width),v=parseFloat(n.style.height),q=cp.DD.GetDimensionsAfterRotation(0,
0,s,v,cp.DD.getRotationAngle(n)),w&&(v=-q.minX,s=-q.minY,u-=v,p-=s,s=q.maxX-q.minX,v=q.maxY-q.minY));q=null!==n?u:d;w=null!==n?p+v:f;if(null!==n&&w+t>f+c){g=s;for(m=e-1;0<=m;--m)if(s=document.getElementById(h.acceptedDragSources[m]),r=parseFloat(s.style.left),u===r)r=parseFloat(s.style.width),g=r>g?r:g;else break;q=null!==n?u+g:d;w=f}q+=k;w+=l;this.SetDsFramesetAndCanvasDivPos(o,q,w)}break;default:retVal.x=dtDivX,retVal.y=dtDivY}}};cp.DD.Interaction.prototype.ReturnDragSourceAnimationCallback=function(b){var a=
cp.DD.CurrInteractionManager.m_ActiveInteraction;if(null!==a&&(a.m_dragSourceCanvas&&a.m_dummyCanvas)&&(cp.show(a.m_DsStateFsIDAtMouseDown),a.deleteDummyCanvas(),a.m_dragSourceCanvas=null,a.m_dummyCanvas=null,a.m_dummyCanvasObjectState=void 0,void 0!==b))for(var c in b){var e=b[c];if(void 0!==e){var d=e.toState,f=e.type,g=void 0;e.finalState&&(g=e.finalState);1===f?e.hasOwnProperty("disableDrag")&&!0===e.disableDrag?cp.DD.changeStateForSomeTime(c,d,a,1E3,!0,g):cp.DD.changeStateForSomeTime(c,d,a,1E3,
!1,g):cp.DD.changeState(c,d,a)}}};cp.DD.Interaction.prototype.AnimateObjectGliding=function(b,a,c,e,d,f){function g(){0===e?d&&(f?d.call(this,f):d.call()):(0!==h&&(b.style.left=parseFloat(b.style.left)+h+"px"),0!==k&&(b.style.top=parseFloat(b.style.top)+k+"px"),0!==l&&(b.style.width=parseFloat(b.style.width)+l+"px"),0!==m&&(b.style.height=parseFloat(b.style.height)+m+"px"),0!==o&&(b.style.opacity=""===b.style.opacity?1+o:parseFloat(b.style.opacity)+o),e-=1,setTimeout(g,B))}if(null!==cp.DD.CurrInteractionManager.m_ActiveInteraction){var h=
0,k=0,l=0,m=0,o=0;null!==a.x&&(void 0!==a.x&&void 0!==c.x&&null!==c.x)&&(h=(c.x-a.x)/e);null!==a.y&&(void 0!==a.y&&void 0!==c.y&&null!==c.y)&&(k=(c.y-a.y)/e);null!==a.w&&(void 0!==a.w&&void 0!==c.w&&null!==c.w)&&(l=(c.w-a.w)/e);null!==a.h&&(void 0!==a.h&&void 0!==c.h&&null!==c.h)&&(m=(c.h-a.h)/e);null!==a.opac&&(void 0!==a.opac&&void 0!==c.opac&&null!==c.opac)&&(o=(c.opac-a.opac)/e);setTimeout(g,B)}};cp.DD.Interaction.prototype.convertAnswerListToString=function(b){var a=this.m_attemptedAnswerString,
c="",e=0,d;if(b)for(;e<a.length;)c+=a[e],++e;else{b=[];a=d=null;for(e=0;e<this.m_dtList.length;++e){var f=this.GetDTObjFromDTID(this.m_dtList[e].n);d=a;a=f.t;if(!(null===d||d===a)){b.sort();for(d=0;d<b.length;++d)c=c+"t:"+b[d]+"-t:"+this.m_dtList[e-1].t;b=[]}if(d=this.DTMap[this.m_dtList[e].n]){f=d.acceptedDragSources;for(d=0;d<f.length;++d){var g=this.GetDSObjFromDSID(f[d]);b.push(g.t)}}}b.sort();for(d=0;d<b.length;++d)c=c+"t:"+b[d]+"-t:"+this.m_dtList[this.m_dtList.length-1].t}return c};cp.DD.Interaction.prototype.updateCorrectIncorrectStatesOnTarget=
function(b){if(void 0!==b)for(var a in b)cp.changeState(a,b[a])};cp.DD.Interaction.prototype.getSuspendData=function(){return this.m_StoredSuspendDataString};cp.DD.Interaction.prototype.storeSuspendData=function(b){var a=new cp.QuizState;a.init();a.writeNumber(this.DTLMSList.length);var c,e,d,f,g,h={};for(c=0;c<this.DTLMSList.length;++c){d=this.DTLMSList[c];a.writeString(d.objectID);a.writeNumber(d.acceptedSourceObjects.length);f=!1;this.GetDTObjFromDTID(d.objectID).sbp===cp.DD.SnapBehaviourPos.kCPSBPAbsolute&&
(f=!0);for(e=0;e<d.acceptedSourceObjects.length;++e)if(g=d.acceptedSourceObjects[e],a.writeString(g.objectID),h[g.objectID]=1,f)if(cp.responsive){var k=cp(d.objectID).getBoundingClientRect(),l=cp(g.objectID).getBoundingClientRect();g=1E4*(((l.left+l.right)/2-(k.left+k.right)/2)/k.width);k=1E4*(((l.top+l.bottom)/2-(k.top+k.bottom)/2)/k.height);a.writeBoolean(0>g);a.writeNumber(Math.abs(parseFloat(g)));a.writeBoolean(0>k);a.writeNumber(Math.abs(parseFloat(k)))}else a.writeNumber(parseFloat(g.posleft)),
a.writeNumber(parseFloat(g.postop))}for(c=e=0;c<this.m_dsList.length;++c)if(1!==h[this.m_dsList[c].n]&&(g=this.DSLMSMap[this.m_dsList[c].n]))if(d=cp.D[this.m_dsList[c].n],f=cp.D[d.mdi],d=f.b[0],f=f.b[1],null!==g.postop&&null!==g.posleft)if(cp.responsive)g.currentPositionId!==this.m_dsList[c].n&&(e+=1);else if(parseFloat(g.postop)!==f||parseFloat(g.posleft)!==d)e+=1;a.writeNumber(e);for(c=0;c<this.m_dsList.length;++c)if(1!==h[this.m_dsList[c].n]&&(g=this.DSLMSMap[this.m_dsList[c].n]))if(d=cp.D[this.m_dsList[c].n],
f=cp.D[d.mdi],d=f.b[0],f=f.b[1],null!==g.postop&&null!==g.posleft)if(cp.responsive)g.currentPositionId!==this.m_dsList[c].n&&(a.writeString(g.objectID),a.writeNumber(parseFloat(g.posleft)),a.writeNumber(parseFloat(g.postop)));else if(parseFloat(g.postop)!==f||parseFloat(g.posleft)!==d)a.writeString(g.objectID),a.writeNumber(parseFloat(g.posleft)),a.writeNumber(parseFloat(g.postop));b?this.m_StoredViewDataString=a.m_state:this.m_StoredSuspendDataString=a.m_state};cp.DD.Interaction.prototype.resumeInteraction=
function(b){this.resetAvailable=!0;this.m_questionObj&&(this.m_CurrentAttempt=this.m_questionObj.currentAttempt);for(var a=0;a<this.m_dtList.length;++a){var c=this.DTMap[this.m_dtList[a].n];c&&(c.acceptedDragSources=[],c.acceptedSourceObjects=[])}b||this.clearAnswerList();var e={},d=b?this.m_StoredViewDataString:this.m_StoredSuspendDataString;if(0<d.length){a=new cp.QuizState;a.init();var f,g;a.fromString(d);var h=a.readNumber();b||(this.DTLMSList=[]);for(b=0;b<h;++b){var k=a.readString();void 0===
e[k]&&(e[k]=0);var l=this.GetDTObjFromDTID(k),m=l.sbp===cp.DD.SnapBehaviourPos.kCPSBPAbsolute,o=a.readNumber();for(f=0;f<o;++f){d=a.readString();g=c=null;if(m)if(cp.responsive){var p=cp(d).getBoundingClientRect(),r=cp(k).getBoundingClientRect();g=a.readBoolean();var c=a.readNumber()/100,c=g?-c:c,n=a.readBoolean();g=a.readNumber()/100;g=n?-g:g;n=(r.top+r.bottom)/2;c=(r.left+r.right)/2+c*r.width/100-p.width*l.sbs/200;g=n+g*r.height/100-p.height*l.sbs/200}else c=a.readNumber(),g=a.readNumber();f==e[k]&&
(this.resumeAppendDragSourceToDropTarget(k,d,m,c,g),c=this.GetDTObjFromDTID(k),g=this.GetDSObjFromDSID(d),this.appendToAnswerList(g.t,c.t),this.DragSourceCurrentStateList[this.DSMap[d]].DropTargetId=k,e[k]+=1)}}h=a.readNumber();for(b=0;b<h;++b)d=a.readString(),e=this.DSLMSMap[d],c=a.readNumber(),g=a.readNumber(),e.posleft=c,e.postop=g,this.resumeChangePositionsOfDragSources(d,c,g);this.resumeCorrectIncorrectStates()}};cp.DD.Interaction.prototype.resumeAppendDragSourceToDropTarget=function(b,a,c,e,
d){if(!cp.DD.getAttribute(this.m_elId,"reds")){var f=document.getElementById(a),g=cp.DD.GetBaseItemInState(a);null!==g&&(f=document.getElementById(g.framesetID));cp.DD.IsTouchDevice()?(f.ontouchstart=null,f.ontouchmove=null,f.ontouchend=null):(f.onmousedown=null,f.onmouseover=null,f.onmouseout=null)}this.resumeSetSnapSize(a,b);this.resumeSetSnapPosition(a,b,c,e,d);this.resumeSetSnapOpacity(b,a);this.SetSnapDepth(b,a);c=document.getElementById(a);e=this.DTMap[b];e.acceptedDragSources.push(a);e.acceptedSourceObjects.push(this.DSLMSMap[a]);
this.DSLMSMap[a].posleft=c.style.left;this.DSLMSMap[a].postop=c.style.top;this.DSLMSMap[a].previousDTID=null;this.DSLMSMap[a].currentDTID=b;this.DSLMSMap[a].currentPositionId=b;this.DTLMSList.push(this.DTMap[b]);b=document.getElementById("re-"+a+"c");b.style.display="none";b.offsetHeight=void 0;b.style.display="block"};cp.DD.Interaction.prototype.resumeSetSnapSize=function(b,a,c){var e=this.GetDTObjFromDTID(a);if(e){var d=document.getElementById("re-"+b+"c"),f=document.getElementById(b+"c"),e=e.sbs;
cp.DD.spv(d,b,1);cp.DD.spv(f,b,2);var g=d.style.width,h=d.style.height,k=f.style.width,l=f.style.height,m=f.style.marginLeft,o=f.style.marginTop,p,r,n=cp(b+"_vTxtHolder");cp.responsive&&n&&(p=n.style.width,r=n.style.height);var t=0,u=0;c&&(r=this.DragSourceInitialStateList[this.DSMap[b]],g=r.divStruct.Width,h=r.divStruct.Height,k=r.canvasStruct.Width,l=r.canvasStruct.Height,m=r.canvasStruct.MarginLeft,o=r.canvasStruct.MarginTop,t=r.Width,u=r.Height,p=r.canvasStruct.textWidth,r=r.canvasStruct.textHeight);
d.style.width=parseFloat(g)*e/100+"px";d.style.height=parseFloat(h)*e/100+"px";g=parseFloat(k)*e/100;l=parseFloat(l)*e/100;f.style.width=g+"px";f.style.height=l+"px";f.style.marginLeft=parseFloat(m)*e/100+"px";f.style.marginTop=parseFloat(o)*e/100+"px";if(m=this.DragSourceCurrentStateList[this.DSMap[b]].divStruct)m.Width=d.style.width,m.Height=d.style.height;if(d=this.DragSourceCurrentStateList[this.DSMap[b]].canvasStruct)d.Width=g+"px",d.Height=l+"px",d.MarginTop=f.style.marginTop,d.MarginLeft=f.style.marginLeft;
if(f=document.getElementById(b)){c||(t=f.style.width,u=f.style.height);g=parseFloat(t)*e/100;l=parseFloat(u)*e/100;f.style.width=g+"px";f.style.height=l+"px";if(cp.responsive&&n&&(c=parseFloat(p),p=parseFloat(r),n.style.left=parseFloat(n.style.left)*(e/100)+"px",n.style.top=parseFloat(n.style.top)*(e/100)+"px",n.style.width=c*e/100+"px",n.style.height=p*e/100+"px",d&&(d.textPosLeft=n.style.left,d.textPosTop=n.style.top,d.textWidth=n.style.width,d.textHeight=n.style.height),n.firstChild))n.firstChild.style.left=
parseFloat(n.firstChild.style.left)*(e/100)+"px",n.firstChild.style.top=parseFloat(n.firstChild.style.top)*(e/100)+"px",d.textChildPosLeft=n.firstChild.style.left,d.textChildPosTop=n.firstChild.style.top,n.firstChild.style["-ms-transform-origin"]="left top",n.firstChild.style["-moz-transform-origin"]="left top",n.firstChild.style["-webkit-transform-origin"]="left top",n.firstChild.style["-o-transform-origin"]="left top",n.firstChild.style["transform-origin"]="left top",cp.applyTransform(n.firstChild,
"scale("+e/100+")");cp.DD.UpdateDragSourceStatePropertiesObject(this.DragSourceCurrentStateList[this.DSMap[b]],null,null,null,g+"px",l+"px",null,null,null,null,a,null)}cp.DD.UpdateDragSourceStatePropertiesObject(this.DragSourceCurrentStateList[this.DSMap[b]],null,null,null,null,null,null,m,d,null,a,null)}};cp.DD.Interaction.prototype.resumeSetSnapPosition=function(b,a,c,e,d){var f=document.getElementById(a),g=document.getElementById(b),h=this.GetDTObjFromDTID(a);if(f&&h&&g){cp.DD.spv(f,a,0);cp.DD.spv(g,
b,0);var k=parseFloat(f.style.left),l=parseFloat(f.style.top),m=parseFloat(f.style.width),f=parseFloat(f.style.height),o=parseFloat(g.style.width),p=parseFloat(g.style.height),r=parseFloat(g.style.left),n=parseFloat(g.style.top),a=this.DTMap[a],t=g=null,u=null,s=null,v,q;switch(h.sbp){case cp.DD.SnapBehaviourPos.kCPSBPNone:case cp.DD.SnapBehaviourPos.kCPSBPAbsolute:c?(k=e,l=d):(k=r,l=n);this.SetDsFramesetAndCanvasDivPos(b,k,l);break;case cp.DD.SnapBehaviourPos.kCPSBPAnchorTopLeft:this.SetDsFramesetAndCanvasDivPos(b,
k,l);break;case cp.DD.SnapBehaviourPos.kCPSBPAnchorTopCenter:this.SetDsFramesetAndCanvasDivPos(b,k+m/2-o/2,l);break;case cp.DD.SnapBehaviourPos.kCPSBPAnchorTopRight:this.SetDsFramesetAndCanvasDivPos(b,k+m-o,l);break;case cp.DD.SnapBehaviourPos.kCPSBPAnchorCenterLeft:this.SetDsFramesetAndCanvasDivPos(b,k,l+f/2-p/2);break;case cp.DD.SnapBehaviourPos.kCPSBPAnchorCenterCenter:this.SetDsFramesetAndCanvasDivPos(b,k+m/2-o/2,l+f/2-p/2);break;case cp.DD.SnapBehaviourPos.kCPSBPAnchorCenterRight:this.SetDsFramesetAndCanvasDivPos(b,
k+m-o,l+f/2-p/2);break;case cp.DD.SnapBehaviourPos.kCPSBPAnchorBottomLeft:this.SetDsFramesetAndCanvasDivPos(b,k,l+f-p);break;case cp.DD.SnapBehaviourPos.kCPSBPAnchorBottomCenter:this.SetDsFramesetAndCanvasDivPos(b,k+m/2-o/2,l+f-p);break;case cp.DD.SnapBehaviourPos.kCPSBPAnchorBottomRight:this.SetDsFramesetAndCanvasDivPos(b,k+m-o,l+f-p);break;case cp.DD.SnapBehaviourPos.kCPSBPTileLeftRightStartingTop:for(d=0;d<=a.acceptedDragSources.length;++d){g=d!==a.acceptedDragSources.length?a.acceptedDragSources[d]:
b;t=document.getElementById(g);0!==d&&(u=a.acceptedDragSources[d-1]);u&&(s=document.getElementById(u));r=parseFloat(t.style.width);h=parseFloat(t.style.height);n=p=e=c=0;if(q=cp.DD.GetDimensionsAfterRotation(0,0,r,h,cp.DD.getRotationAngle(t)))c=-q.minX,e=-q.minY,r=q.maxX-q.minX;p=n=t=o=0;s&&(o=parseFloat(s.style.left),t=parseFloat(s.style.top),n=parseFloat(s.style.width),p=parseFloat(s.style.height),v=cp.DD.GetDimensionsAfterRotation(0,0,n,p,cp.DD.getRotationAngle(s)),q&&(p=-v.minX,n=-v.minY,o-=p,
t-=n,n=v.maxX-v.minX,p=v.maxY-v.minY));v=null!==s?o+n:k;q=null!==s?t:l;if(null!==s&&v+r>k+m){o=p;for(r=d-1;0<=r;--r)if(n=document.getElementById(a.acceptedDragSources[r]),f=parseFloat(n.style.top),t===f)n=parseFloat(n.style.height),o=n>o?n:o;else break;v=k;q=null!==s?t+o:l}v+=c;q+=e;this.SetDsFramesetAndCanvasDivPos(g,v,q)}break;case cp.DD.SnapBehaviourPos.kCPSBPTileLeftRightStartingBottom:for(d=0;d<=a.acceptedDragSources.length;++d){s=u=null;g=d!==a.acceptedDragSources.length?a.acceptedDragSources[d]:
b;t=document.getElementById(g);0!==d&&(u=a.acceptedDragSources[d-1]);u&&(s=document.getElementById(u));r=parseFloat(t.style.width);h=parseFloat(t.style.height);e=c=0;if(q=cp.DD.GetDimensionsAfterRotation(0,0,r,h,cp.DD.getRotationAngle(t)))c=-q.minX,e=-q.minY,r=q.maxX-q.minX,h=q.maxY-q.minY;p=n=t=o=0;s&&(o=parseFloat(s.style.left),t=parseFloat(s.style.top),n=parseFloat(s.style.width),p=parseFloat(s.style.height),v=cp.DD.GetDimensionsAfterRotation(0,0,n,p,cp.DD.getRotationAngle(s)),q&&(p=-v.minX,n=
-v.minY,o-=p,t-=n,n=v.maxX-v.minX,p=v.maxY-v.minY));v=null!==s?o+n:k;q=null!==s?t+p-h:l+f-h;if(null!==s&&v+r>k+m){o=p;for(r=d-1;0<=r;--r)if(n=document.getElementById(a.acceptedDragSources[r]),u=parseFloat(n.style.top)+parseFloat(n.style.height),t+p===u)n=parseFloat(n.style.height),o=n>o?n:o;else break;v=k;q=null!==s?t+p-o-h:f-h}v+=c;q+=e;this.SetDsFramesetAndCanvasDivPos(g,v,q)}break;case cp.DD.SnapBehaviourPos.kCPSBPTileBottomTopStartingLeft:for(d=0;d<=a.acceptedDragSources.length;++d){s=u=null;
g=d!==a.acceptedDragSources.length?a.acceptedDragSources[d]:b;t=document.getElementById(g);0!==d&&(u=a.acceptedDragSources[d-1]);u&&(s=document.getElementById(u));r=parseFloat(t.style.width);h=parseFloat(t.style.height);e=c=0;if(q=cp.DD.GetDimensionsAfterRotation(0,0,r,h,cp.DD.getRotationAngle(t)))c=-q.minX,e=-q.minY,h=q.maxY-q.minY;n=t=o=0;s&&(o=parseFloat(s.style.left),t=parseFloat(s.style.top),n=parseFloat(s.style.width),p=parseFloat(s.style.height),v=cp.DD.GetDimensionsAfterRotation(0,0,n,p,cp.DD.getRotationAngle(s)),
q&&(p=-v.minX,n=-v.minY,o-=p,t-=n,n=v.maxX-v.minX));v=null!==s?o:k;q=null!==s?t-h:l+f-h;if(null!==s&&q<l){m=n;for(r=d-1;0<=r;--r)if(n=document.getElementById(a.acceptedDragSources[r]),u=parseFloat(n.style.left),o===u)u=parseFloat(n.style.width),m=u>m?u:m;else break;v=null!==s?o+m:k;q=l+f-h}v+=c;q+=e;this.SetDsFramesetAndCanvasDivPos(g,v,q)}break;case cp.DD.SnapBehaviourPos.kCPSBPTileTopBottomStartingLeft:for(d=0;d<=a.acceptedDragSources.length;++d){s=u=null;g=d!==a.acceptedDragSources.length?a.acceptedDragSources[d]:
b;t=document.getElementById(g);0!==d&&(u=a.acceptedDragSources[d-1]);u&&(s=document.getElementById(u));r=parseFloat(t.style.width);h=parseFloat(t.style.height);e=c=0;if(q=cp.DD.GetDimensionsAfterRotation(0,0,r,h,cp.DD.getRotationAngle(t)))c=-q.minX,e=-q.minY,h=q.maxY-q.minY;p=n=t=o=0;s&&(o=parseFloat(s.style.left),t=parseFloat(s.style.top),n=parseFloat(s.style.width),p=parseFloat(s.style.height),v=cp.DD.GetDimensionsAfterRotation(0,0,n,p,cp.DD.getRotationAngle(s)),q&&(p=-v.minX,n=-v.minY,o-=p,t-=
n,n=v.maxX-v.minX,p=v.maxY-v.minY));v=null!==s?o:k;q=null!==s?t+p:l;if(null!==s&&q+h>l+f){m=n;for(r=d-1;0<=r;--r)if(n=document.getElementById(a.acceptedDragSources[r]),u=parseFloat(n.style.left),o===u)u=parseFloat(n.style.width),m=u>m?u:m;else break;v=null!==s?o+m:k;q=l}v+=c;q+=e;this.SetDsFramesetAndCanvasDivPos(g,v,q)}}}};cp.DD.Interaction.prototype.resumeSetSnapOpacity=function(b,a){var c=this.GetDTObjFromDTID(b);if(c){var e=document.getElementById(cp.D[a].mdi);e.style.opacity=c.sbo/100;cp.DD.UpdateDragSourceStatePropertiesObject(this.DragSourceCurrentStateList[this.DSMap[a]],
null,null,null,null,null,e.style.opacity,null,null,null,null,null)}};cp.DD.Interaction.prototype.resumeSetSnapDepth=function(){};cp.DD.Interaction.prototype.resumeCorrectIncorrectStates=function(){var b={},a=this.CheckIfCorrect(b);a==cp.QuestionStatusEnum.CORRECT||a==cp.QuestionStatusEnum.PARTIAL_CORRECT?this.updateCorrectIncorrectStatesOnTarget(b):(a=cp.DD.getAttribute(this.m_elId,"cal"),void 0===a||(null===a||0>=a.length)||0<this.m_maxAttempts&&this.m_CurrentAttempt===this.m_maxAttempts&&this.updateCorrectIncorrectStatesOnTarget(b))};
cp.DD.Interaction.prototype.updatePreviousStateSnapSize=function(b,a,c){if(cp.responsive){var e=this.GetDTObjFromDTID(c);if(e){document.getElementById("re-"+a+"c");document.getElementById(a+"c");var e=e.sbs,d=cp(a+"_vTxtHolder"),f=0,g=0,h=this.DragSourceInitialStateList[this.DSMap[a]],k=h.divStruct.Width,l=h.divStruct.Height,m=h.canvasStruct.Width,o=h.canvasStruct.Height,p=h.canvasStruct.MarginLeft,r=h.canvasStruct.MarginTop,f=h.Width,g=h.Height,n=h.canvasStruct.textPosLeft,t=h.canvasStruct.textPosTop,
u=h.canvasStruct.textWidth,s=h.canvasStruct.textHeight,v=h.canvasStruct.textChildPosLeft,h=h.canvasStruct.textChildPosTop,k=parseFloat(k)*e/100+"px",l=parseFloat(l)*e/100+"px",m=parseFloat(m)*e/100,o=parseFloat(o)*e/100,p=parseFloat(p)*e/100+"px",q=parseFloat(r)*e/100+"px";if(r=cp.DD.copyCustomDivStructObject(this.DragSourceCurrentStateList[this.DSMap[a]].divStruct))b.divStruct&&(r.posleft=b.divStruct.posleft,r.postop=b.divStruct.postop),r.Width=k,r.Height=l;if(k=cp.DD.copyCustomCanvasStructObject(this.DragSourceCurrentStateList[this.DSMap[a]].canvasStruct))b.canvasStruct&&
(k.posleft=b.canvasStruct.posleft,k.postop=b.canvasStruct.postop),k.Width=m+"px",k.Height=o+"px",k.MarginTop=q,k.MarginLeft=p;if(document.getElementById(a)){m=parseFloat(f)*e/100;o=parseFloat(g)*e/100;if(d&&(a=parseFloat(u),s=parseFloat(s),k&&(k.textPosLeft=parseFloat(n)*(e/100)+"px",k.textPosTop=parseFloat(t)*(e/100)+"px",k.textWidth=a*e/100+"px",k.textHeight=s*e/100+"px"),d.firstChild))k.textChildPosLeft=parseFloat(v)*(e/100)+"px",k.textChildPosTop=parseFloat(h)*(e/100)+"px";cp.DD.UpdateDragSourceStatePropertiesObject(b,
null,null,null,m+"px",o+"px",null,null,null,null,c,null)}cp.DD.UpdateDragSourceStatePropertiesObject(b,null,null,null,null,null,null,r,k,null,c,null)}}};cp.DD.Interaction.prototype.updatePreviousStateDivPos=function(b,a,c,e){var d=document.getElementById(a),f=document.getElementById(cp.D[a].mdi).parentElement,g=parseFloat(d.style.left),h=parseFloat(d.style.top),d=c+"px",k=e+"px",l=new cp.DD.CustomDivStruct;l.posleft=c-(g-parseFloat(f.style.left))+"px";l.postop=e-(h-parseFloat(f.style.top))+"px";if(a=
this.DragSourceCurrentStateList[this.DSMap[a]].divStruct)l.Width=a.Width,l.Height=a.Height;cp.DD.UpdateDragSourceStatePropertiesObject(b,null,d,k,null,null,null,l,null,null,null,null)};cp.DD.Interaction.prototype.updatePreviousStateSnapPosition=function(b,a,c,e,d,f){var g=document.getElementById(c),h=document.getElementById(a),k=this.GetDTObjFromDTID(c);if(g&&k&&h){cp.DD.spv(g,c,0);cp.DD.spv(h,a,0);var c=k.sbp,l=parseFloat(g.style.left),m=parseFloat(g.style.top),o=parseFloat(g.style.width),g=parseFloat(g.style.height),
p=this.DragSourceInitialStateList[this.DSMap[a]],r=k.sbs,k=parseFloat(p.divStruct.Width)*r/100,p=parseFloat(p.divStruct.Height)*r/100,r=parseFloat(h.style.left),h=parseFloat(h.style.top);switch(c){case cp.DD.SnapBehaviourPos.kCPSBPNone:case cp.DD.SnapBehaviourPos.kCPSBPAbsolute:e?e=d:(e=r,f=h);this.updatePreviousStateDivPos(b,a,e,f);break;case cp.DD.SnapBehaviourPos.kCPSBPAnchorTopLeft:this.updatePreviousStateDivPos(b,a,l,m);break;case cp.DD.SnapBehaviourPos.kCPSBPAnchorTopCenter:this.updatePreviousStateDivPos(b,
a,l+o/2-k/2,m);break;case cp.DD.SnapBehaviourPos.kCPSBPAnchorTopRight:this.updatePreviousStateDivPos(b,a,l+o-k,m);break;case cp.DD.SnapBehaviourPos.kCPSBPAnchorCenterLeft:this.updatePreviousStateDivPos(b,a,l,m+g/2-p/2);break;case cp.DD.SnapBehaviourPos.kCPSBPAnchorCenterCenter:this.updatePreviousStateDivPos(b,a,l+o/2-k/2,m+g/2-p/2);break;case cp.DD.SnapBehaviourPos.kCPSBPAnchorCenterRight:this.updatePreviousStateDivPos(b,a,l+o-k,m+g/2-p/2);break;case cp.DD.SnapBehaviourPos.kCPSBPAnchorBottomLeft:this.updatePreviousStateDivPos(b,
a,l,m+g-p);break;case cp.DD.SnapBehaviourPos.kCPSBPAnchorBottomCenter:this.updatePreviousStateDivPos(b,a,l+o/2-k/2,m+g-p);break;case cp.DD.SnapBehaviourPos.kCPSBPAnchorBottomRight:this.updatePreviousStateDivPos(b,a,l+o-k,m+g-p)}}};cp.DD.Interaction.prototype.updateTiledPreviousStateSnapPosition=function(b){function a(a){for(var c=void 0,d=0;d<b.length;++d)b[d].objectID==a&&(c=b[d]);return c}var c=[],e;for(e in this.DTMap){var d=this.GetDTObjFromDTID(e);if(d){var f=d.sbp;(f==cp.DD.SnapBehaviourPos.kCPSBPTileLeftRightStartingTop||
f==cp.DD.SnapBehaviourPos.kCPSBPTileLeftRightStartingBottom||f==cp.DD.SnapBehaviourPos.kCPSBPTileBottomTopStartingLeft||f==cp.DD.SnapBehaviourPos.kCPSBPTileTopBottomStartingLeft)&&c.push(e)}}e=c.length;if(!(0>=e))for(d=0;d<e;++d){var g=c[d],h=this.DTMap[g],k,l=document.getElementById(g),m=this.GetDTObjFromDTID(g);if(!l||!m||!h)break;cp.DD.spv(l,g,0);var g=parseFloat(l.style.left),o=parseFloat(l.style.top),p=parseFloat(l.style.width),l=parseFloat(l.style.height),f=m.sbp,m=m.sbs;switch(f){case cp.DD.SnapBehaviourPos.kCPSBPTileLeftRightStartingTop:var r=
"",n=k=null,t=0,u=0,s=0,v=0;if(h.prevAcceptedDragSources.toString()!=h.acceptedDragSources.toString())for(f=0;f<h.prevAcceptedDragSources.length;++f){currentDragSourceFramesetID=h.prevAcceptedDragSources[f];var q=this.DragSourcePreviousStateList[this.DSMap[currentDragSourceFramesetID]],q=cp.DD.copyDragSourcePropertiesObject(q);currentDragSourceFrameset=document.getElementById(currentDragSourceFramesetID);0!==f&&(r=h.prevAcceptedDragSources[f-1]);r&&(n=document.getElementById(r));var w=this.DragSourceInitialStateList[this.DSMap[currentDragSourceFramesetID]];
curDsFsWidth=parseFloat(w.divStruct.Width)*m/100;curDsFsHeight=parseFloat(w.divStruct.Height)*m/100;var y=w=0,x=0,z=0;if(x=cp.DD.GetDimensionsAfterRotation(0,0,curDsFsWidth,curDsFsHeight,cp.DD.getRotationAngle(currentDragSourceFrameset)))w=-x.minX,y=-x.minY,curDsFsWidth=x.maxX-x.minX,curDsFsHeight=x.maxY-x.minY;n&&(t=parseFloat(k.divStruct.posleft),u=parseFloat(k.divStruct.postop),s=parseFloat(k.divStruct.Width),v=parseFloat(k.divStruct.Height),k=cp.DD.GetDimensionsAfterRotation(0,0,s,v,cp.DD.getRotationAngle(n)),
x&&(x=-k.minX,z=-k.minY,t-=x,u-=z,s=k.maxX-k.minX,v=k.maxY-k.minY));curDsFsX=null!==n?t+s:g;curDsFsY=null!==n?u:o;if(null!==n&&curDsFsX+curDsFsWidth>g+p){maxHeight=v;for(k=f-1;0<=k;--k)if(x=document.getElementById(h.prevAcceptedDragSources[k]),l=parseFloat(x.style.top),u===l)curHeight=parseFloat(x.style.height),maxHeight=curHeight>maxHeight?curHeight:maxHeight;else break;curDsFsX=g;curDsFsY=null!==n?u+maxHeight:o}curDsFsX+=w;curDsFsY+=y;this.updatePreviousStateDivPos(q,currentDragSourceFramesetID,
curDsFsX,curDsFsY);w=a(currentDragSourceFramesetID);q.divStruct.posleft=q.posleft;q.divStruct.postop=q.postop;cp.DD.UpdateDragSourceStatePropertiesObject(w,null,q.posleft,q.postop,null,null,null,q.divStruct,null,null,null,null);k=w}break;case cp.DD.SnapBehaviourPos.kCPSBPTileLeftRightStartingBottom:r="";n=k=null;v=s=u=t=0;if(h.prevAcceptedDragSources.toString()!=h.acceptedDragSources.toString())for(f=0;f<h.prevAcceptedDragSources.length;++f){n=r=currentDragSourceFrameset=currentDragSourceFramesetID=
null;currentDragSourceFramesetID=h.prevAcceptedDragSources[f];currentDragSourceFrameset=document.getElementById(currentDragSourceFramesetID);q=this.DragSourcePreviousStateList[this.DSMap[currentDragSourceFramesetID]];q=cp.DD.copyDragSourcePropertiesObject(q);0!==f&&(r=h.prevAcceptedDragSources[f-1]);r&&(n=document.getElementById(r));w=this.DragSourceInitialStateList[this.DSMap[currentDragSourceFramesetID]];curDsFsWidth=parseFloat(w.divStruct.Width)*m/100;curDsFsHeight=parseFloat(w.divStruct.Height)*
m/100;z=x=y=w=0;if(x=cp.DD.GetDimensionsAfterRotation(0,0,curDsFsWidth,curDsFsHeight,cp.DD.getRotationAngle(currentDragSourceFrameset)))w=-x.minX,y=-x.minY,curDsFsWidth=x.maxX-x.minX,curDsFsHeight=x.maxY-x.minY;v=s=u=t=0;n&&(t=parseFloat(k.divStruct.posleft),u=parseFloat(k.divStruct.postop),s=parseFloat(k.divStruct.Width),v=parseFloat(k.divStruct.Height),k=cp.DD.GetDimensionsAfterRotation(0,0,s,v,cp.DD.getRotationAngle(n)),x&&(x=-k.minX,z=-k.minY,t-=x,u-=z,s=k.maxX-k.minX,v=k.maxY-k.minY));curDsFsX=
null!==n?t+s:g;curDsFsY=null!==n?u+v-curDsFsHeight:o+l-curDsFsHeight;if(null!==n&&curDsFsX+curDsFsWidth>g+p){maxHeight=v;for(k=f-1;0<=k;--k)if(x=document.getElementById(h.prevAcceptedDragSources[k]),t=parseFloat(x.style.top)+parseFloat(x.style.height),u+v===t)curHeight=parseFloat(x.style.height),maxHeight=curHeight>maxHeight?curHeight:maxHeight;else break;curDsFsX=g;curDsFsY=null!==n?u+v-maxHeight-curDsFsHeight:l-curDsFsHeight}curDsFsX+=w;curDsFsY+=y;this.updatePreviousStateDivPos(q,currentDragSourceFramesetID,
curDsFsX,curDsFsY);w=a(currentDragSourceFramesetID);q.divStruct.posleft=q.posleft;q.divStruct.postop=q.postop;cp.DD.UpdateDragSourceStatePropertiesObject(w,null,q.posleft,q.postop,null,null,null,q.divStruct,null,null,null,null);k=w}break;case cp.DD.SnapBehaviourPos.kCPSBPTileBottomTopStartingLeft:r="";n=k=null;v=s=u=t=0;if(h.prevAcceptedDragSources.toString()!=h.acceptedDragSources.toString())for(f=0;f<h.prevAcceptedDragSources.length;++f){n=r=currentDragSourceFrameset=currentDragSourceFramesetID=
null;currentDragSourceFramesetID=h.prevAcceptedDragSources[f];currentDragSourceFrameset=document.getElementById(currentDragSourceFramesetID);q=this.DragSourcePreviousStateList[this.DSMap[currentDragSourceFramesetID]];q=cp.DD.copyDragSourcePropertiesObject(q);0!==f&&(r=h.prevAcceptedDragSources[f-1]);r&&(n=document.getElementById(r));w=this.DragSourceInitialStateList[this.DSMap[currentDragSourceFramesetID]];curDsFsWidth=parseFloat(w.divStruct.Width)*m/100;curDsFsHeight=parseFloat(w.divStruct.Height)*
m/100;z=x=y=w=0;if(x=cp.DD.GetDimensionsAfterRotation(0,0,curDsFsWidth,curDsFsHeight,cp.DD.getRotationAngle(currentDragSourceFrameset)))w=-x.minX,y=-x.minY,curDsFsWidth=x.maxX-x.minX,curDsFsHeight=x.maxY-x.minY;v=s=u=t=0;n&&(t=parseFloat(k.divStruct.posleft),u=parseFloat(k.divStruct.postop),s=parseFloat(k.divStruct.Width),v=parseFloat(k.divStruct.Height),k=cp.DD.GetDimensionsAfterRotation(0,0,s,v,cp.DD.getRotationAngle(n)),x&&(x=-k.minX,z=-k.minY,t-=x,u-=z,s=k.maxX-k.minX,v=k.maxY-k.minY));curDsFsX=
null!==n?t:g;curDsFsY=null!==n?u-curDsFsHeight:o+l-curDsFsHeight;if(null!==n&&curDsFsY<o){p=s;for(k=f-1;0<=k;--k)if(x=document.getElementById(h.prevAcceptedDragSources[k]),u=parseFloat(x.style.left),t===u)u=parseFloat(x.style.width),p=u>p?u:p;else break;curDsFsX=null!==n?t+p:g;curDsFsY=o+l-curDsFsHeight}curDsFsX+=w;curDsFsY+=y;this.updatePreviousStateDivPos(q,currentDragSourceFramesetID,curDsFsX,curDsFsY);w=a(currentDragSourceFramesetID);q.divStruct.posleft=q.posleft;q.divStruct.postop=q.postop;cp.DD.UpdateDragSourceStatePropertiesObject(w,
null,q.posleft,q.postop,null,null,null,q.divStruct,null,null,null,null);k=w}break;case cp.DD.SnapBehaviourPos.kCPSBPTileTopBottomStartingLeft:if(r="",n=k=null,v=s=u=t=0,h.prevAcceptedDragSources.toString()!=h.acceptedDragSources.toString())for(f=0;f<h.prevAcceptedDragSources.length;++f){n=r=currentDragSourceFrameset=currentDragSourceFramesetID=null;currentDragSourceFramesetID=h.prevAcceptedDragSources[f];currentDragSourceFrameset=document.getElementById(currentDragSourceFramesetID);q=this.DragSourcePreviousStateList[this.DSMap[currentDragSourceFramesetID]];
q=cp.DD.copyDragSourcePropertiesObject(q);0!==f&&(r=h.prevAcceptedDragSources[f-1]);r&&(n=document.getElementById(r));w=this.DragSourceInitialStateList[this.DSMap[currentDragSourceFramesetID]];curDsFsWidth=parseFloat(w.divStruct.Width)*m/100;curDsFsHeight=parseFloat(w.divStruct.Height)*m/100;z=x=y=w=0;if(x=cp.DD.GetDimensionsAfterRotation(0,0,curDsFsWidth,curDsFsHeight,cp.DD.getRotationAngle(currentDragSourceFrameset)))w=-x.minX,y=-x.minY,curDsFsWidth=x.maxX-x.minX,curDsFsHeight=x.maxY-x.minY;v=s=
u=t=0;n&&(t=parseFloat(k.divStruct.posleft),u=parseFloat(k.divStruct.postop),s=parseFloat(k.divStruct.Width),v=parseFloat(k.divStruct.Height),k=cp.DD.GetDimensionsAfterRotation(0,0,s,v,cp.DD.getRotationAngle(n)),x&&(x=-k.minX,z=-k.minY,t-=x,u-=z,s=k.maxX-k.minX,v=k.maxY-k.minY));curDsFsX=null!==n?t:g;curDsFsY=null!==n?u+v:o;if(null!==n&&curDsFsY+curDsFsHeight>o+l){p=s;for(k=f-1;0<=k;--k)if(x=document.getElementById(h.prevAcceptedDragSources[k]),u=parseFloat(x.style.left),t===u)u=parseFloat(x.style.width),
p=u>p?u:p;else break;curDsFsX=null!==n?t+p:g;curDsFsY=o}curDsFsX+=w;curDsFsY+=y;this.updatePreviousStateDivPos(q,currentDragSourceFramesetID,curDsFsX,curDsFsY);w=a(currentDragSourceFramesetID);q.divStruct.posleft=q.posleft;q.divStruct.postop=q.postop;cp.DD.UpdateDragSourceStatePropertiesObject(w,null,q.posleft,q.postop,null,null,null,q.divStruct,null,null,null,null);k=w}}}};cp.DD.Interaction.prototype.updatePreviousStateSnapOpacity=function(b,a,c){if(c=this.GetDTObjFromDTID(c))a=document.getElementById(cp.D[a].mdi),
a.style.opacity=c.sbo/100,cp.DD.UpdateDragSourceStatePropertiesObject(b,null,null,null,null,null,a.style.opacity,null,null,null,null,null)};cp.DD.Interaction.prototype.updatePreviousStateSnapDepth=function(b,a,c){if(this.GetDTObjFromDTID(c)){for(var e=null,d=null,f=null,f=this.DTMap[c].prevAcceptedDragSources.length?document.getElementById(this.DTMap[c].prevAcceptedDragSources[this.DTMap[c].prevAcceptedDragSources.length-1]):document.getElementById(c),g=document.getElementById(cp.D[f.id].mdi).parentElement,
h=document.getElementById(a),k=document.getElementById(cp.D[a].mdi).parentElement,l=document.getElementById("div_Slide").getElementsByClassName("cp-frameset"),m=1;m<l.length;++m){var o=l[m].id;o===c&&(e=m);o===a&&(d=m);if(null!==e&&null!==d)break}h.style.zIndex=f.style.zIndex;k.style.zIndex=g.style.zIndex;cp.DD.UpdateDragSourceStatePropertiesObject(b,null,null,null,null,null,null,null,null,h.style.zIndex,null,null);l=document.getElementById("div_Slide").getElementsByClassName("cp-frameset");for(a=
1;a<l.length;++a)o=l[a].id,void 0!==this.DSMap[o]&&null!==this.DSMap[o]&&cp.DD.UpdateDragSourceStatePropertiesObject(b,a-1,null,null,null,null,null,null,null,null,null,null)}};cp.DD.Interaction.prototype.resumeChangePositionsOfDragSources=function(b,a,c){if(!(null===a||null===c)){var e=document.getElementById(b),d=parseFloat(a)-parseFloat(e.style.left),f=parseFloat(c)-parseFloat(e.style.top);e.style.left=parseFloat(a)+"px";e.style.top=parseFloat(c)+"px";a=document.getElementById("re-"+b+"c");a.style.left=
parseFloat(a.style.left)+d+"px";a.style.top=parseFloat(a.style.top)+f+"px";if(d=this.DragSourceCurrentStateList[this.DSMap[b]].divStruct)d.posleft=a.style.left,d.postop=a.style.top;cp.DD.UpdateDragSourceStatePropertiesObject(this.DragSourceCurrentStateList[this.DSMap[b]],null,e.style.left,e.style.top,null,null,null,d,null,null,null,null);a.style.display="none";a.offsetHeight=void 0;a.style.display="block";b=this.DSLMSMap[b];b.posleft=e.style.left;b.postop=e.style.top;b.previousDTID=null;b.currentDTID=
null;b.currentPositionId=b.objectID}};cp.DD.Interaction.prototype.appendToAnswerList=function(b,a){this.m_attemptedAnswerString.push("t:"+b+"-t:"+a)};cp.DD.Interaction.prototype.clearAnswerList=function(){for(;0<this.m_attemptedAnswerString.length;)this.m_attemptedAnswerString.pop()};cp.DD.Interaction.prototype.checkCorrectAnswers=function(b,a){var c=RegExp(b),e=this.convertAnswerListToString(a);return c.test(e)?!0:!1};cp.DD.Interaction.prototype.handleSlideExit=function(){this.resetAnswers()};cp.DD.Interaction.prototype.resetAnswers=
function(){if(0<this.m_dsList.length){dsID=this.m_dsList[0].n;dsDiv=document.getElementById(dsID);var b=cp.DD.GetBaseItemInState(dsID);null!==b&&(dsDiv=document.getElementById(b.framesetID));cp.DD.IsTouchDevice()?dsDiv.ontouchstart=null:dsDiv.onmousedown=null;!0===cp.DD.getAttribute(this.m_elId,"hc")&&(dsDiv.onmouseover=null,dsDiv.onmouseout=null)}for(b=0;b<this.m_dtList.length;++b){var a=this.DTMap[this.m_dtList[b].n];a&&(a.acceptedDragSources.length=0)}this.m_attemptedAnswerString=[];this.m_questionObj&&
(this.m_CurrentAttempt=this.m_questionObj.currentAttempt);cp.responsive&&(this.m_StoredViewDataString="",this.clearAnswerList(),this.DTLMSList=[],this.DSLMSMap=[],this.ClearDropTargetLMSPropertiesObjects())};cp.DD.Interaction.prototype.disableInteraction=function(){for(a=0;a<this.m_dsList.length;++a){dsID=this.m_dsList[a].n;dsDiv=document.getElementById(dsID);var b=cp.DD.GetBaseItemInState(dsID);null!==b&&(dsDiv=document.getElementById(b.framesetID));cp.DD.IsTouchDevice()?dsDiv.ontouchstart=null:
dsDiv.onmousedown=null;!0===cp.DD.getAttribute(this.m_elId,"hc")&&(dsDiv.onmouseover=null,dsDiv.onmouseout=null)}for(var a=0;a<this.m_buttonIDList.length;++a)b=this.m_buttonIDList[a],b=b.replace(/^re-/,""),b=b.replace(/c$/,""),cp.hide(b)};cp.DD.Interaction.prototype.getStateToStore=function(){return this.m_StoredSuspendDataString};cp.DD.Interaction.prototype.setStateToStore=function(b){this.m_StoredSuspendDataString=unescape(b);""!==this.m_StoredSuspendDataString&&this.doResume()};cp.DD.Interaction.prototype.ClearDropTargetLMSPropertiesObjects=
function(){for(var b=0;b<this.m_dtList.length;++b){var a=this.DTMap[this.m_dtList[b].n];null!==a&&void 0!==a&&(a.dsWidth=null,a.dsHeight=null,a.acceptedDragSources=[],a.acceptedSourceObjects=[],a.prevAcceptedDragSources=[],a.prevAcceptedDragSourceObjects=[])}};cp.DD.Interaction.prototype.doResume=function(){function b(){0===k.m_resumeItemsToBeDrawn?k.resumeInteraction():setTimeout(b,20)}if(0<this.m_StoredSuspendDataString.length){var a=new cp.QuizState;a.init();var c,e,d;a.fromString(this.m_StoredSuspendDataString);
var f=a.readNumber();for(c=0;c<f;++c){d=a.readString();1!==this.m_resumeItemsMap[d]&&(this.m_resumeItemsMap[d]=1,this.m_resumeItemsToBeDrawn+=1);var g=this.GetDTObjFromDTID(d).sbp===cp.DD.SnapBehaviourPos.kCPSBPAbsolute,h=a.readNumber();for(e=0;e<h;++e)if(d=a.readString(),1!==this.m_resumeItemsMap[d]&&(this.m_resumeItemsMap[d]=1,this.m_resumeItemsToBeDrawn+=1),g)a.readBoolean(),a.readNumber(),a.readBoolean(),a.readNumber()}f=a.readNumber();for(c=0;c<f;++c)d=a.readString(),1!==this.m_resumeItemsMap[d]&&
(this.m_resumeItemsMap[d]=1,this.m_resumeItemsToBeDrawn+=1),a.readNumber(),a.readNumber()}this.ClearDropTargetLMSPropertiesObjects();var k=this;setTimeout(b,20)}})();cp.DDInteractionCallLaterData=function(){this.m_Function=null;this.m_Args=[]};
cp.CPProjInit();cp.fireModuleReadyEvent=function(c){if((cp.IsRunningInACAP||!cp.isExpired&&cp.passwordAccepted)&&document.createEvent){var b=document.createEvent("Events");b.initEvent("moduleReadyEvent",!0,!0,null);b.Data=cp.currentWindow.cpAPIInterface;c.dispatchEvent(b)}};
cp.DoCPInit=function(){function c(){d();cp.Automate()}cp.disableInteractions=!1;cp.initializeGestureEvents&&cp.initializeGestureEvents();if(!cp.pg&&!cp.sbw&&(!cp.getIsBrowserSupported()&&!cp.isSupportedWebkitBasedBrowser())&&RuntimeBrowserDetect){var b="This browser does not support some of the content in the file you are trying to view. Use one of the following browsers:<ul><li>Internet Explorer 9 or later</li><li>Safari 5.1 or later</li><li>Google Chrome 17 or later</li><li>Firefox "+cp.FF_MIN_SUPPORTED_VERSION+
" or later</li></ul>",a="Adobe Captivate",f="OK";if(cp&&cp.model&&cp.model.data){var e=cp.model.data.rtDialog;e&&(b=e.rtUnsupportedBowser,-1!=b.indexOf("@FFVERSION")&&(b=b.replace("@FFVERSION",cp.FF_MIN_SUPPORTED_VERSION)),a=e.rtWarningTitle,f=e.rtokb)}RuntimeBrowserDetect.init(b,a,f)}cp.initiated=!1;cp.LMSTypes={};cp.LMSTypes.NONE=0;cp.LMSTypes.SCORM2004=1;cp.LMSTypes.SCORM12=2;cp.LMSTypes.Authorware=3;cp.LMSTypes.AICC=4;cp.LMSTypes.QuestionMark=5;cp.LMSTypes.Email=6;cp.LMSTypes.Breeze=7;cp.LMSTypes.Acrobat=
8;cp.LMSTypes.InternalServer=9;cp.LMSTypes.TinCan=10;var d=cp.ContinueCPInit,b=function(){jQuery(window).unload(function(){cp.UnloadActivties()})};cp.currentWindow=window;cp.parentWindow=window.parent;cp.topWindow=window.top;cp.setAllowForceQuitContainer=!0;try{cp.parentWindow.document&&cp.verbose&&console.log("tring to access document of parent window")}catch(g){cp.parentWindow=cp.currentWindow}try{cp.topWindow.document&&cp.verbose&&console.log("tring to access document of top window")}catch(h){cp.topWindow=
cp.currentWindow;try{for(;cp.topWindow.parent.document;)cp.topWindow=cp.topWindow.parent}catch(i){}}cp.IsRunningInACAP=1==cp.getParameterByName("capi_player");cp.IsRunningInALEC=1==cp.getParameterByName("CPinsideAlec");cp.IsRunningInRoboHelp="true"==cp.getParameterByName("CPinsideRH");cp.currentWindow.cpAPIInterface=cp.IsRunningInACAP?new cp.ACAPInterfaceClass:cp.IsRunningInConnect()?new cp.ConnectInterfaceClass:new cp.CPAPIInterfaceClass;cp.currentWindow.cpAPIEventEmitter=cp.currentWindow.cpAPIInterface.getEventEmitter();
if(cp.IsRunningInACAP)cp.fireModuleReadyEvent(cp.parentWindow),a={Name:"CPGetEvent"},a.cpName=a.Name,a.Data={},a.Data.ask="resumeData",a.Data.callback=cp.handleACAPResumeData,a.cpData=a.Data,cp.currentWindow.cpAPIEventEmitter.trigger(a),b();else{if(!cp.IsRunningInACAP&&cp.D&&cp.D.quizReportingData)switch(a=cp.D.quizReportingData.lmsType,cp.LMSDriverHolder=void 0,a){case cp.LMSTypes.SCORM2004:case cp.LMSTypes.SCORM12:cp.LMSDriverHolder=window;d=cp.LoadActivities;b();break;case cp.LMSTypes.TinCan:a=
cp.D.project_main.useResponsive;cp.LMSDriverHolder=cp.m_isLMSPreview&&a?window.parent.parent:cp.m_isLMSPreview?window.parent:window;d=cp.LoadActivities;b();cp.D.quizReportingData.lmsType=cp.LMSTypes.SCORM2004;break;case cp.LMSTypes.AICC:a=cp.D.project_main.useResponsive;cp.LMSDriverHolder=cp.m_isLMSPreview&&a?window.parent.parent:window.parent;cp.LMSDriverHolder.blockedForLMS||(cp.LMSDriverHolder.blockedForLMS=!0,cp("blockUserInteraction").style.display="block",cp("blockUserInteraction").style.width=
"100%",cp("blockUserInteraction").style.height="100%");d=cp.LMSDriverHolder.HTMLContentLoadedCallback;b();break;default:cp.LMSDriverHolder=void 0}d=cp.IsRunningInConnect()?cp.LoadActivities:d;d||(d=cp.ContinueCPInit,cp.NotRunningInLMS=!0);cp.pg&&window.device&&"iOS"===window.device.platform&&StatusBar&&StatusBar.overlaysWebView(!1);cp.pg&&window.device&&"Android"===window.device.platform?cp.Phonegap.loadResources(c):c()}};
cp.ContinueCPInit=function(){cp.CPPreInit();cp.QuizLibraryInit();cp.CPPostInit();"undefined"!=typeof CPAutomator&&CPAutomator.init();document.getElementById("playImage").focus();cp.initiated=!0;cp.complete()};
window.DoCPExit=function(){try{cp.em.fireEvent("CPMovieExit");if(cp.IsRunningInACAP||cp.IsRunningInALEC||cp.m_isLMSPreview){cp.currentWindow.open("goodbye.html","_self");return}if(cp.IsRunningInRoboHelp){var c=cp.currentWindow.open("","_self");c.close();return}cp.currentWindow!=cp.parentWindow&&cp.parentWindow&&cp.parentWindow.hasOwnProperty("DoCPExit")?cp.setAllowForceQuitContainer?cp.parentWindow.DoCPExit():cp.currentWindow.close():cp.IsRunningInConnect()?cp.setAllowForceQuitContainer?cp.parentWindow.close():
cp.currentWindow.close():cp.topWindow==self?(c=window.open("","_self"),c.close()):cp.setAllowForceQuitContainer?(c=cp.topWindow.open("","_self"),c.top.close()):(c=window.open("","_self"),c.close())}catch(b){}cp.pg&&navigator&&navigator.app&&"function"===typeof navigator.app.exitApp&&navigator.app.exitApp();cp.win8&&(window&&window.parent)&&window.parent.postMessage({name:"WIN8APPCLOSE",data:{}},"*");cp.currentWindow.open("goodbye.html","_self")};
cp.Automate=function(){"undefined"!=typeof CPAutomator&&CPAutomator.CPRunSuite.model.workflow&&setTimeout(function(){CPAutomator.Replay.init()},1E4)};
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists