//-->
///////////////////////////////////////////////////////////
// Written By : John Winfield
// Date: Feb 2003
// Action: Simply wat to set the correct top area before the tab menu to give 
// correct spacing within main window 
///////////////////////////////////////////////////////////
var ScreenWidth = 0;
var ScreenHeight = 0;

function openWnd()
{
	window.open("BrowserPopup.htm",null,"width=300,height=300,top=100,left="+((ScreenWidth-300)/2)+",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no");
}
///////////////////////////////////////////////////////////
// Written By : John Winfield
// Date: Feb 2003
// Action: Sets the global screen resolution width variable 
//         with the current screen res
///////////////////////////////////////////////////////////
function SetScreenRes()
{
	if(ScreenWidth>0)
	return;
	var doCenter = false;
	ScreenWidth = 1024;
	ScreenHeight = 768;  // Agreed Default Sizing
	
	// Get the screen member
	for(var item in window)
	{
		if(item == "screen") 
		{
		 	doCenter = true; 
			break; 
		}
	}
	// If found assign member vars
	if(doCenter)
	{
		ScreenWidth = screen.width;
		ScreenHeight = screen.height;	
	}
	// else if netscape load the correct toolkit
	else 
	{
		if(navigator.appName=="Netscape" && navigator.javaEnabled())
		{
			var toolkit = java.awt.Toolkit.getDefaultToolkit();
			var screen_size = toolkit.getScreenSize();
			ScreenWidth = screen_size.width;
			ScreenHeight = screen_size.height;			
		}
	}

}
// called only once
SetScreenRes();
////////////////////////////////////////////////////////////////////////////////////////////#
// DREAM WEAVER SPECIFIC FUNCTIONS
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i>d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function ShowStaMsg(msgStr) { //v1.0
  status=msgStr;
}
//-->
