
function showPhotoRate(photoID,contentID){
	
	var ratePhotos = $(contentID).getElementsByClassName('ratePhoto');	
	if($('ratePhoto'+photoID).getStyle('display') == 'block')
		$('ratePhoto'+photoID).hide();
	else{
		for (var i=0; i<ratePhotos.length; i++)
			$('ratePhoto'+(i+1)).hide();
		$('ratePhoto'+photoID).show();			
	}
	
}

function initRatePhotos(contentID){
	
	var ratePhotos = $(contentID).getElementsByClassName('ratePhoto');
	for (var i=0; i<ratePhotos.length; i++)
		$('ratePhoto'+(i+1)).setStyle({position:'absolute'});
	
}