function imgOpen(imgURL,imgWidth,imgHeight,Title) {
	window.open('/popup.php?img='+imgURL+'&title='+Title+'&win_width='+imgWidth+'&win_height='+imgHeight,'_blank','width='+imgWidth+',height='+
	imgHeight+',toolbar=no,menubar=no,location=no,status=no,'+
	'resizable=yes,scrollbars=no');
	return false
}

function setBigImg(img) {
	document.getElementById('big_img').innerHTML = '<img src="files/'+img+'" alt="" width="465" height="550" border="0">';
	return false;
}

var i = 0;

function showGallery(count,mode){
	i=i+mode;
	if (i<0) i=0;
	if (i>(count-4)) i=count-4;
	if (i>=0 && (i+3)<count) {
		document.getElementById('div0').innerHTML = '<table cellpadding="0" cellspacing="0" border="0" align="right" width="216"><tr>'+par[i]+par[i+1]+'</tr></table>';	
		document.getElementById('div1').innerHTML = '<table cellpadding="0" cellspacing="0" border="0" align="left"  width="216"><tr>'+par[i+2]+par[i+3]+'</tr></table>';
	}
	if (i==0) document.getElementById('prev').src = "images/left_arrow_disable.gif";	
	else document.getElementById('prev').src = "images/left_arrow.gif";	

	if ((i+4)>=count) document.getElementById('next').src = "images/right_arrow_disable.gif";	
	else document.getElementById('next').src = "images/right_arrow.gif";	

	return false;
}

function openImage(image) {
	if (image) window.open("/popup.php?img="+image, "popupimage", "scrollbars=no, resizable=1, width=100, height=100").focus();
	return false;
}

function ShowMail(user, domain1, domain2) {
	var email = user+'&#64;'+domain1+'&#46;'+domain2;
	if (ShowMail.arguments[3]) name = ShowMail.arguments[3];
	else name = email;
	document.writeln('<a href="mailto:'+email+'">'+name+'</a>');
}
