var img_obj = new Array();

function showphoto(path, pic, width, main, undermain) {
	if(main == 0) {
		var photo = document.getElementById('mainphoto');
		var under = document.getElementById('undermain');
	} else {
		var photo = document.getElementById('mainphoto'+main);
		var under = document.getElementById('undermain'+main);
	}
	if(undermain == "")
		undermain = "&nbsp;";
	under.innerHTML = undermain;
	img_obj[1] = new Image();
	photo.src = pic;
	photo.style.width = width;
}

function gotodir(tag) {
	var tagselect = document.getElementById('tagselect');
	document.location = "http://officenext.ru"+tagselect.value+"/?tag="+tag;
}

function translate() {
	var trn = document.getElementById('trn');
	location.href = trn.value;
}
function clearEmail(inp) {
	var input = document.getElementById(inp);
	input.value = '';
}
function restoreEmail(inp) {
	var input = document.getElementById(inp);
	input.value = 'поиск';
}

function pmenu(todo, div) {
	var d = document.getElementById(div);
	if(todo == 1)
		d.style.visibility = "visible";
	else if(todo == 0)
		d.style.visibility = "hidden";
}
