
			

            if (document.images) {
            l_home = new Image(); l_home.src = ImageRoot + "/lo_home.gif";
            lo_home = new Image(); lo_home.src = ImageRoot + "/lo_home.gif";
            l_welcome = new Image(); l_welcome.src = ImageRoot + "/l_welcome.gif";
            lo_welcome = new Image(); lo_welcome.src = ImageRoot + "/lo_welcome.gif";
            l_attorneys = new Image(); l_attorneys.src = ImageRoot + "/l_attorneys.gif";
            lo_attorneys = new Image(); lo_attorneys.src = ImageRoot + "/lo_attorneys.gif";
            l_practices = new Image(); l_practices.src = ImageRoot + "/l_practices.gif";
            lo_practices = new Image(); lo_practices.src = ImageRoot + "/lo_practices.gif";
            l_recruiting = new Image(); l_recruiting.src = ImageRoot + "/l_recruiting.gif";
            lo_recruiting = new Image(); lo_recruiting.src = ImageRoot + "/lo_recruiting.gif";
            l_articles = new Image(); l_articles.src = ImageRoot + "/l_articles.gif";
            lo_articles = new Image(); lo_articles.src = ImageRoot + "/lo_articles.gif";

            lo_blank = new Image();
            lo_blank.src = ImageRoot + "/spacer.gif";

            lo_dc = new Image();
            lo_dc.src = ImageRoot + "/lo_dc.gif";

            lo_ny = new Image();
            lo_ny.src = ImageRoot + "/lo_newyork.gif";

            lo_info = new Image();
            lo_info.src = ImageRoot + "/lo_siteinfo.gif";
            }



	if( !imageRoot || imageRoot == null ) {
		var imageRoot = "$[ImageRoot]" ;
	}

// Netscape 3.0 compatibility test (for javascript image swapping)
	compat = false;
	if( parseInt( navigator.appVersion ) >= 3 ) {
		compat = true ; 
	}


// swap images using the cached images

function change(x, y) {
	if( compat ) {
		document.images[x].src=eval(y+'.src'); 
		}
	}





//if (navigator.platform == "Win32" && navigator.appName == "Microsoft Internet Explorer" && window.attachEvent) {
//    window.attachEvent("onload", alphaBackgrounds);
//}

//function alphaBackgrounds(){
//	var rslt = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');
//	var itsAllGood = (rslt != null && Number(rslt[1]) >= 5.5);
//	for (i=0; i<document.all.length; i++){
//		var bg = document.all[i].currentStyle.backgroundImage;
//		if (itsAllGood && bg){
//			if (bg.match(/\.png/i) != null){
//				var mypng = bg.substring(5,bg.length-2);
//				document.all[i].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+mypng+"', sizingMethod='scale')";
//				document.all[i].style.backgroundImage = "url('/assets/images/x.gif')";
//			}
//		}
//	}
//}


//<!--
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.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_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];}
}
//-->

//<!--PNG Transparency-->

//<!--
var supported = /MSIE (5\.5)|[6789]/.test(navigator.userAgent) && navigator.platform == "Win32";
var realSrc;
var blankSrc = "text.png";

//if (supported) fixImage();

function propertyChanged() {
   if (!supported) return;

   var pName = event.propertyName;
   if (pName != "src") return;
   // if not set to blank
   if ( ! new RegExp(blankSrc).test(src))
      fixImage();
};

function fixImage() {
   // get src
   var src = element.src;

   // check for real change
   if (src == realSrc) {
      element.src = blankSrc;
      return;
   }

   if ( ! new RegExp(blankSrc).test(src)) {
      // backup old src
      realSrc = src;
   }

   // test for png
   if ( /\.png$/.test( realSrc.toLowerCase() ) ) {
      // set blank image
      element.src = blankSrc;
      // set filter
      element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" +
                                     src + "',sizingMethod='scale')";
   }
   else {
      // remove filter
      element.runtimeStyle.filter = "";
   }
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->
//<!--PNG Transparency-->


function getobject(obj){
if (document.getElementById)
return document.getElementById(obj)
else if (document.all)
return document.all[obj]
}


// <div class="formselect" onmouseover="resizeField('min', document.getElementById('category'));"><b>category: </b> 
// <select name="ycatfilt" id="category" class="fields" width="145" onmouseover="resizeField('max', this);this.focus();" onblur="resizeField('min', this);" onfocus="resizeField('max', this);"">
//<!--select onmouseover="this.focus();resizeField('max', this);" onblur="resizeField('min', this);" onfocus="hidForm.value='';resizeField('max', this);" class="form1" name="cboPubsType" id="cboPubsType" runat="server"></select-->
function resizeField(dir, theField){
    if (dir == 'max') {
        var charLen = 6.5;
        var wLen = 0;
        for(var i=0; i < theField.options.length; i++) {
            if (theField.options[i].text.length > wLen) {
                wLen = theField.options[i].text.length
            }
        }
        
        if(wLen > 70) wLen = 70;
        
        theField.style.position = 'relative';
        theField.style.width  = theField.getAttribute("width");
        
        var prevwidth = parseInt(theField.currentStyle.width);
		var newwidth = wLen*charLen;

        theField.style.position = 'absolute';
		
		if(theField.getAttribute("width") < newwidth){
       		theField.style.width = newwidth;
		}
		
		theField.style.posLeft = prevwidth - newwidth;
    } else {
        theField.style.position = 'relative';
        theField.style.width  = theField.getAttribute("width");
        theField.style.posLeft = 0;
    }
}

function change(id, newSrc) {
   
    var theImage = FWFindImage(document, id, 0);
    if (theImage) {
        theImage.src = newSrc;
    }
}

      function FWFindImage(doc, name, j) {
        var theImage = false;
        if (doc.images) {
        theImage = doc.images[name];
        }
        if (theImage) {
        return theImage;
        }
        if (doc.layers) {
        for (j = 0; j < doc.layers.length; j++) {
	            theImage = FWFindImage(doc.layers[j].document, name, 0);
	            if(theImage) {
   return (theImage);
	            }
	        }
	      }
	    return (false);
	}

      function pop_up(myString){

        window.open(('http://www.capdale.com/articles/articlebody.asp?ID=826541242003&type=3&GetRecord=1001'),'photo_window','width=680,height=380,scrollbars,menubar,resizable');

        }
        
    function open_article(e){
	var path = FileRoot + "/" + e
	//alert(path);
	window.open(path);

}


function showMenu(strMenu) {
    
	
       
		var objLayer
	    
		//hideMenu(strLastMenu)
	
		if (document.all) {
			objLayer = document.all[strMenu]
		}
		else if (document.getElementById) {
			objLayer = document.getElementById(strMenu)
		}
		else if (document.layers) {
			objLayer = getLayer(strMenu)
		}
	
		// show
		if (document.all) {
			objLayer.style.visibility = "visible";
		}
		else if (document.getElementById) {
			objLayer.style.visibility = "visible"
		}
		else if (document.layers) {
			if (parseFloat(navigator.appVersion) >= 4.08) {
				// move to position relative to image
				objImage = getImage("l_" + strMenu.substring(3, strMenu.length))
				intTop = getImagePageTop(objImage)
				intLeft = getImagePageLeft(objImage)
				objLayer.top = intTop + objImage.height
				objLayer.left = intLeft - 1
				
				// show
				objLayer.visibility = "show"
			}
		}
	
		strLastMenu = strMenu

	
}



function hideMenu(strMenu) {

	
		var objLayer
		var isIn = false
		var i = 0
		var blnIsFromFlash = false
		
		if (strMenu == "hideFromFlash")
			blnIsFromFlash = true
	
		if (strMenu == "" || blnIsFromFlash)
			strMenu = strLastMenu
	
		if (document.all) {
			objLayer = document.all[strMenu]
		}
		else if (document.getElementById) {
			objLayer = document.getElementById(strMenu)
		}
		else if (document.layers) {
			objLayer = getLayer(strMenu)
		}
	
		// hide
		if (document.all) {
			
			if (!blnIsFromFlash) {
				while (!isIn && i < document.all[strMenu].all.length) {
					if (window.event.toElement == document.all[strMenu].all[i])
						isIn = true
					i++
				}
				if (!isIn ) {
					document.all[strMenu].style.visibility = "hidden"
				}
			}
			else {

				document.all[strMenu].style.visibility = "hidden"
			}
		}
		else if (document.getElementById) {
			objLayer.style.visibility = "hidden"
		}
		else if (document.layers) {
			if (parseFloat(navigator.appVersion) >= 4.08) {
				objLayer.visibility = "hide"
			}
		}
		//blnTimeOut = false;

}

function openprintwindow() 
{
	var str = location.href;
	var myChar = ''
	if (str.indexOf('?') != -1) 
		myChar = '&';	
	else
		myChar = '?';
	var mywindow = window.open(str + myChar + 'print=true', 'printwindow', 'menubar=yes, location=no, scrollbars=yes, width=800, height=600'); 
	mywindow.print(); 
}

