/**
*External Link Handler
*/
function ExternalLinkHandler(){
	var As = document.getElementsByTagName("A");
	for(var i=0,j=As.length;i<j;i++){
		if(/external/.test(As[i].rel)){
			As[i].onclick = function(){
					window.open(this.href,"Popup");
				return false;
			}
		}
	}
}
/*Function to toggle visibility of an DOM object*/
function toggle(oTarget){
	if(oTarget){
		if(oTarget.style.display == "none") oTarget.style.display = "block";
		else oTarget.style.display = "none";
	}
}

/**
 *Execute handlers after the document is loaded
 */
function executeHandlers(){
	ip$.assignFirstAndLastChild();
	//ip$.sfNode("Navigation1");
	//SideNavigation();
	ExternalLinkHandler();
	directoryHandler();
	/** Fix for IE6 bg flicker **/
	var m = document.uniqueID /*IE*/ && document.compatMode /*>=IE6*/ && !window.XMLHttpRequest /*<=IE6*/ && document.execCommand;
	if(!!m){ m("BackgroundImageCache", false, true) /* = IE6 only */ }
}

function popup (URL, Width, Height, Scrollable, Resizable){
	Popup(URL, Width, Height, Scrollable, Resizable);
}
function Popup (URL, Width, Height, Scrollable, Resizable)
{
	try
	{
		var Popup;
		Popup = window.open(URL, "Popup", "width = " + Width + ", height = " + Height + ", top = " + ((screen.height - Height) / 2) + ", left = " + ((screen.width - Width) / 2) + ", resizable = " + (Resizable ? "yes" : "no") + ", scrollbars = " + (Scrollable ? "yes" : "no") + ", status = no");
		if(parseInt(navigator.appVersion)>=4)
		 {	
		  Popup.window.focus();
		 }
	}
	catch (ExceptionObject)
	{
		alert("Your browser or a piece of software installed on your\ncomputer appears to be blocking popups on this page.\n\nPlease enable popups and refresh this page to continue.");
	}
	return false;
}