	// change picture
function initializeTopItems() {
	var a = new Array();
	$(".change").each(function(i){
	 a[i] = $(this).attr("href");
   $(this).click(function () {change(a[i], $(this).attr("id"), $(this).attr("title"), this);});
   $(this).attr({href: "#"});
   if (i == 0) {
   	$(this).click();
   }
 });
}
function change(a, b, c, d) {
	if (typeof b == "undefined") {
		b = a;
	} 
	$(".fotos img").attr({ src:  b, alt: c });
	$(".fotos a").attr({ href: a, title :c });	
	$(".change").removeClass("act");
	$(d).addClass( "act" );
}
	
$(document).ready(initializeTopItems);