if (document.images) {
   IS = new Array (
      "21.png"
   );
   IL = new Array ();
   for (i in IS) {
      IL[i] = new Image ();
      IL[i].src = "/i/" + IS[i];
   }
}

function desc() {
  with (document.all('mapdesc').style)
     visibility = (visibility == 'visible') ? 'hidden' : 'visible';
}

function nptab(n) {
    if (n>1) {
       $('#tab1').addClass('active');
	   $('#tab2').removeClass('active');
	   $('#tab2content').show();
	   $('#tab1content').hide();
    } else {
	   $('#tab2').addClass('active');
	   $('#tab1').removeClass('active');
	   $('#tab1content').show();
	   $('#tab2content').hide();
	}
}

function rate_over(r) {
	for (i=1; i<=rates; i++) {
		document.getElementById("star"+i).src = r>=i ? "/i/rating-full.png" : "/i/rating-empty.png";
	}
}

function rate(id,r) {
	rating = r;
	$.post("/scripts/rates/", { id: id, rating: rating });
}