//Contents for menu 1
var kapers=new Array()

kapers[0]='<table cellpadding="0" cellspacing="0" style="margin-top:0;"><tr><td style="width:160px;height:54px;padding-bottom:4px;border-bottom: 1px solid #999;background: #FFF;"><a href="http://www.kapers.net"><img src="img_src/ads/kbm_130x47.gif" alt="Kapers" title="Kaper\'s Building Material" /></a></td></tr></table>'
kapers[1]='<table cellpadding="0" cellspacing="0" style="padding-bottom:0;margin-bottom:0;"><tr><td style="width:160px;padding:5px;border-left:1px solid #FFF;background: #F5F5F5;text-align:left;line-height:1.1em;padding-bottom:0;margin-bottom:0;"><p class="crumbstop"><strong>Kaper\'s Building Material</strong><br />308 15th Street S.E.<br />DeMotte, IN 46310<br /><strong>219&middot;987&middot;2781</strong><br /><a href="http://www.kapers.net" target="_blank" style="background:transparent;text-align:left;color:#244472;">www.kapers.net</a></p></td></tr></table>'
		
var mackenzie=new Array()

mackenzie[0]='<table cellpadding="0" cellspacing="0" style="margin-top:0;"><tr><td style="width:160px;height:54px;padding-bottom:4px;border-bottom: 1px solid #999;background: #FFF;"><a href="http://mackenzieconstructioninc.com"><img src="img_src/ads/mc_130x47.gif" alt="Mackenzie Construction" title="Mackenzie Construction" /></a></td></tr></table>'
mackenzie[1]='<table cellpadding="0" cellspacing="0" style="padding-bottom:0;margin-bottom:0;"><tr><td style="width:160px;padding:5px;border-left:1px solid #FFF;background: #F5F5F5;text-align:left;line-height:1.1em;padding-bottom:0;margin-bottom:0;"><p class="crumbstop"><strong>Mackenzie Construction</strong><br />1520 Eagle Street<br />Chesterton, IN 46304<br /><strong>219&middot;926&middot;9194 Phone</strong><br /><strong>219&middot;728&middot;1160 Fax</strong><br /><a href="http://mackenzieconstructioninc.com" target="_blank" style="background:transparent;text-align:left;color:#244472;"><strong>&middot; </strong>Check \'em out online!</a></p></td></tr></table>'


var disappeardelay=500  //menu disappear speed onMouseout (in miliseconds)
var horizoffsettle=-120 //horizontal offset of menu from default location. (0-5 is a good value)
var vertoffset=10

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenuspndiv" style="visibility:hidden;width: 102px;z-index:1000;" onMouseover="clearhidemeenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
//dropmenuobj.style.left=dropmenuobj.style.top=500
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x-obj.offsetWidth < dropmenuobj.contentmeasure)
edgeoffset=0 //dropmenuobj.contentmeasure+obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move menu up?
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either? (position at top of viewable window then)
edgeoffset=dropmenuobj.y
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmeenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemeenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenuspndiv") : dropmenuspndiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+obj.offsetWidth+horizoffsettle+"px"
//dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"px"
//dropmenuobj.style.bottom="36"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemeenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemeenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

function getmetaContents(mn){
   var m = document.getElementsBytagName('meta');
   for(var i in m){
    if(m[i].name == mn){
      return m[i].content;
    }
  }
}
