<!--
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos)
{
	if(pos=="random")
	{
		LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
		TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;
	}
	if(pos=="center")
	{
		LeftPosition=(screen.width)?(screen.width-w)/2:100;
		TopPosition=(screen.height)?(screen.height-h)/2:100
		}
	else if((pos!="center" && pos!="random") || pos==null)
	{
		LeftPosition=100;
		TopPosition=100;
	}
	settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
	win=window.open(mypage,myname,settings);
}

function swapPic(id, bOn)
{
	var img = document.getElementById(id);
	var imgStr = new String(img.src);
	if(bOn == 'hov'){
		img.src = imgStr.replace(".gif", "_hov.jpg");
	}
	else{
		img.src = imgStr.replace("_hov.jpg", ".jpg");
	}
}

function ConfirmDelete (del) 
{
	if (del.checked == true) 
	{
		alert("Warning! This data will be permenantly deleted. You must\n submit below to complete this action."); 
	}
}

var navArray = 	[
					 ['/site_images/gnav_attorney_off.gif','/site_images/gnav_home_hov.gif','gnav01']
					,['/site_images/gnav_practice_off.gif','/site_images/gnav_practice_hov.gif','gnav02']
					,['/site_images/gnav_attorney_off.gif','/site_images/gnav_attorney_hov.gif','gnav03']
					,['/site_images/gnav_news_off.gif','/site_images/gnav_news_hov.gif','gnav04']
					,['/site_images/gnav_careers_off.gif','/site_images/gnav_careers_hov.gif','gnav05']
					,['/site_images/gnav_contact_hov.gif','/site_images/gnav_contact_hov.gif','gnav06']
				];
// Preload Nav Image Rollover Resources //
function preloadImages() {
		for (var x = 0; x < navArray.length; x++) {
			eval(navArray[x][2] + '_over = new Image()');
    		eval(navArray[x][2] + '_over.src = "' + navArray[x][1] + '"');
			eval(navArray[x][2] + ' = new Image()');
    		eval(navArray[x][2] + '.src = "' + navArray[x][0] + '"');
		}
}
// Preload All Menu Resources //
preloadImages();

/***********************************************
* Contractible Headers script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use. Last updated Mar 23rd, 2004.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var enablepersist="on" //Enable saving state of content structure using session cookies? (on/off)
var collapseprevious="yes" //Collapse previously open content when opening present? (yes/no)

if (document.getElementById){
document.write('<style type="text/css">')
document.write('.collapsecontent {display:none;}')
document.write('</style>')
}

function getElementbyClass(classname){
ccollect=new Array()
var inc=0
var alltags=document.all? document.all : document.getElementsByTagName("*")
for (i=0; i<alltags.length; i++){
if (alltags[i].className==classname)
ccollect[inc++]=alltags[i]
}
}

function contractcontent(omit){
var inc=0
while (ccollect[inc]){
if (ccollect[inc].id!=omit) {
ccollect[inc].style.display="none"
inc++
}
}
}

function expandcontent(cid){
if (typeof ccollect!="undefined"){
if (collapseprevious=="yes")
contractcontent(cid)
document.getElementById(cid).style.display=(document.getElementById(cid).style.display!="block")? "block" : "none"
//var thisBtn2="btn_" + cid
//if (document.getElementById(cid).style.display=="block")
//document.getElementById(thisBtn2).src = "/web_images/btn_collapse.gif"
//if (document.getElementById(cid).style.display=="none")
//document.getElementById(thisBtn2).src = "/web_images/btn_expand.gif"
}
}

function revivecontent(){
contractcontent("omitnothing")
selectedItem=getselectedItem()
selectedComponents=selectedItem.split("|")
for (i=0; i<selectedComponents.length-1; i++) {
document.getElementById(selectedComponents[i]).style.display="block"
//document.getElementById(selectedComponents["btn_" + i]).src = "/web_images/btn_expand.gif"
}
}

function get_cookie(Name) { 
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { 
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function getselectedItem(){
if (get_cookie(window.location.pathname) != ""){
selectedItem=get_cookie(window.location.pathname)
return selectedItem
}
else
return ""
}

function saveswitchstate(){
var inc=0, selectedItem=""
while (ccollect[inc]){
if (ccollect[inc].style.display=="block")
selectedItem+=ccollect[inc].id+"|"
inc++
}

document.cookie=window.location.pathname+"="+selectedItem
}

function do_onload(){
uniqueidn=window.location.pathname+"firsttimeload"
getElementbyClass("switchcontent")
if (enablepersist=="on" && typeof ccollect!="undefined"){
document.cookie=(get_cookie(uniqueidn)=="")? uniqueidn+"=1" : uniqueidn+"=0" 
firsttimeload=(get_cookie(uniqueidn)==1)? 1 : 0 //check if this is 1st page load
if (!firsttimeload)
revivecontent()
}
}


if (window.addEventListener)
window.addEventListener("load", do_onload, false)
else if (window.attachEvent)
window.attachEvent("onload", do_onload)
else if (document.getElementById)
window.onload=do_onload

if (enablepersist=="on" && document.getElementById)
window.onunload=saveswitchstate
// END -->



