function getStyle() {
    browser = navigator.appName;
    appVer = parseInt(navigator.appVersion);
    ie = "Microsoft Internet Explorer";
    ns = "Netscape";
   if (browser == ns) {
       document.write('<link rel="stylesheet" type="text/css" href="LienlawOnlineStates_ns.css">');
    } 	else  {
       document.write('<link rel="stylesheet" type="text/css" href="LienlawOnlineStates.css">');
    }
}
 
 
function defaultWindowFeatures( width, height, left, top ) {
return "screenX=" + left + ",left=" + left + ",screenY=" + top + ",top=" + top + ",innerWidth=" + width + ",width=" + width + ",innerHeight=" + height + ",height=" + height + ",menubar=no,directories=no,location=no,resizable=yes,scrollbars=no,status=no,titlebar=yes,toolbar=no";
}

function OpenWin( formname ) {
var url = formname+".pdf";
var newwindow;
newwindow = window.open("", "helptype", defaultWindowFeatures(500,400,165,65) + ",scrollbars=yes");
newwindow.location=url;
newwindow.focus();
newwindow.location.reload;
}

function beginTitle() {
 var  stateName = document.title
   if (document.all) {
       document.write('<div style="width:510px">');
       document.write('<p class="mainTitle">'+stateName+' Lien&nbsp;Law</p>');
       document.write('<div id="stateMap" style="position:absolute; width:200px; height:200px; z-index: -1; left: 33px; top: 49px"> ');
       document.write('<img src="SD.gif"></div> ');
    } 	else  {
       document.write('<table border=0 cellpadding=0 width=500px><tr><td colspan=2 valign=bottom><p class="mainTitle">'+stateName+' Lien&nbsp;Law</p></td></tr> ');
       document.write('<tr><td width=250><img src="SD.gif"></td> ');   
       document.write('<td valign=center align=right>');	
    }

}

function endTitle() {
   if (document.all) {
       document.write('<p>&nbsp;<\/p><p>&nbsp;<\/p><p>&nbsp;<\/p>');
       }
   else {
       document.write('<\/td ><\/tr ><\/table >');
    }

}

function beginBody() {
   if (document.all) {
       document.write('<p>&nbsp;<\/p>');
       }
   else {
       document.write('<table width=560 border=0><tr><td>');
    }
}

function endBody() {
document.write('<hr><p class=notice><font color=\"#800000\">Copyright ©2001-08 Construction Publications Inc. All Rights Reserved.<\/font><\/p>');
   if (document.all) {
       document.write('<\/div>');
       }
   else {
       document.write('<\/td><\/tr><\/table>');
    }

}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

/////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
//  ALTTXT V1.2
//  BY: BRIAN GOSSELIN OF SCRIPTASYLUM.COM
//  ADDED FADING EFFECT FOR IE4+ AND NS6+ ONLY AND OPTIMIZED THE CODE A BIT.
//  SCRIPT FEATURED ON DYNAMIC DRIVE (http://www.dynamicdrive.com) 

////////////////////////////// NO NEED TO EDIT BEYOND THIS POINT //////////////////////////////////////
var dofade=false;     // ENABLES FADE-IN EFFECT FOR IE4+ AND NS6 ONLY
var center=true;     // CENTERS THE BOX UNER THE MOUSE, OTHERWISE DISPLAYS BOX TO THE RIGHT OF THE MOUSE
var centertext=false; // CENTERS THE TEXT INSIDE THE BOX. YOU CAN'T SIMPLY DO THIS VIA STYLE BECAUSE OF NS4.

var NS4 = (navigator.appName.indexOf("Netscape")>=0 && !document.getElementById)? true : false;
var IE4 = (document.all && !document.getElementById)? true : false;
var IE5 = (document.getElementById && document.all)? true : false;
var NS6 = (document.getElementById && navigator.appName.indexOf("Netscape")>=0 )? true: false;
var W3C = (document.getElementById)? true : false;
var w_y, w_x, navtxt, boxheight, boxwidth;
var ishover=false;
var isloaded=false;
var ieop=0;
var op_id=0;

function getwindowdims(){
w_y=(NS4||NS6)? window.innerHeight : (IE5||IE4)? document.body.clientHeight : 0;
w_x=(NS4||NS6)? window.innerWidth : (IE5||IE4)? document.body.clientWidth : 0;
}

function getboxwidth(){
if(NS4)boxwidth=(navtxt.document.width)? navtxt.document.width : navtxt.clip.width;
if(IE5||IE4)boxwidth=(navtxt.style.pixelWidth)? navtxt.style.pixelWidth : navtxt.offsetWidth;
if(NS6)boxwidth=(navtxt.style.width)? parseInt(navtxt.style.width) : parseInt(navtxt.offsetWidth);
}

function getboxheight(){
if(NS4)boxheight=(navtxt.document.height)? navtxt.document.height : navtxt.clip.height;
if(IE4||IE5)boxheight=(navtxt.style.pixelHeight)? navtxt.style.pixelHeight : navtxt.offsetHeight;
if(NS6)boxheight=parseInt(navtxt.offsetHeight);
}

function movenavtxt(x,y){
if(NS4)navtxt.moveTo(x,y);
if(W3C||IE4){
navtxt.style.left=x+'px';
navtxt.style.top=y+'px';
}}

function getpagescrolly(){
if(NS4||NS6)return window.pageYOffset;
if(IE5||IE4)return document.body.scrollTop;
}

function getpagescrollx(){
if(NS4||NS6)return window.pageXOffset;
if(IE5||IE4)return document.body.scrollLeft;
}

function writeindiv(text){
if(NS4){
navtxt.document.open();
navtxt.document.write(text);
navtxt.document.close();
}
if(W3C||IE4)navtxt.innerHTML=text;
}

//**** END UTILITY FUNCTIONS ****//

function writetxt(text){
if(isloaded){
if(text!=0){
ishover=true;
if(NS4)text='<div class="navtext">'+((centertext)?'<center>':'')+text+((centertext)?'</center>':'')+'</div>';
writeindiv(text);
getboxheight();
if((W3C || IE4) && dofade){
ieop=0;
incropacity();
}}else{
if(NS4)navtxt.visibility="hide";
if(IE4||W3C){
if(dofade)clearTimeout(op_id);
navtxt.style.visibility="hidden";
}
writeindiv('');
ishover=false;
}}}

function incropacity(){
if(ieop<=100){
ieop+=7;
if(IE4 || IE5)navtxt.style.filter="alpha(opacity="+ieop+")";
if(NS6)navtxt.style.MozOpacity=ieop/100;
op_id=setTimeout('incropacity()', 50);
}}

function moveobj(evt){
if(isloaded && ishover){
margin=(IE4||IE5)? 1 : 23;
if(NS6)if(document.height+27-window.innerHeight<0)margin=15;
if(NS4)if(document.height-window.innerHeight<0)margin=10;
//mx=(NS4||NS6)? evt.pageX : (IE5||IE4)? event.clientX : 0;
//my=(NS4||NS6)? evt.pageY : (IE5||IE4)? event.clientY : 0;
if (NS4){
mx=evt.pageX
my=evt.pageY
}
else if (NS6){
mx=evt.clientX
my=evt.clientY
}
else if (IE5){
mx=event.clientX
my=event.clientY
}
else if (IE4){
mx=0
my=0
}

if(NS4){
mx-=getpagescrollx();
my-=getpagescrolly();
}
xoff=(center)? mx-boxwidth/2 : mx+5;
yoff=(my+boxheight+30-getpagescrolly()+margin>=w_y)? -5-boxheight: 20;
movenavtxt( Math.min(w_x-boxwidth-margin , Math.max(2,xoff))+getpagescrollx() , my+yoff+getpagescrolly());
if(NS4)navtxt.visibility="show";
if(W3C||IE4)navtxt.style.visibility="visible";
}}

if(NS4)document.captureEvents(Event.MOUSEMOVE);
document.onmousemove=moveobj;
window.onload=function(){
  navtxt=(NS4)? document.layers['navtxt'] : (IE4)? document.all['navtxt'] : (W3C)? document.getElementById('navtxt') : null;
  getboxwidth();
  getboxheight();
  getwindowdims();
  isloaded=true;
  if((W3C || IE4) && centertext)navtxt.style.textAlign="center";
  if(W3C)navtxt.style.padding='4px';
  if(IE4 || IE5 && dofade)navtxt.style.filter="alpha(opacity=0)";
  }
window.onresize=getwindowdims;



