function mmLoadMenus() {
  if (window.mm_menu_0904203119_0) return;
   window.mm_menu_0904203119_0 = new Menu("root",200,20,"Arial, Helvetica, sans-serif",14,"#000000","#CCCCCC","#CCCCCC","#999999","left","middle",3,0,120,-5,7,true,true,true,0,true,true);
   mm_menu_0904203119_0.addMenuItem("General&nbsp;Inspection","location='GeneralInspection.htm'");
   mm_menu_0904203119_0.addMenuItem("Mold&nbsp;Testing","location='moldtesting.htm'");
   mm_menu_0904203119_0.addMenuItem("Air&nbsp;Quality&nbsp;Testing","location='airqualitytesting.htm'");
   mm_menu_0904203119_0.addMenuItem("Radon&nbsp;Gas&nbsp;Inspection","location='RadonGasInspection.htm'");
   mm_menu_0904203119_0.addMenuItem("Termite&nbsp;Inspection","location='TermiteInspection.htm'");
   mm_menu_0904203119_0.addMenuItem("Seller's&nbsp;Pre-Listing&nbsp;Inspection","location='PrelistingInspection.htm'");
   mm_menu_0904203119_0.addMenuItem("Useful&nbsp;Links","location='Links.htm'");
   mm_menu_0904203119_0.hideOnMouseOut=true;
   mm_menu_0904203119_0.bgColor='#FFFFFF';
   mm_menu_0904203119_0.menuBorder=1;
   mm_menu_0904203119_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0904203119_0.menuBorderBgColor='#000000';
   window.mm_menu_0904204742_0 = new Menu("root",210,20,"Arial, Helvetica, sans-serif",14,"#000000","#CCCCCC","#CCCCCC","#999999","left","middle",3,0,120,-5,7,true,true,true,0,true,true);
   mm_menu_0904204742_0.addMenuItem("Five&nbsp;Star&nbsp;Inspection","location='FiveStar.htm'");
   mm_menu_0904204742_0.addMenuItem("Pre-Inspection&nbsp;Agreement","location='InspectionAgreement.htm'");
   mm_menu_0904204742_0.addMenuItem("Home&nbsp;Inspection&nbsp;Report","location='Report.htm'");
   mm_menu_0904204742_0.addMenuItem("Our&nbsp;Standards","location='Standards.htm'");
   mm_menu_0904204742_0.addMenuItem("Our&nbsp;Mission&nbsp;Statement","location='MissionStatement.htm'");    mm_menu_0904204742_0.addMenuItem("Inspecting&nbsp;All&nbsp;of&nbsp;New&nbsp;Jersey","location='Areas.htm'");      
   mm_menu_0904204742_0.addMenuItem("The&nbsp;Day&nbsp;of&nbsp;the&nbsp;Inspection","location='InspectionDay.htm'");   
   mm_menu_0904204742_0.addMenuItem("Frequently&nbsp;Asked&nbsp;Questions","location='FAQ.htm'");   
   mm_menu_0904204742_0.hideOnMouseOut=true;
   mm_menu_0904204742_0.bgColor='#FFFFFF';
   mm_menu_0904204742_0.menuBorder=1;
   mm_menu_0904204742_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0904204742_0.menuBorderBgColor='#000000';
mm_menu_0904204742_0.writeMenus();
} // mmLoadMenus()

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_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_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];}
}

function MM_nbGroup(event, grpName) { //v6.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr)
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
      nbArr[nbArr.length] = img;
  } }
}

function showdiv(id){
 for ( x=1; x<7; x++) { 
  if (x == id){
   document.getElementById("ch" + x).style.display = 'block';
  }else{
   document.getElementById("ch" + x).style.display = 'none';
  }
}
}

var tickercontent=new Array()
tickercontent[0]='<table height="98" width="509"><tr colspan="2"><td width="85" valign="middle"><img src="/images/houseshape.gif" alt="Inspect your home with a licensed and certified home inspection company."></td><td><a href="/services/faq.shtml">What is a Home Inspection?</a><br /><font size="2px">A home inspection is an inspection of the visible and accessible components of a home from the roof to the foundation at the time of the inspection. The inspector is someone who has the knowledge of many trades and can provide you with a general assessment of the condition of the home at the time of the inspection.</font></td></tr></table>'
tickercontent[1]='<table height="98" width="509"><tr colspan="2"><td><a href="/services/faq.shtml">What is inspected during the Home Inspection?</a><br /><font size="2px">A home inspection is an inspection of the visible and accessible areas of the home, including the roof, chimney, siding, foundation, structure, heating and cooling systems, plumbing, electrical system, basement, crawl space, sump pit and pump, attic, kitchen, water heating system, doors, windows, and the insulation, and much, much more.</font></td><td valign="middle"><img src="/images/housepic2.gif" alt="NJ certified home inspection in Atlantic County, Bergen County, Burlington County, Camden County, Cape May County, Cumberland County, Essex County, Gloucester County, Hudson County, Hunterdon County, Mercer County, Middlesex County, Monmouth County, Morris County, Ocean County, Passaic County, Salem County, Somerset County, Sussex County, Union County, Warren County"></td></tr></table>'
tickercontent[2]='<table height="98" width="509"><tr colspan="2"><td><a href="/services/faq.shtml">Are you a Certified Inspector?</a><br /><font size="2px">Yes, I am certified by the National Association of Certified Home Inspectors and licensed by the State of New Jersey. The National Association of Certified Home Inspectors (NACHI) is the largest and most elite inspection association in the world. It requires each inspector to undergo annual testing and participate in continuing professional education classes.</font></td><td width="85" valign="middle"><a href="http://www.nachi.org/verify.php?nachiid=nachi06011391" target=" blank"><img src="/images/nachi-certified3.gif" alt="National Association of Certified Home Inspectors #06011391 : click to verify" border="0"></a></td></tr></table>'

var tickercontent2=new Array()
tickercontent2[0]='<img src="/images/house3a.gif">'
tickercontent2[1]='<img src="/images/house3b.gif">'
tickercontent2[2]='<img src="/images/house3.gif">'


/***********************************************
* DHTML Ticker script- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

function domticker(content, divId, divClass, delay, fadeornot){
this.content=content
this.tickerid=divId //ID of master ticker div. Message is contained inside first child of ticker div
this.delay=delay //Delay between msg change, in miliseconds.
this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over ticker (and pause it if it is)
this.pointer=1
this.opacitystring=(typeof fadeornot!="undefined")? "width: 100%; filter:progid:DXImageTransform.Microsoft.alpha(opacity=100); -moz-opacity: 1" : ""
if (this.opacitystring!="") this.delay+=500 //add 1/2 sec to account for fade effect, if enabled
this.opacitysetting=0.2 //Opacity value when reset. Internal use.
document.write('<div id="'+divId+'" class="'+divClass+'"><div style="'+this.opacitystring+'">'+content[0]+'</div></div>')
var instanceOfTicker=this
setTimeout(function(){instanceOfTicker.initialize()}, delay)
}

domticker.prototype.initialize=function(){
var instanceOfTicker=this
this.contentdiv=document.getElementById(this.tickerid).firstChild //div of inner content that holds the messages
document.getElementById(this.tickerid).onmouseover=function(){instanceOfTicker.mouseoverBol=1}
document.getElementById(this.tickerid).onmouseout=function(){instanceOfTicker.mouseoverBol=0}
this.rotatemsg()
}

domticker.prototype.rotatemsg=function(){
var instanceOfTicker=this
if (this.mouseoverBol==1) //if mouse is currently over ticker, do nothing (pause it)
setTimeout(function(){instanceOfTicker.rotatemsg()}, 100)
else{
this.fadetransition("reset") //FADE EFFECT- RESET OPACITY
this.contentdiv.innerHTML=this.content[this.pointer]
this.fadetimer1=setInterval(function(){instanceOfTicker.fadetransition('up', 'fadetimer1')}, 100) //FADE EFFECT- PLAY IT
this.pointer=(this.pointer<this.content.length-1)? this.pointer+1 : 0
setTimeout(function(){instanceOfTicker.rotatemsg()}, this.delay) //update container
}
}

// -------------------------------------------------------------------
// fadetransition()- cross browser fade method for IE5.5+ and Mozilla/Firefox
// -------------------------------------------------------------------

domticker.prototype.fadetransition=function(fadetype, timerid){
var contentdiv=this.contentdiv
if (fadetype=="reset")
this.opacitysetting=0.2
if (contentdiv.filters && contentdiv.filters[0]){
if (typeof contentdiv.filters[0].opacity=="number") //IE6+
contentdiv.filters[0].opacity=this.opacitysetting*100
else //IE 5.5
contentdiv.style.filter="alpha(opacity="+this.opacitysetting*100+")"
}
else if (typeof contentdiv.style.MozOpacity!="undefined" && this.opacitystring!=""){
contentdiv.style.MozOpacity=this.opacitysetting
}
else
this.opacitysetting=1
if (fadetype=="up")
this.opacitysetting+=0.2
if (fadetype=="up" && this.opacitysetting>=1)
clearInterval(this[timerid])
}