function picclick(numb,path) {
	var message = window.open(path + '/' + numb + '.jpg','pop','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=440,height=340,top=0,left=0');
	setTimeout("self.blur()",250);
	}

function picvurt(numb,path) {
	var message = window.open(path + '/' + numb + '.jpg','pop','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=340,height=440,top=0,left=0');
	setTimeout("self.blur()",250);
	}
	
function popntext(numb,path) {
	 document.write("<a href=\"#\" onmouseover=\"getElementById('description" + numb + "').style.display='inline';\" onmouseout=\"getElementById('description" + numb + "').style.display='none';\" onclick=\"picclick('" + numb + "','" + path + "')\"><img src=\"" + path + "/tn" + numb + ".jpg\" alt=\"image " + numb + "\" id=\"thumbnail" + numb + "\" width=\"100\" height=\"100\" border=\"0\"></a>");
	}

function popntextvurt(numb,path) {
	 document.write("<a href=\"#\" onmouseover=\"getElementById('description" + numb + "').style.display='inline';\" onmouseout=\"getElementById('description" + numb + "').style.display='none';\" onclick=\"picvurt('" + numb + "','" + path + "')\"><img src=\"" + path + "/tn" + numb + ".jpg\" alt=\"image " + numb + "\" id=\"thumbnail" + numb + "\" width=\"100\" height=\"100\" border=\"0\"></a>");
	}	
	
function poponly(numb,path) {
	 document.write("<a href=\"#\" onclick=\"picclick('" + numb + "','" + path + "')\"><img src=\"" + path + "/tn" + numb + ".jpg\" alt=\"image " + numb + "\" id=\"thumbnail" + numb + "\" width=\"100\" height=\"100\" border=\"0\"></a>");
	}

function popvurt(numb,path) {
	 document.write("<a href=\"#\" onclick=\"picvurt('" + numb + "','" + path + "')\"><img src=\"" + path + "/tn" + numb + ".jpg\" alt=\"image " + numb + "\" id=\"thumbnail" + numb + "\" width=\"100\" height=\"100\" border=\"0\"></a>");
	}	
	
function showHide(div){
	t = div.split("_")[0]

	for (y=0;y<document.getElementsByTagName('div').length;y++){
		//alert(div + "=" + document.getElementsByTagName('div')[y].id.indexOf(div))
		if (document.getElementsByTagName('div')[y].id.indexOf(t+"_") >-1 && document.getElementsByTagName('div')[y].id.indexOf(div)!=0){
			document.getElementsByTagName('div')[y].style.display = "none"
		}
	}
	/*
	if(document.getElementById(div).style.display=="none"){
		document.getElementById(div).style.display="block"
	}else{
		document.getElementById(div).style.display="none"
	}*/
	document.getElementById(div).style.display="block"
}

function hideAll(include){
	for (y=0;y<document.getElementsByTagName('div').length;y++){
		if (document.getElementsByTagName('div')[y].id.indexOf(include) >-1){
			document.getElementsByTagName('div')[y].style.display = "none"
		}
	}
}