function loadToolbar()
	{
		/* Initial Object Detection here, if all goes well, hide the toolbar. */
		var toolbar = new getObj('dcc_accessBar');
		if (toolbar != null)
		{
			var bool = readCookie('dispAccessToolbar');
			if (bool != 'true')
				toolbar.style.display = 'none';
		}
	}
	
	function toggleToolbar()
	{
		/* Get reference to toobar and change the display mode. */
		var toolbar = new getObj('dcc_accessBar');
		if (toolbar != null)
		{
			if (toolbar.style.display != 'none')
			{
				toolbar.style.display = 'none';
				createCookie('dispAccessToolbar', false, 90);
			} else {
				toolbar.style.display = 'block';
				createCookie('dispAccessToolbar', true, 90);
			}
		}
	}
	
	function getObj(name)
	{
		if (document.getElementById)
		{
			this.obj = document.getElementById(name);
			this.style = document.getElementById(name).style;
		}
		else if (document.all)
		{
			this.obj = document.all[name];
			this.style = document.all[name].style;
		}
		else if (document.layers)
		{
			this.obj = document.layers[name];
			this.style = document.layers[name];
		}
	}

//for snap poll pop up window	
function popitup(url) {
	newwindow=window.open(url,'name','height=550,width=350,resizable=yes');
	if (window.focus) {newwindow.focus()}
	return false;
}

