// opens the "Pop-Up"
// Drop-in content box- By Dynamic Drive
// For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
// This credit MUST stay intact for use

var show_special="yes";

var ie=document.all
var dom=document.getElementById
var ns4=document.layers
var calunits=document.layers? "" : "px"

var bouncelimit=32 //(must be divisible by 8)
var direction="up"

function initbox(){
  var path="/"
document.cookie="ShowPopOrNot=yes" +
     ((path == null) ? "" : ("; path=" + path));

if (!dom&&!ie&&!ns4)
return
crossobj=(dom)?document.getElementById("dropin").style : ie? document.all.dropin : document.dropin
scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
crossobj.top=scroll_top-250+calunits
crossobj.visibility=(dom||ie)? "visible" : "show"
dropstart=setInterval("dropin()",50)
}

function dropin(){
scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
if (parseInt(crossobj.top)<100+scroll_top)
crossobj.top=parseInt(crossobj.top)+40+calunits
else{
clearInterval(dropstart)
bouncestart=setInterval("bouncein()",50)
}
}

function bouncein(){
crossobj.top=parseInt(crossobj.top)-bouncelimit+calunits
if (bouncelimit<0)
bouncelimit+=8
bouncelimit=bouncelimit*-1
if (bouncelimit==0){
clearInterval(bouncestart)
}
}

function dismissbox(){
if (window.bouncestart) clearInterval(bouncestart)
crossobj.visibility="hidden"
 var path="/"
document.cookie="ShowPopOrNot=yes" +
     ((path == null) ? "" : ("; path=" + path));
}

function truebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}


function get_cookieHS(Name) {
var search = Name + "="
var returnvalue = ""
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset)
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function popornot(){
if (get_cookieHS("ShowPopOrNot")==""){
window.setTimeout("initbox()",15000);
//window.setTimeout("initbox()",35000);
//window.setTimeout("initbox()",1000);

}
}


var URL=escape(window.location);
var Selection="";
Selection=URL.match("access-doors");
if ((get_cookieHS("ShowPopOrNot")=="") && (show_special=="yes"))
{
  if (Selection=="access-doors")
  {
    document.write("<div id=\"dropin\" style=\"position:absolute; visibility:hidden; left:223px; top:100px; width:500px; height:100px; background-color:#FFFFFF; background-image: url(/images/USA_FLAG.gif); layer-background-image: url(/images/USA_FLAG.gif);\">\n");
    document.write("<table width=\"100%\"  border=\"0\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#000000\">\n");
    document.write("<tr><td><table width=\"100%\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\"><tr>\n");
    document.write("<td><table width=\"100%\"  border=\"0\" cellspacing=\"5\" cellpadding=\"0\" background=\"/images/USA_FLAG.gif\"><tr>\n");
    document.write("<td><span class=\"BodyTextLargeBold\">Thank you for visiting us. Here is what we offer</span>\n");
    document.write("<ul><li class=\"BodyText\"><strong>Expert Advice!</strong></li>\n");
    document.write("<li class=\"BodyText\">Huge selection</li>\n");
    document.write("<li class=\"BodyText\">Lowest Prices on the Market!</li>\n");
	document.write("<li class=\"BodyText\">Plus: Order between $1,000-$2,999 and save an additional 5%</li>\n");
	document.write("<li class=\"BodyText\">Order $3,000+ and save an additional 10%</li>\n");
    document.write("<li class=\"BodyText\"><strong>Fast Shipments!</strong></li>\n");
    document.write("<li class=\"BodyText\">Free shipping on 50+ metal access doors of same model</li>\n");
    document.write("<li class=\"BodyText\">Free shipping on 100+ plastic access doors of same model</li>\n");
    document.write("</ul>\n");
    document.write("<p align=\"center\"><br>&copy; Hallmann Sales, LLC<br><br></p><center>\n");
    //document.write("<p align=\"center\"><br>Our office will be closed starting<br>December 30th at 1pm until January 3rd 8:30am<br><br></p><center>\n");
    document.write("<form><input name=\"cmdCloseWindow\" type=\"button\" onClick=\"dismissbox();return false\" value=\"Close Window\"></form>\n");
    document.write("</center></td></tr></table></td></tr></table></td></tr></table></div>\n");
  }

    else
  {
    document.write("<div id=\"dropin\" style=\"position:absolute; visibility:hidden; left:223px; top:100px; width:500px; height:100px; background-color:#FFFFFF; background-image: url(/images/USA_FLAG.gif); layer-background-image: url(/images/USA_FLAG.gif);\">\n");
    document.write("<table width=\"100%\"  border=\"0\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#000000\">\n");
    document.write("<tr><td><table width=\"100%\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\"><tr>\n");
    document.write("<td><table width=\"100%\"  border=\"0\" cellspacing=\"5\" cellpadding=\"0\" background=\"/images/USA_FLAG.gif\"><tr>\n");
    document.write("<td><span class=\"BodyTextLargeBold\">Thank you for visiting us. Here is what we offer</span>\n");
    document.write("<ul><li class=\"BodyText\"><strong>Expert Advice!</strong></li>\n");
    document.write("<li class=\"BodyText\">Huge selection</li>\n");
    document.write("<li class=\"BodyText\">Lowest Prices on the Market!</li>\n");
	document.write("<li class=\"BodyText\">Plus: Order between $1,000-$2,999 and save an additional 5%</li>\n");
	document.write("<li class=\"BodyText\">Order $3,000+ and save an additional 10%</li>\n");
    document.write("<li class=\"BodyText\"><strong>Fast Shipments!</strong></li>\n");
    document.write("</ul>\n");
    document.write("<p align=\"center\"><br>&copy; Hallmann Sales, LLC<br><br></p><center>\n")
    //document.write("<p align=\"center\"><br>Our office will be closed starting<br>December 30th at 1pm until January 3rd 8:30am<br><br></p><center>\n");
    document.write("<form><input name=\"cmdCloseWindow\" type=\"button\" onClick=\"dismissbox();return false\" value=\"Close Window\"></form>\n");
    document.write("</center></td></tr></table></td></tr></table></td></tr></table></div>\n");
  }
  
}
           
if (show_special=="yes") {popornot();}


