
var dropboxleft=2 //set left position of box (in px)
var dropboxtop=0 //set top position of box (in px)
var dropspeed=45 //set speed of drop animation (larger=faster)

//Specify display mode. 3 possible values are:
//1) "always"- This makes the fade-in box load each time the page is displayed
//2) "oncepersession"- This uses cookies to display the fade-in box only once per browser session
//3) integer (ie: 5)- Finally, you can specify an integer to display the box randomly via a frequency of 1/integer...
// For example, 2 would display the box about (1/2) 50% of the time the page loads.

var displaymode="always"

///Don't edit beyond here///////////
if (parseInt(displaymode)!=NaN)
var random_num=Math.floor(Math.random()*displaymode)
var ie=document.all
var dom=document.getElementById

function initboxv3(){
if (!dom&&!ie)
return

crossboxcover=(dom)?document.getElementById("orderbox") : document.all.imagesbox
crossbox=(dom)?document.getElementById("orderbox_inner"): document.all.imagesbox_inner

scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
crossbox.height=crossbox.offsetHeight
crossboxcover.style.height=parseInt(crossbox.height)+"px"
crossbox.style.top=crossbox.height*(-1)+"px"
crossboxcover.style.left=dropboxleft+"px"
crossboxcover.style.top=dropboxtop+"px"
crossboxcover.style.visibility=(dom||ie)? "visible" : "show"
dropstart=setInterval("dropinv3()",50)
}

function dropinv3(){
scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
if (parseInt(crossbox.style.top)<0){
crossboxcover.style.top=scroll_top+dropboxtop+"px"
crossbox.style.top=parseInt(crossbox.style.top)+dropspeed+"px"
}
else{
clearInterval(dropstart)
crossbox.style.top=0
}
}

function dismissboxv3(){
if (window.dropstart) clearInterval(dropstart)
crossboxcover.style.visibility="hidden"
}

function truebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function get_cookie(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;
}

if (displaymode=="oncepersession" && get_cookie("droppedinv3")=="" || displaymode=="always" || parseInt(displaymode)!=NaN && random_num==0){
if (window.addEventListener)
window.addEventListener("load", initboxv3, false)
else if (window.attachEvent)
window.attachEvent("onload", initboxv3)
else if (document.getElementById || document.all)
window.onload=initboxv3
if (displaymode=="oncepersession")
document.cookie="droppedinv3=yes"
}












//--------------------------------------------------------------------------------------







var dropbox22left=0 //set left position of box (in px)
var dropbox22top=0 //set top position of box (in px)
var dropspeed22=33 //set speed of drop animation (larger=faster)

//Specify display mode. 3 possible values are:
//1) "always"- This makes the fade-in box load each time the page is displayed
//2) "oncepersession"- This uses cookies to display the fade-in box only once per browser session
//3) integer (ie: 5)- Finally, you can specify an integer to display the box randomly via a frequency of 1/integer...
// For example, 2 would display the box about (1/2) 50% of the time the page loads.

var displaymode="always"

///Don't edit beyond here///////////

if (parseInt(displaymode)!=NaN)
var random_num=Math.floor(Math.random()*displaymode)
var ie=document.all
var dom=document.getElementById

function initbox22v2(){
if (!dom&&!ie)
return
crossbox22cover=(dom)?document.getElementById("beer") : document.all.featured_specials
crossbox22=(dom)?document.getElementById("beer_img"): document.all.featured_specials_inner
scroll_top22=(ie)? truebody22().scrollTop : window.pageYOffset
crossbox22.height=crossbox22.offsetHeight
crossbox22cover.style.height=parseInt(crossbox22.height)+"px"
crossbox22.style.top=crossbox22.height*(-1)+"px"
crossbox22cover.style.left=dropbox22left+"px"
crossbox22cover.style.top=dropbox22top+"px"
crossbox22cover.style.visibility=(dom||ie)? "visible" : "show"
dropstart22=setInterval("dropin22v2()",50)
}

function dropin22v2(){
scroll_top22=(ie)? truebody22().scrollTop : window.pageYOffset
if (parseInt(crossbox22.style.top)<0){
crossbox22cover.style.top=scroll_top+dropbox22top+"px"
crossbox22.style.top=parseInt(crossbox22.style.top)+dropspeed22+"px"
}
else{
clearInterval(dropstart22)
crossbox22.style.top=0
}
}

function dismissbox22v2(){
if (window.dropstart22) clearInterval(dropstart22)
crossbox22cover.style.visibility="hidden"
}

function truebody22(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function get_cookie22(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;
}

if (displaymode=="oncepersession" && get_cookie22("droppedin22v2")=="" || displaymode=="always" || parseInt(displaymode)!=NaN && random_num==0){
if (window.addEventListener)
window.addEventListener("load", initbox22v2, false)
else if (window.attachEvent)
window.attachEvent("onload", initbox22v2)
else if (document.getElementById || document.all)
window.onload=initbox22v2
if (displaymode=="oncepersession")
document.cookie="droppedin22v2=yes"
}


