function Slide(id, arr) {
	var arrPhotos = arr;
	var intId = id;
	var intCurrent = 0;
	var objImages = new Array();

	var intTotal = arr.length;
	this.nextPhoto = nextPhoto;
	this.setPhoto = setPhoto;
	for (i=0;i<intTotal;i++) {
		objImages[i] = new Image();
		objImages[i].src = arrPhotos[i][0];
	}
	function setPhoto(int) {
		objText =$("description_"+id);
		objImg = $("image_"+id);
		objLink = $("link_"+id);
		objCounter = $("current_"+id);
		objCounter.innerHTML = intCurrent+1;
		objLink.href = arrPhotos[int][1];
//		alert(arrPhotos[int][0]);
//		alert(objImg.src);
		auximg = new Image();
		auximg.src = arrPhotos[int][0];
		objImg.src = arrPhotos[int][0];
		objText.innerHTML = arrPhotos[int][2];
	}
	function nextPhoto() {
		if ((intCurrent+1) < intTotal) {
			intCurrent++;
			setPhoto(intCurrent);
		} else {
			intCurrent = 0;
			setPhoto(0);
		}
	}
	this.prevPhoto = prevPhoto;
	function prevPhoto() {
		if (intCurrent > 0) {
			intCurrent--; 		
			setPhoto(intCurrent);
		} else {
			intCurrent = arr.length-1;
			setPhoto(intCurrent);
		}
	}
}
var newsfont = 13;
var maxSize = 19;
var minSize = 9;
function changeFont() {
	$$("div.cop_content").setStyle("line-height", newsfont);
	$$("div.cop_content").setStyle("font-size", newsfont);
}
// aqui se produce el error
function larger() {
	if (newsfont < maxSize) {
	newsfont+=2;
	changeFont();
	}
}

function smaller() {
	if (newsfont > minSize) {
	newsfont -= 2;
	changeFont();
	}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function votar(id_queja, voto){
	//var myXhr = new XHR({method: 'post',async: true}).send('lib/xhr.php', 'process=true&i='+id_queja+'&v='+voto);
	var myVote = new Ajax('lib/xhr.php', {method: 'post', update: $('block_votacion_'+id_queja),data: 'process=true&i='+id_queja+'&v='+voto}).request();
/*	myXhr.onSuccess=function() {		
	alert(myXhr.response)
		$("block_votacion_"+id_queja).setHTML(myXhr.response);
	}*/
}
function actProm(id_queja, votos, promedio){
	document.getElementById('promedio_'+id_queja).innerHTML = promedio;
//	document.getElementById('total_votos_'+id_queja).innerHTML = votos;
	document.getElementById("ancho_votacion_"+id_queja).style.width = (promedio*9)+"px";
}
window.addEvent('load', function(){								 	
	if ($("content_detailed")) {
		intCenter = $("content_detailed").getStyle("height").toInt();
		intRight = $("column_center").getStyle("height").toInt();
		intMaxValue = (intCenter>intRight)?intCenter:intRight;
		$("content_detailed").setStyle('height', intMaxValue); 
	}
});