/* � 2010 ArattaUna Communications */
/* http://www.arattauna.com/ */
/* http://www.arattadesign.com/ */
/* http://www.siteius.com/ */

var star1, star2, star3, star4, star5;

function ActivatedStars(ID, starID) {
	
	star1 = document.getElementById(ID + "_star1").src;
	star2 = document.getElementById(ID + "_star2").src;
	star3 = document.getElementById(ID + "_star3").src;
	star4 = document.getElementById(ID + "_star4").src;
	star5 = document.getElementById(ID + "_star5").src;
	
	document.getElementById(ID + "_star1").src = "img/rate/star_passive.png";
	document.getElementById(ID + "_star2").src = "img/rate/star_passive.png";
	document.getElementById(ID + "_star3").src = "img/rate/star_passive.png";
	document.getElementById(ID + "_star4").src = "img/rate/star_passive.png";
	document.getElementById(ID + "_star5").src = "img/rate/star_passive.png";
	
	if ( starID==1 ) {
		
		document.getElementById(ID + "_star1").src = "img/rate/star_active.png";
	}
	
	if ( starID==2 ) {
		
		document.getElementById(ID + "_star1").src = "img/rate/star_active.png";
		document.getElementById(ID + "_star2").src = "img/rate/star_active.png";
	}
	
	if ( starID==3 ) {
		
		document.getElementById(ID + "_star1").src = "img/rate/star_active.png";
		document.getElementById(ID + "_star2").src = "img/rate/star_active.png";
		document.getElementById(ID + "_star3").src = "img/rate/star_active.png";
	}
	
	if ( starID==4 ) {
		
		document.getElementById(ID + "_star1").src = "img/rate/star_active.png";
		document.getElementById(ID + "_star2").src = "img/rate/star_active.png";
		document.getElementById(ID + "_star3").src = "img/rate/star_active.png";
		document.getElementById(ID + "_star4").src = "img/rate/star_active.png";
	}
	
	if ( starID==5 ) {
		
		document.getElementById(ID + "_star1").src = "img/rate/star_active.png";
		document.getElementById(ID + "_star2").src = "img/rate/star_active.png";
		document.getElementById(ID + "_star3").src = "img/rate/star_active.png";
		document.getElementById(ID + "_star4").src = "img/rate/star_active.png";
		document.getElementById(ID + "_star5").src = "img/rate/star_active.png";
	}
}

function DeactivatedStars(ID) {
	
	document.getElementById(ID + "_star1").src = star1;
	document.getElementById(ID + "_star2").src = star2;
	document.getElementById(ID + "_star3").src = star3;
	document.getElementById(ID + "_star4").src = star4;
	document.getElementById(ID + "_star5").src = star5;
}
