function showPopup(popupURL, width, height) {
	if(!width)
		width = 480;
		
	if(!height)
		height = 480;

	window.open(popupURL, 'navwindow', 'width='+width+', height='+height+', toolbar=0, resizable=yes, scrollbars=yes, left=200, top=150'); 
}

function rate(value, id, type) {
	$(type+'_'+id).innerHTML = '<img src="images/rating/rating_loading.gif">';

	new Ajax.Updater(type+'_'+id, '/area69/?content=rate&value=' + value + '&id=' + id + '&type=' + type);
}

function doSlide(elem) {
	$(elem).src = url+''+slides[count];
	count++;
	
	if(count > max)
		count = 0;
		
	timeout = setTimeout("doSlide('slide_0')", slidetime);
}