function ShowField(id)
{
if (id == 7)
document.getElementById('other').innerHTML = '<input type="text" name="WayText" class="fill3">'
else
document.getElementById('other').innerHTML = ''
}

function topMenu(menuId,id)
{
	var obj = document.getElementById(menuId)
	if (id==1)
	{
	obj.style.visibility = 'visible';
	obj.style.display = 'block';
	}
	
	if (id==0)
	{
	obj.style.visibility = 'hidden';
	obj.style.display = 'none';
	}
}

function faq_function(new_one, Question)
{		
	document.getElementById(Question).style.display = "none";
	document.getElementById(new_one).style.display = "block";	
	last_div=new_one
	last_question=Question
}


function WindowOpen(address)
{
	window.open(address,"BigPic","scrollbars=0,resizable=1,toolbar=0,status=0,location=0,menubar=0")
}



last_menu = null
function show_sub(MessageID)
{
if (eval("document.all.sub_menu" + MessageID))
	{
	if (eval("sub_menu" + MessageID + ".style.display=='none'"))
		{
		eval("sub_menu" + MessageID + ".style.display='block'")
		}
	else
		{
		eval("sub_menu" + MessageID + ".style.display='none'")
		}
	}
}


function bookmarksite(title,url){
if (window.sidebar)
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)
	window.external.AddFavorite(url, title);
}


function ChangePic(strPic, strText, str4Pic)
{
PicVar	= "javascript:ChangePic1('" + str4Pic + "', '" + strPic + "')"

	if (str4Pic != 'images/pixel.gif')
	{
		document.getElementById("BigPic").innerHTML = '<a href="'+PicVar+'"><img src="'+strPic+'" name="BigPic" width="517" height="367" border="0"></a>'
	}	
	else
	{
		document.getElementById("BigPic").innerHTML = '<img src="'+strPic+'" name="BigPic" width="517" height="367" border="0">'
	}	

document.getElementById("ImageText").innerHTML = strText
}


function ChangePic1(strPic, str3Pic)
{
PicVar	= "javascript:ChangePic1('" + str3Pic + "', '" + strPic + "')"

document.getElementById("BigPic").innerHTML = '<a href="'+PicVar+'"><img src="'+strPic+'" name="BigPic" width="517" height="367" border="0"></a>'

}