eval(function(p,a,c,k,e,r){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--)r[e(c)]=k[c]||e(c);k=[function(e){return r[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}('c=e(f,w,z,C){8 i;7(!f){f=18}7(!w){w=2}7(!z){z=0.1E}7(!C){C=17}4.f=f;4.w=w;4.z=z;4.C=C;4.19=s L(f);D(i=0;i<f;i++){4.19[i]=z*d.m(w,f-i-1)}};c.k.1s=e(6){8 E=0;8 H=[];8 t=s L(6.p);8 A,M,T,1F,1G,l;8 i,I,N;8 1a;7(6.p>2){H.J([0,6.p-1]);1b(H.p>0){l=H.1H();A=0;1a=d.m(6[l[1]].a()-6[l[0]].a(),2)+d.m(6[l[1]].b()-6[l[0]].b(),2);D(i=l[0]+1;i<l[1];i++){T=4.1t(6[i],6[l[0]],6[l[1]],1a);7(T>A){A=T;M=i;7(A>E){E=A}}}7(A>4.z){t[M]=A;H.J([l[0],M]);H.J([M,l[1]])}}}I=4.1u(6,t);N=4.1v(6,t,E);h{I:I,N:N,1I:I.1J(/\\\\/g,"\\\\\\\\")}};c.k.1c=e(6,q,v,r){8 U;7(!r){r=0.9}7(!v){v=3}7(!q){q="#1d"}U=4.1s(6);h{q:q,v:v,r:r,6:U.I,1K:U.N,f:4.f,w:4.w}};c.k.1L=e(6,q,v,r){7(!r){r=0.9}7(!v){v=3}7(!q){q="#1d"}h s 1M.1w(4.1c(6,q,v,r))};c.k.1N=e(1e,O,V,P,W,X,Q,R){8 i,Y;7(!O){O="#1d"}7(!V){V=3}7(!P){P=0.9}7(!W){W=O}7(!X){X=P/3}7(Q==Z){Q=17}7(R==Z){R=17}Y=s L(0);D(i=0;i<1e.p;i++){Y.J(4.1c(1e[i],O,V,P))}h s 1O.1w({1P:Y,q:W,r:X,Q:Q,R:R})};c.k.1t=e(n,j,o,1x){8 u,K;7(j.a()===o.a()&&j.b()===o.b()){K=d.10(d.m(o.a()-n.a(),2)+d.m(o.b()-n.b(),2))}1f{u=((n.a()-j.a())*(o.a()-j.a())+(n.b()-j.b())*(o.b()-j.b()))/1x;7(u<=0){K=d.10(d.m(n.a()-j.a(),2)+d.m(n.b()-j.b(),2))}7(u>=1){K=d.10(d.m(n.a()-o.a(),2)+d.m(n.b()-o.b(),2))}7(0<u&&u<1){K=d.10(d.m(n.a()-j.a()-u*(o.a()-j.a()),2)+d.m(n.b()-j.b()-u*(o.b()-j.b()),2))}}h K};c.k.1u=e(6,t){8 i,1g,1h;8 1i=0;8 1j=0;8 1k="";D(i=0;i<6.p;i++){7(t[i]!=Z||i==0||i==6.p-1){8 1l=6[i];8 a=1l.a();8 b=1l.b();8 1m=d.1y(a*1z);8 1n=d.1y(b*1z);1g=1m-1i;1h=1n-1j;1i=1m;1j=1n;1k+=4.1o(1g)+4.1o(1h)}}h 1k};c.k.11=e(1p){8 S;7(1p>4.z){S=0;1b(1p<4.19[S]){S++}h S}};c.k.1v=e(6,t,E){8 i;8 F="";7(4.C){F+=4.G(4.f-1)}1f{F+=4.G(4.f-4.11(E)-1)}D(i=1;i<6.p-1;i++){7(t[i]!=Z){F+=4.G(4.f-4.11(t[i])-1)}}7(4.C){F+=4.G(4.f-1)}1f{F+=4.G(4.f-4.11(E)-1)}h F};c.k.G=e(B){8 12="";8 1q,1r;1b(B>=1A){1q=(1A|(B&1Q))+1B;12+=(1C.1D(1q));B>>=5}1r=B+1B;12+=(1C.1D(1r));h 12};c.k.1o=e(B){8 13=B<<1;7(B<0){13=~(13)}h(4.G(13))};c.14=e(y,x){4.y=y;4.x=x};c.14.k.a=e(){h 4.y};c.14.k.b=e(){h 4.x};c.1R=e(6){8 i,15;15=s L(0);D(i=0;i<6.p;i++){15.J(s c.14(6[i][0],6[i][1]))}h 15};c.1S=e(6){8 i,16;16=s L(0);D(i=0;i<6.p;i++){16.J(s 1T(6[i][0],6[i][1]))}h 16};',62,118,'||||this||points|if|var||lat|lng|PolylineEncoder|Math|function|numLevels||return||p1|prototype|current|pow|p0|p2|length|color|opacity|new|dists||weight|zoomFactor|||verySmall|maxDist|num|forceEndpoints|for|absMaxDist|encoded_levels|encodeNumber|stack|encodedPoints|push|out|Array|maxLoc|encodedLevels|boundaryColor|boundaryOpacity|fill|outline|lev|temp|result|boundaryWeight|fillColor|fillOpacity|boundaries|undefined|sqrt|computeLevel|encodeString|sgn_num|latLng|latLngs|gLatLngs|true||zoomLevelBreaks|segmentLength|while|dpEncodeToJSON|0000ff|pointsArray|else|dlat|dlng|plat|plng|encoded_points|point|late5|lnge5|encodeSignedNumber|dd|nextValue|finalValue|dpEncode|distance|createEncodings|encodeLevels|fromEncoded|segLength|floor|1e5|0x20|63|String|fromCharCode|00001|first|last|pop|encodedPointsLiteral|replace|levels|dpEncodeToGPolyline|GPolyline|dpEncodeToGPolygon|GPolygon|polylines|0x1f|pointsToLatLngs|pointsToGLatLngs|GLatLng'.split('|'),0,{}));
eval(function(p,a,c,k,e,r){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--)r[e(c)]=k[c]||e(c);k=[function(e){return r[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}('q I=4 J({i:{K:"#19",L:3,9:J.1a},1b:h(i){1.z=4 A();1.M=4 A();1.B=0;1.1c(i);1.9=1.i.9.9;1.N=4 1d()},C:h(7,f,l,r,O,o,2){q 5=4 1e();6(o==0){5.a="b/8/x.c"}g{6(2>=P||2<Q){5.a="b/8/n.c"}g 6(2>=Q&&2<R){5.a="b/8/1f.c"}g 6(2>=R&&2<S){5.a="b/8/e.c"}g 6(2>=S&&2<T){5.a="b/8/1g.c"}g 6(2>=T&&2<U){5.a="b/8/s.c"}g 6(2>=U&&2<V){5.a="b/8/1h.c"}g 6(2>=V&&2<W){5.a="b/8/w.c"}g 6(2>=W&&2<P){5.a="b/8/1i.c"}}5.1j=4 1k(X,X);5.1l=4 Y(18,18);5.1m=4 Y(18,18);j=4 D(t(7),t(f));u=4 1n(j,{1o:l,8:5});6(1.B!=0&&O==Z){q E=4 1p([1.10,j],1.i.K,1.i.L);1.9.F(E);1.M.11(E)}1.B++;1.10=j;q 12=\'<14 v="1q">\'+\'<k v="1r">\'+r+\'</k>\'+\'<k v="1s">\'+o+\' 1t / \'+2+\'º</k>\'+\'<k v="1u">G:\'+l+\'</k>\'+\'</14>\';u.1v(12);1.9.F(u);1.z.11(u);1.9.1w(j);15 j},1x:h(16){1.H=4 A();1.d=16;1y(m=0;m<1.d.1z;m++){1.H[m]=4 D(t(1.d[m][\'7\']),t(1.d[m][\'f\']));1.C(1.d[m][\'7\'],1.d[m][\'f\'],1.d[m][\'1A\'],1.d[m][\'1B\']+" - "+1.d[m][\'1C\'],1D,1.d[m][\'1E\'],1.d[m][\'1F\'])}1.9.F(1.N.1G(1.H))},1H:h(7,f,l,r,o,2){1.C(7,f,l,r,Z,o,2)},1I:h(){15 1J},1K:h(G,7,f){1.z.1L(h(y){p=y.1M();6(y.1N()==G){6(p.7()==7&&p.17()==f){1.9.1O(4 D(p.7(),p.17()),13);1P.1Q(y,\'1R\')}}}.1S(1))}});I.1T(4 1U);',62,119,'|this|head||new|Icon|if|lat|icon|map|image|img|png|||lon|else|function|options|point|span|text|||speed|pos|var|comment||parseFloat|marker|class|||item|puntos|Array|pcont|addPointInternal|GLatLng|polyline|addOverlay|id|pline|mapper|Class|color|width|lines|encoder|wline|337|22|67|112|157|202|247|292|36|GPoint|true|last|push|myHtml||div|return|trayecto|lng||ff0000|empty|initialize|setOptions|PolylineEncoder|GIcon|ne|se|sw|nw|iconSize|GSize|iconAnchor|infoWindowAnchor|GMarker|title|GPolyline|balloon|balloonDate|balloonSpeed|KMH|balloonID|bindInfoWindowHtml|panTo|addTrayecto|for|length|psr|fecha|hora|false|velocidad|direccion|dpEncodeToGPolyline|addPoint|drawLine|42|openMarker|some|getLatLng|getTitle|setCenter|GEvent|trigger|click|bind|implement|Options'.split('|'),0,{}));
eval(function(p,a,c,k,e,r){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--)r[e(c)]=k[c]||e(c);k=[function(e){return r[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}('H I=J.K({8:{c:1,h:m.n,r:m.n,s:m.n,9:0,t:{u:\'L M N, O.\'}},P:a(8){6.Q(8);6.9=8.9;6.h=8.h;6.i=-1;6.j(8.s);6.c=8.c;6.d.v(6.c*w,6)},d:a(){R=$S()+$T(0,U);x.y.z(6.h+"?9="+6.9+"&V="+6.i,{W:e,X:e,d:\'k\',\'A\':f,B:a(){6.j($(\'k\').C)}.D(6)});b($E($(\'l\'))!=e&&$(\'l\').o==\'p\'){6.d.v(6.c*w,6)}},j:a(g,F){b(g=="0"){q}7=Y.Z(g,f);b(7==e){G(g);q}b($E(7)==e){G(g);q}b(6.i!=7[0]){6.i=7[0];6.10(7[1],7[2],7[0],7[3],7[4],7[5]);b(F==f){6.11(7[0],7[1],7[2])}}},12:a(){$(\'l\').o=\'13-p\';x.y.z(6.8.r+"?9="+6.9,{14:6.8.t.u,d:\'k\',A:\'f\',B:a(){6.j($(\'k\').C,f);$(\'l\').o=\'p\'}.D(6)})}});',62,67,'||||||this|pointy|options|did|function|if|refresh|update|false|true|pointj|url|lastid|add|helper|timerDiv|Class|empty|title|go|return|urlsms|first|lang|get_text|delay|1000|document|ajaxer|request|forget|onComplete|innerHTML|bind|type|open|alert|var|rtmapper|mapper|extend|Preguntando|al|dispositivo|espere|initialize|parent|dummy|time|random|100|lpid|loading|animation|Json|evaluate|addPoint|openMarker|get|no|loadingText'.split('|'),0,{}))
eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[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}('a 4=3 b({5:{7:\'c\',6:[]},d:e(5){2.f=3 8();2.g=3 8();2.h=0;2.i(5);2.4=3 j(k.l(2.5.7));2.4.m(3 n(2.5.6[0],2.5.6[1]),o);2.4.9(3 p());2.4.9(3 q());2.4.r()}});4.s(3 t);',30,30,'||this|new|map|options|center|mapDiv|Array|addControl|var|Class|gMap|initialize|function|puntos|lines|pcont|setOptions|GMap2|document|getElementById|setCenter|GLatLng|13|GSmallMapControl|GMapTypeControl|enableScrollWheelZoom|implement|Options'.split('|'),0,{}));
var useBar = new Class({
	options: {
		barSelector: ".fill",
		source: "checkbar.php",
		dataDiv: 'datdiv'
	},
	initialize: function(bar, options)
	{
		this.cont = $(bar);
		this.setOptions(options);
		this.bar = this.cont.getElement(this.options.barSelector);
		this.percent = 0;
		this.total = this.cont.getStyle('width').toInt();
		this.fx = this.bar.effect('width');
		this.timer = $empty;
		this.dat = new Element('div', {'id': this.options.dataDiv, 'style': {'display':'none'}});
		this.url = this.options.source;
		this.update();
		this.update.periodical(300000,this);
	},
	update: function()
	{
		document.ajaxer.request(this.url, {forget: true, update: this.dat, loading: false, onComplete: function() { this.set(this.dat.innerHTML)}.bind(this)});
	},
	set: function(responsetxt, responsexml)
	{
		val = responsetxt.toInt();
		this.percent = 100-val;
		val = this.toPercent(100-val);
		this.fx.start(val);
		//console.log(this.percent+"%");
		this.cont.title = this.percent+"%";
	},
	toPercent: function(num)
	{
		return (num*this.total)/100;
	}

});

useBar.implement(new Options);var notificador = new Class({
	options: {
		refresh: 50000,
		url: "notificaciones.get.php"
	},
	initialize: function(options) {
		this.setOptions(options);
		this.notifications = new Array(); 
		this.tgt = new Element('div');
		this.container = $('notificaciones');
		//console.log(options.refresh);
		this.get.periodical(this.options.refresh,this);
	},
	get: function()
	{
		myurl = this.options.url+"&old="+this.notifications.toString();
		new Json.Remote( myurl, {onComplete: this.refresh.bind(this)}).send();
	},
	refresh: function(data, txt)
	{
		//console.log('omg');
		//console.log(data);
		data.each(function(el){
			if(!this.notifications.contains(el['id']))
			{
				this.container.innerHTML+=el['html'];
				this.notifications.push(el['id']);
			}
		}.bind(this));
	}

});

notificador.implement(new Options());eval(function(p,a,c,k,e,r){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--)r[e(c)]=k[c]||e(c);k=[function(e){return r[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}('k N=7 16({17:5(a,8,18){3.g=8[\'g\'];x.y(3);3.c=19(8[\'c\']);3.l=19(8[\'l\']);3.d=8[\'d\'];3.a=a;3.q=18;3.z=8.q},A:5(){3.B();3.1a(7 t(3.c,3.l),3.d/1I,1J);3.a.1b(3.C)},B:5(){n($O(3.C)!=D){3.a.1c(3.C)}},P:5(E){3.B()},Q:5(E){3.c=E.c();3.l=E.u();3.A()},1a:5(h,d,1d,R,F,1e,G,1f){k 1g=h.1h(7 t(h.c()+0.1,h.u()))/1i;k 1j=h.1h(7 t(h.c(),h.u()+0.1))/1i;k v=[];k 1k=1l(1m/1d)||10;1K(k i=0;i<=1m;i+=1k){k 1n=7 t(h.c()+(d/1g*H.1L(i*H.1o/1p)),h.u()+(d/1j*H.1M(i*H.1o/1p)));v.w(1n)}v.w(v[0]);G=G||R||"#1N";F=F||2;3.C=7 1O(v,R,F,1e,G,1f)}});N.1q(7 1r);k 1s=7 16({9:{o:\'1P\',1t:1Q,j:\'1R\',1S:{g:\'1T:\',1U:\'1V\'},I:\'#1W\',J:\'#1X\',S:\'1Y\'},17:5(a,9){3.1Z(9);3.a=a.a;3.8=7 T();3.o=$(3.9.o);3.j=$(3.9.j);3.U=0;3.V=7 T();n($O(9.8)!=D){3.1u(9.8)}},1u:5(1v){1v.K(5(b){3.W(b)}.m(3))},W:5(8){4=7 N(3.a,8,3.U);6=7 20(7 t(4.c,4.l),{21:1w});6.4=4;x.y(6);3.a.1b(6);4.A();3.8.w(6);3.X(6);3.L(6);1x=3.L.22([6],3);Y.Z(6,\'P\',4.P.m(4));Y.Z(6,\'Q\',4.Q.m(4));Y.Z(6,\'1y\',1x);3.U++},23:5(){p=7 1z();p[\'g\']=\'24\';p[\'c\']=3.a.1A().c();p[\'l\']=3.a.1A().u();p[\'d\']=3.9.1t;p[\'q\']=0;3.W(p)},X:5(6){e=7 1B(\'25\',{\'26\':\'11\',\'1C\':6.4.q});e.27(6.4.g);7 1B(\'28\').1D(e);e.29(\'1y\',5(){3.L(6)}.m(3));e.1D(3.o)},12:5(){3.o.2a();3.8.K(5(b){3.X(b)}.m(3))},L:5(6){3.f=6;3.j.r(3.9.I).s=6.4.g;3.j.r(3.9.J).s=6.4.d;x.y(6);3.a.2b(6.2c());3.o.1E(\'.11\').2d(3.9.S);3.o.1E(\'.11\').K(5(b){n(b.1C==6.4.q){b.2e(3.9.S)}}.m(3))},2f:5(){n($O(3.f)!=D){3.f.4.g=3.j.r(3.9.I).s;3.f.4.d=1l(3.j.r(3.9.J).s);3.f.4.A();3.12()}},2g:5(){13=7 T();3.8.K(5(b){4=7 1z();4[\'g\']=b.4.g;4[\'c\']=b.4.c;4[\'l\']=b.4.l;4[\'d\']=b.4.d;4[\'q\']=b.4.z;13.w(4)}.m(3));14=1F.1G(13);x.y(14);15 14},2h:5(){15 1F.1G(3.V)},2i:5(){M=-1;3.8.2j(5(b,1H){n(b==3.f){M=1H;15 1w}}.m(3));n(M!=-1){3.8.2k(M,1)}3.f.4.B();3.a.1c(3.f);3.12();n(3.f.4.z!=0){3.V.w(3.f.4.z)}3.f=D;3.j.r(3.9.I).s=\'\';3.j.r(3.9.J).s=\'\'}});1s.1q(7 1r);',62,145,'|||this|fence|function|marker|new|data|options|map|el|lat|radius||active|name|center||info|var|lon|bind|if|list|pnt|id|getElement|value|GLatLng|lng|points|push|console|log|dbid|draw|clear|poly|false|coord|liWidth|fillColor|Math|namefield|radiusfield|each|showInfo|deleted|Fence|type|dragstart|dragend|liColor|selected|Array|idcnt|deletedFences|addFence|addToList|GEvent|addListener||fenceli|refreshList|out|str|return|Class|initialize|iid|parseFloat|drawCircle|addOverlay|removeOverlay|nodes|liOpa|fillOpa|latConv|distanceFrom|100|lngConv|step|parseInt|360|pint|PI|180|implement|Options|fenceEditor|defaultradius|fill|fences|true|myfunc|click|Object|getCenter|Element|title|injectInside|getElements|Json|toString|ind|1000|40|for|cos|sin|0055ff|GPolygon|flist|500|fdetails|lang|Name|save|Save|namefld|radfld|fselected|setOptions|GMarker|draggable|pass|newFence|untitled|div|class|setText|br|addEvent|empty|panTo|getLatLng|removeClass|addClass|saveInfo|serialize|serializeDeleted|removeActive|some|splice'.split('|'),0,{}));

window.addEvent('domready',function()
	{
		document.allContent = $$('.merryContent');
		document.currentActive = document.allContent.length;
		window.nxt = nextContent.periodical(5000);
	}
);


var nextContent = function ()
{
	$clear(window.nxt);
	if (document.currentActive == 1)
	{
		xfade(document.allContent[document.allContent.length-1]);
		r = function() {
		var x;
		for(x = 1; x < document.allContent.length-1; x++)
			{
				resetFade(document.allContent[x]);
			}
		document.currentActive = document.allContent.length;
		}
		r.delay(500);
		//xfade(document.allContent[0]);
	}
	else
	{
		xfade(document.allContent[document.currentActive-1]);
		document.currentActive--;
	}
	window.nxt = nextContent.periodical(5000);

	//$clear(window.nxt);
}

function previousContent()
{
	$clear(window.nxt);
	if (document.currentActive != document.allContent.length)
	{
		xfade(document.allContent[document.currentActive]);
		document.currentActive++;
	}
	window.nxt = nextContent.periodical(5000);
}

function xfade(layer)
	{
		var fadeLayer = new Fx.Style(layer,'opacity');
		
		if (layer.getStyle('opacity') == 1)
		{
			fadeLayer.start(0);
		}
		else
		{
			fadeLayer.start(1);
		}
		
	}

function resetFade(layer)
	{
		if (layer.getStyle('opacity') == 1)
		{
			layer.setStyle('opacity', 0);
		}
		else
		{
			layer.setStyle('opacity', 1);
		}
	}

document.openrow = false;
			
editable = function(id, me)
{	
	menuindex = -1;
	if (document.openrow == true)
	{
		menuindex = document.getElementById('menurow').rowIndex-1;
		me.parentNode.deleteRow(menuindex);
		document.openrow = false;
	}
	if(me.rowIndex == menuindex)
	{
		return;
	}
	
		if (document.getElementById('menurow') != undefined)
		{
			var menuindex = document.getElementById('menurow').rowIndex-1;
			me.parentNode.deleteRow(menuindex);
		}
		insrow = me.parentNode.insertRow(me.rowIndex);
		insrow.id = "menurow";
		instd = document.createElement("td");
		instd.id = "innertd"
		instd.colSpan = 300;
		document.getElementById("menurow").appendChild(instd);
		document.openrow = true;
	
}


borrar = function(nombre, pregunta, pregunta2, agregado, agregado2)
{
	if (document.getElementById('innertd') != undefined)
	{
		inslink = document.createElement("a");
		inslink.appendChild(document.createTextNode(nombre));
		inslink.setAttribute("onclick", "window.confirdel('"+pregunta+"','"+pregunta2+"','"+agregado+"','"+agregado2+"');");
		document.getElementById("innertd").appendChild(inslink);
	}
}

confirdel = function(pregunta, pregunta2, agregado, agregado2)
{
	if(confirm(pregunta))
	{
		if(pregunta2 == 'null')
		{
			document.location = document.location.protocol+'//'+document.location.host+agregado;
		}
		else
		{
			if (confirm(pregunta2))
			{
				document.location = document.location.protocol+'//'+document.location.host+agregado2;
			}
			else
			{
				document.location = document.location.protocol+'//'+document.location.host+agregado;
			}
		}		
	}
}


customlink = function(agregado, nombre)
{
	if (document.getElementById('innertd') != undefined)
	{
		inslink = document.createElement("a");
		inslink.appendChild(document.createTextNode(nombre));
		inslink.setAttribute("href", document.location.protocol+'//'+document.location.host+agregado);
		document.getElementById("innertd").appendChild(inslink);
	}
}

acciones = function(acciones, me)
{
	if(document.getElementById('innertd') != undefined)
	{
		forma = document.createElement("form");
		forma.setAttribute("action", window.location);
		forma.setAttribute("method", "post");
		forma.setAttribute("class", "nostyle");

		for(i=0; i<acciones.length; i++)
		{
			texto = document.createElement("span");
			forma.appendChild(texto);
			texto.appendChild(document.createTextNode(acciones[i]["nombre"]+": "+acciones[i]["descripcion"]+" "));
			textInput = document.createElement("input");
			textInput.setAttribute("type", "text");
			textInput.setAttribute("name", acciones[i]["accion_id"]);
			textInput.setAttribute("value", acciones[i]["rank"]);
			forma.appendChild(textInput);			
			forma.appendChild(document.createElement("br"));
			forma.appendChild(document.createElement("br"));
		}	
		
		boton = document.createElement("input");
		boton.setAttribute("type", "submit");
		boton.setAttribute("name", "guardar");
		boton.setAttribute("value", "Guardar");
		boton.setAttribute("class", "button_e");
		forma.appendChild(boton);
		document.getElementById("innertd").appendChild(forma);
	}
}

function dump(arr,level) {
	var dumped_text = "";
	if(!level) level = 0;
	
	//The padding given at the beginning of the line.
	var level_padding = "";
	for(var j=0;j<level+1;j++) level_padding += "    ";
	
	if(typeof(arr) == 'object') { //Array/Hashes/Objects 
		for(var item in arr) {
			var value = arr[item];
			
			if(typeof(value) == 'object') { //If it is an array,
				dumped_text += level_padding + "'" + item + "' ...\n";
				dumped_text += dump(value,level+1);
			} else {
				dumped_text += level_padding + "'" + item + "' => \"" + value + "\"\n";
			}
		}
	} else { //Stings/Chars/Numbers etc.
		dumped_text = "===>"+arr+"<===("+typeof(arr)+")";
	}
	return dumped_text;
}
function RTButton() {
}

RTButton.prototype = new GControl();

RTButton.prototype.initialize = function(map) {
  var button = document.createElement("div");
  this.setButtonStyle_(button);
  button.appendChild(document.createTextNode(document.transtext));
  GEvent.addDomListener(button, "click", function() {
		document.rtMap.get();
  });
  
  map.getContainer().appendChild(button);
  return button;
}

RTButton.prototype.getDefaultPosition = function() {
  return new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(7, 27));
}

// Sets the proper CSS for the given button element.
RTButton.prototype.setButtonStyle_ = function(button) {
  button.style.textDecoration = "underline";
  button.style.backgroundColor = "white";
  button.style.font = "small Arial";
  button.style.border = "1px solid black";
  button.style.padding = "2px";
  button.style.marginBottom = "3px";
  button.style.textAlign = "center";
  button.style.width = "6em";
  button.style.cursor = "pointer";
}

