function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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 MM_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function max_win()
{	
	window.moveTo(0,0);
	if (document.all)
	{
		top.window.resizeTo(screen.availWidth,screen.availHeight);
	}
	else if (document.layers||document.getElementById) {
			if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
				top.window.outerHeight = screen.availHeight;
				top.window.outerWidth = screen.availWidth;
			}
	}
}
function init_check()
{	var browser_ver = navigator.appVersion;
	var version = browser_ver.substr(0,3);
	if (parseInt(version) < 4)
	{	alert("Browser version must be 4.0 or above.");
		return;
	}
	if ((screen.width < 800) || (screen.height < 600))
	{	alert("Your screen resolution size must be 800 x 600 or above.  Please adjust your resolution size.")
		return;
	}
	max_win();
}

function open_self()
{	
	var browser_ver = navigator.appVersion
	var version = browser_ver.substr(0,3);
	if (parseInt(version) < 4)
	{	alert("Browser version must be 4.0 or above.");
		return;
	}

	if ((screen.width < 800) || (screen.height < 600))
	{	alert("Your screen resolution size must be 800 x 600 or above.  Please adjust your resolution size.")
		return;
	}

	ns4 = (document.layers)? true:false;
	ie4 = (document.all)? true:false;

	if ((ns4 == false) && (ie4 == false))
	{	var bname = navigator.appName
		if (bname == "Netscape")
		{	alert("Sorry, our presentation does not support your browser version.");
			return;
		}
		else
			ie4 = true;
	}

	if (ns4)
	{	if (screen.width==1024)
			technoa=window.open("recruiting/self_pilot/n_techno.html","technoa","width=1014,height=738,resizable=yes,screenx=0,screeny=0");
		else if (screen.width==1280)
			technoa=window.open("recruiting/self_pilot/n_techno.html","technoa","width=1270,height=1094,resizable=yes,screenx=0,screeny=0");
		else
			technoa=window.open("recruiting/self_pilot/n_techno.html","technoa","width=790,height=570,resizable=yes,screenx=0,screeny=0");
	}
	if (ie4)
		technoa=window.open("recruiting/self_pilot/frame.html","technoa","fullscreen=yes,resizable=no,scrollbars=no,status=no,titlebar=no,toolbar=no,left=0,top=0 menubar=no")
	
	technoa.focus();
}
function open_auto(){

	var browser_ver = navigator.appVersion
	var version = browser_ver.substr(0,3);
	if (parseInt(version) < 4)
	{	alert("Browser version must be 4.0 or above.");
		return;
	}

	if ((screen.width < 800) || (screen.height < 600))
	{	alert("Your screen resolution size must be 800 x 600 or above.  Please adjust your resolution size.")
		return;
	}

	ns4 = (document.layers)? true:false;
	ie4 = (document.all)? true:false;

	if ((ns4 == false) && (ie4 == false))
	{	var bname = navigator.appName
		if (bname == "Netscape")
		{	alert("Sorry, our presentation does not support your browser version.");
			return;
		}
		else
			ie4 = true;
	}

	if (ns4)
	{	if (screen.width==1024)
			technoh=window.open("recruiting/auto_pilot/n_techno.html","technoh","width=1014,height=738,resizable=yes,screenx=0,screeny=0");
		else if (screen.width==1280)
			technoh=window.open("recruiting/auto_pilot/n_techno.html","technoh","width=1270,height=1094,resizable=yes,screenx=0,screeny=0");
		else
			technoh=window.open("recruiting/auto_pilot/n_techno.html","technoh","width=790,height=570,resizable=yes,screenx=0,screeny=0");
	}
	if (ie4)
		technoh=window.open("recruiting/auto_pilot/frame.html","technoh","fullscreen=yes,resizable=no,scrollbars=no,status=no,titlebar=no,toolbar=no,left=0,top=0 menubar=no");
	
	technoh.focus();
}
function open_html()
{	var browser_ver = navigator.appVersion
	var version = browser_ver.substr(0,3);
	if (parseInt(version) < 4)
	{	alert("Browser version must be 4.0 or above.");
		return;
	}

	if ((screen.width < 800) || (screen.height < 600))
	{	alert("Your screen resolution size must be 800 x 600 or above.  Please adjust your resolution size.")
		return;
	}

	ns4 = (document.layers)? true:false;
	ie4 = (document.all)? true:false;

	if ((ns4 == false) && (ie4 == false))
	{	var bname = navigator.appName
		if (bname == "Netscape")
			ns4 = true;
		else
			ie4 = true;
	}

	if (ns4)
	{	if (screen.width==1024)
			HTML_1=window.open("recruiting/html_pilot/1welcome/ewelcome.html","HTML_1","width=1014,height=738,scrollbars=yes,resizable=yes,screenx=0,screeny=0");
		else if (screen.width==1280)
			HTML_1=window.open("recruiting/html_pilot/1welcome/ewelcome.html","HTML_1","width=1270,height=1094,scrollbars=yes,resizable=yes,screenx=0,screeny=0");
		else
			HTML_1=window.open("recruiting/html_pilot/1welcome/ewelcome.html","HTML_1","width=790,height=570,scrollbars=yes,resizable=yes,screenx=0,screeny=0");
	}
	if (ie4)
		HTML_1=window.open("recruiting/html_pilot/1welcome/ewelcome.html","HTML_1","fullscreen=yes,resizable=no,scrollbars=no,status=no,titlebar=no,toolbar=no,left=0,top=0 menubar=no");

	HTML_1.focus();
}
function open_flash()
{	if (confirm("Freedom 55 Financial provides this only as a convenience to you to view our presentations.  Freedom 55 Financial assumes no responsibility with regard to the performance or suitability of this software.\nThere are dangers inherent in the use of any software found on the Internet, and Freedom 55 Financial assumes no responsibility with regard to the performance or use of these products.  Make sure that you completely understand the risks before retrieving any software on the Internet."))
	{	flink = window.open("http://www.macromedia.com/shockwave/download/frameset.fhtml?P1_Prod_Version=ShockwaveFlash","flink");
		flink.focus();
	}
	else
		return;
}

function copyright()
{
	MM_openBrWindow('copyright/copyright.html','ccopy','width=516,height=310');
}
