

function toggle(id)
{
	if (document.getElementById(id).style.display == 'inline')
	{
		Hide(id);
	}
	else
	{
		Show(id);
	}
}

function Show(id)
{
	document.getElementById(id).style.display = 'inline';
	if(document.getElementById(id+'Show'))
	{
		document.getElementById(id+'Show').style.display = 'none';
		document.getElementById(id+'Hide').style.display = 'inline';
	}
	//document.getElementById(id.replace('Div','')+'Menu').className = "primnav3-high";
}
function Hide(id)
{
	document.getElementById(id).style.display = 'none';
	if(document.getElementById(id+'Show'))
	{
		document.getElementById(id+'Show').style.display = 'inline';
		document.getElementById(id+'Hide').style.display = 'none';
	}
}

function expandAndLocate(id)
{
	if (document.getElementById(id).style.display == 'none')
	{
		Show(id);
	}
	document.location = "#" + id.replace('Div','');
}

function JSFX_FloatTopDiv()
{
	var verticalpos = "fromtop";
	var startX = 3,
	startY = 150;
	var ns = (navigator.appName.indexOf("Netscape") != -1);
	var d = document;
	function ml(id)
	{
		var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
		if(d.layers)el.style=el;
		el.sP=function(x,y){this.style.left=x;this.style.top=y;};
		el.x = startX;
		if (verticalpos=="fromtop")
		el.y = startY;
		else{
		el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
		el.y -= startY;
		}
		return el;
	}
	window.stayTopLeft=function()
	{
		if (verticalpos=="fromtop"){
		var pY = ns ? pageYOffset : document.body.scrollTop;
		ftlObj.y += (pY + startY - ftlObj.y)/8;
		}
		else{
		var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
		ftlObj.y += (pY - startY - ftlObj.y)/8;
		}
		ftlObj.sP(ftlObj.x, ftlObj.y);
		setTimeout("stayTopLeft()", 10);
	}
	ftlObj = ml("Menu");
	stayTopLeft();
}

function popup(page,width,height)
{
	if(height=='') var strParam = 'width='+width;
	else var strParam = 'width='+width+',height='+height;
	strParam += 'alwaysRaised=yes';
	window.open(page, 'subWindow', strParam);
}

function popupForm(page,width,height)
{
	if(height=='') var strParam = 'width='+width;
	else var strParam = 'width='+width+',height='+height;
	strParam += 'alwaysRaised=yes left=20 top=20';
	window.open(page, 'subWindow', strParam);
}

function popupConference(page)
{
	window.open(page, 'subConf', 'width=350,height=690');
}

function popupPrintable(page,width,height)
{
	if(height=='') var strParam = 'width='+width;
	else var strParam = 'width='+width+',height='+height;
	strParam += 'alwaysRaised=yes,scrollbars=yes';
	window.open(page, 'subPrintable', strParam);
}



function startHome() {
	document.getElementById('Pattern').innerHTML = strCurPtn;
	document.getElementById('Engine').innerHTML = strCurEng;
	//starteffect();
	startBlinking();
}
