function showdmenu() {
 document.write("<ul class=\"menulist\">&nbsp;<li onMouseover=\"dmenu(this, event, 'menu1')\" style=\"margin-top:0;\"><a href=\"./about.html\">About<br>AFCO</a><li onMouseover=\"dmenu(this, event, 'menu2')\"><a href=\"./services.html\">Available<br>Services</a><li onMouseover=\"dmenu(this, event, 'menu3')\"><a href=\"./technical.html\">Technical<br>Details</a><li onMouseover=\"dmenu(this, event, 'menu4')\"><a href=\"./clients.html\">Client<br>List</a><li onMouseover=\"dmenu(this, event, 'menu0')\"><a href=\"./support.html\">Customer<br>Support</a><li onMouseover=\"dmenu(this, event, 'menu5')\"><a href=\"./contact.html\">Contact<br>AFCO</a></ul><div id=\"menu0\" class=\"dmenuhide\">&nbsp;</div><div id=\"menu1\" class=\"dmenu\"><div class=\"dmenuc\"><img src=\"./images/dmenubg.gif\"><a href=\"about.html\">Company History</a><a href=\"./mission.html\">Mission Statement</a><a href=\"./facility.html\">Our Facility</a></div></div><div id=\"menu2\" class=\"dmenu\"><div class=\"dmenuc\"><img src=\"./images/dmenubg.gif\"><a href=\"./services.html\">Overview</a><a href=\"./shot-peening.html\">Shot Peening</a><a href=\"./glass-peening.html\">Glass Peening</a><a href=\"./peen-forming.html\">Peen Forming</a><a href=\"./abrasive-blasting.html\">Abrasive Blasting</a><a href=\"./rubber-deflashing.html\">Rubber Deflashing</a><a href=\"./plastic-deflashing.html\">Plastic Deflashing</a><a href=\"./airless-blasting.html\">Airless Blasting</a></div></div><div id=\"menu3\" class=\"dmenu\"><div class=\"dmenuc\"><img src=\"./images/dmenubg.gif\"><a href=\"./technical.html\">Overview</a><a href=\"./t-shot-peening.html\">Shot Peening TD</a><a href=\"./t-glass-peening.html\">Glass Peening TD</a><a href=\"./t-peen-forming.html\">Peen Forming TD</a><a href=\"./t-abrasive-blasting.html\">Abrasive Blasting TD</a><a href=\"./t-rubber-deflashing.html\">Rubber Deflash TD</a><a href=\"./t-plastic-deflashing.html\">Plastic Deflash TD</a><a href=\"./t-airless-blasting.html\">Airless Blasting TD</a></div></div><div id=\"menu4\" class=\"dmenu\"><div class=\"dmenuc\"><img src=\"./images/dmenubg.gif\"><a href=\"./clients.html\">Clientele</a><a href=\"./works.html\">Work History</a><a href=\"./samples.html\">Sample Images</a></div></div><div id=\"menu5\" class=\"dmenu\"><div class=\"dmenuc\"><img src=\"./images/dmenubg.gif\"><a href=\"./contact.html\">Contact Us</a><a href=\"./maps.html\">Maps &amp; Directions</a><a href=\"./policy.html\">Privacy Policy</a><a href=\"./sitemap.html\">Site Map</a></div></div>");
}
function showdform() {
 document.write("<input type=\"image\" src=\"./images/clearform.gif\" tabindex=16 style=\"width:94px;\" onClick=\"form.reset(this.form);return false;\" onMousedown=\"buttonDown(this);\" onMouseup=\"buttonUp(this);\"><input type=\"image\" src=\"./images/sendit.gif\" tabindex=15 style=\"width:115px;\" onMousedown=\"buttonDown(this);\" onMouseup=\"buttonUp(this);\">");
}
function doriteml() {
 document.write("<tr><td class=\"m\">E"+"ma"+"il</td><td class=\"padl m\" style=\"font-size:12px;\"> ... "+"<a href=\"ma"+"il"+"to"+":"+"mik"+"e.d"+"emke"+"&#64;"+"abras"+"ivefin"+"ishing"+"com"+"pany"+".com"+"?subject='Website Contact'"+"\">"+"mik"+"e.d"+"emke"+"&#64;"+"abras"+"ivefin"+"ishing"+"com"+"pany.com"+"</a></td></tr>");
}

pic1 = new Image();
pic1.src = "./images/peen-1.gif";
pic2 = new Image();
pic2.src = "./images/peen-2.gif";
pic3 = new Image();
pic3.src = "./images/shot-1.gif";
pic4 = new Image();
pic4.src = "./images/shot-2.gif";
function cng(n,x) {
 document[n].src = eval("pic"+x+".src");
}

function openNotetab(item,txt) {
 closeNotetab();
 if (document.getElementById('notetabCont').innerHTML && txt) {
  NTitem=document.getElementById('notetab');
  NTitem.x=getposOffset(item, "left");
  NTitem.y=getposOffset(item, "top");
  NTitem.style.left=NTitem.x+item.offsetWidth+1+"px";
  NTitem.style.top=NTitem.y-5+"px";
  document.getElementById('notetabCont').innerHTML = "&nbsp;&nbsp;"+txt;
  NTitem.style.visibility="visible";
 }
 item.style.backgroundColor = "#FFFFDF";
}

function closeNotetab() {
 if (document.getElementById) {document.getElementById('notetab').style.visibility="hidden"; return;}
 else if (document.all) {document.all['notetab'].style.visibility="hidden";}
 else {document.notetab.visibility="hidden";}
}

function loosefocus(item) {
 item.style.backgroundColor="#E0E0CF";
}

function buttonDown(button) {
button.style.border="2px solid #444444";
button.style.borderRightColor="#B4B4B4";
button.style.borderBottomColor="#B4B4B4";
}

function buttonUp(button) {
button.style.border="2px solid #B4B4B4";
button.style.borderRightColor="#444444";
button.style.borderBottomColor="#444444";
}

function submitting() {
 if (document.getElementById) {document.getElementById('submitting').style.visibility="visible";}
 else if (document.all) {document.all['submitting'].style.visibility="visible";}
 else {document.submitting.visibility="visible";}
 setTimeout('pause()',1000);
 return false;
}

function pause() {
 document.forms[0].submit();
 return false;
}

function pagedate() {
 var mydate=new Date()
 var year=mydate.getYear()
 if (year < 1000)
 year+=1900
 var day=mydate.getDay()
 var month=mydate.getMonth()
 var daym=mydate.getDate()
 if (daym<10)
 daym="0"+daym
 var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
 var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
 document.write(dayarray[day]+", "+montharray[month]+" "+daym+", "+year)
}

//////dmenu
var ie5=document.all
var ns6=document.getElementById&&!document.all

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){
if (ie5||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
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 dmenu(obj, e, dropmenuID){
if (typeof dropmenuobj!="undefined")
dropmenuobj.style.visibility="hidden"
clearhidemenu()
if (ie5||ns6){
obj.onmouseout=delayhidemenu
dropmenuobj=document.getElementById(dropmenuID)
dropmenuobj.onmouseover=clearhidemenu
dropmenuobj.onmouseout=ie5? function(){ dynamichide(event)} : function(event){ dynamichide(event)}
showhide(dropmenuobj.style, e, "visible", "hidden")
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x+obj.offsetWidth+-7+"px"
dropmenuobj.style.top=dropmenuobj.y+"px"
}
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie5&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function delayhidemenu(){
delayhide=setTimeout("dropmenuobj.style.visibility='hidden'",600)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}