// page tools

// accessible popup window
var newWin = null; 
function popUp(strURL, strType, strHeight, strWidth) { 
 if (newWin != null && !newWin.closed) 
   newWin.close(); 
 var strOptions=""; 
 if (strType=="console") 
   strOptions="resizable,height="+ 
     strHeight+",width="+strWidth; 
 if (strType=="fixed") 
   strOptions="status,height="+ 
     strHeight+",width="+strWidth; 
 if (strType=="fixedscroll") 
   strOptions="status,scrollbars,screenX=300,left=300,screenY=200,top=50,height="+ 
     strHeight+",width="+strWidth; 
 if (strType=="elastic") 
   strOptions="scrollbars,"+ 
     "resizable,height="+ 
     strHeight+",width="+strWidth; 
 if (strType=="print_access")
   strOptions="scrollbars,menubar,status,resizable,height="+strHeight+",width="+strWidth; 
 newWin = window.open(strURL, 'newWin', strOptions); 
 newWin.focus(); 
}


// popup 404 page

//<![CDATA[
	function expandCollapse() 
	{
		for (var i=0; i<expandCollapse.arguments.length; i++) 
		{
			var element = document.getElementById(expandCollapse.arguments[i]);
			element.style.display = (element.style.display == "none") ? "block" : "none";
		}
	}
//]]>


// boookmark page

function AddBookmarkLink (title, url)
{
	if (window.sidebar) 
	{
		// Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url, '');
	}
	else
		if (window.external)
		{
			// IE Favourite
			window.external.AddFavorite (url, title);
		}
		else 
			if (window.opera && window.print)
			{
				// Opera hotlist
				return true;
			}	
}


