function pop(url)
	{
	newwindow=window.open(url,'name','height=280,width=280');
	return false;
	}

function popsize(url,height,width)
	{
	newwindow=window.open(url,'name','height='+height+',width='+width+'');
	return false;
	}

function popwide(url)
	{
	newwindow=window.open(url,'name','height=550,width=620');
	return false;
	}

// OPENS LINKS WITH CLASS AS 'popup' IN NEW WINDOW
function popups()
	{
	var x = document.getElementsByTagName('a');
	for (var i=0;i<x.length;i++)
		{
		if (x[i].className == 'popup')
			{
			x[i].onclick = function ()
				{
				return pop(this.href);
				}
			x[i].title += ' (Opens in new window)';
			}
		if (x[i].className == 'popwide')
			{
			x[i].onclick = function ()
				{
				return popwide(this.href);
				}
			x[i].title += ' (Opens in new window)';
			}
		}
	}

var displayState;
function toggle(x)
	{
	var element = document.getElementById(x);
	var status = element.style.display;
	if(status=='none')
		{
		element.style.display = 'block';
		}
	else
		{
		element.style.display = 'none';
		}
	
	
	}

function togglep(x)
	{
	displayState = (displayState == 'block') ? 'none' : 'block';
	var element = document.getElementById(x);
	element.style.display = displayState;
	}

function LoadFunctions()
	{
	popups();
	}

window.onload = LoadFunctions;