function CaricaFoto(img, name, wid, hi){
  foto1= new Image();
  foto1.src=(img);
  viewFotos(img, name, wid, hi);
}

function viewFotos(img, name, w, h){
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
features = "toolbar=no,location=no,directories=no,status=no,menubar=no," +"scrollbars=no,resizable=yes,width="+w+",height="+h+",left="+winl +",top="+wint;

 dlg = window.open ("","Details",features);
 dlg.document.write("<html><head><title>" + name + " Zoom</title></head>");
 dlg.document.write ("<body bgcolor=white><center>");
 dlg.document.write("<table width=100% height=100%>");
 dlg.document.write("<tr><td align=center valign=middle>");
 dlg.document.write ("<font size=2 font color=black face=verdana>" + name + "</font><br><font size=1 font color=black face=verdana>(click image to close window)</font></a><br><br>");
 dlg.document.write("<a href=# onClick=window.close();>");
 dlg.document.write("<img src=" + img + " border=\"0\">");
 dlg.document.write("</td></tr>");
 dlg.document.write("<tr><td align=center valign=middle>");
 dlg.document.write("<a href=# onClick=window.close();>");
 dlg.document.write("<font size=1 font color=black face=verdana>(close window)</font></a>");
 dlg.document.write("</td></tr>");
 dlg.document.write("</table></body></html>");
 dlg.document.close();
}


/* ================= Tabs ====================== */

function show_tab(t)
{
	
	//alert (t);
	curr_tab = document.getElementById('tab' + t);
	
	var tobj=document.getElementById("tabs")
	tobj_lis=tobj.getElementsByTagName("li")
	//alert (tobj_lis.length);	
	
	for(i=1; i<=4; i++)
	{
		document.getElementById('tab' + i).className = "hide-tab";
		tobj_lis[i-1].className="";
	}
	
	curr_tab.className="show-tab";
	tobj_lis[t-1].className="current";
}

