// noticias --------------------------------------------------------------------

function hab_proximo()
					{
						document.getElementById('proximo').innerHTML = '<a href="javascript:proximo();">[PRÓXIMA]</a>';
					}
					function des_proximo()
					{
						document.getElementById('proximo').innerHTML = '';
					}
					function hab_anterior()
					{
						document.getElementById('anterior').innerHTML = '<a href="javascript:anterior();">[ANTERIOR]</a>';
					}
					function des_anterior()
					{
						document.getElementById('anterior').innerHTML = '';
					}
					function proximo()
					{
						imgatual++;
						troca_img();
						
						if(imgatual==1)
							hab_anterior();
					
						if(imgatual==(imagens.length-1))
							des_proximo();
						
					}
					function anterior()
					{
						imgatual--;
						troca_img();
						
							if(imgatual==0)
							des_anterior();
							
							if(imgatual==(imagens.length-2))
							hab_proximo();
					}

					function troca_img()
					{
						var img = imagens[imgatual];
						
						document.getElementById("fotogrande").innerHTML = "<img src='admIN/upload/noticias_fotos/"+img[0]+"' border=\"0\" class=\"borda\">";
					}
					
//galerias-----------------------------------------------------------

					function troca_img(thumb,img)//,leg
					{
						document.getElementById('thumb_maior').style.backgroundImage = "url(admIN/upload/galerias_fotos/"+thumb+")";
						img_atual = img;
						
						//document.getElementById('legenda').innerHTML = leg;
						//leg_atual = leg;
						
					}
					function verimg()
					{
						abriu = window.open('popimg.php?imagem=admIN/upload/galerias_fotos/'+img_atual,'imagem','width=1,height=1,top=0,left=0,scrollbars=yes');
						if(!abriu)
						alert('Desative seu Anti-popup');
					}
					function subtrai()
					{
						var el = document.getElementById("miniaturas");
						el.scrollLeft-=1;
					}
					function soma()
					{
						var el = document.getElementById("miniaturas");
						el.scrollLeft+=1;
					}
					function direita()
					{
						//soma();
						
						for(i=0;i<172;i++)
						{
							setTimeout('soma()',50);
						}
						//var a = Math.round((el.scrollLeft/152)+3);
					}
					function esquerda(){
						
						//subtrai();
						
						for(i=0;i<172;i++)
						{
							setTimeout('subtrai()',50);
						}
					}