function picsShow(dir)
{
	var scrW = screen.availWidth;
	var scrH = screen.availHeight;
	
	scrX = (scrW - 800 - 20) * .5;
    scrY = (scrH - 600 - 20) * .5;
	
	var win;
	win=window.open ("pics.php?dir="+dir,"_blank","width=753,height=600,screenX="+scrX+",screenY="+scrY+",top="+scrY+",resizable=no, scrollbars=no, copyhistory=no");
	win.focus();
}

function showBig(href, width, height) {
	var scrW = screen.availWidth;
	var scrH = screen.availHeight;
	
	pW = width+20;
    pH = height+20;

    scrX = (scrW - pW - 20) * .5;
    scrY = (scrH - pH - 20) * .5;
	
	var win;
	win=window.open (href,"_blank","width="+pW+",height="+pH+",screenX="+scrX+",screenY="+scrY+",top="+scrY+",resizable=no, scrollbars=no, copyhistory=no");
	win.focus();
}

function changePic(dir) {
	var next = document.getElementById("next").getText();
	alert(next);
	document.getElementById("pic"+numLast).style.display = "none";
	document.getElementById("pic"+numNext).style.display = "block";
	
}

function showTip(source){
 	var tip = source.nextSibling;
 	var top = 0;
 	tip.style.display = "block";
 	top = source.offsetTop - (tip.offsetHeight/2);
 	tip.style.top = top+"px";
 	left = source.offsetLeft+20; 
 	tip.style.left = left+"px";
 	tip.style.visibility = "visible";
 	return false;
}

function hideTip(source){
 	var tip = source.nextSibling;
 	tip.style.display = "none";
 	tip.style.visibility = "hidden";
 	return false;
}