var tamanho_atual=11;
function reduz(){
	tamanho_atual--;
	muda();
}
function amplia(){
	tamanho_atual++;
	muda();
}
function muda(){
	var elemento=document.getElementById("texto");
	elemento.style.fontSize=(tamanho_atual)+"px";
	elemento.style.lineHeight=(tamanho_atual+11)+"px";
	if(elemento.hasChildNodes()){
		var children=elemento.childNodes;
		for(var c=0;c<children.length;c++){
			if(children[c].style){
				if(children[c].id=="texto_azul" || children[c].id=="texto_verde" || children[c].id=="texto_cinza"){
					children[c].style.fontSize=(tamanho_atual+2)+"px";
					children[c].style.lineHeight=(tamanho_atual+13)+"px";
				}else if(children[c].id=="texto_cinza"){
					children[c].style.fontSize=(tamanho_atual+1)+"px";
					children[c].style.lineHeight=(tamanho_atual+12)+"px";
				}else if(children[c].nodeName=="TABLE"){
					for(var d=0;d<children[c].childNodes.length;d++){
						for(var e=0;e<children[c].childNodes[d].childNodes.length;e++){
							for(var f=0;f<children[c].childNodes[d].childNodes[e].childNodes.length;f++){
								for(var g=0;g<children[c].childNodes[d].childNodes[e].childNodes[f].childNodes.length;g++){
									if(children[c].childNodes[d].childNodes[e].childNodes[f].childNodes[g].style){
										children[c].childNodes[d].childNodes[e].childNodes[f].childNodes[g].style.fontSize=(tamanho_atual)+"px";
										children[c].childNodes[d].childNodes[e].childNodes[f].childNodes[g].style.lineHeight=(tamanho_atual+11)+"px";
									}
									children[c].childNodes[d].childNodes[e].childNodes[f].style.fontSize=(tamanho_atual)+"px";
									children[c].childNodes[d].childNodes[e].childNodes[f].style.lineHeight=(tamanho_atual+11)+"px";
								}
							}
						}
					}
				}else{
					children[c].style.fontSize=(tamanho_atual)+"px";
					children[c].style.lineHeight=(tamanho_atual+11)+"px";
				}
			}
		}
	}
}
function email(){
	MOOdalBox.open("envia","Enviar por e-mail","500 400");
}
function newsletter(){
	MOOdalBox.open("newsletter","Cadastro para recebimento de nosso newsletter","500 210");
}
function contato(){
	MOOdalBox.open("contato","Formulário de contato","800 360");
}
function imprime(){
	window.print();
}






//MooTools, My Object Oriented Javascript Tools. Copyright (c) 2006 Valerio Proietti, <http://mad4milk.net>, MIT Style License.
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('f P=7(1o){f 3g=7(){9(5.1h&&I[0]!=\'5q\')6 5.1h.2g(5,I);R 6 5};M(f m 17 5)3g[m]=5[m];3g.K=1o;6 3g};P.1q=7(){};P.K={H:7(1o){f 3p=G 5(\'5q\');f 5u=7(1H,1w){9(!1H.2g||!1w.2g)6 L;6 7(){5.1K=1H;6 1w.2g(5,I)}};M(f m 17 1o){f 1H=3p[m];f 1w=1o[m];9(1H&&1H!=1w)1w=5u(1H,1w)||1w;3p[m]=1w}6 G P(3p)},1G:7(1o){M(f m 17 1o)5.K[m]=1o[m]}};1g.H=7(){f E=I;E=(E[1])?[E[0],E[1]]:[5,E[0]];M(f m 17 E[1])E[0][m]=E[1][m];6 E[0]};1g.3Y=7(){M(f i=0;i<I.N;i++)I[i].H=P.K.1G};G 1g.3Y(4f,14,43,4L,P);9(3V 2O==\'5N\'){f 2O=P.1q;2O.K={}}R{2O.K.3X=Y}O.H=C.H=1g.H;f 6w=O;7 $k(J){9(J===1f||J===5N)6 L;f k=3V J;9(k==\'2X\'){9(J.3X)6\'T\';9(J.11)6\'1m\';9(J.6t){1F(J.4U){U 1:6\'T\';U 3:6 J.6h.Q(/\\S/)?\'6g\':\'3v\'}}}6 k};7 $3B(J){6!!(J||J===0)};7 $6k(J,5B){6($k(J))?J:5B};7 $5I(3k,2F){6 1B.7g(1B.5I()*(2F-3k+1)+3k)};7 $4l(1k){72(1k);6y(1k);6 1f};9(O.5c)O.1T=O[O.3i?\'7e\':\'41\']=Y;R 9(C.58&&!C.78&&!7a.6U)O.2l=Y;R 9(C.6F!=1f)O.3O=Y;9(O.41)4k{C.6E("6z",L,Y)}4h(e){};14.K.3d=14.K.3d||7(o,B){M(f i=0;i<5.N;i++)o.1p(B,5[i],i,5)};14.K.3N=14.K.3N||7(o,B){f 2b=[];M(f i=0;i<5.N;i++){9(o.1p(B,5[i],i,5))2b.11(5[i])}6 2b};14.K.4o=14.K.4o||7(o,B){f 2b=[];M(f i=0;i<5.N;i++)2b[i]=o.1p(B,5[i],i,5);6 2b};14.K.2B=14.K.2B||7(o,B){M(f i=0;i<5.N;i++){9(!o.1p(B,5[i],i,5))6 L}6 Y};14.K.67=14.K.67||7(o,B){M(f i=0;i<5.N;i++){9(o.1p(B,5[i],i,5))6 Y}6 L};14.K.3G=14.K.3G||7(24,q){q=q||0;9(q<0)q=1B.2F(0,5.N+q);22(q<5.N){9(5[q]===24)6 q;q++}6-1};14.H({1c:14.K.3d,6c:7(1i,N){1i=1i||0;9(1i<0)1i=5.N+1i;N=N||(5.N-1i);f 28=[];M(f i=0;i<N;i++)28[i]=5[1i++];6 28},3J:7(24){f i=0;22(i<5.N){9(5[i]===24)5.3R(i,1);R i++}6 5},Q:7(24,q){6 5.3G(24,q)!=-1},H:7(28){M(f i=0;i<28.N;i++)5.11(28[i]);6 5},6C:7(1l){f J={},N=1B.3k(5.N,1l.N);M(f i=0;i<N;i++)J[1l[i]]=5[i];6 J}});7 $A(1m,1i,N){6 14.K.6c.1p(1m,1i,N)};7 $1c(64,o,B){6 14.K.3d.1p(64,o,B)};43.H({Q:7(3A,60){6((3V 3A==\'2i\')?G 5i(3A,60):3A).Q(5)},4M:7(){6 3W(5)},4K:7(){6 2y(5)},3M:7(){6 5.2f(/-\\D/g,7(1E){6 1E.3U(1).5Z()})},57:7(){6 5.2f(/\\w[A-Z]/g,7(1E){6(1E.3U(0)+\'-\'+1E.3U(1).2D())})},5o:7(){6 5.2D().2f(/\\b[a-z]/g,7(1E){6 1E.5Z()})},63:7(){6 5.2f(/^\\s+|\\s+$/g,\'\')},3T:7(){6 5.2f(/\\s{2,}/g,\' \').63()},3F:7(1m){f 1u=5.1E(/\\d{1,3}/g);6(1u)?1u.3F(1m):L},3l:7(1m){f 1R=5.1E(/^#?(\\w{1,2})(\\w{1,2})(\\w{1,2})$/);6(1R)?1R.6O(1).3l(1m):L}});14.H({3F:7(1m){9(5.N<3)6 L;9(5[3]&&(5[3]==0)&&!1m)6\'6N\';f 1R=[];M(f i=0;i<3;i++){f 3n=(5[i]-0).6M(16);1R.11((3n.N==1)?\'0\'+3n:3n)}6 1m?1R:\'#\'+1R.1D(\'\')},3l:7(1m){9(5.N!=3)6 L;f 1u=[];M(f i=0;i<3;i++){1u.11(3W((5[i].N==1)?5[i]+5[i]:5[i],16))}6 1m?1u:\'1u(\'+1u.1D(\',\')+\')\'}});4L.H({4M:7(){6 3W(5)},4K:7(){6 2y(5)}});4f.H({1C:7(l){f o=5;l=1g.H({\'B\':o,\'n\':L,\'I\':1f,\'1A\':L,\'21\':L,\'3c\':L},l||{});9($3B(l.I)&&$k(l.I)!=\'1m\')l.I=[l.I];6 7(n){f E;9(l.n){n=n||O.n;E=[(l.n===Y)?n:G l.n(n)];9(l.I)E=E.6P(l.I)}R E=l.I||I;f 1N=7(){6 o.2g(l.B,E)};9(l.1A)6 6Q(1N,l.1A);9(l.21)6 6T(1N,l.21);9(l.3c){4k{6 1N()}4h(4J){6 4J}}6 1N()}},6S:7(E,B){6 5.1C({\'I\':E,\'B\':B})},3c:7(E,B){6 5.1C({\'I\':E,\'B\':B,\'3c\':Y})()},B:7(B,E){6 5.1C({\'B\':B,\'I\':E})},6R:7(B,E){6 5.1C({\'B\':B,\'n\':Y,\'I\':E})},1A:7(3b,B,E){6 5.1C({\'1A\':3b,\'B\':B,\'I\':E})()},21:7(3b,B,E){6 5.1C({\'21\':3b,\'B\':B,\'I\':E})()}});f 18=G P({1h:7(h){9($k(h)==\'2i\')h=C.53(h);6 $(h)}});7 $(h){9(!h)6 L;9(h.4O||[O,C].Q(h))6 h;9($k(h)==\'2i\')h=C.6K(h);9($k(h)!=\'T\')6 L;9([\'2X\',\'6J\'].Q(h.51.2D())||h.H)6 h;h.4O=Y;1V.3D(h);h.H=1g.H;9(!(h.3X))h.H(18.K);6 h};f 2d=G P({});G 1g.3Y(2d);C.4Q=C.2Z;7 $$(){9(!I)6 L;9(I.N==1){9(!I[0])6 L;9(I[0].4F)6 I[0]}f 1v=[];$1c(I,7(1X){1F($k(1X)){U\'T\':1v.11($(1X));1r;U\'2i\':1X=C.4Q(1X);4Y:9(1X.N){$1c(1X,7(h){9($(h))1v.11(h)})}}});1v.4F=Y;6 1g.H(1v,G 2d)};2d.2Y=7(m){6 7(){f E=I;f 2M=[];f 1v=Y;$1c(5,7(h){f 1N=h[m].2g(h,E);9($k(1N)!=\'T\')1v=L;2M.11(1N)});9(1v)2M=$$(2M);6 2M}};18.H=7(1o){M(f m 17 1o){2O.K[m]=1o[m];18.K[m]=1o[m];2d.K[m]=2d.2Y(m)}};18.H({2U:7(h,4y){h=$(h)||G 18(h);1F(4y){U"4B":$(h.1I).4C(5,h);1r;U"4z":9(!h.3Q())$(h.1I).2T(5);R $(h.1I).4C(5,h.3Q());1r;U"4A":h.2T(5)}6 5},6V:7(h){6 5.2U(h,\'4B\')},79:7(h){6 5.2U(h,\'4z\')},77:7(h){6 5.2U(h,\'4A\')},7c:7(h){5.2T($(h)||G 18(h));6 5},3J:7(){5.1I.7f(5);6 5},7d:7(5f){f h=5.76(5f!==L);6 $(h)},4W:7(h){h=$(h)||G 18(h);5.1I.75(h,5);6 h},6Y:7(1a){9(O.1T){1F(5.2V()){U\'V\':5.6X.5l=1a;6 5;U\'1P\':5.3s(\'1a\',1a);6 5}}5.2T(C.70(1a));6 5},3S:7(15){6 5.15.Q(\'(?:^|\\\\s)\'+15+\'(?:\\\\s|$)\')},5m:7(15){9(!5.3S(15))5.15=(5.15+\' \'+15).3T();6 5},5n:7(15){5.15=5.15.2f(G 5i(\'(^|\\\\s)\'+15+\'(?:\\\\s|$)\'),\'$1\').3T();6 5},74:7(15){6 5.3S(15)?5.5n(15):5.5m(15)},3t:7(m,F){9(m==\'1t\')5.5j(2y(F));R 5.V[m.3M()]=(F.11)?\'1u(\'+F.1D(\',\')+\')\':F;6 5},59:7(1d){1F($k(1d)){U\'2X\':M(f m 17 1d)5.3t(m,1d[m]);1r;U\'2i\':5.V.5l=1d}6 5},5j:7(1t){9(1t==0){9(5.V.34!="4a")5.V.34="4a"}R{9(5.V.34!="5k")5.V.34="5k"}9(!5.3E||!5.3E.6e)5.V.6i=1;9(O.1T)5.V.3N="6x(1t="+1t*6u+")";5.V.1t=5.1t=1t;6 5},2e:7(m){m=m.3M();f V=5.V[m]||L;9(!$3B(V)){9(m==\'1t\')6 $3B(5.1t)?5.1t:1;9([\'6l\',\'6r\'].Q(m)){6[5.2e(m+\'-1U\')||0,5.2e(m+\'-47\')||0,5.2e(m+\'-5h\')||0,5.2e(m+\'-1M\')||0].1D(\' \')}9(C.54)V=C.54.6m(5,1f).6o(m.57());R 9(5.3E)V=5.3E[m]}9(V==\'6q\'&&[\'4e\',\'4d\'].Q(m))6 5[\'6p\'+m.5o()]+\'5D\';6(V&&m.Q(/4R/i)&&V.Q(/1u/))?V.3F():V},19:7(k,o){5.u=5.u||{};5.u[k]=5.u[k]||{\'1l\':[],\'3P\':[]};9(!5.u[k].1l.Q(o)){5.u[k].1l.11(o);9(5.56){5.56((k==\'48\'&&O.3O)?\'49\':k,o,L)}R{o=o.B(5);5.6n(\'4g\'+k,o);5.u[k].3P.11(o)}}6 5},6s:7(1d){9(1d){M(f k 17 1d)5.19(k,1d[k])}6 5},2j:7(k,o){9(5.u&&5.u[k]){f 3o=5.u[k].1l.3G(o);9(3o==-1)6 5;f 2o=5.u[k].1l.3R(3o,1)[0];9(5.4I){5.4I((k==\'48\'&&O.3O)?\'49\':k,2o,L)}R{5.6B(\'4g\'+k,5.u[k].3P.3R(3o,1)[0])}}6 5},26:7(k){9(5.u){9(k){9(5.u[k]){5.u[k].1l.1c(7(o){5.2j(k,o)},5);5.u[k]=1f}}R{M(f 4P 17 5.u)5.26(4P);5.u=1f}}6 5},1s:7(k,E){9(5.u&&5.u[k]){5.u[k].1l.1c(7(o){o.B(5,E)()},5)}},3Z:7(3L){f h=5[3L+\'4x\'];22($k(h)==\'3v\')h=h[3L+\'4x\'];6 $(h)},8i:7(){6 5.3Z(\'1H\')},3Q:7(){6 5.3Z(\'8l\')},8m:7(){f h=5.8q;22($k(h)==\'3v\')h=h.8p;6 $(h)},8o:7(){f h=5.8n;22($k(h)==\'3v\')h=h.8g;6 $(h)},8f:7(){6 $(5.1I)},88:7(){6 $$(5.58)},3s:7(m,F){1F(m){U\'52\':5.15=F;1r;U\'V\':5.59(F);1r;U\'1e\':9(O.41){f h=$(C.53(\'<\'+5.2V()+\' 1e="\'+F+\'" />\'));$1c(5.84,7(3u){9(3u.1e!=\'1e\')h.3s(3u.1e,3u.F)});9(5.1I)5.4W(h);6 h}4Y:5.85(m,F)}6 5},89:7(1d){M(f m 17 1d)5.3s(m,1d[m]);6 5},4S:7(){5.8d=$A(I).1D(\'\');6 5},69:7(m){6(m==\'52\')?5.15:5.8b(m)},2V:7(){6 5.51.2D()},8r:7(x,y){5.2H=x;5.2R=y},1Z:7(){1F(5.2V()){U\'2q\':9(5.5b!=-1){f 4b=5.l[5.5b];6 4b.F||4b.1a}1r;U\'5C\':9(!(5.8w&&[\'8L\',\'8G\'].Q(5.k))&&![\'4a\',\'1a\',\'8H\'].Q(5.k))1r;U\'5A\':6 5.F}6 L},4X:7(){6{\'68\':{\'x\':5.2H,\'y\':5.2R},\'5T\':{\'x\':5.3I,\'y\':5.3K},\'5S\':{\'x\':5.33,\'y\':5.3a}}},2I:7(23){23=23||[];f h=5,1M=0,1U=0;8I{1M+=h.8J||0;1U+=h.8M||0;h=h.8K}22(h);23.1c(7(T){1M-=T.2H||0;1U-=T.2R||0});6{\'x\':1M,\'y\':1U}},8x:7(){6 5.2I().y},8F:7(){6 5.2I().x},8v:7(23){f 4c=5.2I(23);f J={\'4d\':5.3I,\'4e\':5.3K,\'1M\':4c.x,\'1U\':4c.y};J.47=J.1M+J.4d;J.5h=J.1U+J.4e;6 J}});O.19=C.19=18.K.19;O.2j=C.2j=18.K.2j;O.26=C.26=18.K.26;f 1V={1v:[],3D:7(T){1V.1v.11(T)},4V:7(){1V.3D(O);1V.3D(C);1V.1v.1c(7(h){h.26();M(f p 17 18.K)h[p]=1f;h.H=1f})}};O.19(\'8D\',1V.4V);f 2x=G P({1h:7(n){5.n=n||O.n;5.k=5.n.k;5.2z=5.n.2z||5.n.8B;9(5.2z.4U==3)5.2z=5.2z.1I;5.5P=5.n.82;5.7x=5.n.83;5.7w=5.n.7v;5.7u=5.n.7y;9([\'49\',\'48\'].Q(5.k)){5.7z=5.n.4u?(5.n.4u/(O.3H?-4t:4t)):-(5.n.7C||0)/ 3} R 9 (5.k.Q(/2o/)){5.42=5.n.4N||5.n.7B;M(f 1e 17 2x.1l){9(2x.1l[1e]==5.42){5.2o=1e;1r}}5.2o=5.2o||43.7t(5.42).2D()}R 9(5.k.Q(/7l/)||(5.k==\'7k\')){5.7j={\'x\':5.n.44||5.n.5p+C.1n.2H,\'y\':5.n.45||5.n.4T+C.1n.2R};5.7i={\'x\':5.n.44?5.n.44-O.61:5.n.5p,\'y\':5.n.45?5.n.45-O.5U:5.n.4T};5.7n=(5.n.4N==3)||(5.n.7q==2);1F(5.k){U\'7p\':5.2W=5.n.2W||5.n.7o;1r;U\'7F\':5.2W=5.n.2W||5.n.7U}}},2v:7(){5.35();5.36();6 5},35:7(){9(5.n.35)5.n.35();R 5.n.7S=Y;6 5},36:7(){9(5.n.36)5.n.36();R 5.n.7X=L;6 5}});2x.1l={\'7Z\':13,\'7R\':38,\'7Q\':40,\'1M\':37,\'47\':39,\'7M\':27,\'7N\':32,\'7O\':8,\'7P\':46};4f.H({7L:7(B,E){6 5.1C({\'B\':B,\'I\':E,\'n\':2x})}});f 4s=G P({7G:7(o){5.1Y=5.1Y||[];5.1Y.11(o);6 5},4j:7(){9(5.1Y&&5.1Y.N)5.1Y.5P().1A(10,5)},7H:7(){5.1Y=[]}});f 4p=G P({19:7(k,o){9(o!=P.1q){5.u=5.u||{};5.u[k]=5.u[k]||[];9(!5.u[k].Q(o))5.u[k].11(o)}6 5},1s:7(k,E,1A){9(5.u&&5.u[k]){5.u[k].1c(7(o){o.1C({\'B\':5,\'1A\':1A,\'I\':E})()},5)}6 5},2j:7(k,o){9(5.u&&5.u[k])5.u[k].3J(o);6 5}});f 4i=G P({31:7(5v,l){5.l=1g.H(5v,l);9(5.19){M(f 2C 17 5.l){9(($k(5.l[2C])==\'7\')&&2C.Q(/^4g[A-Z]/))5.19(2C,5.l[2C])}}6 5}});f 7Y=G P({1h:7(){5.2s=$A(I);5.u={};5.2p={}},19:7(k,o){5.2p[k]=5.2p[k]||{};5.u[k]=5.u[k]||[];9(5.u[k].Q(o))6 L;R 5.u[k].11(o);5.2s.1c(7(2u,i){2u.19(k,5.5M.B(5,[k,2u,i]))},5);6 5},5M:7(k,2u,i){5.2p[k][i]=Y;f 2B=5.2s.2B(7(1w,j){6 5.2p[k][j]||L},5);9(!2B)6;5.2s.1c(7(1w,j){5.2p[k][j]=L},5);5.u[k].1c(7(n){n.1p(5,5.2s,2u)},5)}});O.H({19:7(k,o){9(k==\'2P\'){9(5.3j)o();R 9(!5.u||!5.u.2P){f 2E=7(){9(5.3j)6;5.3j=Y;9(5.1k)5.1k=$4l(5.1k);18.K.1s.1p(5,\'2P\');5.u.2P=1f}.B(5);9(C.2S&&5.2l){5.1k=7(){9([\'3j\',\'5E\'].Q(C.2S))2E()}.21(50)}R 9(C.2S&&5.1T){C.7T("<1P 7V=5G 7E 7r=4v:7A(0)><\\/1P>");$(\'5G\').4r=7(){9(5.2S==\'5E\')2E()}}R{5.19("7D",2E);C.19("8c",2E)}}}18.K.19.1p(5,k,o);6 5},8E:7(5t){6 5.19(\'2P\',5t)}});O.H({62:7(){9(5.2l)6 5.8s;9(5.3H)6 C.3f.5Q;6 C.1n.5Q},5X:7(){9(5.2l)6 5.8a;9(5.3H)6 C.3f.5y;6 C.1n.5y},5V:7(){9(5.1T)6 1B.2F(C.1n.3I,C.1n.33);9(5.2l)6 C.3f.33;6 C.1n.33},6a:7(){9(5.1T)6 1B.2F(C.1n.3K,C.1n.3a);9(5.2l)6 C.3f.3a;6 C.1n.3a},65:7(){6 5.61||C.1n.2H},5z:7(){6 5.5U||C.1n.2R},4X:7(){6{\'5T\':{\'x\':5.62(),\'y\':5.5X()},\'5S\':{\'x\':5.5V(),\'y\':5.6a()},\'68\':{\'x\':5.65(),\'y\':5.5z()}}},2I:7(){6{\'x\':0,\'y\':0}}});f W={};W.2a=G P({3z:7(){6{5s:P.1q,2k:P.1q,5w:P.1q,5H:W.5x.66,4q:8t,1Q:\'5D\',3m:Y,5L:50}},1h:7(l){5.T=5.T||1f;5.31(5.3z(),l);9(5.l.1h)5.l.1h.1p(5)},5O:7(){f 2c=G 5J().5K();9(2c<5.2c+5.l.4q){5.5F=2c-5.2c;5.3y();5.2A()}R{5.2v(Y);5.1b=5.r;5.2A();5.1s(\'2k\',5.T,10);5.4j()}},3q:7(r){5.1b=r;5.2A();6 5},3y:7(){5.1b=5.2t(5.q,5.r)},2t:7(q,r){6 5.l.5H(5.5F,q,(r-q),5.l.4q)},1i:7(q,r){9(!5.l.3m)5.2v();R 9(5.1k)6 5;5.q=q;5.r=r;5.2c=G 5J().5K();5.1k=5.5O.21(1B.4E(80/5.l.5L),5);5.1s(\'5s\',5.T);6 5},2v:7(3e){9(!5.1k)6 5;5.1k=$4l(5.1k);9(!3e)5.1s(\'5w\',5.T);6 5},7J:7(q,r){6 5.1i(q,r)},7I:7(3e){6 5.2v(3e)}});W.2a.1G(G 4s);W.2a.1G(G 4p);W.2a.1G(G 4i);W.5x={7K:7(t,b,c,d){6 c*t/d+b},66:7(t,b,c,d){6-c/2*(1B.81(1B.7W*t/d)-1)+b}};W.1J={2q:7(m,r){9(m.Q(/4R/i))6 5.4D;9(r.Q&&r.Q(\' \'))6 5.2Y;6 5.4w},1z:7(h,m,2m){9(!2m.11)2m=[2m];f q=2m[0],r=2m[1];9(!r&&r!=0){r=q;q=h.2e(m)}f 12=5.2q(m,r);6{q:12.1z(q),r:12.1z(r),12:12}}};W.1J.4w={1z:7(F){6 2y(F)},2w:7(q,r,2n){6 2n.2t(q,r)},1Z:7(F,1Q){6 F+1Q}};W.1J.2Y={1z:7(F){6 F.11?F:F.7s(\' \').4o(7(v){6 2y(v)})},2w:7(q,r,2n){f 1b=[];M(f i=0;i<q.N;i++)1b[i]=2n.2t(q[i],r[i]);6 1b},1Z:7(F,1Q){6 F.1D(1Q+\' \')+1Q}};W.1J.4D={1z:7(F){6 F.11?F:F.3l(Y)},2w:7(q,r,2n){f 1b=[];M(f i=0;i<q.N;i++)1b[i]=1B.4E(2n.2t(q[i],r[i]));6 1b},1Z:7(F){6\'1u(\'+F.1D(\',\')+\')\'}};W.5g=W.2a.H({1h:7(h,m,l){5.T=$(h);5.m=m;5.1K(l)},8A:7(){6 5.3q(0)},3y:7(){5.1b=5.12.2w(5.q,5.r,5)},3q:7(r){5.12=W.1J.2q(5.m,r);6 5.1K(5.12.1z(r))},1i:7(q,r){9(5.1k&&5.l.3m)6 5;f 1x=W.1J.1z(5.T,5.m,[q,r]);5.12=1x.12;6 5.1K(1x.q,1x.r)},2A:7(){5.T.3t(5.m,5.12.1Z(5.1b,5.l.1Q))}});18.H({8C:7(m,l){6 G W.5g(5,m,l)}});W.5e=W.2a.H({1h:7(h,l){5.T=$(h);5.1K(l)},3y:7(){M(f p 17 5.q)5.1b[p]=5.12[p].2w(5.q[p],5.r[p],5)},3q:7(r){f 1x={};5.12={};M(f p 17 r){5.12[p]=W.1J.2q(p,r[p]);1x[p]=5.12[p].1z(r[p])}6 5.1K(1x)},1i:7(J){9(5.1k&&5.l.3m)6 5;5.1b={};5.12={};f q={},r={};M(f p 17 J){f 1x=W.1J.1z(5.T,p,J[p]);q[p]=1x.q;r[p]=1x.r;5.12[p]=1x.12}6 5.1K(q,r)},2A:7(){M(f p 17 5.1b)5.T.3t(p,5.12[p].1Z(5.1b[p],5.l.1Q))}});18.H({8z:7(l){6 G W.5e(5,l)}});f 2Q=G P({3z:7(){6{1O:\'25\',5a:Y,55:P.1q,3r:P.1q,2G:P.1q,3w:P.1q,1W:{},3x:5.3x}},1h:7(l){5.1j=O.3i?G 3i():(O.1T?G 5c(\'8y.8u\'):L);5.31(5.3z(),l);9(!5.1j)6;5.1W={};9(5.l.1h)5.l.1h.1p(5)},3r:7(){5.1s(\'3r\',5.1j);9(5.1j.2S!=4)6;f 1S=0;4k{1S=5.1j.1S}4h(e){}9(5.l.3x(1S))5.2G();R 5.3w();5.1j.4r=P.1q},3x:7(1S){6((1S>=8e)&&(1S<7h))},2G:7(){5.1L={\'1a\':5.1j.86,\'2L\':5.1j.87};5.1s(\'2G\',[5.1L.1a,5.1L.2L]);5.4j()},3w:7(){5.1s(\'3w\',5.1j)},2N:7(1e,F){5.1W[1e]=F;6 5},3h:7(2r,1y){5.1s(\'55\');5.1j.8h(5.l.1O,2r,5.l.5a);5.1j.4r=5.3r.B(5);9((5.l.1O==\'25\')&&5.1j.8j)5.2N(\'8k\',\'7m\');1g.H(5.1W,5.l.1W);M(f k 17 5.1W)5.1j.6f(k,5.1W[k]);5.1j.3h(1y);6 5}});2Q.1G(G 4s);2Q.1G(G 4p);2Q.1G(G 4i);f 6b=2Q.H({4Z:7(){6{29:1f,4n:1f,2k:P.1q,3C:L,4H:L,2J:\'6v-8\'}},1h:7(2r,l){5.19(\'2G\',5.2k);5.31(5.4Z(),l);5.1K(5.l);9(![\'25\',\'6j\'].Q(5.l.1O)){5.2K=\'2K=\'+5.l.1O;5.l.1O=\'25\'}9(5.l.1O==\'25\'){f 2J=(5.l.2J)?\'; 6d=\'+5.l.2J:\'\';5.2N(\'73-k\',\'4G/x-71-6W-7b\'+2J)}5.2N(\'X-6G-6H\',\'3i\');5.2N(\'6I\',\'1a/4v, 1a/6D, 4G/2L, 1a/2L, */*\');5.2r=2r},2k:7(){9(5.l.4n)$(5.l.4n).4S(5.1L.1a);9(5.l.4H)5Y(5.1L.1a);9(5.l.3C)5.3C.1A(30,5);5.1s(\'2k\',[5.1L.1a,5.1L.2L],20)},5W:7(){f 1y=1f;1F($k(5.l.29)){U\'T\':1y=$(5.l.29).2h();1r;U\'2X\':1y=1g.2h(5.l.29);1r;U\'2i\':1y=5.l.29}9(5.2K)1y=(1y)?[5.2K,1y].1D(\'&\'):5.2K;6 5.3h(5.2r,1y)},3C:7(){f 1P,5d=/<1P[^>]*>([\\s\\S]*?)<\\/1P>/6L;22((1P=5d.6Z(5.1L.1a)))5Y(1P[1])}});1g.2h=7(1d){f 4m=[];M(f m 17 1d)4m.11(5R(m)+\'=\'+5R(1d[m]));6 4m.1D(\'&\')};18.H({3h:7(l){l=1g.H(l||{},{29:5.2h(),1O:\'25\'});6 G 6b(5.69(\'6A\'),l).5W()},5r:7(){f J={};$$(5.2Z(\'5C\'),5.2Z(\'2q\'),5.2Z(\'5A\')).1c(7(h){f 1e=$(h).1e;f F=h.1Z();9((F!==L)&&1e)J[1e]=F});6 J},2h:7(){6 1g.2h(5.5r())}});',62,545,'|||||this|return|function||if||||||var||el|||type|options|property|event|fn||from|to|||events|||||||bind|document||args|value|new|extend|arguments|obj|prototype|false|for|length|window|Class|test|else||element|case|style|Fx||true|||push|css||Array|className||in|Element|addEvent|text|now|each|source|name|null|Object|initialize|start|transport|timer|keys|array|documentElement|properties|call|empty|break|fireEvent|opacity|rgb|elements|current|parsed|data|parse|delay|Math|create|join|match|switch|implement|previous|parentNode|CSS|parent|response|left|returns|method|script|unit|hex|status|ie|top|Garbage|headers|selector|chains|getValue||periodical|while|overflown|item|post|removeEvents||newArray|postBody|Base|results|time|Elements|getStyle|replace|apply|toQueryString|string|removeEvent|onComplete|khtml|fromTo|fx|key|checker|select|url|instances|compute|instance|stop|getNow|Event|parseFloat|target|increase|every|option|toLowerCase|domReady|max|onSuccess|scrollLeft|getPosition|encoding|_method|xml|items|setHeader|HTMLElement|domready|XHR|scrollTop|readyState|appendChild|inject|getTag|relatedTarget|object|Multi|getElementsByTagName||setOptions||scrollWidth|visibility|stopPropagation|preventDefault||||scrollHeight|ms|attempt|forEach|end|body|klass|send|XMLHttpRequest|loaded|min|hexToRgb|wait|bit|pos|pr0t0typ3|set|onStateChange|setProperty|setStyle|attribute|whitespace|onFailure|isSuccess|setNow|getOptions|regex|chk|evalScripts|collect|currentStyle|rgbToHex|indexOf|opera|offsetWidth|remove|offsetHeight|what|camelCase|filter|gecko|values|getNext|splice|hasClass|clean|charAt|typeof|parseInt|htmlElement|Native|getBrother||ie6|code|String|pageX|pageY||right|mousewheel|DOMMouseScroll|hidden|opt|position|width|height|Function|on|catch|Options|callChain|try|clear|queryString|update|map|Events|duration|onreadystatechange|Chain|120|wheelDelta|javascript|Single|Sibling|where|after|inside|before|insertBefore|Color|round|_elements_extended_|application|evalResponse|removeEventListener|err|toFloat|Number|toInt|which|_element_extended_|evType|getElementsBySelector|color|setHTML|clientY|nodeType|trash|replaceWith|getSize|default|moreOptions||tagName|class|createElement|defaultView|onRequest|addEventListener|hyphenate|childNodes|setStyles|async|selectedIndex|ActiveXObject|regexp|Styles|contents|Style|bottom|RegExp|setOpacity|visible|cssText|addClass|removeClass|capitalize|clientX|noinit|toObject|onStart|init|parentize|defaults|onCancel|Transitions|clientHeight|getScrollTop|textarea|picked|input|px|complete|cTime|ie_ready|transition|random|Date|getTime|fps|check|undefined|step|shift|clientWidth|encodeURIComponent|scrollSize|size|pageYOffset|getScrollWidth|request|getHeight|eval|toUpperCase|params|pageXOffset|getWidth|trim|iterable|getScrollLeft|sineInOut|some|scroll|getProperty|getScrollHeight|Ajax|copy|charset|hasLayout|setRequestHeader|textnode|nodeValue|zoom|get|pick|margin|getComputedStyle|attachEvent|getPropertyValue|offset|auto|padding|addEvents|nodeName|100|utf|Window|alpha|clearInterval|BackgroundImageCache|action|detachEvent|associate|html|execCommand|getBoxObjectFor|Requested|With|Accept|embed|getElementById|gi|toString|transparent|slice|concat|setTimeout|bindAsEventListener|pass|setInterval|taintEnabled|injectBefore|form|styleSheet|appendText|exec|createTextNode|www|clearTimeout|Content|toggleClass|replaceChild|cloneNode|injectInside|all|injectAfter|navigator|urlencoded|adopt|clone|ie7|removeChild|floor|300|client|page|click|mouse|close|rightClick|fromElement|mouseover|button|src|split|fromCharCode|meta|altKey|alt|control|metaKey|wheel|void|keyCode|detail|load|defer|mouseout|chain|clearChain|clearTimer|custom|linear|bindWithEvent|esc|space|backspace|delete|down|up|cancelBubble|write|toElement|id|PI|returnValue|Group|enter|1000|cos|shiftKey|ctrlKey|attributes|setAttribute|responseText|responseXML|getChildren|setProperties|innerHeight|getAttribute|DOMContentLoaded|innerHTML|200|getParent|previousSibling|open|getPrevious|overrideMimeType|Connection|next|getFirst|lastChild|getLast|nextSibling|firstChild|scrollTo|innerWidth|500|XMLHTTP|getCoordinates|checked|getTop|Microsoft|effects|hide|srcElement|effect|unload|onDomReady|getLeft|radio|password|do|offsetLeft|offsetParent|checkbox|offsetTop'.split('|'),0,{}));

//MOOdalBox, Copyright (c) 2007 Razvan Brates, <http://e-magine.ro/moodalbox>, MIT Style License.
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('7 20="2W.. 2u 2v a 35 2w 2O 1P.<11 /><11 />"+"2x 36 2z.<11 /><11 />"+"<1v>2A 2j 2C O.</1v>";7 1G=18;7 1H=1y;7 1I=1y;7 21=12;7 1J=18;7 1Z=12;7 1K=18;7 1X=2c;7 1W=H;7 1M=H;7 1p={2a:h(d){6.d=2F.1w({22:1G,1k:1H,1Q:1I,1b:21,1q:1J,1D:1Z,1N:1K,1B:1X,1h:1W,1r:1M},d||{});6.1O=[];$A($$(\'a\')).1x(h(m){D(m.N&&m.L&&m.N.2H(\'^2U\',\'i\')){m.z=6.28.1C(m,6);6.1O.2J(m)}},6);6.1S=6.1T.2K(6);6.1f=6.19.y(6);6.E=n p(\'B\').J(\'v\',\'2L\').q(17.1j);6.b=n p(\'B\').J(\'v\',\'2M\').t({R:6.d.1k+\'j\',C:6.d.1Q+\'j\',W:\'-\'+(6.d.1k/2)+\'j\',u:\'14\'}).q(17.1j);6.e=n p(\'B\').J(\'v\',\'2P\').q(6.b);6.c=n p(\'B\').J(\'v\',\'2Q\').F(\'u\',\'14\').q(17.1j);6.1R=n p(\'a\').2S({v:\'2T\',L:\'#\'}).q(6.c);6.26=n p(\'B\').J(\'v\',\'2V\').q(6.c);n p(\'B\').F(\'2X\',\'2Y\').q(6.c);6.1U=n p(\'B\').J(\'v\',\'30\').1e(20);6.1R.z=6.E.z=6.O.y(6);7 l=6.l.y(6);6.k={E:6.E.23(\'S\',{16:12}).1E(),Z:6.b.25({16:6.d.22,10:l}),e:6.e.23(\'S\',{16:12,10:l}),c:6.c.25({16:18,10:l})};6.1L=32.34},28:h(V){I 6.M(V.L,V.1o,V.N)},M:h(1a,29,2b){6.L=1a;6.1o=29;6.N=2b;6.19();6.1g(2c);6.K=Q.1t()+(Q.1u()/15);6.b.t({K:6.K+\'j\',u:\'\'});6.k.E.G(0.8);I 6.1A(1a)},19:h(){6.E.t({K:Q.1t()+\'j\',C:Q.1u()+\'j\'})},1g:h(M){7 1c=$A($$(\'2e\'));1c.1w($$(1z.2f?\'2g\':\'2h\'));1c.1x(h(m){m.T.2k=M?\'2l\':\'\'});7 X=M?\'2n\':\'2o\';1z[X](\'2p\',6.1f)[X](\'Z\',6.1f);17[X](\'2q\',6.1S);6.o=0},1A:h(){D(6.o)I H;6.o=1;7 r=6.N.2s(/[0-9]+/g);6.d.1b=(r&&(r[0]>0))?r[0]:6.d.1D;6.d.1q=(r&&(r[1]>0))?r[1]:6.d.1N;6.c.t({S:\'0\',C:\'2y\',u:\'14\'});6.b.1l=\'27\';6.k.e.1E();7 l=6.l.y(6);7 13=6.13.y(6);7 2d={2B:\'2D\',2E:6.e,1h:6.d.1h,1r:6.d.1r,10:l,2G:13};6.1L=n 2I(6.L,2d).1P();I H},13:h(){6.e.1e(\'\');6.1U.2R().q(6.e);6.l();6.b.F(\'U\',\'1Y\');6.c.F(\'U\',\'1Y\');6.b.z=6.c.z=6.O.y(6)},l:h(){2Z(6.o++){P 1:6.b.1l=\'\';6.b.F(\'U\',\'24\');6.c.F(\'U\',\'24\');6.b.z=6.c.z=\'\';6.26.1e(6.1o);6.e.t({R:6.d.1b+"j",C:6.d.1q+"j"});D(6.b.1d!=6.e.1s){6.k.Z.G({C:[6.b.1d,6.e.1s]});Y}6.o++;P 2:D(6.b.1n!=6.e.1m){6.k.Z.G({R:[6.b.1n,6.e.1m],W:[-6.b.1n/2,-6.e.1m/2]});Y}6.o++;P 3:6.c.t({K:(6.K+6.b.1d)+\'j\',R:6.e.T.R,W:6.b.T.W,u:\'\'});6.k.e.G(0,1);Y;P 4:D(6.d.1B){6.k.c.G({S:[0,1],C:[0,6.c.1F]});Y}6.c.t({S:\'1\',C:6.c.1F+\'j\'});P 5:6.o=0}},1T:h(s){D((s.1V&&s.1i==\'w\')||(s.1V&&s.1i==\'x\')||(s.1i==\'31\')){6.O();s.33()}},O:h(){D(6.o<0)I;6.o=-1;2m(7 f 2r 6.k)6.k[f].2t();6.b.T.u=6.c.T.u=\'14\';6.b.1l=\'27\';6.k.E.2i(6.1g.1C(H,6)).G(0);I H}};Q.2N(1p.2a.y(1p));',62,193,'||||||this|var||||center|bottom|options|contents|||function||px|fx|nextEffect|el|new|step|Element|injectInside|aDim|event|setStyles|display|id|||bind|onclick||div|height|if|overlay|setStyle|custom|false|return|setProperty|top|href|open|rel|close|case|Window|width|opacity|style|cursor|link|marginLeft|fn|break|resize|onComplete|br|500|ajaxFailure|none||duration|document|400|position|sLinkHref|contentsWidth|elements|clientHeight|setHTML|eventPosition|setup|evalScripts|key|body|initialWidth|className|offsetWidth|clientWidth|title|MOOdalBox|contentsHeight|evalResponse|offsetHeight|getScrollTop|getHeight|em|extend|each|250|window|loadContents|animateCaption|pass|defContentsWidth|hide|scrollHeight|_RESIZE_DURATION|_INITIAL_WIDTH|_INITIAL_HEIGHT|_CONTENTS_HEIGHT|_DEF_CONTENTS_HEIGHT|ajaxRequest|_EVAL_RESPONSE|defContentsHeight|anchors|request|initialHeight|closelink|eventKeyDown|keyboardListener|error|control|_EVAL_SCRIPTS|_ANIMATE_CAPTION|pointer|_DEF_CONTENTS_WIDTH|_ERROR_MESSAGE|_CONTENTS_WIDTH|resizeDuration|effect|default|effects|caption|mb_loading|click|sLinkTitle|init|sLinkRel|true|ajaxOptions|object|ActiveXObject|select|embed|chain|anywhere|visibility|hidden|for|addEvent|removeEvent|scroll|keydown|in|match|clearTimer|there|was|with|Please|0px|again|Click|method|to|get|update|Object|onFailure|test|Ajax|push|bindWithEvent|mb_overlay|mb_center|onDomReady|your|mb_contents|mb_bottom|clone|setProperties|mb_close_link|moodalbox|mb_caption|Oops|clear|both|switch|mb_error|esc|Class|stop|empty|problem|try'.split('|'),0,{}));



function _MaskAPI(){
	this.version = "0.4b";
	this.instances = 0;
	this.objects = {};
}
MaskAPI = new _MaskAPI();

function Mask(m, t){
	this.mask = m;
	this.type = (typeof t == "string") ? t : "string";
	this.error = [];
	this.errorCodes = [];
	this.value = "";
	this.strippedValue = "";
	this.allowPartial = false;
	this.id = MaskAPI.instances++;
	this.ref = "MaskAPI.objects['" + this.id + "']";
	MaskAPI.objects[this.id] = this;
}

// define the attach(oElement) function
Mask.prototype.attach = function (o){
	$addEvent(o, "onkeydown", "return " + this.ref + ".isAllowKeyPress(event, this);", true);
	$addEvent(o, "onkeyup", "return " + this.ref + ".getKeyPress(event, this);", true);
	$addEvent(o, "onblur", "this.value = " + this.ref + ".format(this.value);", true);
}

Mask.prototype.isAllowKeyPress = function (e, o){
	if( this.type != "string" ) return true;
	var xe = new qEvent(e);
	if( ((xe.keyCode > 47) && (o.value.length >= this.mask.length)) && !xe.ctrlKey ) return false;
	return true;
}

Mask.prototype.getKeyPress = function (e, o, _u){
	this.allowPartial = true;
	var xe = new qEvent(e);

//	var k = String.fromCharCode(xe.keyCode);

	if( (xe.keyCode > 47) || (_u == true) || (xe.keyCode == 8 || xe.keyCode == 46) ){
		var v = o.value, d;
		if( xe.keyCode == 8 || xe.keyCode == 46 ) d = true;
		else d = false

		if( this.type == "number" ) this.value = this.setNumber(v, d);
		else if( this.type == "date" ) this.value = this.setDateKeyPress(v, d);
		else this.value = this.setGeneric(v, d);

		o.value = this.value;
	}
	/* */

	this.allowPartial = false;
	return true;
}

Mask.prototype.format = function (s){
	if( this.type == "number" ) this.value = this.setNumber(s);
	else if( this.type == "date" ) this.value = this.setDate(s);
	else this.value = this.setGeneric(s);
	return this.value;
}

Mask.prototype.throwError = function (c, e, v){
	this.error[this.error.length] = e;
	this.errorCodes[this.errorCodes.length] = c;
	if( typeof v == "string" ) return v;
	return true;
}

Mask.prototype.setGeneric = function (_v, _d){
	var v = _v, m = this.mask;
	var r = "x#*", rt = [], nv = "", t, x, a = [], j=0, rx = {"x": "A-Za-z", "#": "0-9", "*": "A-Za-z0-9" };

	// strip out invalid characters
	v = v.replace(new RegExp("[^" + rx["*"] + "]", "gi"), "");
	if( (_d == true) && (v.length == this.strippedValue.length) ) v = v.substring(0, v.length-1);
	this.strippedValue = v;
	var b=[];
	for( var i=0; i < m.length; i++ ){
		// grab the current character
		x = m.charAt(i);
		// check to see if current character is a mask, escape commands are not a mask character
		t = (r.indexOf(x) > -1);
		// if the current character is an escape command, then grab the next character
		if( x == "!" ) x = m.charAt(i++);
		// build a regex to test against
		if( (t && !this.allowPartial) || (t && this.allowPartial && (rt.length < v.length)) ) rt[rt.length] = "[" + rx[x] + "]";
		// build mask definition table
		a[a.length] = { "chr": x, "mask": t };
	}

	var hasOneValidChar = false;
	// if the regex fails, return an error
	if( !this.allowPartial && !(new RegExp(rt.join(""))).test(v) ) return this.throwError(1, "The value \"" + _v + "\" must be in the format " + this.mask + ".", _v);
	// loop through the mask definition, and build the formatted string
	else if( (this.allowPartial && (v.length > 0)) || !this.allowPartial ){
		for( i=0; i < a.length; i++ ){
			if( a[i].mask ){
				while( v.length > 0 && !(new RegExp(rt[j])).test(v.charAt(j)) ) v = (v.length == 1) ? "" : v.substring(1);
				if( v.length > 0 ){
					nv += v.charAt(j);
					hasOneValidChar = true;
				}
				j++;
			} else nv += a[i].chr;
			if( this.allowPartial && (j > v.length) ) break;
		}
	}
	
	if( this.allowPartial && !hasOneValidChar ) nv = "";
	if( this.allowPartial ){
		if( nv.length < a.length ) this.nextValidChar = rx[a[nv.length].chr];
		else this.nextValidChar = null;
	}

	return nv;
}

Mask.prototype.setNumber = function(_v, _d){
	var v = String(_v).replace(/[^\d.-]*/gi, ""), m = this.mask;
	// make sure there's only one decimal point
	v = v.replace(/\./, "d").replace(/\./g, "").replace(/d/, ".");

	// check to see if an invalid mask operation has been entered
	if( !/^[\$]?((\$?[\+-]?([0#]{1,3},)?[0#]*(\.[0#]*)?)|([\+-]?\([\+-]?([0#]{1,3},)?[0#]*(\.[0#]*)?\)))$/.test(m) )
		return this.throwError(1, "An invalid mask was specified for the \nMask constructor.", _v);

	if( (_d == true) && (v.length == this.strippedValue.length) ) v = v.substring(0, v.length-1);

	if( this.allowPartial && (v.replace(/[^0-9]/, "").length == 0) ) return v;
	this.strippedValue = v;

	if( v.length == 0 ) v = NaN;
	var vn = Number(v);
	if( isNaN(vn) ) return this.throwError(2, "The value entered was not a number.", _v);

	// if no mask, stop processing
	if( m.length == 0 ) return v;

	// get the value before the decimal point
	var vi = String(Math.abs((v.indexOf(".") > -1 ) ? v.split(".")[0] : v));
	// get the value after the decimal point
	var vd = (v.indexOf(".") > -1) ? v.split(".")[1] : "";
	var _vd = vd;

	var isNegative = (vn != 0 && Math.abs(vn)*-1 == vn);

	// check for masking operations
	var show = {
		"$" : /^[\$]/.test(m),
		"(": (isNegative && (m.indexOf("(") > -1)),
		"+" : ( (m.indexOf("+") != -1) && !isNegative )
	}
	show["-"] = (isNegative && (!show["("] || (m.indexOf("-") != -1)));


	// replace all non-place holders from the mask
	m = m.replace(/[^#0.,]*/gi, "");

	/*
		make sure there are the correct number of decimal places
	*/
	// get number of digits after decimal point in mask
	var dm = (m.indexOf(".") > -1 ) ? m.split(".")[1] : "";
	if( dm.length == 0 ){
		vi = String(Math.round(Number(vi)));
		vd = "";
	} else {
		// find the last zero, which indicates the minimum number
		// of decimal places to show
		var md = dm.lastIndexOf("0")+1;
		// if the number of decimal places is greater than the mask, then round off
		if( vd.length > dm.length ) vd = String(Math.round(Number(vd.substring(0, dm.length + 1))/10));
		// otherwise, pad the string w/the required zeros
		else while( vd.length < md ) vd += "0";
	}

	/*
		pad the int with any necessary zeros
	*/
	// get number of digits before decimal point in mask
	var im = (m.indexOf(".") > -1 ) ? m.split(".")[0] : m;
	im = im.replace(/[^0#]+/gi, "");
	// find the first zero, which indicates the minimum length
	// that the value must be padded w/zeros
	var mv = im.indexOf("0")+1;
	// if there is a zero found, make sure it's padded
	if( mv > 0 ){
		mv = im.length - mv + 1;
		while( vi.length < mv ) vi = "0" + vi;
	}


	/*
		check to see if we need commas in the thousands place holder
	*/
	if( /[#0]+,[#0]{3}/.test(m) ){
		// add the commas as the place holder
		var x = [], i=0, n=Number(vi);
		while( n > 999 ){
			x[i] = "00" + String(n%1000);
			x[i] = x[i].substring(x[i].length - 3);
			n = Math.floor(n/1000);
			i++;
		}
		x[i] = String(n%1000);
		vi = x.reverse().join(",");
	}


	/*
		combine the new value together
	*/
	if( (vd.length > 0 && !this.allowPartial) || ((dm.length > 0) && this.allowPartial && (v.indexOf(".") > -1) && (_vd.length >= vd.length)) ){
		v = vi + "." + vd;
	} else if( (dm.length > 0) && this.allowPartial && (v.indexOf(".") > -1) && (_vd.length < vd.length) ){
		v = vi + "." + _vd;
	} else {
		v = vi;
	}

	if( show["$"] ) v = this.mask.replace(/(^[\$])(.+)/gi, "$") + v;
	if( show["+"] ) v = "+" + v;
	if( show["-"] ) v = "-" + v;
	if( show["("] ) v = "(" + v + ")";
	return v;
}

Mask.prototype.setDate = function (_v){
	var v = _v, m = this.mask;
	var a, e, mm, dd, yy, x, s;

	// split mask into array, to see position of each day, month & year
	a = m.split(/[^mdy]+/);
	// split mask into array, to get delimiters
	s = m.split(/[mdy]+/);
	// convert the string into an array in which digits are together
	e = v.split(/[^0-9]/);
	
	if( s[0].length == 0 ) s.splice(0, 1);

	for( var i=0; i < a.length; i++ ){
		x = a[i].charAt(0).toLowerCase();
		if( x == "m" ) mm = parseInt(e[i], 10)-1;
		else if( x == "d" ) dd = parseInt(e[i], 10);
		else if( x == "y" ) yy = parseInt(e[i], 10);
	}

	// if year is abbreviated, guess at the year
	if( String(yy).length < 3 ){
		yy = 2000 + yy;
		if( (new Date()).getFullYear()+5 < yy ) yy = yy - 100;
	}

	// create date object
	var d = new Date(yy, mm, dd);

	if( d.getDate() != dd ) return this.throwError(1, "An invalid day was entered.", _v);
	else if( d.getMonth() != mm ) return this.throwError(2, "An invalid month was entered.", _v);

	var nv = "";

	for( i=0; i < a.length; i++ ){
		x = a[i].charAt(0).toLowerCase();
		if( x == "m" ){
			mm++;
			if( a[i].length == 2 ){
				mm = "0" + mm;
				mm = mm.substring(mm.length-2);
			}
			nv += mm;
		} else if( x == "d" ){
			if( a[i].length == 2 ){
				dd = "0" + dd;
				dd = dd.substring(dd.length-2);
			}
			nv += dd;
		} else if( x == "y" ){
			if( a[i].length == 2 ) nv += d.getYear();
			else nv += d.getFullYear();
		}

		if( i < a.length-1 ) nv += s[i];
	}

	return nv;
}

Mask.prototype.setDateKeyPress = function (_v, _d){
	var v = _v, m = this.mask, k = v.charAt(v.length-1);
	var a, e, c, ml, vl, mm = "", dd = "", yy = "", x, p, z;

	if( _d == true ){
		while( (/[^0-9]/gi).test(v.charAt(v.length-1)) ) v = v.substring(0, v.length-1);
		if( (/[^0-9]/gi).test(this.strippedValue.charAt(this.strippedValue.length-1)) ) v = v.substring(0, v.length-1);
		if( v.length == 0 ) return "";
	}

	// split mask into array, to see position of each day, month & year
	a = m.split(/[^mdy]/);
	// split mask into array, to get delimiters
	s = m.split(/[mdy]+/);
	// mozilla wants to add an empty array element which needs removed
	if( s[0].length == 0 ) s.splice(0,1);
	// convert the string into an array in which digits are together
	e = v.split(/[^0-9]/);
	// position in mask
	p = (e.length > 0) ? e.length-1 : 0;
	// determine what mask value the user is currently entering
	c = a[p].charAt(0);
	// determine the length of the current mask value
	ml = a[p].length;

	for( var i=0; i < e.length; i++ ){
		x = a[i].charAt(0).toLowerCase();
		if( x == "m" ) mm = parseInt(e[i], 10)-1;
		else if( x == "d" ) dd = parseInt(e[i], 10);
		else if( x == "y" ) yy = parseInt(e[i], 10);
	}
	
	
	var nv = "";
	var j=0;

	for( i=0; i < e.length; i++ ){
		x = a[i].charAt(0).toLowerCase();
	
		if( x == "m" ){
			z = ((/[^0-9]/).test(k) && c == "m");
			mm++;
			if( (e[i].length == 2 && mm < 10) || (a[i].length == 2 && c != "m") || (mm > 1 && c == "m") || (z && a[i].length == 2) ){
				mm = "0" + mm;
				mm = mm.substring(mm.length-2);
			}
			vl = String(mm).length;
			ml = 2;
			nv += mm;
		} else if( x == "d" ){
			z = ((/[^0-9]/).test(k) && c == "d");
			if( (e[i].length == 2 && dd < 10) || (a[i].length == 2 && c != "d") || (dd > 3 && c == "d") || (z && a[i].length == 2) ){
				dd = "0" + dd;
				dd = dd.substring(dd.length-2);
			}
			vl = String(dd).length;
			ml = 2;
			nv += dd;
		} else if( x == "y" ){
			z = ((/[^0-9]/).test(k) && c == "y");
			if( c == "y" ) yy = String(yy);
			else {
				if( a[i].length == 2 ) yy = d.getYear();
				else yy = d.getFullYear();
			}
			if( (e[i].length == 2 && yy < 10) || (a[i].length == 2 && c != "y") || (z && a[i].length == 2) ){
				yy = "0" + yy;
				yy = yy.substring(yy.length-2);
			}
			ml = a[i].length;
			vl = String(yy).length;
			nv += yy;
		}

		if( ((ml == vl || z) && (x == c) && (i < s.length)) || (i < s.length && x != c ) ) nv += s[i];
	}

	if( nv.length > m.length ) nv = nv.substring(0, m.length);

	this.strippedValue = (nv == "NaN") ? "" : nv;

	return this.strippedValue;
}

function qEvent(e){
	// routine for NS, Opera, etc DOM browsers
	if( window.Event ){
		var isKeyPress = (e.type.substring(0,3) == "key");

		this.keyCode = (isKeyPress) ? parseInt(e.which, 10) : 0;
		this.button = (!isKeyPress) ? parseInt(e.which, 10) : 0;
		this.srcElement = e.target;
		this.type = e.type;
		this.x = e.pageX;
		this.y = e.pageY;
		this.screenX = e.screenX;
		this.screenY = e.screenY;
		if( document.layers ){
			this.altKey = ((e.modifiers & Event.ALT_MASK) > 0);
			this.ctrlKey = ((e.modifiers & Event.CONTROL_MASK) > 0);
			this.shiftKey = ((e.modifiers & Event.SHIFT_MASK) > 0);
			this.keyCode = this.translateKeyCode(this.keyCode);
		} else {
			this.altKey = e.altKey;
			this.ctrlKey = e.ctrlKey;
			this.shiftKey = e.shiftKey;
		}
	// routine for Internet Explorer DOM browsers
	} else {
		e = window.event;
		this.keyCode = parseInt(e.keyCode, 10);
		this.button = e.button;
		this.srcElement = e.srcElement;
		this.type = e.type;
		if( document.all ){
			this.x = e.clientX + document.body.scrollLeft;
			this.y = e.clientY + document.body.scrollTop;
		} else {
			this.x = e.clientX;
			this.y = e.clientY;
		}
		this.screenX = e.screenX;
		this.screenY = e.screenY;
		this.altKey = e.altKey;
		this.ctrlKey = e.ctrlKey;
		this.shiftKey = e.shiftKey;
	}
	if( this.button == 0 ){
		this.setKeyPressed(this.keyCode);
		this.keyChar = String.fromCharCode(this.keyCode);
	}
}

// this method will try to remap the keycodes so the keycode value
// returned will be consistent. this doesn't work for all cases,
// since some browsers don't always return a unique value for a
// key press.
qEvent.prototype.translateKeyCode = function (i){
	var l = {};
	// remap NS4 keycodes to IE/W3C keycodes
	if( !!document.layers ){
		if( this.keyCode > 96 && this.keyCode < 123 ) return this.keyCode - 32;
		l = {
			96:192,126:192,33:49,64:50,35:51,36:52,37:53,94:54,38:55,42:56,40:57,41:48,92:220,124:220,125:221,
			93:221,91:219,123:219,39:222,34:222,47:191,63:191,46:190,62:190,44:188,60:188,45:189,95:189,43:187,
			61:187,59:186,58:186,
			"null": null
		}
	}
	return (!!l[i]) ? l[i] : i;
}

// try to determine the actual value of the key pressed
qEvent.prototype.setKP = function (i, s){
	this.keyPressedCode = i;
	this.keyNonChar = (typeof s == "string");
	this.keyPressed = (this.keyNonChar) ? s : String.fromCharCode(i);
	this.isNumeric = (parseInt(this.keyPressed, 10) == this.keyPressed);
	this.isAlpha = ((this.keyCode > 64 && this.keyCode < 91) && !this.altKey && !this.ctrlKey);
	return true;
}

// try to determine the actual value of the key pressed
qEvent.prototype.setKeyPressed = function (i){
	var b = this.shiftKey;
	if( !b && (i > 64 && i < 91) ) return this.setKP(i + 32);
	if( i > 95 && i < 106 ) return this.setKP(i - 48);
	
	switch( i ){
		case 49: case 51: case 52: case 53: if( b ) i = i - 16; break;
		case 50: if( b ) i = 64; break;
		case 54: if( b ) i = 94; break;
		case 55: if( b ) i = 38; break;
		case 56: if( b ) i = 42; break;
		case 57: if( b ) i = 40; break;
		case 48: if( b ) i = 41; break;
		case 192: if( b ) i = 126; else i = 96; break;
		case 189: if( b ) i = 95; else i = 45; break;
		case 187: if( b ) i = 43; else i = 61; break;
		case 220: if( b ) i = 124; else i = 92; break;
		case 221: if( b ) i = 125; else i = 93; break;
		case 219: if( b ) i = 123; else i = 91; break;
		case 222: if( b ) i = 34; else i = 39; break;
		case 186: if( b ) i = 58; else i = 59; break;
		case 191: if( b ) i = 63; else i = 47; break;
		case 190: if( b ) i = 62; else i = 46; break;
		case 188: if( b ) i = 60; else i = 44; break;

		case 106: case 57379: i = 42; break;
		case 107: case 57380: i = 43; break;
		case 109: case 57381: i = 45; break;
		case 110: i = 46; break;
		case 111: case 57378: i = 47; break;

		case 8: return this.setKP(i, "[backspace]");
		case 9: return this.setKP(i, "[tab]");
		case 13: return this.setKP(i, "[enter]");
		case 16: case 57389: return this.setKP(i, "[shift]");
		case 17: case 57390: return this.setKP(i, "[ctrl]");
		case 18: case 57388: return this.setKP(i, "[alt]");
		case 19: case 57402: return this.setKP(i, "[break]");
		case 20: return this.setKP(i, "[capslock]");
		case 32: return this.setKP(i, "[space]");
		case 91: return this.setKP(i, "[windows]");
		case 93: return this.setKP(i, "[properties]");

		case 33: case 57371: return this.setKP(i*-1, "[pgup]");
		case 34: case 57372: return this.setKP(i*-1, "[pgdown]");
		case 35: case 57370: return this.setKP(i*-1, "[end]");
		case 36: case 57369: return this.setKP(i*-1, "[home]");
		case 37: case 57375: return this.setKP(i*-1, "[left]");
		case 38: case 57373: return this.setKP(i*-1, "[up]");
		case 39: case 57376: return this.setKP(i*-1, "[right]");
		case 40: case 57374: return this.setKP(i*-1, "[down]");
		case 45: case 57382: return this.setKP(i*-1, "[insert]");
		case 46: case 57383: return this.setKP(i*-1, "[delete]");
		case 144: case 57400: return this.setKP(i*-1, "[numlock]");
	}
	
	if( i > 111 && i < 124 ) return this.setKP(i*-1, "[f" + (i-111) + "]");

	return this.setKP(i);
}

// define the addEvent(oElement, sEvent, sCmd, bAppend) function
function $addEvent(o, _e, c, _b){
	var e = _e.toLowerCase(), b = (typeof _b == "boolean") ? _b : true, x = (o[e]) ? o[e].toString() : "";
	// strip out the body of the function
	x = x.substring(x.indexOf("{")+1, x.lastIndexOf("}"));
	x = ((b) ? (x + c) : (c + x)) + "\n";
	return o[e] = (!!window.Event) ? new Function("event", x) : new Function(x);
}
function init(){
	ocep=new Mask("#####-###");
	ocep.attach(document.getElementById("cep"));
	ocepc=new Mask("#####-###");
	ocepc.attach(document.getElementById("cepc"));
	otelefone=new Mask("(##) ####-####");
	otelefone.attach(document.getElementById("telefone"));
	ofax=new Mask("(##) ####-####");
	ofax.attach(document.getElementById("fax"));
	otelefonec=new Mask("(##) ####-####");
	otelefonec.attach(document.getElementById("telefonec"));
	ocelularc=new Mask("(##) ####-####");
	ocelularc.attach(document.getElementById("celularc"));
	quando1=new Mask("##/##/####");
	quando1.attach(document.getElementById("quando1"));
	quando2=new Mask("##:##");
	quando2.attach(document.getElementById("quando2"));
}
function rede(qual){
	var obj=document.getElementById("estado_"+qual);
	if(obj.style.display=="none"){
		obj.style.display="";
	}else{
		obj.style.display="none";
	}
}
