document.writeln("<style type=\"text/css\">");
document.writeln("");
document.writeln("#dropinboxv2cover{");
document.writeln("width: 370px; /*change width to desired */");
document.writeln("position:absolute; /*Don't change below 4 rules*/");
document.writeln("z-index: 100;");
document.writeln("overflow:hidden;");
document.writeln("visibility: hidden;");
document.writeln("}");
document.writeln("");
document.writeln("#dropinboxv2{");
document.writeln("width: 350px; /*change width to above width-20. */");
document.writeln("border: 1px solid black; /*Customize box appearance*/");
document.writeln("background-color: #FCFEFC;");
document.writeln("padding: 0px;");
document.writeln("position:absolute; /*Don't change below 3 rules */");
document.writeln("left: 0;");
document.writeln("top: 0;");
document.writeln("}");
document.writeln("");
document.writeln("</style>");
document.writeln("");
document.writeln("<script type=\"text/javascript\">");
document.writeln("");
document.writeln("/***********************************************");
document.writeln("* Amazon style Drop-in content box- © Dynamic Drive DHTML code library (www.dynamicdrive.com)");
document.writeln("* Visit DynamicDrive.com for hundreds of DHTML scripts");
document.writeln("* This notice must stay intact for legal use");
document.writeln("* Go to http://www.dynamicdrive.com/ for full source code");
document.writeln("***********************************************/");
document.writeln("");
document.writeln("var dropboxleft=500 //set left position of box (in px)");
document.writeln("var dropboxtop=110 //set top position of box (in px)");
document.writeln("var dropspeed=15 //set speed of drop animation (larger=faster)");
document.writeln("");
document.writeln("//Specify display mode. 3 possible values are:");
document.writeln("//1) \"always\"- This makes the fade-in box load each time the page is displayed");
document.writeln("//2) \"oncepersession\"- This uses cookies to display the fade-in box only once per browser session");
document.writeln("//3) integer (ie: 5)- Finally, you can specify an integer to display the box randomly via a frequency of 1/integer...");
document.writeln("// For example, 2 would display the box about (1/2) 50% of the time the page loads.");
document.writeln("");
document.writeln("var displaymode=\"always\"");
document.writeln("");
document.writeln("///Don't edit beyond here///////////");
document.writeln("");
document.writeln("if (parseInt(displaymode)!=NaN)");
document.writeln("var random_num=Math.floor(Math.random()*displaymode)");
document.writeln("var ie=document.all");
document.writeln("var dom=document.getElementById");
document.writeln("");
document.writeln("function initboxv2(){");
document.writeln("if (!dom&&!ie)");
document.writeln("return");
document.writeln("crossboxcover=(dom)?document.getElementById(\"dropinboxv2cover\") : document.all.dropinboxv2cover");
document.writeln("crossbox=(dom)?document.getElementById(\"dropinboxv2\"): document.all.dropinboxv2");
document.writeln("scroll_top=(ie)? truebody().scrollTop : window.pageYOffset");
document.writeln("crossbox.height=crossbox.offsetHeight");
document.writeln("crossboxcover.style.height=parseInt(crossbox.height)+\"px\"");
document.writeln("crossbox.style.top=crossbox.height*(-1)+\"px\"");
document.writeln("crossboxcover.style.left=dropboxleft+\"px\"");
document.writeln("crossboxcover.style.top=dropboxtop+\"px\"");
document.writeln("crossboxcover.style.visibility=(dom||ie)? \"visible\" : \"show\"");
document.writeln("dropstart=setInterval(\"dropinv2()\",50)");
document.writeln("}");
document.writeln("");
document.writeln("function dropinv2(){");
document.writeln("scroll_top=(ie)? truebody().scrollTop : window.pageYOffset");
document.writeln("if (parseInt(crossbox.style.top)<0){");
document.writeln("crossboxcover.style.top=scroll_top+dropboxtop+\"px\"");
document.writeln("crossbox.style.top=parseInt(crossbox.style.top)+dropspeed+\"px\"");
document.writeln("}");
document.writeln("else{");
document.writeln("clearInterval(dropstart)");
document.writeln("crossbox.style.top=0");
document.writeln("}");
document.writeln("}");
document.writeln("");
document.writeln("function dismissboxv2(){");
document.writeln("if (window.dropstart) clearInterval(dropstart)");
document.writeln("crossboxcover.style.visibility=\"hidden\"");
document.writeln("}");
document.writeln("");
document.writeln("function truebody(){");
document.writeln("return (document.compatMode && document.compatMode!=\"BackCompat\")? document.documentElement : document.body");
document.writeln("}");
document.writeln("");
document.writeln("function get_cookie(Name) {");
document.writeln("var search = Name + \"=\"");
document.writeln("var returnvalue = \"\"");
document.writeln("if (document.cookie.length > 0) {");
document.writeln("offset = document.cookie.indexOf(search)");
document.writeln("if (offset != -1) {");
document.writeln("offset += search.length");
document.writeln("end = document.cookie.indexOf(\";\", offset)");
document.writeln("if (end == -1)");
document.writeln("end = document.cookie.length;");
document.writeln("returnvalue=unescape(document.cookie.substring(offset, end))");
document.writeln("}");
document.writeln("}");
document.writeln("return returnvalue;");
document.writeln("}");
document.writeln("");
document.writeln("if (displaymode==\"oncepersession\" && get_cookie(\"droppedinv2\")==\"\" || displaymode==\"always\" || parseInt(displaymode)!=NaN && random_num==0){");
document.writeln("if (window.addEventListener)");
document.writeln("window.addEventListener(\"load\", initboxv2, false)");
document.writeln("else if (window.attachEvent)");
document.writeln("window.attachEvent(\"onload\", initboxv2)");
document.writeln("else if (document.getElementById || document.all)");
document.writeln("window.onload=initboxv2");
document.writeln("if (displaymode==\"oncepersession\")");
document.writeln("document.cookie=\"droppedinv2=yes\"");
document.writeln("}");
document.writeln("");
document.writeln("</script\>");
