<!---


var culture;
var fragId;
var xmlhttp;
SetCookie();


//************************************************NAVIGATION**********************************************
if (culture == "es"){
	//  MENU ITEMS //
	// DUPLICATE THIS ENTIRE SECTION FOR MULTIPLE MENUS.  PLEASE SEE THE INSTRUCTIONS FILE FOR DETAILS ///   
	var Menu1 = new Array ()
	var subMenu1 = new Array ()

  Menu1[0] = new Array("Página Principal", "/default.html?culture=es","_top", "left")
  subMenu1[0] = new Array()

  Menu1[1] = new Array("Conozca a Bill Donegan", "/meetPA.html","_top", "left")
  subMenu1[1] = new Array()
   
   
  Menu1[2] = new Array("Acerca de OCPA","/aboutocpa.html","_top","left")
  subMenu1[2] = new Array()
  subMenu1[2][0] = new Array ("Endosos", "/endorsements.html","_top")
  subMenu1[2][1] = new Array ("Información General", "/aboutocpa.html","_top")
   

  Menu1[3] = new Array("Contactos", "/freq_req_numbers.html","_top", "left")
  subMenu1[3] = new Array()
  subMenu1[3][0] = new Array ("Números Solicitados Frecuentemente", "/freq_req_numbers.html","_top")
		  
		  
  Menu1[4] = new Array("Exenciones", window.location.href,"_top", "left")
  subMenu1[4] = new Array()
  subMenu1[4][0] = new Array ("Incapacidad", "/exemptions/ex_additional.html","_top")
  subMenu1[4][1] = new Array ("Homestead", "/exemptions/hxbro.html","_top")
  subMenu1[4][2] = new Array ("Personas Mayores de Ingreso Limitado", "/exemptions/liseniors.html","_top")
  subMenu1[4][3] = new Array ("Viudas/Viudos", "/exemptions/ex_additional.html","_top")
     

  Menu1[5] = new Array("Rinda Electrónicamente ","/exemptions/hx_file.html#3","_top", "left")
  subMenu1[5] = new Array()
  subMenu1[5][0] = new Array ("Homestead", "/exemptions/hx_file.html#3","_top")
    
  Menu1[6] = new Array("Propiedad Raíz", window.location.href,"_top", "left")
  subMenu1[6] = new Array()
  subMenu1[6][0] = new Array ("Ahorros sobre nuestras Casas", "/rp/soh.html","_top")
  subMenu1[6][1] = new Array ("Clasificación Agrícola", "/rp/agclass.html","_top")
  subMenu1[6][2] = new Array ("Casas Pre-fabricadas", "/rp/mobilehome.html","_top")
  subMenu1[6][3] = new Array ("Boletín informativo TRIM", "/TRIM/pdfs/TRIM_Newsletter_Sp.pdf","_top")
        	
   Menu1[7] = new Array("Propiedad Tangible", "/tpp/gen_info.html","_top", "left")
   subMenu1[7] = new Array()
   subMenu1[7][0] = new Array ("Información General", "/tpp/gen_info.html","_top")
   subMenu1[7][1] = new Array ("Boletín informativo TRIM", "/TRIM/pdfs/TRIM_Newsletter_Sp.pdf","_top")

	//subMenu1[6][3] = new Array ("File Online - Regular Tax Return", "/exemptions.html","_top")
	// subMenu1[6][4] = new Array ("File Online - Rental Tax Return", "/exemptions.html","_top")
   
	//Menu1[8] = new Array("En Inglés", "/default.html?culture=en","_top", "left")
   //subMenu1[8] = new Array()
}
else if (culture == "en"){// if (culture == "" || value == "en"){
  
  // Use Freely as long as following disclaimer is intact ::
  //---------------------------------------------------------------
  // Cross Browser Multi-Orientation Menu v1.5 17th August 2004
  // This script written by Rik Comery. www.ricom.co.uk
  // For support, visit the "Resources" section at www.ricom.co.uk           
  // All rights reserved.   
  // Featured in the SimplytheBest DHTML Scripts Library at http://simplythebest.net/scripts/
  
  //  MENU ITEMS //
  // DUPLICATE THIS ENTIRE SECTION FOR MULTIPLE MENUS.  PLEASE SEE THE INSTRUCTIONS FILE FOR DETAILS ///   
  var Menu1 = new Array ()
  var subMenu1 = new Array ()
  
  Menu1[0] = new Array("Home", "/default.html","_top", "left")
  subMenu1[0] = new Array()
   
  Menu1[1] = new Array("About Bill Donegan", "/meetPA.html","_top", "left")
  subMenu1[1] = new Array()
  
  Menu1[2] = new Array("About OCPA","/aboutocpa.html","_top","left")
  subMenu1[2] = new Array()
  subMenu1[2][0] = new Array ("General Information", "/aboutocpa.html","_top")
  subMenu1[2][1] = new Array ("Departments", "/departments_chart.html","_top")
  subMenu1[2][2] = new Array ("Directions to OCPA", "/ofc_directions.html","_top")     
  subMenu1[2][3] = new Array ("What's New! What's Coming!", "/whats_new.html","_top")   
  subMenu1[2][4] = new Array ("Employment", "/hr/employment.html","_top")
  subMenu1[2][5] = new Array ("Endorsements", "/endorsements.html","_top")     
  subMenu1[2][6] = new Array ("Awards", "/awards.html","_top")
  
  
  Menu1[3] = new Array("Contacts", window.location.href,"_top", "left")
  subMenu1[3] = new Array()
  subMenu1[3][0] = new Array ("OCPA Contact Information", "/contact_us.html","_top")
  subMenu1[3][1] = new Array ("Other Requested Numbers", "/freq_req_numbers.html","_top")
  	 
  	  
  Menu1[4] = new Array("Exemptions", "/exemptions/hxbro.html","_top", "left")
  subMenu1[4] = new Array()
  subMenu1[4][0] = new Array ("Homestead", "/exemptions/hxbro.html","_top")
  subMenu1[4][1] = new Array ("Homestead FAQ", "/exemptions/hxfaq.html","_top")
  subMenu1[4][2] = new Array ("Limited Income Seniors", "/exemptions/liseniors.html","_top")
  subMenu1[4][3] = new Array ("Widows/Widowers", "/exemptions/ex_additional.html","_top")
  subMenu1[4][4] = new Array ("Disability", "/exemptions/ex_additional.html","_top")
  subMenu1[4][5] = new Array ("Veterans", "/exemptions/veterans.html","_top")
  subMenu1[4][6] = new Array ("Report Exemption Abuse", "/exemptions/hx_abuse.html","_top")
  subMenu1[4][7] = new Array ("Wholly/Institutional", "/exemptions/wholly_institute.html","_top")  
  subMenu1[4][8] = new Array ("Forms", "/forms/forms.html","_top")
  
  Menu1[5] = new Array("Online Filing (E-File)","/exemptions/hx_file.html#1","_top", "left")
  subMenu1[5] = new Array()
  subMenu1[5][0] = new Array ("Homestead", "/exemptions/hx_file.html#1","_top")
  //subMenu1[6][1] = new Array ("Tangible Rental", "/general_info.html","_top")
  //subMenu1[6][2] = new Array ("Tangible Regular", "/exemptions.html","_top")
  subMenu1[5][1] = new Array ("Tangible", "/tpp/tpp_file_online.html","_top")
  
  Menu1[6] = new Array("Property Searches", window.location.href,"_top", "left")
  subMenu1[6] = new Array()
  subMenu1[6][0] = new Array ("Record Search", "/disclaimer.html","_top")
  subMenu1[6][1] = new Array ("Map Search", "http://paarcgis.ocpafl.org/webmap/default.aspx","_top")
  subMenu1[6][2] = new Array ("Sales Analysis Tool","javascript:showSalesReport();","_top","onClick='pageTracker._trackPageview(''Sales Report'');'")
  subMenu1[6][3] = new Array ("Future Development", "javascript:showFutureDevs();","_top")
  
  Menu1[7] = new Array("Real Property Info", window.location.href,"_top", "left")
  subMenu1[7] = new Array()
  subMenu1[7][0] = new Array ("Forms", "/forms/forms.html","_top")
  subMenu1[7][1] = new Array ("Save Our Homes", "/rp/soh.html","_top")
  subMenu1[7][2] = new Array ("Agricultural Classification", "/rp/agclass.html","_top")
  subMenu1[7][3] = new Array ("Lien Statement Requirements", "/rp/pdfs/LienSettlement.pdf","_blank", "onClick='pageTracker._trackPageview(''Lien Statement Require'');'")
  subMenu1[7][4] = new Array ("Manufactured Homes", "/rp/mobilehome.html","_top")
  subMenu1[7][5] = new Array ("Code Tables", "/codes.html","_top")
  subMenu1[7][6] = new Array ("TRIM Information", "/TRIM/trim_info.html","_top")
  //subMenu1[8][6] = new Array ("TRIM Newsletter", "/TRIM/pdfs/TRIM_Newsletter.pdf","_blank","onClick='pageTracker._trackPageview(''TRIM Newsletter'');'")
  //subMenu1[8][7] = new Array ("TRIM Frequently Asked Questions", "/rp/trim_faq.html","_top")
  
  
  Menu1[8] = new Array("Tangible Property", "/tpp/gen_info.html","_top", "left")
  subMenu1[8] = new Array()
  subMenu1[8][0] = new Array ("Searches", "/rec_srch.html#3","_top")
  subMenu1[8][1] = new Array ("File Online (E-File)", "/tpp/tpp_file_online.html","_top")
  subMenu1[8][2] = new Array ("Forms & Resources", "/tpp/tpp_form.html","_top")
  subMenu1[8][3] = new Array ("General Information", "/tpp/gen_info.html","_top")
  subMenu1[8][4] = new Array ("TRIM Newsletter", "/TRIM/pdfs/TRIM_Newsletter.pdf","_blank","onClick='pageTracker._trackPageview(''TRIM Newsletter'');'")
  subMenu1[8][5] = new Array ("Code Tables", "/codes.html","_top")
  
  
  
  //subMenu1[9][3] = new Array ("File Online - Regular Tax Return", "/exemptions.html","_top")
  //subMenu1[9][4] = new Array ("File Online - Rental Tax Return", "/exemptions.html","_top")
  
  Menu1[9] = new Array("Tax Roll/Millages", "/taxes/taxroll_info.html","_top", "left")
  subMenu1[9] = new Array()
  subMenu1[9][0] = new Array ("Millage Rate Information", "/taxes/taxroll_info.html#3","_top")
  subMenu1[9][1] = new Array ("Public Hearing Information", "/taxes/taxroll_info.html#2","_top")
  subMenu1[9][2] = new Array ("Tax Roll Information", "/taxes/taxroll_info.html#1","_top")
  subMenu1[9][3] = new Array ("Tax Roll Statistics & Tools", "/taxes/taxroll_info.html#4","_top")
  subMenu1[9][4] = new Array ("Top Property Owner Lists", "/taxes/taxroll_info.html#5","_top")
  
  Menu1[10] = new Array("Data & Map Products", window.location.href,"_top", "left")
  subMenu1[10] = new Array()
  subMenu1[10][0] = new Array ("Data Products", "/products/products.html","_top")
  subMenu1[10][1] = new Array ("Map Gallery", "/products/maps.html","_top")
  
  Menu1[11] = new Array("Bids and RFPs", "/bids_rfps/bids_rfps.html","_top", "left")
  subMenu1[11] = new Array()
  
  Menu1[12] = new Array("Hurricane Planning", "/pdfs/hurpgweb.pdf","_blank", "left", "onClick='pageTracker._trackPageview(''Hurricane Planning Guide'');'")
  subMenu1[12] = new Array()
       
  Menu1[13] = new Array("Other Sites","/othersites.html","_top", "left")
  subMenu1[13] = new Array()

  Menu1[14] = new Array("Videos","/videos/videos.html","_top", "left")
  subMenu1[14] = new Array()
  
}


/// FORMAT MENU  ///
menuStyle = "flat"                                  // Menu Style (flat, 3d)
cellPadding = "3"                                   // Cell Padding
cellBorder = 0                                      // Border width (for no border, enter 0)  THIS VALUE APPLIES TO ALL MENUS
verticalOffset = "0"                                // Vertical offset of Sub Menu. 
horizontalOffset = "20"                              // Horizontal offset of Sub Menu. 
subMenuDelay = 2                                    // Time sub menu stays visible for (in seconds). THIS VALUE APPLIES TO ALL MENUS
subIndicate = 1                                     // Show if a sub menu is present (use 0 for "no")  THIS VALUE APPLIES TO ALL MENUS
indicator = "<img src='/img/arrow-right.gif' border='0'>" // Symbol to show if a sub menu is present (subIndicate must be to set to 1)
                                                    // Use standard HTML <img> tag. You can use a character instead of an image. 
                                                    // e.g.      indicator = ">"
// Main Menu Items
tableWidth = "0"//"214%"
menuWidth = "150px"//"214%"                  // Width of menu item.  Use 0 for default
borderColor = "#FFFFFF"          // Border Colour (flat mode only)
borderHighlight = "#97BBD3"      // Border Highlight Colour (3d mode only) [default #97BBD3]
borderShadow = "#FFFFFF"         // Border Shadow Colour (3d mode only) [default #31556D]
menuBackground = "#b4d2ba"			// Cell Background Colour [default #2b83c4] #b4d2ba" - Light green
menuHoverBackground = "#669966"  // Cell Background Colour on mouse rollover
fontFace = "arial"               // Font Face
fontColour = "#000000"           // Font Colour
fontHoverColour = "#f9ab4f"//"#FFFFFF"      // Font Colour on mouse rollover
fontHoverWeight = "bolder"			
fontSize = "9pt"                 // Font Size
fontDecoration = "none"          // Style of the link text (none, underline, overline, line-through)
fontWeight = "normal"            // Font Weight (normal, bold)

// Sub Menu Items
smenuWidth = "0"                 // Width of sub menu item.  Use 0 for default
sborderColor = "#FFFFFF"         // Border Colour (flat mode only)
sborderHighlight = "#E9E9E2"     // Border Highlight Colour (3d mode only)
sborderShadow = "#83837C"        // Border Shadow Colour (3d mode only)
smenuBackground = "#F9AB4F"      // Cell Background Colour
smenuHoverBackground = "#FFCC66" // Cell Background Colour on mouse rollover [default #2b83c4]
sfontFace = "arial"              // Font Face
sfontColour = "#000000"          // Font Colour
sfontHoverColour = "#669966"     // Font Colour on mouse rollover
sfontHoverWeight = "bolder"
sfontSize = "10pt"                // Font Size
sfontDecoration = "none"         // Style of the link text (none, underline, overline, line-through)
sfontWeight = "normal"           // Font Weight (normal, bold)

quantity = 1
/// END FORMAT MENU  ////

/// DO NOT EDIT BELOW THIS LINE  ///
// Browser Sniffer
var isIE = (document.getElementById && document.all)?true:false;
var isNS4 = (document.layers)?true:false;
var isNS6 = (document.getElementById && !document.all)?true:false;
var timer;
var obj = (isIE)?"document.all":"document.getElementById"





// Menu Styles
function createStyles(quant){
styleBorder=(menuStyle.split(",")[quant-1].toLowerCase() == "flat")?cellBorder:0
  document.writeln ('<style>');
  //ORIGINAL WITH CURSOR:HAND document.writeln ('.rcMenuStatic'+quant+' {font-family:'+fontFace.split(",")[quant-1]+';font-size:'+fontSize.split(",")[quant-1]+';color:'+fontColour.split(",")[quant-1]+';font-weight:'+fontWeight.split(",")[quant-1]+';background-color:'+menuBackground.split(",")[quant-1]+'; cursor:hand; text-decoration:'+fontDecoration.split(",")[quant-1]+'}');
 //ORIGINAL WITH CURSOR:HANDdocument.writeln ('.rcMenuHover'+quant+'  {font-family:'+fontFace.split(",")[quant-1]+';font-size:'+fontSize.split(",")[quant-1]+';color:'+fontHoverColour.split(",")[quant-1]+';font-weight:'+fontHoverWeight.split(",")[quant-1]+';background-color:'+menuHoverBackground.split(",")[quant-1]+'; cursor:hand; text-decoration:'+fontDecoration.split(",")[quant-1]+'}');
  document.writeln ('.rcMenuStatic'+quant+' {font-family:'+fontFace.split(",")[quant-1]+';font-size:'+fontSize.split(",")[quant-1]+';color:'+fontColour.split(",")[quant-1]+';font-weight:'+fontWeight.split(",")[quant-1]+';background-color:'+menuBackground.split(",")[quant-1]+'; text-decoration:'+fontDecoration.split(",")[quant-1]+'}');
  document.writeln ('.rcMenuHover'+quant+'  {font-family:'+fontFace.split(",")[quant-1]+';font-size:'+fontSize.split(",")[quant-1]+';color:'+fontHoverColour.split(",")[quant-1]+';font-weight:'+fontHoverWeight.split(",")[quant-1]+';background-color:'+menuHoverBackground.split(",")[quant-1]+'; text-decoration:'+fontDecoration.split(",")[quant-1]+'}');
  document.writeln ('.rcSubMenuStatic'+quant+' {font-family:'+sfontFace.split(",")[quant-1]+';font-size:'+sfontSize.split(",")[quant-1]+';color:'+sfontColour.split(",")[quant-1]+';font-weight:'+sfontWeight.split(",")[quant-1]+';text-decoration:'+sfontDecoration.split(",")[quant-1]+';background-color:'+smenuBackground.split(",")[quant-1]+'; cursor:hand}');
  document.writeln ('.rcSubMenuHover'+quant+'  {font-family:'+sfontFace.split(",")[quant-1]+';font-size:'+sfontSize.split(",")[quant-1]+';color:'+sfontHoverColour.split(",")[quant-1]+';font-weight:'+sfontHoverWeight.split(",")[quant-1]+';text-decoration:'+sfontDecoration.split(",")[quant-1]+';background-color:'+smenuHoverBackground.split(",")[quant-1]+'; cursor:hand}');
  //document.writeln ('.Culture{color:#000000;font-family:Arial;font-size:14pt;font-weight:normal;font-style:italic;background-color:#b4d2ba;cursor:hand;text-decoration:none}');
  //document.writeln ('.CultureHover{font-family:Arial;font-size:12pt;font-style:italic;color:'+fontHoverColour.split(",")[quant-1]+';font-weight:'+fontHoverWeight.split(",")[quant-1]+';background-color:'+menuHoverBackground.split(",")[quant-1]+'; cursor:hand; text-decoration:'+fontDecoration.split(",")[quant-1]+'}');
  
  document.writeln ('</style>');
}
// Build and show the main menu items
function showMenus(quant,definedOrientation)
{
  createStyles(quant);
  if(definedOrientation!=""){orientation=definedOrientation}
  if (orientation.toLowerCase() == "vertical"){document.writeln ('<table border="0" width="'+tableWidth+'" cellpadding="0" cellspacing="'+styleBorder+'" bgColor="'+borderColor.split(",")[quant-1]+'">')}
  else{document.writeln ('<table border="0" cellpadding="0" cellspacing="'+styleBorder+'" bgColor="'+borderColor.split(",")[quant-1]+'"><tr>')}  
  for (x=0; x<eval("Menu"+quant).length; x++)
  {
    if (orientation.toLowerCase()=="vertical") document.writeln('<tr>')
    document.writeln ('<td width="'+menuWidth+'" onclick="tdMouseClick(\''+quant+'mainLink'+x+'\')" onMouseOver="hoverMenu(); popDown(\''+quant+'\','+x+', \''+quant+'button'+x+'\',\''+orientation+'\'); " onMouseOut="clearMenu('+quant+','+x+')" ')
    if (menuStyle.split(",")[quant-1].toLowerCase() == "3d"){document.writeln ('style="border-left:'+cellBorder+'px solid '+borderHighlight.split(",")[quant-1]+';border-top:'+cellBorder+'px solid '+borderHighlight.split(",")[quant-1]+';border-right:'+cellBorder+'px solid '+borderShadow.split(",")[quant-1]+';border-bottom:'+cellBorder+'px solid '+borderShadow.split(",")[quant-1]+';"');}        
    document.writeln ('><div id="'+quant+'button'+x+'"><table border="0" cellpadding="'+cellPadding.split(",")[quant-1]+'" cellspacing="0" width="100%"><tr>');
    //ORIGINALdocument.writeln ('><div id="'+quant+'button'+x+'"><table border="0" cellpadding="'+cellPadding.split(",")[quant-1]+'" cellspacing="0" width="100%"><tr><td class="rcMenuStatic'+quant+'" id="'+quant+'cell'+x+'" nowrap>');

     if (subIndicate == 1&&eval("subMenu"+quant)[x].length>=1){//added
     		//IF HAVE SUBMENU, DO NOT ALLOW HYPERLINK ON THE MAIN MENU
     		 document.writeln('<td class="rcMenuStatic'+quant+'" id="'+quant+'cell'+x+'" nowrap>');//ADDED
   		 document.writeln ('<div id="'+quant+'mainLink'+x+'" style="cursor:default;">'+eval("Menu"+quant)[x][0]+'</div></td>');
  		}//added
  	  else{//added
  	   	document.writeln('<td class="rcMenuStatic'+quant+'" id="'+quant+'cell'+x+'" style="cursor:pointer;" nowrap>');//ADDED
  	  		document.writeln ('<a id="'+quant+'mainLink'+x+'" href="'+eval("Menu"+quant)[x][1]+'" target="'+eval("Menu"+quant)[x][2]+'" class="rcMenuStatic'+quant+'">'+eval("Menu"+quant)[x][0]+'</a></td>');

  	   }//added
   
   
    if (subIndicate == 1&&eval("subMenu"+quant)[x].length>=1){
    	//document.writeln('<td class="rcMenuStatic'+quant+'" id="'+quant+'cell'+x+'a" align="right">');    //added
      //document.writeln ('<div id="'+quant+'mainLink'+x+'a" style="cursor:default;">'+indicator+'</div></td>');}//added
    	
   // else{//added
      document.writeln('<td class="rcMenuStatic'+quant+'" id="'+quant+'cell'+x+'a" align="right">');  //added  
      document.writeln ('<div id="'+quant+'mainLink'+x+'a" style="cursor:default;">'+indicator+'</div></td>');//added
      //ORIGINALdocument.writeln('<td class="rcMenuStatic'+quant+'" id="'+quant+'cell'+x+'a" align="right">');    
      //ORIGINAL document.writeln ('<a id="'+quant+'mainLink'+x+'a" href="'+eval("Menu"+quant)[x][1]+'" target="'+eval("Menu"+quant)[x][2]+'" class="rcMenuStatic'+quant+'">'+indicator+'</a></td>');
    }
    
    document.writeln ('</tr></table></div></td>');    
    if (orientation.toLowerCase()=="vertical") document.writeln('</tr>')
  }
  if (orientation.toLowerCase() == "vertical"){document.writeln ('</table>');}
  else{document.writeln ('</tr></table>');}   
  
  
  
  
// Build the sub menu items
  for (x=0; x<eval("Menu"+quant).length; x++)
  { 
    if (eval("subMenu"+quant)[x].length > 0)
    {     
      document.writeln ('<div id="'+quant+'MENU'+x+'" style="visibility:hidden;position:absolute;z-index:2;">');
      document.writeln ('<table width="'+smenuWidth.split(",")[quant-1]+'" border="0" cellpadding="'+cellPadding.split(",")[quant-1]+'" cellspacing="'+styleBorder+'" bgColor="'+sborderColor.split(",")[quant-1]+'">');
      for (y=0; y<eval("subMenu"+quant)[x].length; y++)
      {
        document.writeln ('<tr>');
        if (eval("subMenu"+quant)[x][y][1].indexOf("?") != -1) //THIS WAS indexOf("#") BUT I WAS TRYING TO USE #(fragment id) IN URL
        {
          document.writeln ('<td bgColor="'+eval("subMenu"+quant)[x][y][2]+'" id="'+quant+'subMenu'+x+y+'" onMouseOver="hoverMenu(); highlightMenu(\'sub\','+x+','+y+',\'\','+quant+')" nowrap')
          if (menuStyle.split(",")[quant-1].toLowerCase() == "3d"){document.writeln ('style="border-left:'+cellBorder+'px solid '+sborderHighlight.split(",")[quant-1]+';border-top:'+cellBorder+'px solid '+sborderHighlight.split(",")[quant-1]+';border-right:'+cellBorder+'px solid '+sborderShadow.split(",")[quant-1]+';border-bottom:'+cellBorder+'px solid '+sborderShadow.split(",")[quant-1]+';"');}
          document.writeln ('><p style="font-family:'+sfontFace.split(",")[quant-1]+'; font-size:'+sfontSize.split(",")[quant-1]+'; color:'+eval("subMenu"+quant)[x][y][1]+'"id="'+quant+'subLink'+x+y+'">'+eval("subMenu"+quant)[x][y][0]+'</p></td></tr>');
        }
        else
        {
          document.writeln ('<td id="'+quant+'subMenu'+x+y+'" class="rcSubMenuStatic'+quant+'" onMouseOver="hoverMenu(); highlightMenu(\'sub\','+x+','+y+',\'\','+quant+')" onMouseOut="clearMenu('+quant+','+x+');" onclick="tdMouseClick(\''+quant+'subLink'+x+y+'\')" nowrap')
          if (menuStyle.split(",")[quant-1].toLowerCase() == "3d"){document.writeln ('style="border-left:'+cellBorder+'px solid '+sborderHighlight.split(",")[quant-1]+';border-top:'+cellBorder+'px solid '+sborderHighlight.split(",")[quant-1]+';border-right:'+cellBorder+'px solid '+sborderShadow.split(",")[quant-1]+';border-bottom:'+cellBorder+'px solid '+sborderShadow.split(",")[quant-1]+';"');}
          document.writeln ('><a id="'+quant+'subLink'+x+y+'" href="'+eval("subMenu"+quant)[x][y][1]+'" target="'+eval("subMenu"+quant)[x][y][2]+'" class="rcSubMenuStatic'+quant+'">'+eval("subMenu"+quant)[x][y][0]+'</a></td></tr>');
        }
      }
      document.writeln ('</table></div>');
    }
  }
} 
// Change colour or menu and submenu items when the mouse hovers over.  
function highlightMenu(element,mainMenu,dropMenu,state,quant)
{
  hoverMenu();
  state=(state == "hover")?"rcMenuHover"+quant:"rcMenuStatic"+quant
  if (element == "sub")
  {
    for (x=0; x < eval("subMenu"+quant)[mainMenu].length; x++)
    {
      if (eval("subMenu"+quant)[mainMenu][x][1].indexOf("?") == -1){//was indexOf "#" but with # the submenu is not highlighted
        eval(obj+'("'+quant+'subMenu'+mainMenu+x+'").className = "rcSubMenuStatic'+quant+'"')
        eval(obj+'("'+quant+'subLink'+mainMenu+x+'").className = "rcSubMenuStatic'+quant+'"')
      }
    } 
    if (eval("subMenu"+quant)[mainMenu][dropMenu][1].indexOf("?") == -1)  {//was indexOf "#" but with # the submenu is not highlighted
      eval(obj+'("'+quant+'subMenu'+mainMenu+dropMenu+'").className="rcSubMenuHover'+quant+'"')
      eval(obj+'("'+quant+'subLink'+mainMenu+dropMenu+'").className="rcSubMenuHover'+quant+'"')
    }
  }
  else
  {
    eval(obj+'("'+quant+'cell'+mainMenu+'").className = "'+state+'"')
    eval(obj+'("'+quant+'mainLink'+mainMenu+'").className = "'+state+'"')
    if (subIndicate == 1&&eval("subMenu"+quant)[mainMenu].length>=1)
    {
      eval(obj+'("'+quant+'cell'+mainMenu+'a").className = "'+state+'"')
      eval(obj+'("'+quant+'mainLink'+mainMenu+'a").className = "'+state+'"')
    }
  }
}
// Find positioning for sub menus
function getOffset(obj, dim) 
{
  if(dim=="left") 
  {     
    oLeft = obj.offsetLeft;    
    while(obj.offsetParent!=null) 
    {    
      oParent = obj.offsetParent     
      oLeft += oParent.offsetLeft 
      obj = oParent 	
    }
    return oLeft
  }
  else if(dim=="top")
  {
    oTop = obj.offsetTop;
    while(obj.offsetParent!=null) 
    {
      oParent = obj.offsetParent
      oTop += oParent.offsetTop
      obj = oParent 	
    }
    return oTop
  }
  else if(dim=="width")
  {
    oWidth = obj.offsetWidth
    return oWidth
  }  
  else if(dim=="height")
  {
    oHeight = obj.offsetHeight
    return oHeight
  }    
  else
  {
    alert("Error: invalid offset dimension '" + dim + "' in getOffset()")
    return false;
  }
}
// Show sub menus
function popDown(quant, param, id, orientation)
{
  var cellBorderOffset = (isNS6)?cellBorder:eval(cellBorder*2)
  var browserAdjustment = (isNS6)?cellBorder:0
  var menu;
  var button;

  if (id)
  {    
    getOffset(eval(obj+'(id)'),'left');
    getOffset(eval(obj+'(id)'),'top');    
    getOffset(eval(obj+'(id)'),'width');  
    getOffset(eval(obj+'(id)'),'height');
    
    if (eval("Menu"+quant+"["+param+"][3]")=="right" && eval("subMenu"+quant+"["+param+"].length")>0) 
    { 
      oLeft=oLeft  
      oLeft=oLeft+oWidth; 
      getOffset(eval(obj+'("'+quant+'MENU'+param+'")'),'width');
      oLeft=oLeft-oWidth ;
      alignAdjustment = cellBorder*2 + 1
    }
    else 
    
    {
      alignAdjustment = 0
      oLeft=oLeft
    }    
  }  

 
  n = 0;    
  while (n < eval("Menu"+quant).length)
  {          
    menu = quant+"MENU"+n
    if (param == n)
    {
      theObj = eval(obj+'(menu)');
     
      if (theObj)
      {
         theObj.style.visibility = "visible" 
          if (orientation.toLowerCase()=="vertical"){
          
          	//MUST ADD THE PX BEFORE IT WILL WORK IN MOZILLA
            theObj.style.left = (menuStyle.split(",")[quant-1].toLowerCase()=="flat")?oLeft+oWidth+cellBorder+parseInt(horizontalOffset.split(",")[quant-1]) + 'px':oLeft+oWidth+cellBorderOffset+parseInt(horizontalOffset.split(",")[quant-1]) + 'px';
            theObj.style.top=(menuStyle.split(",")[quant-1].toLowerCase()=="flat")?oTop-cellBorder+parseInt(verticalOffset.split(",")[quant-1])+ 'px':oTop+parseInt(verticalOffset.split(",")[quant-1])-browserAdjustment+ 'px'}
          else{
            theObj.style.left=(menuStyle.split(",")[quant-1].toLowerCase()=="flat")?oLeft-cellBorder+parseInt(horizontalOffset.split(",")[quant-1])+alignAdjustment:oLeft+parseInt(horizontalOffset.split(",")[quant-1])-browserAdjustment+alignAdjustment;
            theObj.style.top=(menuStyle.split(",")[quant-1].toLowerCase()=="flat")?oTop+oHeight+cellBorder+parseInt(verticalOffset.split(",")[quant-1]):oTop+oHeight+cellBorderOffset+parseInt(verticalOffset.split(",")[quant-1]);}
        }
      
       highlightMenu('main',n,'','hover',quant)
       if (eval("subMenu"+quant)[param].length > 0)
       {
         for (x=0; x<eval("subMenu"+quant)[param].length; x++)
         {
           if(eval("subMenu"+quant)[param][x][1].indexOf("#") == -1){
             eval (obj+'("'+quant+'subMenu'+param+x+'").className = "rcSubMenuStatic'+quant+'"')
             eval (obj+'("'+quant+'subLink'+param+x+'").className = "rcSubMenuStatic'+quant+'"')  
           }       
         }
       }
    }
    else 
   
    {  
      for (x=1; x<quantity+1; x++)
      {       
        menu = x+"MENU"+n   
        //alert(menu)     
        if (eval(obj+'(menu)'))
        {
          eval(obj+'(menu).style.visibility = "hidden"')            
        }
        highlightMenu ('main',n,'','static',quant)
      }
    }

    n++
  }  
}
// Re-set timer for sub menus
function hoverMenu()
{
  if(timer)
  clearTimeout(timer)
}
// Set timer for sub menus
function clearMenu(quant,menu)
{
  setDelay = subMenuDelay*1000
  delay = (eval("subMenu"+quant)[menu].length > 0)?setDelay:1
  
  timer = setTimeout("popDown("+quant+","+(eval("Menu"+quant).length + 1)+")",delay)
}


// when you click the box, perform the same function as if the user had clicked the hyperlink
function tdMouseClick(theElement)
{
	//eval(obj+'(theElement).click()')
	var docUrl;
	var docString;
	docUrl = eval(obj + '(\''+theElement+'\').href');
	docString = docUrl
	if (docString != null)
	{
		//document.location = docUrl;
		if (obj.toString() != "document.all")
		{
			location.reload();
		}
	}
}
//-->

//************************************************END NAVIGATION**********************************************


//GET CULTURE FROM COOKIE
//ON PRODUCTION, SOME ACCESS LOGS WHERE ADDING COOKIES TO THE BROWSER;
//IF YOU CHOOSE ES THEN CONTINUE TO SEARCH IT WOULD SWITCH OVER TO ENG
//BECAUSE THE COOKIE LENGTH WOULD BE IN POS 150 VERSUS POS 10
//FIX: CREATED FUNCTION BELOW TO SPLIT AT ;
function getCookieCulture(){
	var allcookies = document.cookie;
	var cookievalue = "";
	cookieArray = allcookies.split(";");
	if (cookieArray.length >0){
		for (i=0; i<cookieArray.length; i++){
			aCookie = cookieArray[i];
			
			if (aCookie.indexOf("culture=") > -1){
				var valueLoc = aCookie.indexOf("=") + 1;
				cookievalue = aCookie.substring(valueLoc,aCookie.length);
			}	
			else{
			cookievalue = "en"
			}
		}
	}
	return unescape(cookievalue);
}
//function getCookieCulture(){
//	var allcookies = document.cookie;
//	var cookievalue;
//	//alert(allcookies);
//	if (allcookies){	
//		var pos = allcookies.indexOf("culture=");
//		if (pos != -1){//cookie doesn't exist
//			var start = pos + 8;
//			var end = allcookies.indexOf(";",start);
//			if (end == -1){// end - allcookies.length;
//				var cookievalue = allcookies.substring(start);
//			}
//			else{
//				if (end == 10){//culture = es [or en]; that is 10 chars before get to ; 
//			 		var cookievalue = allcookies.substring(start,end);
//			 	}
//			 	else{ // anything else set cookie to en -  had to do this for the links on record inquiry page
//			 		var cookievalue = "en";
//			 	}	
//			}
//			cookievalue = unescape(cookievalue);
//		}	
//		else{
//			cookievalue = "";
//		}	
//	}
//	else{
//		cookievalue="";
//	}
//	return cookievalue;
//}
	

//SET DOCUMENT COOKIE
function SetCookie(){
		//GET PARAMETERS FROM QUERYSTRING
	if (window.location.href.indexOf('?')!= -1) {	
		if(window.location.href.substring(window.location.href.indexOf('?')+ 1, window.location.href.indexOf('?')+7) != 'p_code'){//code tables are psp pages
			culture = window.location.href.substring(window.location.href.indexOf('?') + 9);	//GET CULTURE
			if (culture != ""){ // ?# USED IN THE NAVIGATION CAN'T USE # 	
				//document.cookie='culture='+ escape(culture) + '; path=/website';
				document.cookie='culture='+ escape(culture) + ';';
			}
			else{
				fragId = window.location.href.substring(window.location.href.indexOf('?') + 1);				
			}		
		}
		else{
			culture = "en";
			//document.cookie='culture='+ escape(culture) + '; path=/website';
			document.cookie='culture='+ escape(culture) + ';';
		}		
	}
	else{
		//CHECK THE COOKIE
		culture = getCookieCulture();
		//alert(culture);
		if (culture == "") {
			culture = "en";
		}
		//document.cookie='culture='+ escape(culture) + '; path=/website';
		//Problem 01/02/08 TD: Sometime English will show for Spanish pages or vice versa
		//The browser is not overwriting the culture but makes 2 entries of culture
		//Fix: Just comment out next line
		//document.cookie='culture='+ escape(culture) + ';';
	}
}


//COOKIE GENERIC - TD 03/30/09
function getCookie(name){
			var allcookies = document.cookie;
			var cookievalue = "";
			var v_name = name + "=";
			
			cookieArray = allcookies.split(";");
			if (cookieArray.length >0){
				for (i=0; i<cookieArray.length; i++){
					aCookie = cookieArray[i];
					if (aCookie.indexOf(v_name) > -1){
						var valueLoc = aCookie.indexOf("=") + 1;
						cookievalue = aCookie.substring(valueLoc,aCookie.length);
						break;
					}	
					else{
						cookievalue = "null";
					}
				}
			}
	return unescape(cookievalue);
}

function setCookie(name,value){
	var v_name = name + "=" + escape("y" )+ ';';
	var cookie = v_name;
	document.cookie = cookie;
}
//GENERIC END

//SHOW HIDE TAG
function showHideTag(tagName,imgName){
	
	var docTag;
	var image;
	docTag = document.getElementById(tagName);
	image = document.getElementById(imgName);
	if (docTag.style.visibility == "hidden"){
		docTag.style.display = "";
		docTag.style.visibility = "visible";
		//alert(image);
		if (image){
			image.src = "/img/sym_minus.gif";
			image.alt = "Minus Sign";
		}

	}
	else {
		docTag.style.display = "none";
		docTag.style.visibility = "hidden";
		if (image){
			image.src = "/img/sym_plus.gif";
			image.alt = "Plus Sign";
		}
	}
}


//JUST SHOW TAG DO NOT HIDE - USED FOR FRAG IDS	
function showTag(frag){

	var docTagName;
	docTagName = document.getElementsByName(frag);
	
	//EX.DEED CODES DO NOT HAVE THE SHOW HIDE FUNCTION; ITS DEFINITION STYLE
	//SO THE ID WILL NOT EXIST - THEREFORE ALL IT SHOULD DO IS JUMP DOWN TO 
	//THE TARGET
	
	if (docTagName.item(0)){
		qaSel = docTagName.item(0).id;
		if (parseInt(qaSel)){
			if (qaSel){
				var tagName = "qa" + qaSel + "Links";
				var imgName = "img_qa" + qaSel;
				//alert(tab+"and"+img);
				var docTag;
				var image;
				docTag = document.getElementById(tagName);
				image = document.getElementById(imgName);
				if (docTag.style.visibility == "hidden"){
					docTag.style.display = "";
					docTag.style.visibility = "visible";
					//alert(image);
					if (image){
						image.src = "/img/sym_minus.gif";
						image.alt = "Minus Sign";
					}
	
				}
			}	
		}	
	}
}
//function showLeftNavQuickLinks(){
//	document.writeln('<table id="LeftNavQuickLinks" style="width: 192px">');
//   document.writeln('<tr>');
//   document.writeln('<td class="DottedQuickLinks"><span class="FontOrangeBold"><strong>Quick Links</strong></span></td>');
//	document.writeln('</tr>');
//   document.writeln('<tr>');
//   document.writeln('<td class="FontBlackNormal9pt">');
//   document.writeln('<img src="/images/bullet.gif" width="12" height="11">&nbsp;');
//   document.writeln('<a href="http://pamap2.ocpafl.org/default3.aspx">Homestead Online</a><br>');
//   document.writeln('<img src="/images/bullet.gif" width="12" height="11">&nbsp;');
//   document.writeln('<a href="http://pamap2.ocpafl.org/default3.aspx">TPP Online</a><br>');
//   document.writeln('<img src="/images/bullet.gif" width="12" height="11">&nbsp;');
//   document.writeln('<a href="http://pamap2.ocpafl.org/default3.aspx">Employment</a><br>');
//   document.writeln('<img src="/images/bullet.gif" width="12" height="11">&nbsp;');
//   document.writeln('<a href="http://pamap2.ocpafl.org/default3.aspx">Map Searches</a><br>');
//   document.writeln('<img src="/images/bullet.gif" width="12" height="11">&nbsp;');
//   document.writeln('<a href="/disclaimer.html">Record Searches</a>');
//   document.writeln('</td>');
//   document.writeln('</tr>');
//   document.writeln('</table>');	
//	
//}



//READ FROM XML DOCUMENT
//function loadXML()
//{
//	//USED FOR FRAGID TO TARGET CERTAIN AREAS IN DOC
//	var fragmentId = window.location.href.indexOf('#');
//	if (fragId !=""){
//		var qaSel = fragId;
//	}
//	if (fragmentId != -1){
//		var qaSel = window.location.href.substring(fragmentId + 1);
//	}
//	if (parseInt(qaSel)){
//		if (qaSel){
//			var tab = "qa" + qaSel + "Links";
//			var img = "img_qa" + qaSel;
//			//alert(tab+"and"+img);
//			showHideTag(tab,img);
//		}	
//	}
//		
//	
//	// code for IE
//	if (window.ActiveXObject){
//		
//		xmlDoc=new ActiveXObject("Microsoft.XMLDOM");//XMLHTTP
////		The async parameter specifies whether the request should be handled asynchronously or not. 
////		true means that script processing carries on after the send() method, without waiting for a response. 
////		false means that the script waits for a response before continuing script processing
//
//	 	xmlDoc.async = false;
//	 	if (culture == "es"){
//	  	 	xmlDoc.load("/text_es.xml");
//	  		if (document.pageText.contentText.value == "default" || document.pageText.contentText.value == "meetpa"){
//	  			//document.getElementById("imgBanner").src = "/img/banner_sp.gif";
//	  			document.getElementById("imgBanner").src = "/img/banner_sp.gif";  
//	  		}
//	  		else{
//	  			document.getElementById("imgBanner").src = "/img/banner_with_PA_sp.gif";
//	  		}
//		}
//		else
//	  	{
//	  		xmlDoc.load("/text.xml");
//	  		if (document.pageText.contentText.value == "default" || document.pageText.contentText.value == "meetpa")
//	  		{
//	  			document.getElementById("imgBanner").src = "/img/banner.gif";  
//	  		}
//	  		else{	
//	  			document.getElementById("imgBanner").src = "/img/banner_with_PA.gif";
//	  		}
//	  	} 
//	  getmessage(xmlDoc,"doc");
//	}
//	// code for Mozilla, Firefox, Opera, Safari etc.
//	else if (window.XMLHttpRequest)
//			
//	{
//		xmlhttp = null;
//	  	xmlhttp = new XMLHttpRequest(); 
//	  	if (culture == "es")
//	  	{
//	  		//xmlDoc.load("/text_es.xml");
//	  		if (xmlhttp!=null)
//			{
//			 	xmlhttp.onreadystatechange =  onResponse; //state_Change
//			 	xmlhttp.open("GET","/text_es.xml",true);
//			  	xmlhttp.send(null);
//			  	document.getElementById("imgBanner").src = "/img/banner_sp.gif";
//			}
//			else
//			{
//			  alert("Your browser does not support XMLHTTP.");
//			}
//	  		
//	  	}
//	  	else //ENGLISH
//	  	{
//	  		if (xmlhttp!=null)
//			{
//			 	xmlhttp.onreadystatechange =  onResponse; //state_Change
//			 	xmlhttp.open("GET","/text.xml",true);
//			  	xmlhttp.send(null);	
//			  	document.getElementById("imgBanner").src = "/img/banner.gif";
//			}
//			else
//			{
//			  alert("Your browser does not support XMLHTTP.");
//			}
//			//new end
//	  	}
//  	}
//	else
//	{
//	  alert('Your browser cannot handle this script');
//	}
//	//document.getElementById("divPage").style.display = "block";
//}



//USING XMLHTTP VERSUS Microsoft.XMLDOM - 12/08/2008
function loadXML()
{
	//USED FOR FRAGID TO TARGET CERTAIN AREAS IN DOC
	var fragmentId = window.location.href.indexOf('#');
	if (fragId !=""){
		var qaSel = fragId;
	}
	if (fragmentId != -1){
		var qaSel = window.location.href.substring(fragmentId + 1);
	}
	//TFD 01/03/08 ADDED ELSE STATEMENT
	else{
		var qaSel = null;
	}	
	if (parseInt(qaSel)){
		if (qaSel){
			var tab = "qa" + qaSel + "Links";
			var img = "img_qa" + qaSel;
			showHideTag(tab,img);
		}	
	}
	//TFD 01/03/08 ADDED ELSE STATEMENT TO HANDLE FRAGMENT ID WITH TEXT (EG WHEREFILE) INSTEAD OF NUM (EG 3)
	//EXAMPLE ON WHEREFILE ON HXBRO PAGE
	else {
		if (qaSel != null) {
			if(isNaN(parseInt(qaSel))){
				showTag(qaSel);
			}
		}
	}

	xmlhttp = null;
	
		if (window.XMLHttpRequest)//OTHER BROWSERS
		{ 
		  	xmlhttp = new XMLHttpRequest(); 
		}
		else if (window.ActiveXObject)
	  	{	
	  		xmlhttp =new ActiveXObject("Microsoft.XMLHTTP");//IE BROWSERS
		}
		
		if (xmlhttp!=null)
		{
			if (culture == "es")
		  	{
				 	xmlhttp.onreadystatechange =  onResponse; //state_Change
				 	xmlhttp.open("GET","/text_es.xml",true);
				  	xmlhttp.send(null);
				  	document.getElementById("imgBanner").src = "/img/banner_sp.gif";
		  	}
		  	else //ENGLISH
		  	{
				 	xmlhttp.onreadystatechange =  onResponse; //state_Change
				 	xmlhttp.open("GET","/text.xml",true);
				  	xmlhttp.send(null);	
				  	document.getElementById("imgBanner").src = "/img/banner.gif";
		  	}	
		 }
		else
		{
			alert('Your browser cannot handle this script');
		}
}
//END USING XMLHTTP VERSUS Microsoft.XMLDOM - 12/08/2008




//NEW
function onResponse()
{
	if(checkReadyState(xmlhttp))
  	{
  		getmessage(xmlhttp,"http");
  	}
}
function checkReadyState(obj)
{
  if(obj.readyState == 4)
  {
    if(obj.status == 200)
    {  
    	//alert("XML data OK")	
    	return true;
    }
    else
    {
    	alert("Problem retrieving XML data");
    	return false;
    }
  }
}


function getmessage(obj,type)
{
	setStyleSheet();
	if (type == "http"){
		var response = obj.responseXML.documentElement;
	}
	else
	{
		var response = obj
	}
	document.getElementById("leftNavQuickLinks").innerHTML=
	response.getElementsByTagName("LEFTNAVQUICKLINKS")[0].childNodes[0].nodeValue;

	
	//document.getElementById("footer").appendChild(
	//document.createTextNode(xmlDoc.getElementsByTagName("FOOTER")[0].childNodes[0].nodeValue));
	
	
	document.getElementById("footer").innerHTML=
	response.getElementsByTagName("FOOTER")[0].childNodes[0].nodeValue;
	
	var PageName = document.pageText.contentText.value.toUpperCase();
	//alert(PageName);
	if (PageName != ""){
		var aboutocpa = response.getElementsByTagName(PageName);
		if (aboutocpa[0]){//
			for (i = 0; i < aboutocpa[0].childNodes.length; i++) {	
				if (aboutocpa[0].childNodes[i].nodeType == 1 && aboutocpa[0].childNodes[i].nodeType != 8){
					/*ADDED TO HANDLE THE DOC TITLE IN SPANISH*/
					if ((aboutocpa[0].childNodes[i].tagName == "DOCTITLE") && (culture = "es")){
						document.title = aboutocpa[0].childNodes[i].firstChild.nodeValue;
					}
					else{
						/*ADDED TO HANDLE THE DOC TITLE IN SPANISH END*/
						
						var lc = aboutocpa[0].childNodes[i].tagName.toLowerCase();
							document.getElementById(lc).innerHTML= aboutocpa[0].childNodes[i].firstChild.nodeValue
							
							//TO GET THE XML 3 ELEMENTS DEEP
							if (aboutocpa[0].childNodes[i].childNodes.length > 1){
								for(j=1 ;j < aboutocpa[0].childNodes[i].childNodes.length;j++){
									if (aboutocpa[0].childNodes[i].childNodes[j].nodeType == 1 && aboutocpa[0].childNodes[i].childNodes[j].nodeType != 8){
										var lcase = aboutocpa[0].childNodes[i].childNodes[j].tagName.toLowerCase();
										document.getElementById(lcase).innerHTML= aboutocpa[0].childNodes[i].childNodes[j].firstChild.nodeValue;
									}
								}
							}
							//01/07/2008 TFD
							//SOME QA WERE NOT IN SPANISH; THEREFORE THE PLUS SIGN WOULD STILL APPEAR
							//THE CODE GETS THE TAGNAME OF THE ELEMENT IN XML FILE WITH PATTERN
							//IF MATCHES FIND THE SECOND CHAR TO END OF STRING USUALLY A INTEGER (EG Q34) 
							//IF IT IS OF THE PATTERN THEN FIND THE DIV TAG WITH ID QA AND THE SECOND 
							//CHAR TO END STRING (EG QA34) AND CHANGE STYLE
							var pattern = /q\d+/;
							if (pattern.exec(lc) != null){
								document.getElementById("qa"+lc.substr(1)).style.visibility="visible";
								document.getElementById("qa"+lc.substr(1)).style.display="block";
							}
					}//added	to handle the doc title in spanish
				}	
			}
		}
		else{	//SOME PAGES IN ENG ARE NOT IN SP - SO IF TOGGLE AND THE CULTURE IS SPANISH BUT THE TAG IS NOT FOUND IN XML THEN JUST GO TO THE DEFAULT PAGE
			document.location = "/default.html";
		}
	}
	//SHOW THE PAGE ONLY AFTER PAGE LOADED SO DON'T SEE CONTENT OF SOURCE PAGE BEFORE TEXT FROM XML
	document.getElementById("divPage").style.display = "block";
  document.getElementById("divPage").style.visibility = "visible";
  
}


//NEW END




function setStyleSheet()
{	
	document.getElementById("linkCSS").href="/ocpaStyles.css";
}


//Show Sales Analysis Report
function showSalesReport() {
  theURL = 'http://paarcgis2.ocpafl.org/SalesReport/default.aspx';
  saleswin = window.open(theURL, "_blank", "toolbar=0,menubar=0,scrollbars=1,resizable=1");
}

function showFutureDevs() {
  theURL = 'http://paarcgis.ocpafl.org/webmap/default.aspx?futuredev=on';
  winfuturedev = window.open(theURL, "futuredev", "width=900,height=500,toolbar=0,menubar=0,scrollbars=1,resizable=1,left=10,top=10");
}


// Disable right-click menu options
function right(e) {
//var msg = "Sorry, you don't have permission to right-click.";
var msg = "Right-Click Disabled. Menu options not permitted here.";
if (navigator.appName == 'Netscape' && e.which == 3) {
alert(msg);
return false;
}
if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
alert(msg);
return false;
}
else return true;
}

// Disable right-click over an image
function trapimg() {
  document.getElementById('signature').onmousedown = right;
  document.getElementById('signature').onmouseup = right;
}

// Disable right-click over all images
/*function trapimgs() 
  {
  if(document.images)
    {
    for(i=0;i<document.images.length;i++) {
        document.images[i].onmousedown = right;
        document.images[i].onmouseup = right;
      }
    }
  }
*/

/*function OpenWin(refImg,imgW,imgH) {
        infoWin=window.open(refImg,'Seal','toolbar=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=no,width='+imgW+',height='+imgH+',top=200,right=screen.width -300');
        //return false;
}*/

var infoWin;
function OpenWin() {
	
	if (infoWin && !infoWin.closed){
			infoWin.focus();
		} 
		else{
	w=screen.width - 300
        infoWin=window.open('/docs/market_value.html','Info','toolbar=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes,width=525,height=300,top=100,center=screen.width-100');
	}
}



//JUST MARKET VALUE WINDOW
function JMVMessage(){
	if (infoWin && !infoWin.closed){
			infoWin.focus();
	}
	else{
	infoWin=window.open('','JMV','toolbar=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes,width=525,height=300,top=100,center=screen.width-100');
	infoWin.document.writeln('<HTML>');
	infoWin.document.writeln('<HEAD>');
	infoWin.document.writeln('<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">');
	infoWin.document.writeln('<META NAME="Generator" CONTENT="Microsoft Word 97">');
	infoWin.document.writeln('<TITLE>Market (Just) Value</TITLE>');
	infoWin.document.writeln('<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">');
	infoWin.document.writeln('<!-- Hide script from old browsers');
	infoWin.document.writeln('function CloseWin()'); 
	infoWin.document.writeln('{');
	infoWin.document.writeln('if (window.open)'); 
	infoWin.document.writeln('{');
	infoWin.document.writeln('window.close()');
	infoWin.document.writeln('}');
	infoWin.document.writeln('}');
	infoWin.document.writeln('// end script hiding -->');
	infoWin.document.writeln('</SCRIPT>');
	infoWin.document.writeln('</HEAD>');
	infoWin.document.writeln('<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#ffffff">');
	infoWin.document.writeln('<H1 ALIGN="CENTER">JUST "MARKET" VALUE DESCRIPTION</H1>');
	infoWin.document.writeln('<P><FONT SIZE=4>This is the value established by the Property Appraiser for ad valorem purposes. This value does not represent anticipated selling price.</P>');
	infoWin.document.writeln('</FONT><P ALIGN="CENTER"><BR>');
	infoWin.document.writeln('<FONT SIZE=4><P ALIGN="CENTER">If you have any questions, please call (407) 836-5044 or 836-5045');
	infoWin.document.writeln('</FONT><BR><BR><a href="javascript:CloseWin()">Close Window</a><BR>');
	infoWin.document.writeln('<FONT SIZE=2>Copyright &copy; 1996 Orange County Property Appraiser. All rights reserved.<BR>');
	//infoWin.document.writeln('This page last modified on: 08/22/2001 </P></FONT></BODY>');
	infoWin.document.writeln('</HTML>');
	infoWin.document.close;
	infoWin.focus();
	}
}

function PrintThisPage() 
{ 
	if (infoWin && !infoWin.closed){
			infoWin.focus();
	}
	else{
	   var sOption="toolbar=yes,location=no,directories=no,menubar=yes,"; 
	       sOption+="scrollbars=yes"; 
	
	   var sWinHTML = document.getElementById('contentstart').innerHTML; 
	   
	   	infoWin=window.open('','PrinterFriendly',sOption); 
	       infoWin.document.open(); 
	       infoWin.document.write('<html><title>Printer Friendly</title><body>'); 
	       infoWin.document.write(sWinHTML);          
	       infoWin.document.write('</body></html>'); 
	       infoWin.document.close(); 
	       infoWin.focus(); 
	}
}


 var lang;
  function FileOnline(lang){
    //theURL = "https://paims.ocpafl.org/exemptionapp/Default.aspx?lang="+lang;
    theURL = "https://vwebhx.ocpafl.org/exemptionapp/Default.aspx?lang="+lang;	
    document.location = theURL;
  }
   function TPPFileOnline(app){
    if (app == 'rental') {
      theURL = 'https://www1.ocpafl.org/tpp/tpp_rental_login.html';
      //objTppWin = window.open(theURL,'TppWin','toolbar=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes,width=800,height=600,top=,right=');
    }
    else {
      theURL = 'https://paweb1.ocpafl.org/TppRegularApp/Default.aspx';
      //document.location = theURL;
    }
      objTppWin = window.open(theURL,'TppWin','toolbar=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes,width=800,height=600,top=,right=');
  }
  
  
  //AWARDS PAGE,ENDORSEMENTS PAGE
  var imgWin;

	function OpenImgWin(refImg,refWth,refHth) {
		if (imgWin && !imgWin.closed){
			imgWin.focus();
		} 
		else{
		        imgWin = window.open(refImg,'ImgWin','toolbar=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=no,width='+refWth+',height='+refHth+',top=100,right=screen.width -300');
		        imgWin.focus();
	        }
	}
	

	function ToggleLanguage(){
	var page;
	
	if (culture=="es"){
		 page="/default.html?culture=en";
	}
	if (culture == "en"){
		 page="/default.html?culture=es";
	}
	document.location=page;	
	}
	




 //**IN IE, SOMETIMES THE ENTER DOESN'T WORK WHEN TRYING TO SUBMIT FORM IF > 1 BOX ON PAGE**
  function addInputSubmitEvent(form, input) {
    input.onkeydown = function(e) {
        e = e || window.event;
        if (e.keyCode == 13) {
          //  form.submit();
         
          	switch(form.name){
          		case "parcel":
          		 SendtoProcedure(form);
          		break;
          		case "addr":
          		form.submit();
          		break;
          		case "plat":
          		form.submit();
          		break;
          		case "sub":
          		form.submit();
          		break;
          		
          		case "PropertyUse":
          		form.submit();
          		break;
          		case "vac_lnd":
          		form.submit();
          		break;
          		case "Condo":
          		form.submit();
          		break;
          		
          		
          	}
           
            return false;
        }
    };
}



function AddSubmitEvent() {
	
    var forms = document.getElementsByTagName('form');

    for (var i=0;i < forms.length;i++) {
        var inputs = forms[i].getElementsByTagName('input');

        for (var j=0;j < inputs.length;j++){
            addInputSubmitEvent(forms[i], inputs[j])};
    }
}
////**IN IE, SOMETIMES THE ENTER DOESN'T WORK WHEN TRYING TO SUBMIT FORM IF >1 BOX ON PAGE END**

//Record Searches - option to select multiple records for map display */                                                                                                                                                          
var opt = '';                                                                                                                     
function selRecords(opt) { 
  var recIds = '';
  var chkRecs = document.getElementsByName('chkItems');
  //objTableList = document.getElementById('searchlist');                         
  for (i=0; i < chkRecs.length; i++) {      
    if (opt == 'S')
      chkRecs[i].checked = true;                                    
    if (opt == 'D')                                                             
      chkRecs[i].checked = false;                                               
    if (opt == 'M') {                                                             
      if (chkRecs[i].checked) {                                                 
        recIds = recIds+'|'+chkRecs[i].value;
      }
    }
  }
  //Strip leading verticle bar from string of pids
  recIds = recIds.substring(1,recIds.length);

  if (opt == 'M') {                    
    theURL = 'http://paarcgis.ocpafl.org/Webmap/Default.aspx?PINS='+recIds;   
    mapwin=window.open(theURL);
    //alert(theURL);                                                        
  }                                                                             
}                                            

function showVideo(pFILE){
  document.getElementById('WindowsMediaPlayer1').URL = pFILE;
}

function show_MyTags(){
  objTagFrm = document.getElementById('tagframe');
  if (objTagFrm.style.display == 'none')
    objTagFrm.style.display = 'inline';
  else
    objTagFrm.style.display = 'none'; 	
}


/*

//**************************************
//TD 09/08/08 - THE MOUSEOVER, MOUSEOUT EVENTS CREATE AND REMOVE DYNAMIC DIVS - CREATED FOR DEED_TYPES IN SALES INFO
var id; //THE CONTENT NODES INSIDE THE OPENING TAG IN THE XML FILE
var dynamicDivText;
dynamicDivText = null;
var TimeOutId = 0;
var objDiv = null;
var divWidth = 400;
var divYPad = 20;
var objShadowDiv = null;
var xmlOpeningTagName = null;//THE OPENING TAG IN XML FILE

//1 Millisecond = 0.001 Seconds 
//500 Milliseconds = 0.5 Seconds
//SETINTERAL - KEEP CHECKING OVER THE SPECIFIED TIME FRAME (IN MILLISECONDS)


//GET THE CURSORS X,Y COORDINATES
//SEND XML REQUEST, KEEP CHECKING EVERY .5 SECONDS TO MAKE SURE THE XML TEXT HAS 
//BEEN RETRIEVED BEFORE YOU MAKE THE DIV VISIBLE
function getCursorXY(e,p_id,p_xmlOpeningTagName) {
 	id = p_id;
 	xmlOpeningTagName = p_xmlOpeningTagName;
 	
	x = (window.Event) ? e.pageX : event.clientX;
  	y = (window.Event) ? e.pageY : event.clientY;
  
//The position of the DIV to the cursor position fires the onmouseout 
//event.  Adding a couple of pixels to the X & Y co-ordinates resolves that.

	x = (x + divYPad) - (divWidth/2);
	y = y + divYPad;
	
//HOW MUCH HORIZONTAL AND VERTICAL SCROLLING
	if(self.pageYOffset) {	
 		rX = self.pageXOffset;	
 		rY = self.pageYOffset;	
 		//Mozilla doesn't need the offset
 	}
 	else if(document.documentElement && document.documentElement.scrollTop) {	
 		rX = document.documentElement.scrollLeft;	
 		rY = document.documentElement.scrollTop;	
 	}
 	else if(document.body) {	
 		rX = document.body.scrollLeft;	
 		rY = document.body.scrollTop;	
		//IE needs the offset to handle the scroll
 		x = x + rX;
 		y = y + rY;
 	}
 	
 		dynamicDivText = null;
 		sendXMLRequest("getDynamicDivText");
 		TimeOutId = window.setInterval("checkXMLText(x,y);",500);
}

//SEE IF THE XML TEXT EXISTS BEFORE YOU SHOW THE DIV BOX
function checkXMLText(p_x,p_y){
	if(dynamicDivText != null){
		
		TimeOutId = window.clearInterval(TimeOutId);
		
		if (objDiv != null){
			
			//SHADOW
			objShadowDiv.style.left = (x + 5) + "px";
			objShadowDiv.style.top = (y + 5) + "px";
			objShadowDiv.style.visibility = "visible";
			objShadowDiv.style.display = "block";
			objShadowDiv.innerHTML= "<div style='visibility:hidden'>" + dynamicDivText + "</div>";
			document.body.appendChild(objDiv);
			
			
			//CONTENT DIV
	 		objDiv.style.left = x + "px";
			objDiv.style.top = y + "px";
			objDiv.style.visibility = "visible";
			objDiv.style.display = "block";
			objDiv.innerHTML= dynamicDivText;
			document.body.appendChild(objDiv);
		}
		else{
			createDivWithShadow(p_x,p_y);
		}
	}
}

//AT FIRST THE DIV ELEMENT IS CREATED; ONCE CREATED THE STYLE PROPERTIES VISIBILITY AND DISPLAY ARE USED
function createDivWithShadow(x,y){
	//SHADOW - CANNOT USE THE CSS FILTER BECAUSE IT PRIMARILY WORKS IN IE
	objShadowDiv =document.createElement("DIV");
	objShadowDiv.setAttribute("id","ShadowDiv");
	objShadowDiv.style.width = divWidth;
	objShadowDiv.style.position="absolute";
	objShadowDiv.style.backgroundColor="#999999";
	objShadowDiv.style.border="solid medium #999999";
	objShadowDiv.style.color="#000000";
	objShadowDiv.style.fontFamily = "Arial";
	objShadowDiv.style.fontSize = "9pt";
	objShadowDiv.style.fontWeight = "normal";
	objShadowDiv.style.left = (x + 5) + "px";
	objShadowDiv.style.top = (y + 5) + "px";
	objShadowDiv.innerHTML= "<div style='visibility:hidden'> " + dynamicDivText + "</div>";
	document.body.appendChild(objShadowDiv);
	
	//CREATE DIV ON TOP OF SHADOW
	objDiv=document.createElement("DIV");
		objDiv.setAttribute("id","ContentDiv");
		objDiv.style.width = divWidth;
		objDiv.style.position="absolute";
		objDiv.style.backgroundColor="#FFCC66";
		objDiv.style.border="solid medium #B4D2BA";
		objDiv.style.color="#000000";
		objDiv.style.fontFamily = "Arial";
		objDiv.style.fontSize = "9pt";
		objDiv.style.fontWeight = "normal";
		objDiv.style.left = x + "px";
		objDiv.style.top = y + "px";
		objDiv.innerHTML= dynamicDivText;
		document.body.appendChild(objDiv); 
}

function hideDiv(){
	if (objDiv != null){
		TimeOutId = window.clearInterval(TimeOutId);
		objDiv.style.visibility = "hidden";
  		objDiv.style.display = "none";
  		//SHADOW
  		objShadowDiv.style.visibility = "hidden";
  		objShadowDiv.style.display = "none";
	}
	
}
 
 //HIDE THE DIV BOX
// function removeDiv(p_event,name) {
function removeDiv() {
  TimeOutId = window.clearInterval(TimeOutId);
 
 	if (objDiv != null){
	  objDiv.style.visibility = "hidden";
	  objDiv.style.display = "none";
	  //SHADOW
  		objShadowDiv.style.visibility = "hidden";
  		objShadowDiv.style.display = "none";
	}
 }
 
 //SEND THE XML REQUEST
 function sendXMLRequest(p_functionName){
 	
 	xmlhttp = null;
	
		if (window.XMLHttpRequest)//OTHER BROWSERS
		{ 
		  	xmlhttp = new XMLHttpRequest(); 
		}
		else if (window.ActiveXObject)
	  	{	
	  		xmlhttp =new ActiveXObject("Microsoft.XMLHTTP");//IE BROWSERS
		}
		
		if (xmlhttp!=null)
		{
			if (p_functionName = "getDynamicDivText")
				{
					xmlhttp.onreadystatechange =  getDynamicDivText;
				}
				xmlhttp.open("GET","/text.xml",true);
				xmlhttp.send(null);	
		 	}
		else
		{
			alert('Your browser cannot handle this script');
		}
}

function getDynamicDivText()
{
	
	if(checkReadyState(xmlhttp))
  	{
  		
  		readDynamicDivXML(xmlhttp,"http");
  	}
}

function readDynamicDivXML(obj,type)
{
	dynamicDivText = null;
	if (type == "http"){
		var response = obj.responseXML.documentElement;
	}
	else
	{
		var response = obj
	}	
	
	var PageName = xmlOpeningTagName.toUpperCase();//"DEED_TYPES";

	if (PageName != ""){
		var aboutocpa = response.getElementsByTagName(PageName);
		if (aboutocpa[0]){
			//FIND TAG NAME
			for (var i = 0; i < aboutocpa[0].childNodes.length; i++) {
				if (aboutocpa[0].childNodes[i].tagName == id){
					dynamicDivText =  aboutocpa[0].childNodes[i].firstChild.nodeValue;
					break;
				}	
			}
		}
	}
}
//END TD 09/08/08 - THE MOUSEOVER, MOUSEOUT EVENTS CREATE AND REMOVE DYNAMIC DIVS
//********************************************
*/


//*****************************************************
//TD - 10/16/2008 - MOUSE OVER POP UP BOXES 

//HOLDS NAME OF THE PREVIOUS LINK MOUSED OVER, IF SAME JUST DISPLAY OTHERWISE RECREATE
var gv_prevLink = null; 

//PADS CLIENT WIDTH BECAUSE IT DOESN'T INCLUDE BORDERS AND MARGINS
var gv_clientWidthPad = 40;

//OFFSET SHADOW TO RIGHT
var gv_shadowOffset = 5;

 //THE CONTENT NODES INSIDE THE OPENING TAG IN THE XML FILE
var gv_id;

//DYNAMIC TEXT
var gv_dynamicDivText = null;
var gv_TimeOutId = 0;
var gv_elementWidth = null;

//THE POSITION OF THE DIV TO THE CURSOR POSITION FIRES THE ONMOUSEOUT 
//EVENT RESULTING IN CONSTANT FLASHING.  ADDING A COUPLE OF PIXELS TO THE 
//X & Y CO-ORDINATES RESOLVES THAT.
var gv_divYPad = 15;

//DIV OBJECT
var gv_objDiv = null;

//SHADOW - CANNOT USE THE CSS FILTER BECAUSE IT PRIMARILY WORKS IN IE SO CREATE A DIV UNDERNEATH
var gv_objShadowDiv = null;

//THE OPENING TAG IN XML FILE
var gv_xmlOpeningTagName = null;

//1 Millisecond = 0.001 Seconds 
//500 Milliseconds = 0.5 Seconds
//SETINTERAL - KEEP CHECKING OVER THE SPECIFIED TIME FRAME (IN MILLISECONDS)



//PARAMETERS: (EVENT,ELEMENT'S ID,WHERES THE DATA,WHICH LINK ARE HOVERED ON, WIDTH OF ELEMENT)
//NULL WIDTH MEANS THAT YOU JUST WANT IT TO BE THE SIZE OF THE TEXT
function HoverOnShowPopUp(e,p_element_id,p_content_loc,p_on_which_link,p_element_width){
	
	//GLOBAL VARIABLES
	gv_elementWidth = p_element_width;
	
	//LOCAL VARIABLES 
	var lv_cursorX;
	var lv_cursorY;
	var lv_PaddedX;
	var lv_PaddedY;
	
	//GET X CURSOR POSITION
	lv_cursorX = getCursorX(e);
	//GET Y CURSOR POSITION
	lv_cursorY = getCursorY(e);

	lv_PaddedX = lv_cursorX + gv_divYPad;
	lv_PaddedY = lv_cursorY + gv_divYPad;
	
	gv_id = p_element_id;
	
	//CONTENT IS LOCATED IN XML FILE
	if (p_content_loc == "xml"){
		if (p_on_which_link == "Deed Codes"){
			gv_xmlOpeningTagName = "deed_codes";
		}
		else{
			gv_xmlOpeningTagName = p_on_which_link;
	    }
		gv_dynamicDivText = null;
 		sendXMLRequest("getDynamicDivText");
 		
 		gv_TimeOutId = window.setInterval("checkXMLText(" + lv_PaddedX + "," + lv_PaddedY + ",'" + p_on_which_link + "');",500);
	}
	//CONTENT LOCATED IN PAGE
	else if(p_content_loc == "page")
	{
		//GET ELEMENT BY ID
		getTextWithinTag(p_element_id);	
		ShowPopUpBox(lv_PaddedX,lv_PaddedY,p_on_which_link);
	}
}

//PARAMETER(S):  P_CONTENT_LOC IS THE LOCATION OF THE DATA TO DISPLAY INSIDE BOX
function HoverOffHidePopUp(p_content_loc){
	
	if (p_content_loc == "xml"){ 
		gv_TimeOutId = window.clearInterval(gv_TimeOutId);
 	}
 	
 	if (gv_objDiv != null){
	  	gv_objDiv.style.visibility = "hidden";
	  	gv_objDiv.style.display = "none";
	  	
	  	//SHADOW
	  	gv_objShadowDiv.style.visibility = "hidden";
  		gv_objShadowDiv.style.display = "none";
  	}
}

//PARAMETER(S): E IS THE EVENT
function getCursorX(e) {
	x = (window.Event) ? e.pageX : event.clientX;
  
	//HOW MUCH HORIZONTAL AND VERTICAL SCROLLING
	if(self.pageYOffset) {	
 		rX = self.pageXOffset;	
 		//Mozilla doesn't need the offset
 	}
 	else if(document.documentElement && document.documentElement.scrollTop) {	
 		rX = document.documentElement.scrollLeft;	
 	}
 	else if(document.body) {	
 		rX = document.body.scrollLeft;	
		//IE needs the offset to handle the scroll
 		x = x + rX;
 	}
 	return x;
}

//PARAMETER(S): E IS THE EVENT
function getCursorY(e) {	
  	y = (window.Event) ? e.pageY : event.clientY;
  
	//HOW MUCH HORIZONTAL AND VERTICAL SCROLLING
	if(self.pageYOffset) {	
 		rY = self.pageYOffset;	
 		//Mozilla doesn't need the offset
 	}
 	else if(document.documentElement && document.documentElement.scrollTop) {	
 		rY = document.documentElement.scrollTop;	
 	}
 	else if(document.body) {	
 		rY = document.body.scrollTop;	
		//IE needs the offset to handle the scroll
 		y = y + rY;
 	}
 	return y;
}

function getTextWithinTag(p_element_id){
	gv_dynamicDivText =  document.getElementById(p_element_id + "BoxText").innerHTML;
}


function ShowPopUpBox(p_LocX,p_LocY, p_whichLink)
{	
	
	if (gv_prevLink == p_whichLink){
		if (gv_objDiv != null){
			
			//SHADOW
			gv_objShadowDiv.style.visibility = "hidden";
			gv_objShadowDiv.style.display = "block";
			gv_objShadowDiv.innerHTML= "<div style='visibility:hidden'>" + gv_dynamicDivText + "</div>";
			document.body.appendChild(gv_objShadowDiv);
			
			//CLIENT WIDTH DOESN'T INCLUDE BORDERS OR MARGINS
			//IN ORDER TO GET CLIENT WIDTH MUST APPEND; SO NEED TO REMOVE AND APPEND AGAIN
			var objShadowDivWidth = gv_objShadowDiv.clientWidth + gv_clientWidthPad; 
			document.body.removeChild(gv_objShadowDiv);
			
			//APPEND DIV AGAIN
			gv_objShadowDiv.style.left = ((p_LocX + gv_shadowOffset)- (objShadowDivWidth / 2)) + "px";
			gv_objShadowDiv.style.top = (p_LocY + gv_shadowOffset) + "px";
			gv_objShadowDiv.style.visibility = "visible";
			gv_objShadowDiv.style.display = "block";
			gv_objShadowDiv.innerHTML= "<div style='visibility:hidden'>" + gv_dynamicDivText + "</div>";
			document.body.appendChild(gv_objShadowDiv);
		
			
			//CONTENT 
			gv_objDiv.style.visibility = "hidden";
			gv_objDiv.style.display = "block";
			gv_objDiv.innerHTML= gv_dynamicDivText;
			document.body.appendChild(gv_objDiv);
			
			var objDivWidth = gv_objDiv.clientWidth + gv_clientWidthPad; 
			document.body.removeChild(gv_objDiv);
			
			//APPEND CONTENT AGAIN
			gv_objDiv.style.visibility = "visible";
			gv_objDiv.style.display = "block";
			gv_objDiv.style.left = p_LocX - parseInt(objDivWidth/2) +  "px";
			gv_objDiv.style.top = p_LocY + "px";
			gv_objDiv.innerHTML= gv_dynamicDivText;
			document.body.appendChild(gv_objDiv);
		}
	}
	else{
		if (gv_objDiv != null){
			document.body.removeChild(gv_objDiv);
		}
		if (gv_objShadowDiv != null){
			document.body.removeChild(gv_objShadowDiv);
		}
		createDivWithShadow(p_LocX,p_LocY,p_whichLink);
	}
}



function SetMouseOverContentProperties()
{
	gv_objDiv=document.createElement("DIV");
	gv_objDiv.setAttribute("id","ContentDiv");
	gv_objDiv.style.position="absolute";
	gv_objDiv.style.backgroundColor="#FFCC66";
	gv_objDiv.style.border="solid medium #B4D2BA";
	gv_objDiv.style.color="#000000";
	gv_objDiv.style.fontFamily = "Arial";
	gv_objDiv.style.fontSize = "9pt";
	gv_objDiv.style.fontWeight = "normal";
	gv_objDiv.style.padding = "4px";
}

function SetMouseOverShadowProperties(){
	
	gv_objShadowDiv =document.createElement("DIV");
	gv_objShadowDiv.setAttribute("id","ShadowDiv");
	gv_objShadowDiv.style.position="absolute";
	gv_objShadowDiv.style.backgroundColor="#999999";
	gv_objShadowDiv.style.border="solid medium #999999";
	gv_objShadowDiv.style.color="#000000";
	gv_objShadowDiv.style.fontFamily = "Arial";
	gv_objShadowDiv.style.fontSize = "9pt";
	gv_objShadowDiv.style.fontWeight = "normal";
	gv_objShadowDiv.style.padding = "4px";
	
}

//AT FIRST THE DIV ELEMENT IS CREATED; ONCE CREATED THE STYLE PROPERTIES VISIBILITY AND DISPLAY ARE USED
function createDivWithShadow(p_LocX,p_LocY,p_whichLink){
	
	gv_prevLink = p_whichLink;
	var lv_x;
	var lv_y;

	if (gv_elementWidth != null){
		lv_x = (p_LocX - (gv_elementWidth/2));
		lv_y = p_LocY;

		SetMouseOverShadowProperties();
		gv_objShadowDiv.style.width = gv_elementWidth;
		gv_objShadowDiv.style.left = (lv_x + gv_shadowOffset) + "px";
		gv_objShadowDiv.style.top = (lv_y + gv_shadowOffset) + "px";
		gv_objShadowDiv.innerHTML= "<div style='visibility:hidden'> " + gv_dynamicDivText + "</div>";
		document.body.appendChild(gv_objShadowDiv);
		
		/*CREATE CONTENT ON TOP OF SHADOW*/
		SetMouseOverContentProperties();
		gv_objDiv.style.width = gv_elementWidth;
		gv_objDiv.style.left = lv_x + "px";
		gv_objDiv.style.top = lv_y + "px";
		gv_objDiv.innerHTML= gv_dynamicDivText;
		document.body.appendChild(gv_objDiv);
	}
	//POP UP BOX IS A DYNAMIC WIDTH, THE SIZE OF THE CONTENT TEXT
	//IN ORDER TO GET CLIENT WIDTH MUST APPEND; SO NEED TO REMOVE AND APPEND AGAIN
	else{
		
		SetMouseOverShadowProperties();
		gv_objShadowDiv.innerHTML= "<div style='visibility:hidden'> " + gv_dynamicDivText + "</div>";	
		gv_objShadowDiv.style.visibility = "hidden";
		document.body.appendChild(gv_objShadowDiv);
	
		var objShadowDivWidth = gv_objShadowDiv.clientWidth + gv_clientWidthPad; 
		document.body.removeChild(gv_objShadowDiv);
	
		//APPEND AGAIN BUT SET THE LEFT USING CLIENTWIDTH
		SetMouseOverShadowProperties();
		gv_objShadowDiv.style.left = ((p_LocX + gv_shadowOffset) - (objShadowDivWidth / 2)) + "px";
		gv_objShadowDiv.style.top = (p_LocY + gv_shadowOffset) + "px";
		gv_objShadowDiv.innerHTML= "<div style='visibility:hidden'> " + gv_dynamicDivText + "</div>";
		gv_objShadowDiv.style.visibility = "visible";
		document.body.appendChild(gv_objShadowDiv);
		
		/*CREATE DIV ON TOP OF SHADOW*/
		SetMouseOverContentProperties();
		gv_objDiv.innerHTML= gv_dynamicDivText;
		gv_objDiv.style.visibility = "hidden";
		document.body.appendChild(gv_objDiv); 
			
		var objDivWidth = gv_objDiv.clientWidth + gv_clientWidthPad; 
		document.body.removeChild(gv_objDiv);	
		
		SetMouseOverContentProperties();
		gv_objDiv.style.left = p_LocX - parseInt(objDivWidth/2) +  "px";
		gv_objDiv.style.top = p_LocY + "px";
		gv_objDiv.innerHTML= gv_dynamicDivText;
		gv_objDiv.style.visibility = "visible";
		document.body.appendChild(gv_objDiv); 
	}	
}
function checkXMLText(p_x,p_y,p_which_link){

	if(gv_dynamicDivText != null){
		
		gv_TimeOutId = window.clearInterval(gv_TimeOutId);
		
		if (gv_objDiv != null){
			 ShowPopUpBox(p_x,p_y,p_which_link)
		}
		else{
			createDivWithShadow(p_x,p_y,p_which_link);
		}
	}
}

//SEND THE XML REQUEST
 function sendXMLRequest(p_functionName){
 	xmlhttp = null;
	
		if (window.XMLHttpRequest)//OTHER BROWSERS
		{ 
		  	xmlhttp = new XMLHttpRequest(); 
		}
		else if (window.ActiveXObject)
	  	{	
	  		xmlhttp =new ActiveXObject("Microsoft.XMLHTTP");//IE BROWSERS
		}
		
		if (xmlhttp!=null)
		{
			if (p_functionName = "getDynamicDivText")
				{
					xmlhttp.onreadystatechange =  getDynamicDivText;
				}
				xmlhttp.open("GET","/text.xml",true);
				xmlhttp.send(null);	
		 	}
		else
		{
			alert('Your browser cannot handle this script');
		}
}

function getDynamicDivText()
{
	
	if(checkReadyState(xmlhttp))
  	{
  		
  		readDynamicDivXML(xmlhttp,"http");
  	}
}

function readDynamicDivXML(obj,type)
{
	gv_dynamicDivText = null;
	if (type == "http"){
		var response = obj.responseXML.documentElement;
	}
	else
	{
		var response = obj
	}	
	
	var PageName = gv_xmlOpeningTagName.toUpperCase();//"DEED_TYPES";
	

	if (PageName != ""){
		var aboutocpa = response.getElementsByTagName(PageName);
		
		if (aboutocpa[0]){
			//FIND TAG NAME
			for (var i = 0; i < aboutocpa[0].childNodes.length; i++) {
				if (aboutocpa[0].childNodes[i].tagName == gv_id){
					gv_dynamicDivText =  aboutocpa[0].childNodes[i].firstChild.nodeValue;
					break;
				}	
			}
		}
	}
}

//END MOUSE OVER POP UP BOXES 
//*****************************************************


//SET FOCUS ON THE SEARCHES
//****************************************************
//04/13/09 - TD - THE CURSOR FOCUS IN THE SEARCHES CREATED A JAVASCRIPT ERROR
//If Internet Options - Advanced, Browsing, Disable script debugging is unchecked 
//you see the error and the cursor doesnot focus, but if unchecked you do not see the error
//The error still exists but it is hidden.
//To ensure getting fresh pages ensure Internet Options - General, Browsing History, Settings, Automatically 
//We needed to set a delay before the browser tries to focus to ensure an complete fix
//The clearinterval is on the forms first element tag on each page inside the onfocus event
function setFocusRERecSrch(formName){
var lv_timeDelay;
lv_timeDelay = 500;
	
	switch(formName){
		case 'owner':
			if (document.owner.elements[0]){
				gv_TimeOutId = window.setInterval("document.owner.elements[0].focus();",lv_timeDelay );
			}
			break;
		case 'parcel':	
			if (document.parcel.elements[0]){
				gv_TimeOutId = window.setInterval("document.parcel.elements[0].focus();",lv_timeDelay );
			}
			break;
		case 'addr':	
			if (document.addr.elements[0]){
				gv_TimeOutId = window.setInterval("document.addr.elements[0].focus();",lv_timeDelay );
			}
			break;
			
		case 'property':	
			if (document.property.elements[0]){
				gv_TimeOutId = window.setInterval("document.property.elements[0].focus();",lv_timeDelay );
			}
			break;
			
		case 'plat':	
			if (document.plat.elements[0]){
				gv_TimeOutId = window.setInterval("document.plat.elements[0].focus();",lv_timeDelay );
			}
			break;
			
		case 'sub':	
			if (document.sub.elements[0]){
				gv_TimeOutId = window.setInterval("document.sub.elements[0].focus();",lv_timeDelay );
			}
			break;
			
		case 'PropertyUse':	
			if (document.PropertyUse.elements[0]){
				gv_TimeOutId = window.setInterval("document.PropertyUse.elements[0].focus();",lv_timeDelay );
			}
			break;
			
		case 'vac_lnd':	
			if (document.vac_lnd.elements[0]){
				gv_TimeOutId = window.setInterval("document.vac_lnd.elements[0].focus();",lv_timeDelay );
			}
			break;
	}	
}

function setFocusRESalesSrch(formName){
var lv_timeDelay;
lv_timeDelay = 500;
	switch(formName){
		case 'sales_by_str':
			if (document.sales_by_str.elements[1]){
				gv_TimeOutId = window.setInterval("document.sales_by_str.elements[1].focus();",lv_timeDelay );
			}
			break;
			
		case 'c_sales_by_str':
			if (document.c_sales_by_str.elements[1]){
				gv_TimeOutId = window.setInterval("document.c_sales_by_str.elements[1].focus();",lv_timeDelay );
			}
			break;
			
		case 'res_sales_by_str':
			if (document.res_sales_by_str.elements[1]){
				gv_TimeOutId = window.setInterval("document.res_sales_by_str.elements[1].focus();",lv_timeDelay );
			}
			break;
			
		case 'vac_lnd_sales_by_str':
			if (document.vac_lnd_sales_by_str.elements[1]){
				gv_TimeOutId = window.setInterval("document.vac_lnd_sales_by_str.elements[1].focus();",lv_timeDelay );
			}
			break;
		}
}

function setFocusTPPRecSrch(formName){
var lv_timeDelay;
lv_timeDelay = 500;
	switch(formName){
		case 'tpp_addr':
			if (document.tpp_addr.elements[1]){
				gv_TimeOutId = window.setInterval("document.tpp_addr.elements[1].focus();",lv_timeDelay );
			}
			break;
	}
}
//END SET FOCUS ON THE SEARCHES
//********************************************

// window message "/docs/sys_message.html"
	var refMsg
	function msgWin(refMsg,refWth,refHth) {
		infoWin=window.open(refMsg,'Info','toolbar=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=no,width='+refWth+',height='+refHth+',top=100,right=screen.width');
        return false;
	}