function show(id, k)
{
	var o = document.all["div" + id];
	
	o.style.display = ((k == 1) ? "block" : "none");
}

function fnChangeImage(id, k)
{
	var o = document.all["img_" + id];
	var o1 = document.all["img_s_" + id];
	
	o.src = "/gif/btn." + id + ((k == 1) ? ".over" : "") + ".gif";
	o1.src = "/gif/menu." + ((k == 1) ? "anim" : "stat") + ".gif";
}

function showSub(id)
{
	var o = document.all["tblSub" + id];
	var i = document.all["imgSub" + id];
	
	b = (o.style.display != "block");
	o.style.display = b ? "block" : "none";
	i.src = "/gif/menu.arr." + (b ? "o" : "c") + ".gif"; 
}

var nPrevGal = 1;

function showGalleryImage(p, y, n, i)
{
	imgPortGallery.src = 'files/portfolio' + p + 'photo/' + y + '.' + n + '.gallery.' + i + '.jpg';
	document.all["aGallery" + i].style.color = "#FF0000";
	document.all["aGallery" + nPrevGal].style.color = "#285BB1";
	nPrevGal = i;
}

function showPortDescr(s, t)
{
	document.all["tdPortDescr" + s].innerText = t;
}

function showComment(n)
{
	comment = window.open('comment.php?n=' + n, 'comment', 'location=0, menubar=0, resizable=0, scrollbars=1, status=0, toolbar=0, left=100, top=100, height=350, width=500');
}

function openVacancy(n)
{
	vacancy = window.open('/anketa.php?n=' + n, 'vacancy', 'location=0, menubar=0, reqizable=0, scrollbars=1, status=0, toolbar=0, left=7, top=100, height=400, width=625');
}