/*************************** 
File generated by Scriptalizer.com
DateTime: Thursday, December 31, 2009 5:12:42 PM CST

File list:
	anylinkcssmenu.js
	banners.min.js
*****************************/
if(typeof dd_domreadycheck=="undefined"){var dd_domreadycheck=false}var anylinkcssmenu={menusmap:{},preloadimages:[],effects:{delayhide:200,shadow:{enabled:true,opacity:0.3,depth:[5,5]},fade:{enabled:true,duration:500}},dimensions:{},getoffset:function(b,a){return(b.offsetParent)?b[a]+this.getoffset(b.offsetParent,a):b[a]},getoffsetof:function(a){a._offsets={left:this.getoffset(a,"offsetLeft"),top:this.getoffset(a,"offsetTop"),h:a.offsetHeight}},getdimensions:function(a){this.dimensions={anchorw:a.anchorobj.offsetWidth,anchorh:a.anchorobj.offsetHeight,docwidth:(window.innerWidth||this.standardbody.clientWidth)-20,docheight:(window.innerHeight||this.standardbody.clientHeight)-15,docscrollx:window.pageXOffset||this.standardbody.scrollLeft,docscrolly:window.pageYOffset||this.standardbody.scrollTop};if(!this.dimensions.dropmenuw){this.dimensions.dropmenuw=a.dropmenu.offsetWidth;this.dimensions.dropmenuh=a.dropmenu.offsetHeight}},isContained:function(a,b){var b=window.event||b;var d=b.relatedTarget||((b.type=="mouseover")?b.fromElement:b.toElement);while(d&&d!=a){try{d=d.parentNode}catch(b){d=a}}if(d==a){return true}else{return false}},setopacity:function(a,b){a.style.opacity=b;if(typeof a.style.opacity!="string"){a.style.MozOpacity=b;if(a.filters){a.style.filter="progid:DXImageTransform.Microsoft.alpha(opacity="+b*100+")"}}},showmenu:function(b){var c=anylinkcssmenu.menusmap[b];clearTimeout(c.hidetimer);this.getoffsetof(c.anchorobj);this.getdimensions(c);var a=c.anchorobj._offsets.left+(c.orientation=="lr"?this.dimensions.anchorw:0);var d=c.anchorobj._offsets.top+this.dimensions.anchorh-(c.orientation=="lr"?this.dimensions.anchorh:0);if(a+this.dimensions.dropmenuw+this.effects.shadow.depth[0]>this.dimensions.docscrollx+this.dimensions.docwidth){a=a-this.dimensions.dropmenuw+(c.orientation=="lr"?-this.dimensions.anchorw:this.dimensions.anchorw)}if(d+this.dimensions.dropmenuh>this.dimensions.docscrolly+this.dimensions.docheight){d=Math.max(d-this.dimensions.dropmenuh-(c.orientation=="lr"?-this.dimensions.anchorh:this.dimensions.anchorh),this.dimensions.docscrolly)}if(this.effects.fade.enabled){this.setopacity(c.dropmenu,0);if(this.effects.shadow.enabled){this.setopacity(c.shadow,0)}}c.dropmenu.setcss({left:a+"px",top:d+"px",visibility:"visible"});if(this.effects.shadow.enabled){c.shadow.setcss({left:a+anylinkcssmenu.effects.shadow.depth[0]+"px",top:d+anylinkcssmenu.effects.shadow.depth[1]+"px",visibility:"visible"})}if(this.effects.fade.enabled){clearInterval(c.animatetimer);c.curanimatedegree=0;c.starttime=new Date().getTime();c.animatetimer=setInterval(function(){anylinkcssmenu.revealmenu(b)},20)}},revealmenu:function(b){var c=anylinkcssmenu.menusmap[b];var a=new Date().getTime()-c.starttime;if(a<this.effects.fade.duration){this.setopacity(c.dropmenu,c.curanimatedegree);if(this.effects.shadow.enabled){this.setopacity(c.shadow,c.curanimatedegree*this.effects.shadow.opacity)}}else{clearInterval(c.animatetimer);this.setopacity(c.dropmenu,1);c.dropmenu.style.filter=""}c.curanimatedegree=(1-Math.cos((a/this.effects.fade.duration)*Math.PI))/2},setcss:function(a){for(prop in a){this.style[prop]=a[prop]}},setcssclass:function(b,a,c){var d=new RegExp("(^|\\s+)"+a+"($|\\s+)","ig");if(c=="check"){return d.test(b.className)}else{if(c=="remove"){b.className=b.className.replace(d,"")}else{if(c=="add"&&!d.test(b.className)){b.className+=" "+a}}}},hidemenu:function(a){var b=anylinkcssmenu.menusmap[a];clearInterval(b.animatetimer);b.dropmenu.setcss({visibility:"hidden",left:0,top:0});b.shadow.setcss({visibility:"hidden",left:0,top:0})},getElementsByClass:function(a){if(document.querySelectorAll){return document.querySelectorAll("."+a)}else{var e=new RegExp("(^|\\s+)"+a+"($|\\s+)","i");var d=[];var c=document.all?document.all:document.getElementsByTagName("*");for(var b=0;b<c.length;b++){if(typeof c[b].className=="string"&&c[b].className.search(e)!=-1){d[d.length]=c[b]}}return d}},addEvent:function(a,d,b){if(a.length>0){var c=a.shift();if(c.addEventListener){c.addEventListener(b,d,false)}else{if(c.attachEvent){c.attachEvent("on"+b,function(){return d.call(c,window.event)})}}this.addEvent(a,d,b)}},domready:function(a){if(dd_domreadycheck){a();return}if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);a();dd_domreadycheck=true},false)}else{if(document.attachEvent){if(document.documentElement.doScroll&&window==window.top){(function(){if(dd_domreadycheck){return}try{document.documentElement.doScroll("left")}catch(b){setTimeout(arguments.callee,0);return}a();dd_domreadycheck=true})()}}}if(document.attachEvent&&parent.length>0){this.addEvent(window,function(){a()},"load")}},addState:function(a,b){if(a.getAttribute("data-image")){var c=(a.tagName=="IMG")?a:a.getElementsByTagName("img")[0];if(c){c.src=(b=="add")?a.getAttribute("data-overimage"):a.getAttribute("data-image")}}else{anylinkcssmenu.setcssclass(a,"selectedanchor",b)}},setupmenu:function(b,d,f){this.standardbody=(document.compatMode=="CSS1Compat")?document.documentElement:document.body;var c=d.getAttribute("rel");var a=c.replace(/\[(\w+)\]/,"");var e=this.menusmap[b+f]={id:b+f,anchorobj:d,dropmenu:document.getElementById(a),revealtype:(c.length!=a.length&&RegExp.$1=="click")?"click":"mouseover",orientation:d.getAttribute("rev")=="lr"?"lr":"ud",shadow:document.createElement("div")};e.anchorobj._internalID=b+f;e.anchorobj._isanchor=true;e.dropmenu._internalID=b+f;e.shadow._internalID=b+f;e.shadow.className="anylinkshadow";document.body.appendChild(e.dropmenu);document.body.appendChild(e.shadow);e.dropmenu.setcss=this.setcss;e.shadow.setcss=this.setcss;e.shadow.setcss({width:e.dropmenu.offsetWidth+"px",height:e.dropmenu.offsetHeight+"px"});this.setopacity(e.shadow,this.effects.shadow.opacity);this.addEvent([e.anchorobj,e.dropmenu,e.shadow],function(g){var h=anylinkcssmenu.menusmap[this._internalID];if(this._isanchor&&h.revealtype=="mouseover"&&!anylinkcssmenu.isContained(this,g)){anylinkcssmenu.showmenu(h.id);anylinkcssmenu.addState(this,"add")}else{if(typeof this._isanchor=="undefined"){clearTimeout(h.hidetimer)}}},"mouseover");this.addEvent([e.anchorobj,e.dropmenu,e.shadow],function(g){if(!anylinkcssmenu.isContained(this,g)){var h=anylinkcssmenu.menusmap[this._internalID];h.hidetimer=setTimeout(function(){anylinkcssmenu.addState(h.anchorobj,"remove");anylinkcssmenu.hidemenu(h.id)},anylinkcssmenu.effects.delayhide)}},"mouseout");this.addEvent([e.anchorobj,e.dropmenu],function(g){var h=anylinkcssmenu.menusmap[this._internalID];if(this._isanchor&&h.revealtype=="click"){if(h.dropmenu.style.visibility=="visible"){anylinkcssmenu.hidemenu(h.id)}else{anylinkcssmenu.addState(this,"add");anylinkcssmenu.showmenu(h.id)}if(g.preventDefault){g.preventDefault()}return false}else{h.hidetimer=setTimeout(function(){anylinkcssmenu.hidemenu(h.id)},anylinkcssmenu.effects.delayhide)}},"click")},init:function(a){this.domready(function(){anylinkcssmenu.trueinit(a)})},trueinit:function(a){var d=this.getElementsByClass(a);var b=this.preloadimages;for(var c=0;c<d.length;c++){if(d[c].getAttribute("data-image")){b[b.length]=new Image();b[b.length-1].src=d[c].getAttribute("data-image")}if(d[c].getAttribute("data-overimage")){b[b.length]=new Image();b[b.length-1].src=d[c].getAttribute("data-overimage")}this.setupmenu(a,d[c],c)}}};var settings={force_size:0,img_width:468,img_height:60,refresh_time:0,refresh_max:100,duplicate_banners:0,location_prefix:"adLocation-",location_class:"swb",window:"_top",default_ad_loc:"default"};var banners=[new banner("It's Stefan NOT Stephan","","/altad/stefannotstephan.jpg","10/04/2019","postit"),new banner("Betty White for Mrs. Flowers","","/altad/bettywhite.jpg","10/04/2019","postit"),new banner("OMG, they killed Lexi! You B*stards!","","/altad/killedlexi.jpg","10/04/2019","postit"),new banner("We can has Meredith? Pls?","","/altad/meredith.jpg","10/04/2019","postit"),new banner("Steve the Homeless Guy, Never Forget!","","/altad/steve.jpg","10/04/2019","postit"),new banner("It must be Bunnies!","","/altad/bunnies.jpg","10/04/2019","postit"),new banner("Our vampires don't sparkle!","","/altad/sparkle.jpg","10/04/2019","postit"),new banner("Watch the Vampire Diaries online","http://www.amazon.com/gp/product/B002T3OWQ4?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B002T3OWQ4","/altad/tvdamazon1.gif","10/04/2019","big"),new banner("Watch the Vampire Diaries online","http://www.amazon.com/gp/product/B002T3OWQ4?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B002T3OWQ4","/altad/tvdamazon2.gif","10/04/2019","big"),new banner("Watch the Vampire Diaries online","http://www.amazon.com/gp/product/B002T3OWQ4?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B002T3OWQ4","/altad/tvdamazon3.gif","10/04/2019","big"),new banner("Watch the Vampire Diaries online","http://www.amazon.com/gp/product/B002T3OWQ4?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B002T3OWQ4","/altad/tvdamazon4.gif","10/04/2019","big"),new banner("Website Hosting with Hostgator","http://secure.hostgator.com/cgi-bin/affiliates/clickthru.cgi?id=tvdnet","/altad/hostgator1.gif","10/04/2019","small"),new banner("Website Hosting with Hostgator","http://secure.hostgator.com/cgi-bin/affiliates/clickthru.cgi?id=tvdnet","/altad/hostgator2.gif","10/04/2019","small"),new banner("Buy a Kindle","http://www.amazon.com/gp/product/B00154JDAI?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B00154JDAI","/altad/kindle.jpg","10/04/2019","small"),new banner("Buy Supernatural Season 1","http://www.amazon.com/gp/product/B000FP2OPY?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B000FP2OPY","/altad/spn1.jpg","10/04/2019","small"),new banner("Buy Supernatural Season 2","http://www.amazon.com/gp/product/B000R7GKQE?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B000R7GKQE","/altad/spn2.jpg","10/04/2019","small"),new banner("Buy Supernatural Season 3","http://www.amazon.com/gp/product/B000X5SPBI?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B000X5SPBI","/altad/spn3.jpg","10/04/2019","small"),new banner("Buy Supernatural Season 4","http://www.amazon.com/gp/product/B001FB4W0C?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B001FB4W0C","/altad/spn4.jpg","10/04/2019","small"),new banner("Buy True Blood Season 1","http://www.amazon.com/gp/product/B001FB4W0W?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B001FB4W0W","/altad/tb1.jpg","10/04/2019","small"),new banner("Buy True Blood Season 2","http://www.amazon.com/gp/product/B00280LZAE?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B00280LZAE","/altad/tb2.jpg","10/04/2019","small"),new banner("Buy Moonlight","http://www.amazon.com/gp/product/B000WFW12S?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B000WFW12S","/altad/moonlight.jpg","10/04/2019","small"),new banner("Buy The Southern Vampire series","http://www.amazon.com/gp/product/0441018238?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0441018238","/altad/sookie.jpg","10/04/2019","small"),new banner("Buy Wicked Lovely","http://www.amazon.com/gp/product/0061214671?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0061214671","/altad/wickedlovely.jpg","10/04/2019","small"),new banner("Buy Beautiful Creatures","http://www.amazon.com/gp/product/0316042676?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0316042676","/altad/beautifulcreatures.jpg","10/04/2019","small"),new banner("Buy the House of Night Collection","http://www.amazon.com/gp/product/0312372132?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0312372132","/altad/hon.jpg","10/04/2019","small"),new banner("Buy the Vampire Academy collection","http://www.amazon.com/gp/product/1595142711?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1595142711","/altad/vampac.jpg","10/04/2019","small"),new banner("Buy Blood Ties on DVD","http://www.amazon.com/gp/product/B001UGJUSG?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B001UGJUSG","/altad/bloodtiestv.jpg","10/04/2019","small"),new banner("Buy Forever Knight","http://www.amazon.com/gp/product/B0000C23T1?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B0000C23T1","/altad/foreverknight.jpg","10/04/2019","small"),new banner("Buy Kindred The Embraced","http://www.amazon.com/gp/product/630589941X?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=630589941X","/altad/kindred.jpg","10/04/2019","small"),new banner("Buy Hex","http://www.amazon.com/gp/product/B000OIOOVY?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B000OIOOVY","/altad/hex.jpg","10/04/2019","small"),new banner("Buy Angel Seasons 1-5","http://www.amazon.com/gp/product/B000TLTCU4?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B000TLTCU4","/altad/angel.jpg","10/04/2019","small"),new banner("Buy Buffy the Vampire Slayer, Complete Collection","http://www.amazon.com/gp/product/B000AQ68RI?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B000AQ68RI","/altad/buffy.jpg","10/04/2019","small"),new banner("Buy Ultraviolet","http://www.amazon.com/gp/product/B00005KA70?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B00005KA70","/altad/ultraviolet.jpg","10/04/2019","small"),new banner("Buy Twilight the Movie","http://www.amazon.com/gp/product/B001P5HRMI?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B001P5HRMI","/altad/twilightmovie.jpg","10/04/2019","small"),new banner("Buy Twilight","http://www.amazon.com/gp/product/0316015849?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0316015849","/altad/twilightbook.jpg","10/04/2019","small"),new banner("Buy Morganville Vampires - Glass Houses","http://www.amazon.com/gp/product/0451219945?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0451219945","/altad/mvamps.jpg","10/04/2019","small"),new banner("Buy Ghost Whisperer","http://www.amazon.com/gp/product/B000GG4Y28?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B000GG4Y28","/altad/ghostwhisperer.jpg","10/04/2019","small"),new banner("Buy Kyle XY","http://www.amazon.com/gp/product/B000NOKFGW?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B000NOKFGW","/altad/kylexy.jpg","10/04/2019","small"),new banner("Buy Dawsons Creek","http://www.amazon.com/gp/product/B00008AOX3?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B00008AOX3","/altad/dawsonscreek.jpg","10/04/2019","small"),new banner("Buy Dexter","http://www.amazon.com/gp/product/B000Q6GUW0?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B000Q6GUW0","/altad/dexter.jpg","10/04/2019","small"),new banner("Buy The Vampire Chronicles","http://www.amazon.com/gp/product/0345385403?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0345385403","/altad/iwtvbook.jpg","10/04/2019","small"),new banner("Buy Interview with the Vampire","http://www.amazon.com/gp/product/B00004RFFS?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B00004RFFS","/altad/iwtvdvd.jpg","10/04/2019","small"),new banner("Buy Dracula","http://www.amazon.com/gp/product/B000TGJ80S?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B000TGJ80S","/altad/draculadvd.jpg","10/04/2019","small"),new banner("Buy Dracula","http://www.amazon.com/gp/product/0743477367?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0743477367","/altad/draculabook.jpg","10/04/2019","small"),new banner("Buy Companions of the Night","http://www.amazon.com/gp/product/0152166696?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0152166696","/altad/cotn.jpg","10/04/2019","small"),new banner("Buy the Black Dagger Brotherhood","http://www.amazon.com/gp/product/0451947630?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0451947630","/altad/bdb.jpg","10/04/2019","small"),new banner("Buy The Vampire Book - The Encyclopedia of the Undead","http://www.amazon.com/gp/product/157859071X?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=157859071X","/altad/vampenc.jpg","10/04/2019","small"),new banner("Buy The Lost Boys","http://www.amazon.com/gp/product/B00027JZ3E?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B00027JZ3E","/altad/lostboys.jpg","10/04/2019","small"),new banner("Buy Blood and Chocolate","http://www.amazon.com/gp/product/0385734212?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0385734212","/altad/bandc.jpg","10/04/2019","small"),new banner("Buy The Silver Kiss","http://www.amazon.com/gp/product/0375857826?ie=UTF8&tag=vampirediarie-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0375857826","/altad/silverkiss.jpg","10/04/2019","small")];var used=0;var location_counter=0;var refresh_counter=1;var map=new Array();function banner(g,f,l,k,h){this.name=g;this.url=f;this.image=l;this.date=k;this.active=1;this.oid=0;if(h!=""){this.loc=h}else{this.loc=settings.default_ad_loc}}function show_banners(d){location_counter=location_counter+1;if(d!=""&&d!=undefined){map[location_counter]=d}else{map[location_counter]=settings.default_ad_loc}var c='<div id="'+settings.location_prefix+location_counter+'" class="'+settings.location_class+'"></div>';document.write(c);display_banners(location_counter)}function display_banners(w){var v=new Array();if(w==""||!w||w<0){return}var u=banners.length;if((u==used)&&settings.duplicate_banners==0){return}for(i=0;i<(banners.length);i++){banners[i].oid=i;if((banners[i].loc==map[w])&&(banners[i].active==1)){v.push(banners[i])}}var t=Math.floor(Math.random()*v.length);var s=v[t];var r=(settings.force_size==1)?' width="'+settings.img_width+'" height="'+settings.img_height+'"':"";var q='<a href="'+s.url+'" title="'+s.name+'" target="'+settings.window+'"><img border="0" src="'+s.image+'"'+r+' alt="'+s.name+'" /></a>';var p=new Date();var o=s.date;o=o.split("/",3);var n=new Date();n.setFullYear(parseInt(o[2]),parseInt(o[1])-1,parseInt(o[0]));if((p<n)&&s.active==1){var m=document.getElementById(settings.location_prefix+w);if(m==null){alert("spyka Webmaster banner rotator\nError: adLocation doesn't exist!")}else{m.innerHTML=q;if(settings.duplicate_banners==0){banners[s.oid].active=0;used++}return}}else{display_banners(w)}return}function refresh_banners(){if((refresh_counter==settings.refresh_max)||settings.refresh_time<1){clearInterval(banner_refresh)}used=0;for(j=0;j<(banners.length);j++){banners[j].active=1}for(j=1;j<(location_counter+1);j++){display_banners(j)}refresh_counter++}var banner_refresh=window.setInterval(refresh_banners,settings.refresh_time);
