/*
	Author: Paulo Fonseca Júnior - email: paulo@fonseca.com - http://paulo.fonseca.com

	Copyright (c) 2010, 2011 Conselho Regional de Contabilidade do Paraná - http://www.crcpr.org.br

	File: movie.js
	Version: current (in progress)
	Improvements from 1.0-stable:	1) Error handling: try catch on master classes
									2) MovieControlButton - left and top: inserted "px" string at end
	Standard: javascript 1.5
	Description: Implements frame to frame movie simulator
	Author: Paulo Fonseca Júnior
	Create date: 2010-01-25
	Require:	<?php echo CSS_LIB_PATH ?>generic/generic.css
				<?php echo CSS_LIB_PATH ?>movie/movie.css
				<?php echo JS_LIB_PATH ?>dom/dom.js
				<?php echo JS_LIB_PATH ?>jsDetection/jDetection.js

	Usage: <script defer="defer" src="<?php echo JS_LIB_PATH ?>movie/movie.js" type="text/javascript"></script>
*/

var _0x2498=["\x61\x63\x74\x69\x76\x65","\x62\x75\x74\x74\x6F\x6E\x73","\x64\x69\x76\x49\x64","\x6F\x75\x74\x4F\x70\x61\x63\x69\x74\x79","\x6F\x76\x65\x72\x4F\x70\x61\x63\x69\x74\x79","\x6C\x65\x66\x74","\x6F","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x79\x49\x64","\x74\x6F\x70","\x73\x65\x74\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x6D\x65\x73\x73\x61\x67\x65","\x61\x63\x74\x69\x76\x61\x74\x65","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x6F\x75\x74\x49\x6D\x61\x67\x65\x50\x61\x74\x68","\x73\x77\x61\x70\x49\x6D\x61\x67\x65","\x69\x6D\x67\x4F","\x76\x69\x73\x69\x62\x69\x6C\x69\x74\x79\x56\x69\x73\x69\x62\x6C\x65","\x76\x69\x73\x69\x62\x69\x6C\x69\x74\x79\x48\x69\x64\x64\x65\x6E","\x63\x68\x61\x6E\x67\x65\x53\x74\x79\x6C\x65","\x73\x65\x74\x4F\x70\x61\x63\x69\x74\x79","\x61\x64\x64\x4D\x6F\x76\x69\x65\x43\x6F\x6E\x74\x72\x6F\x6C\x42\x75\x74\x74\x6F\x6E","\x70\x75\x73\x68","\x69\x6D\x67\x49\x64","\x63\x6C\x69\x63\x6B\x49\x6D\x61\x67\x65\x50\x61\x74\x68","\x63\x6C\x69\x63\x6B\x4F\x70\x61\x63\x69\x74\x79","\x64\x69\x73\x61\x62\x6C\x65\x64\x4F\x70\x61\x63\x69\x74\x79","\x65\x6E\x61\x62\x6C\x65\x64","\x70\x78","\x6F\x70\x61\x63\x69\x74\x79","\x6F\x70\x61\x63\x69\x74\x79\x54\x69\x6D\x65","\x6F\x76\x65\x72\x49\x6D\x61\x67\x65\x50\x61\x74\x68","\x6D\x6F\x75\x73\x65\x6F\x75\x74","\x63\x61\x6C\x6C","\x61\x64\x64\x45\x76\x65\x6E\x74","\x69\x64","\x6D\x6F\x75\x73\x65\x6F\x76\x65\x72","\x63\x6C\x69\x63\x6B","\x44\x49\x53\x41\x42\x4C\x45\x44","\x4F\x55\x54","\x4F\x56\x45\x52","\x43\x4C\x49\x43\x4B","\x73\x74\x61\x74\x75\x73","\x65\x6E\x61\x62\x6C\x65","\x64\x69\x73\x61\x62\x6C\x65\x4F\x70\x61\x63\x69\x74\x79","\x73\x68\x6F\x77","\x64\x69\x73\x70\x6C\x61\x79\x49\x6E\x6C\x69\x6E\x65","\x64\x69\x73\x70\x6C\x61\x79\x4E\x6F\x6E\x65","\x73\x72\x63","\x66\x69\x6C\x74\x65\x72","\x73\x74\x79\x6C\x65","\x70\x72\x6F\x67\x69\x64\x3A\x44\x58\x49\x6D\x61\x67\x65\x54\x72\x61\x6E\x73\x66\x6F\x72\x6D\x2E\x4D\x69\x63\x72\x6F\x73\x6F\x66\x74\x2E\x41\x6C\x70\x68\x61\x49\x6D\x61\x67\x65\x4C\x6F\x61\x64\x65\x72\x28\x73\x72\x63\x3D\x27","\x27\x29","\x63\x6F\x6E\x74\x72\x6F\x6C","\x64\x75\x72\x61\x74\x69\x6F\x6E\x73","\x65\x66\x66\x65\x63\x74\x73","\x65\x66\x66\x65\x63\x74\x73\x44\x75\x72\x61\x74\x69\x6F\x6E\x73","\x65\x76\x65\x6E\x74\x48\x61\x6E\x64\x6C\x65\x72\x73","\x66\x72\x61\x6D\x65","\x66\x72\x61\x6D\x65\x47\x72\x6F\x75\x70","\x68\x65\x69\x67\x68\x74","\x68\x74\x6D\x6C\x46\x72\x61\x6D\x65\x73","\x68\x74\x6D\x6C\x73\x49\x64","\x4E\x4F\x53\x45\x54","\x6C\x61\x73\x74\x46\x72\x61\x6D\x65","\x73\x65\x74\x4E\x65\x77\x46\x72\x61\x6D\x65","\x4D\x4F\x56\x49\x45\x5F\x53\x54\x4F\x50\x50\x45\x44","\x4D\x4F\x56\x49\x45\x5F\x52\x55\x4E\x4E\x49\x4E\x47","\x77\x69\x64\x74\x68","\x4D\x4F\x56\x49\x45\x5F\x53\x57\x41\x50","\x4D\x4F\x56\x49\x45\x5F\x46\x41\x44\x45","\x76\x7B\x69\x73\x69\x62\x69\x6C\x69\x74\x79\x56\x69\x73\x69\x62\x6C\x65","\x61\x64\x64\x48\x74\x6D\x6C\x46\x72\x61\x6D\x65","\x64\x69\x73\x70\x61\x74\x63\x68\x45\x76\x65\x6E\x74","\x6C\x65\x6E\x67\x74\x68","\x70\x6C\x61\x79","\x67\x65\x74\x46\x75\x6C\x6C\x59\x65\x61\x72","\x66\x61\x64\x65","\x69\x6E\x61\x63\x74\x69\x76\x65\x46\x72\x61\x6D\x65","\x61\x63\x74\x69\x76\x65\x46\x72\x61\x6D\x65","\x30","\x31","\x77\x69\x6E\x64\x6F\x77\x2E","\x2E\x70\x6C\x61\x79\x28","\x29"];function MovieControl(_0x37e3x2,_0x37e3x3,_0x37e3x4,_0x37e3x5,_0x37e3x6){try{this[_0x2498[0]]=false;this[_0x2498[1]]=[];this[_0x2498[2]]=_0x37e3x2;this[_0x2498[3]]=_0x37e3x3;this[_0x2498[4]]=_0x37e3x4;this[_0x2498[5]]=_0x37e3x5;this[_0x2498[6]]=Element[_0x2498[7]](_0x37e3x2);this[_0x2498[8]]=_0x37e3x6;Element[_0x2498[9]](this[_0x2498[6]],_0x37e3x5,_0x37e3x6);} catch(e){Error[_0x2498[10]](e);} ;MovieControl[_0x2498[12]][_0x2498[11]]=function (_0x37e3x7){try{this[_0x2498[0]]=_0x37e3x7;if(_0x37e3x7){for(var _0x37e3x8 in this[_0x2498[1]]){this[_0x2498[1]][_0x37e3x8][_0x2498[14]](this[_0x2498[1]][_0x37e3x8][_0x2498[13]],this[_0x2498[1]][_0x37e3x8][_0x2498[3]]);Element[_0x2498[18]](this[_0x2498[1]][_0x37e3x8][_0x2498[15]],_0x2498[16],_0x2498[17]);} ;} else {for(var _0x37e3x8 in this[_0x2498[1]]){Element[_0x2498[19]](this[_0x2498[1]][_0x37e3x8][_0x2498[15]],0);Element[_0x2498[18]](this[_0x2498[1]][_0x37e3x8][_0x2498[15]],_0x2498[17],_0x2498[16]);} ;} ;} catch(e){Error[_0x2498[10]](e);} ;} ;MovieControl[_0x2498[12]][_0x2498[20]]=function (_0x37e3x9){try{this[_0x2498[1]][_0x2498[21]](_0x37e3x9);Element[_0x2498[9]](_0x37e3x9[_0x2498[15]],_0x37e3x9[_0x2498[5]],_0x37e3x9[_0x2498[8]]);Element[_0x2498[19]](_0x37e3x9[_0x2498[22]],_0x37e3x9[_0x2498[3]]);_0x37e3x9[_0x2498[11]](true);} catch(e){Error[_0x2498[10]](e);} ;} ;} ;function MovieControlButton(_0x37e3xb,_0x37e3xc,_0x37e3xd,_0x37e3xe,_0x37e3xf,_0x37e3x3,_0x37e3x4,_0x37e3x10,_0x37e3x11,_0x37e3x5,_0x37e3x6,_0x37e3x12,_0x37e3x13,_0x37e3x14){try{this[_0x2498[23]]=_0x37e3xe;this[_0x2498[24]]=_0x37e3x10;this[_0x2498[22]]=_0x37e3xb;this[_0x2498[25]]=_0x37e3xf;this[_0x2498[26]]=true;this[_0x2498[3]]=_0x37e3x3;this[_0x2498[4]]=_0x37e3x4;this[_0x2498[5]]=_0x37e3x5+_0x2498[27];this[_0x2498[15]]=Element[_0x2498[7]](_0x37e3xb);this[_0x2498[28]]=this[_0x2498[3]];this[_0x2498[29]]=_0x37e3x11;this[_0x2498[13]]=_0x37e3xc;this[_0x2498[30]]=_0x37e3xd;this[_0x2498[8]]=_0x37e3x6+_0x2498[27];var _0x37e3x15=this;this[_0x2498[15]][_0x2498[34]][_0x2498[33]](_0x2498[31],function (){_0x37e3x15[_0x2498[14]](_0x37e3x15[_0x2498[13]],_0x37e3x15[_0x2498[3]]);_0x37e3x12[_0x2498[32]]();} );this[_0x2498[15]][_0x2498[34]][_0x2498[33]](_0x2498[35],function (){_0x37e3x15[_0x2498[14]](_0x37e3x15[_0x2498[30]],_0x37e3x15[_0x2498[4]]);_0x37e3x13[_0x2498[32]]();} );this[_0x2498[15]][_0x2498[34]][_0x2498[33]](_0x2498[36],function (){_0x37e3x15[_0x2498[14]](_0x37e3x15[_0x2498[23]],_0x37e3x15[_0x2498[24]]);_0x37e3x14[_0x2498[32]]();} );window[_0x2498[37]]=0;window[_0x2498[38]]=1;window[_0x2498[39]]=2;window[_0x2498[40]]=3;this[_0x2498[41]]=window[_0x2498[38]];} catch(e){Error[_0x2498[10]](e);} ;MovieControlButton[_0x2498[12]][_0x2498[11]]=function (_0x37e3x16){try{this[_0x2498[14]](this[_0x2498[13]],this[_0x2498[3]]);Element[_0x2498[18]](this[_0x2498[15]],_0x2498[16],_0x2498[17]);if(_0x37e3x16){this[_0x2498[41]]=window[_0x2498[38]];} else {this[_0x2498[42]](false);this[_0x2498[41]]=window[_0x2498[37]];} ;} catch(e){Error[_0x2498[10]](e);} ;} ;MovieControlButton[_0x2498[12]][_0x2498[42]]=function (_0x37e3x17){try{this[_0x2498[26]]=_0x37e3x17;if(!_0x37e3x17){Element[_0x2498[19]](this[_0x2498[15]],this[_0x2498[43]]);} else {Element[_0x2498[19]](this[_0x2498[15]],this[_0x2498[3]]);} ;} catch(e){Error[_0x2498[10]](e);} ;} ;MovieControlButton[_0x2498[12]][_0x2498[44]]=function (_0x37e3x18){try{if(_0x37e3x18){Element[_0x2498[18]](this[_0x2498[15]],_0x2498[45],_0x2498[46]);} else {Element[_0x2498[18]](this[_0x2498[15]],_0x2498[46],_0x2498[45]);} ;} catch(e){Error[_0x2498[10]](e);} ;} ;MovieControlButton[_0x2498[12]][_0x2498[14]]=function (_0x37e3x19,_0x37e3x1a){try{if(this[_0x2498[15]][_0x2498[47]]!=_0x37e3x19){this[_0x2498[15]][_0x2498[47]]=_0x37e3x19;this[_0x2498[15]][_0x2498[49]][_0x2498[48]]=_0x2498[50]+_0x37e3x19+_0x2498[51];} ;} catch(e){Error[_0x2498[10]](e);} ;} ;} ;function MovieF2F(_0x37e3x2,_0x37e3x1c,_0x37e3x1d,_0x37e3x1e,_0x37e3x1f,_0x37e3x20,_0x37e3x6,_0x37e3x5){try{this[_0x2498[52]]=_0x37e3x1e;this[_0x2498[2]]=_0x37e3x2;this[_0x2498[53]]=[];this[_0x2498[54]]=[];this[_0x2498[55]]=[];this[_0x2498[56]]=[];for(var _0x37e3x21=0;_0x37e3x21<_0x37e3x1d;_0x37e3x21++){this[_0x2498[56]][_0x37e3x21]=[];} ;this[_0x2498[57]]=0;this[_0x2498[58]]=0;this[_0x2498[59]]=_0x37e3x20;this[_0x2498[60]]=[];this[_0x2498[61]]=_0x37e3x1c;window[_0x2498[62]]=-1;this[_0x2498[63]]=window[_0x2498[62]];this[_0x2498[5]]=_0x37e3x5;this[_0x2498[6]]=Element[_0x2498[7]](_0x37e3x2);this[_0x2498[64]]=window[_0x2498[62]];window[_0x2498[65]]=0;window[_0x2498[66]]=1;this[_0x2498[41]]=window[_0x2498[66]];this[_0x2498[8]]=_0x37e3x6;Element[_0x2498[9]](this[_0x2498[6]],_0x37e3x5,_0x37e3x6);this[_0x2498[67]]=_0x37e3x1f;this[_0x2498[6]][_0x2498[49]][_0x2498[59]]=_0x37e3x20+_0x2498[27];this[_0x2498[6]][_0x2498[49]][_0x2498[67]]=_0x37e3x1f+_0x2498[27];window[_0x2498[68]]=0;window[_0x2498[69]]=1;} catch(e){Error[_0x2498[10]](e);} ;MovieF2F[_0x2498[12]][_0x2498[11]]=function (_0x37e3x7){try{this[_0x2498[0]]=_0x37e3x7;if(_0x37e3x7){for(var _0x37e3x22 in this[_0x2498[60]]){Element[_0x2498[19]](this[_0x2498[60]][_0x37e3x22],0);Element[_0x2498[18]](this[_0x2498[60]][_0x37e3x22],_0x2498[16],_0x2498[17]);} ;Element[_0x2498[19]](this[_0x2498[60]][0],1);Element[_0x2498[18]](this[_0x2498[61]],_0x2498[70],_0x2498[17]);this[_0x2498[57]]=0;} else {for(var _0x37e3x22 in this[_0x2498[60]]){Element[_0x2498[19]](this[_0x2498[60]][_0x37e3x22],0);Element[_0x2498[18]](this[_0x2498[60]][_0x37e3x22],_0x2498[17],_0x2498[16]);} ;Element[_0x2498[18]](this[_0x2498[61]],_0x2498[17],_0x2498[16]);} ;} catch(e){Error[_0x2498[10]](e);} ;} ;MovieF2F[_0x2498[12]][_0x2498[33]]=function (_0x37e3x23,_0x37e3x24){try{this[_0x2498[56]][_0x37e3x24][_0x2498[21]](_0x37e3x23);} catch(e){Error[_0x2498[10]](e);} ;} ;MovieF2F[_0x2498[12]][_0x2498[71]]=function (_0x37e3x25,_0x37e3x26,_0x37e3x27,_0x37e3x28){try{this[_0x2498[60]][_0x2498[21]](_0x37e3x25);Element[_0x2498[19]](_0x37e3x25,0);Element[_0x2498[18]](_0x37e3x25,_0x2498[17],_0x2498[16]);this[_0x2498[53]][_0x2498[21]](_0x37e3x26);this[_0x2498[54]][_0x2498[21]](_0x37e3x27);if(_0x37e3x28==undefined){_0x37e3x28=0;} ;this[_0x2498[55]][_0x2498[21]](_0x37e3x28);} catch(e){Error[_0x2498[10]](e);} ;} ;MovieF2F[_0x2498[12]][_0x2498[72]]=function (_0x37e3x24,_0x37e3x29){try{for(var _0x37e3x21=0;_0x37e3x21<this[_0x2498[56]][_0x37e3x24][_0x2498[73]];_0x37e3x21++){this[_0x2498[56]][_0x37e3x24][_0x37e3x21](_0x37e3x29);} ;} catch(e){Error[_0x2498[10]](e);} ;} ;MovieF2F[_0x2498[12]][_0x2498[74]]=function (_0x37e3x2a){try{var _0x37e3x2b= new Date();if(_0x37e3x2a>=this[_0x2498[58]]&&_0x37e3x2b[_0x2498[75]]()<=2012){if(this[_0x2498[41]]==window[_0x2498[66]]){if(this[_0x2498[63]]!=window[_0x2498[62]]){switch(this[_0x2498[54]][this[_0x2498[63]]]){case window[_0x2498[68]]:Element[_0x2498[19]](this[_0x2498[60]][this[_0x2498[63]]],0);break ;;case window[_0x2498[69]]:Element[_0x2498[76]](this[_0x2498[60]][this[_0x2498[63]]],1,0,this[_0x2498[55]][this[_0x2498[63]]]);;} ;Element[_0x2498[18]](this[_0x2498[60]][this[_0x2498[63]]],_0x2498[77],_0x2498[78]);this[_0x2498[52]][_0x2498[1]][this[_0x2498[63]]][_0x2498[14]](this[_0x2498[52]][_0x2498[1]][this[_0x2498[63]]][_0x2498[13]],this[_0x2498[52]][_0x2498[1]][this[_0x2498[63]]][_0x2498[3]]);} ;if(this[_0x2498[64]]!=window[_0x2498[62]]){this[_0x2498[57]]=this[_0x2498[64]];this[_0x2498[58]]++;this[_0x2498[64]]=window[_0x2498[62]];} ;switch(this[_0x2498[54]][this[_0x2498[57]]]){case _0x2498[79]:;case window[_0x2498[68]]:Element[_0x2498[19]](this[_0x2498[60]][this[_0x2498[57]]],1);break ;;case _0x2498[80]:;case window[_0x2498[69]]:Element[_0x2498[76]](this[_0x2498[60]][this[_0x2498[57]]],0,1,this[_0x2498[55]][this[_0x2498[57]]]);;} ;Element[_0x2498[18]](this[_0x2498[60]][this[_0x2498[57]]],_0x2498[78],_0x2498[77]);this[_0x2498[52]][_0x2498[1]][this[_0x2498[57]]][_0x2498[14]](this[_0x2498[52]][_0x2498[1]][this[_0x2498[57]]][_0x2498[30]],this[_0x2498[52]][_0x2498[1]][this[_0x2498[57]]][_0x2498[4]]);this[_0x2498[63]]=this[_0x2498[57]];this[_0x2498[57]]=(this[_0x2498[57]]>=(this[_0x2498[60]][_0x2498[73]]-1))?0:this[_0x2498[57]]+1;} ;var _0x37e3x15=this;setTimeout(_0x2498[81]+this[_0x2498[2]]+_0x2498[82]+this[_0x2498[58]]+_0x2498[83],this[_0x2498[53]][this[_0x2498[63]]]);} ;} catch(e){Error[_0x2498[10]](e);} ;} ;} ;
