<!-- Hide script from old browsers


<!--Opens Custom Pop-Up Window in Center of Users Screen-->

function NewWindow(url,windowname,w,h,scroll,resizable,location,status,menubar,toolbar){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
      settings +='scrollbars='+scroll+',';
      settings +='resizable='+resizable+',';
      settings +='location='+location+',';
      settings +='status='+status+',';
      settings +='menubar='+menubar+',';
      settings +='toolbar='+toolbar+',';
  win=window.open(url,windowname,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}	

//DUPLICATE OF ABOVE BUT RENAMED FUNCTION AS IS SOMETIMES USED
<!--Opens Custom Pop-Up Window in Center of Users Screen-->

function popUp(url,windowname,w,h,scroll,resizable,location,status,menubar,toolbar){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
      settings +='scrollbars='+scroll+',';
      settings +='resizable='+resizable+',';
      settings +='location='+location+',';
      settings +='status='+status+',';
      settings +='menubar='+menubar+',';
      settings +='toolbar='+toolbar+',';
  win=window.open(url,windowname,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}	


<!--Prevents user from leaving pop-up in background and not being able to use the link-->

window.focus();


//Preload Images
<!--
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];}}
}

//Restore images
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;
}

//Find Document Images and put into array
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;
}

//Swap images
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];}
}

/* no marquee
// Fading Marquee
			var IE = document.all;
			var mContent = new Array();
			mContent[0] = "<div style=\"background-color:white;\"><span class=\"small\"><b>New Courses:</b><br><br><a href=\"info/index.cfm?fuseaction=article.syllabus&cv=0&cid=11\">11 - Preparing to Meet a Daubert Challenge</a><br><img border=\"0\" src=\"#Variables.DirLevel#images/1pix.gif\" width=\"10\" height=\"5\"><br><br><a href=\"info/index.cfm?fuseaction=article.syllabus&cv=0&cid=42\">42 - Accumulated Earnings and Deferred Compensation </a></span>";
			var zTrack = 0;
			var curOpacity = 0;
			var direction =0;
			
			//constants
			var INTERVAL = 200;
			var STEP = 5;
			
			function init() {
				mHTML = "";
				for(i=0;i<mContent.length;i++) {
					mHTML+= "<div id=\"xContent\" name=\"xContent\" class=\"zContent\">" + mContent[i] + "</div>";
				}
				document.getElementById("mContainer").innerHTML = mHTML;
				mInterval = setInterval("rotate()",INTERVAL);
			}
			
			function rotate() {
				direction?curOpacity-=STEP:curOpacity+=STEP;
				IE?document.getElementsByName("xContent")[zTrack].style.filter="alpha(opacity="+ curOpacity+")":document.getElementsByName("xContent")[zTrack].style.MozOpacity=curOpacity + "%";
				if(curOpacity>=100) {
					curOpacity=100;
					direction=1;
				} else if(curOpacity<=0) {
					curOpacity=0;
					direction=0;
					zTrack++;
					if(zTrack>mContent.length-1)zTrack=0;
				}
			}
*/

function emailto(address, subject, text, spantype){
//write email address
email="<a class =\"" + spantype + "\"" + "href=\"mailto:"+
address +
"@erieri.com?subject=" + subject + "\" >" +
text + "</a>";

document.write(email);
}

// Check for Flash and write browser plugin appropriate code
		function FlashCheck(FlashVer,FlashCode,NonFlashCode)
			{
				if ((navigator.appName == "Microsoft Internet Explorer" &&
				    navigator.appVersion.indexOf("Mac") == -1 && 
				    navigator.appVersion.indexOf("3.1") == -1) ||
				    (navigator.plugins && navigator.plugins["Shockwave Flash"]) || 
					navigator.plugins["Shockwave Flash" + FlashVer])
					{
					// Insert Flash Object Tag
						document.write(FlashCode);
					}
			   else {
					// Insert Image Tag
						document.write(NonFlashCode);
					}
			}

//-->

// End hiding script from old browsers -->
<!--
	var clipTop = 0;
	var clipWidth = 128;
	var clipBottom = 100;
	var topper = 280;
	var lyrheight = 0;
	var time,amount,theTime,theHeight,DHTML;
function init()
{
	
	
	DHTML = (document.getElementById || document.all || document.layers)
	if (!DHTML) return;
	var x = new getObj('example');
	if (document.layers)
	{
		lyrheight = x.style.clip.bottom;
		lyrheight += 20;
		x.style.clip.top = clipTop;
		x.style.clip.left = 0;
		x.style.clip.right = clipWidth;
		x.style.clip.bottom = clipBottom;
	}
	else if (document.getElementById || document.all)
	{
		lyrheight = x.obj.offsetHeight;
		x.style.clip = 'rect('+clipTop+' '+clipWidth+' '+clipBottom+' 0)'
	}
}

function scrollayer(layername,amt,tim)
{
	if (!DHTML) return;
	thelayer = new getObj(layername);
	if (!thelayer) return;
	amount = amt;
	theTime = tim;
	realscroll();
}

function stopScroll()
{
	if (time) clearTimeout(time);
}

function realscroll()
{
	if (!DHTML) return;
	clipTop += amount;
	clipBottom += amount;
	topper -= amount;
	if (clipTop < 0 || clipBottom > lyrheight)
	{
		clipTop -= amount;
		clipBottom -= amount;
		topper += amount;
		return;
	}
	if (document.getElementById || document.all)
	{
		clipstring = 'rect('+clipTop+' '+clipWidth+' '+clipBottom+' 0)'
		thelayer.style.clip = clipstring;
		thelayer.style.top = topper;
	}
	else if (document.layers)
	{
		thelayer.style.clip.top = clipTop;
		thelayer.style.clip.bottom = clipBottom;
		thelayer.style.top = topper;
	}
	time = setTimeout('realscroll()',theTime);
}

function vis(val)
{
	if (!DHTML) return;
	var f = new getObj('example');
	f.style.visibility = val;
}

function getObj(name)
{
  if (document.getElementById)
  {
	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
	this.obj = document.layers[name];
	this.style = document.layers[name];
  }
}

function SMMPopup()
{
testwindow= window.open ("http://204.203.220.28/index.cfm?fuseaction=Home.SMM", "Notice",
    "location=0,status=0,toolbar=0,menubar=0,scrollbars=0,resizeable=no,width=350,height=350");
testwindow.moveTo(400,400);
}

// -->