<!--

// DROPDOWN MENU FUNCTION

Menu = {timer : null, current : null};
Menu.getStyle = function(name){
	if(document.getElementById) return document.getElementById(name).style;
	else if(document.all) return document.all[name].style;
	else if(document.layers) return document.layers[name];
}
Menu.show = function(name){
	if(this.timer) clearTimeout(this.timer);
	this.getStyle(name).visibility = "visible";
	this.current = name;
}
Menu.hide = function(){
	this.timer = setTimeout("Menu.doHide()",50);
}
Menu.doHide = function(){
	if(this.current){
		this.getStyle(this.current).visibility = "hidden";
		this.current = null;
	}
}

// OPEN NEW WINDOW FUNCTION

function openWindow(url, name, w, h) {
 var windowprops = "width=" + w + ",height=" + h + ",scrollbars=no,noresize,left=0,top=0,toolbar=no,location=no";
  popup = window.open(url,name,windowprops);
  }
		
		
// OPEN NEW WINDOW FUNCTION (with scrollbars)

function openWindowWithScroll(url, name, w, h) {
 var windowprops = "width=" + w + ",height=" + h + ",scrollbars=yes,noresize,left=0,top=0,toolbar=no,location=no";
  popup = window.open(url,name,windowprops);
  }


// Used for the BBBOnline logo		
		
function Rcertify() 
{
popupWin = window.open('http://www.bbbonline.org/cks.asp?id=10306191234533112', 'Participant','location=yes,scrollbars=yes,width=450,height=300'); 
window.name = 'opener';
} 


// Opens a new window in the center of the page

bwr = navigator.appName;
ver = parseInt(navigator.appVersion);
NS4 = (bwr == "Netscape" && ver >= 4);
IE4 = (bwr == "Microsoft Internet Explorer" && ver >= 4);
v4 = (NS4 || IE4);

var maxheight = screen.availHeight-30;
var maxwidth = screen.availWidth-10;
var maxheight2 = screen.availHeight*.7;
var maxwidth2 = screen.availWidth*.7;
var newWin = null;
window.name = 'main';


function flashWindow(pageToLoad,winName,width,height) {

	xposition = (screen.availWidth - width) / 2;
	yposition = ((screen.availHeight - height) / 2) - 10;
	if ((parseInt(navigator.appVersion) >= 4 )) {
		xposition = (screen.availWidth - width) / 2;
		yposition = ((screen.availHeight - height) / 2) - 10;
    }
    args = "width=" + width + ","
    + "height=" + height + ","
    + "location=0,"
    + "menubar=0,"
    + "resizable=0,"
    + "scrollbars=0,"
    + "status=0,"
    + "titlebar=0,"
    + "toolbar=0,"
    + "hotkeys=0,"
    + "screenx=" + xposition + ","  //NN Only
    + "screeny=" + yposition + ","  //NN Only
    + "left=" + xposition + ","     //IE Only
    + "top=362" ;           //IE Only
	
	if (newWin != null && !newWin.closed) {
		newWin.close();
		newWin = null;
	}
    newWin = window.open(pageToLoad,winName,args);
    newWin.focus();
	
	if (NS4) {
		//return window.history.current();
	}
	else {
		//return window.history.current;
	}
	return;
}

// -->
