function popFooter() {
	if (document.body) {
           eval("bW = " + document.body.clientWidth);
           eval("bH = " + document.body.clientHeight);
		   }
    else {
           eval("bW = " + innerWidth);
           eval("bH = " + innerHeight);
           }
	bH = parseInt(bH);
	bW = parseInt(bW);
	layer_main.tH = parseInt(layer_main.height) + parseInt(layer_main.top);
	layer_rightNavElems.tH = parseInt(layer_rightNavElems.height) + parseInt(layer_rightNavElems.top);
	if (layer_rightNavElems.tH > layer_main.tH) {
		tH = layer_rightNavElems.tH;
		}
	else {
		tH = layer_main.tH;
		}
	aBH = bH - parseInt(layer_Footer.height);
	if(bH < tH) {
		bO = tH - layer_Footer.height;
		}
	else{
		bO = aBH;
		}
	bO = parseInt(bO);
	bO = bO + 5;
	bCO = bO - 100;
	layer_Footer.bounce(bO,0);
	layer_FooterContg.bounce(bCO,0);
	layer_Footer.show();
	layer_FooterContg.show();
	}

function switchRadio2(num,layer) {
if(loaded) {
//	layer.extend("myRadioForm");
	layer.extend("radioImg1");
	layer.extend("radioImg2");
	layer_realForm.trueForm.lscope.value = "undefined";
	layer.radioImg1.src = "/img/global_home/search/search_radio_btn_off.jpg";
	layer.radioImg2.src = "/img/global_home/search/search_radio_btn_off.jpg";
	eval('layer_realForm.trueForm.lscope.value = "'+num+'"');
	eval(layer.obj_name+'.radioImg'+num+'.src = "/img/global_home/search/search_radio_btn_on.jpg"');
	}
}

function returnChecked(element) {
	for(xx = 0; xx < element.length; xx++) {
		if(element[xx].checked){return(element[xx].value);}
		else{return("undefined");}
		}
	return true;
	}

function returnCheckedString(element) {
	tempArray = new Array();
	for(xx = 0; xx < element.length; xx++) {
		if(element[xx].checked){tempArray[tempArray.length] = element[xx].value;}
		}
	return(tempArray.join(","));
	}

function hideSiteSearch() {
	layer_pulldownTag3.hide();
	layer_pulldownCover3.hide();
	layer_keyword2.hide();
	layer_keywordTag2.hide();
	layer_searchSite.hide();
	}

function hideStoreSearch() {
	layer_pulldownTag2.hide();
	layer_pulldownCover2.hide();
	layer_keyword1.hide();
	layer_keywordTag1.hide();
	layer_searchStore.hide();
	}

function showSiteSearch() {
	layer_pulldownTag3.show();
	layer_pulldownCover3.show()
	layer_keyword2.show();
	layer_keywordTag2.show();
	layer_searchSite.show();
	}

function showStoreSearch() {
	layer_pulldownTag2.show();
	layer_pulldownCover2.show();
	layer_keyword1.show();
	layer_keywordTag1.show();
	layer_searchStore.show();
	}

function submitForm(formType) {
	if(formType == 1) {
		layer_realForm.trueForm.lsrchtype.value="product";
		layer_realForm.trueForm.lqry.value = layer_keyword1.storeSearch.keyword.value;
		 layer_realForm.trueForm.action="http://store.law.com/search_results.asp";
		}
	if(formType == 2) {
		layer_realForm.trueForm.lsrchtype.value="site";
		layer_realForm.trueForm.lqry.value = layer_keyword2.siteSearch.keyword.value;
		}
	layer_realForm.trueForm.submit();
	}

//function catchPreLoad(msg,url,line) {
//	if((msg.indexOf("layer_main") >= 0)) {
//
//		window.status = line;
//		return true;
//		}
//	else {return false;}
//	}
function catchPreLoad(msg,url,line) {
	if((msg.indexOf("layer_main") >= 0) || (msg.indexOf("layer_sidenav") >= 0)){

       		window.status = line;
		return true;
		}
	else {return false;}
	}

window.onerror = catchPreLoad;

function displayDate() {
	today = new Date();
	month = today.getMonth();
	if (month == 0)
		smon = "January";
	else if (month == 1)
		smon = "February";
	else if (month == 2)
		smon = "March";
	else if (month == 3)
		smon = "April";
	else if (month == 4)
		smon = "May";
	else if (month == 5)
		smon = "June";
	else if (month == 6)
		smon = "July";
	else if (month == 7)
		smon = "August";
	else if (month == 8)
		smon = "September";
	else if (month == 9)
		smon = "October";
	else if (month == 10)
		smon = "November";
	else if (month == 11)
		smon = "December";

	return (smon + " " + today.getDate() + ", " + today.getFullYear());
}


function rldictionary(word)
        {
           var rlditionary = window.open('http://dictionary.law.com/default2.asp?typed='+word,'_blank','width=530,height=360,resizable,titlebar,addressbar');

        }