// Generated by the Blogger Archive Script Generator // at http://philringnalda.com/scriptgen/ // Based on code by Andy Buchanan from // http://weblog.cheesephone.co.uk/mytemplate.html // User data // User data var currentPageName = "current horror"; var currentPageLink = "/etc/"; var archivePath = "/etc/archives/"; var preLink = "horrors posted "; var postLink = ""; function ArchivePage_MakeLink(){ var month_name = new Array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"); var newName = preLink + month_name[this.StartDate.getMonth()]+" "+this.StartDate.getDate()+", "+eval("y=this.StartDate.getFullYear()+'';y=y.substr(2)")+"-"+month_name[this.EndDate.getMonth()]+" "+this.EndDate.getDate()+", "+eval("y=this.EndDate.getFullYear()+'';y=y.substr(2)") + postLink; var outString = ""; if ( -1 != location.href.indexOf( this.Link ) ){ outString = "" + newName + "
"; } else{ outString = "" + newName + "
"; } return outString; } function ArchivePage_Compare( rhs ){ if ( this.StartDate == rhs.StartDate ) return 0; else if ( this.StartDate > rhs.StartDate ) return 1; else return -1; } function ArchivePage( theLink, theName ){ this.Link = theLink; this.Name = theName; this.StartDate = new Date( this.Name.slice(6,10), this.Name.slice(0,2)-1, this.Name.slice(3,5) ); this.EndDate = new Date( this.Name.slice(13+6,13+10), this.Name.slice(13+0,13+2)-1, this.Name.slice(13+3,13+5) ); ArchivePage.prototype.MakeLink = ArchivePage_MakeLink; ArchivePage.prototype.Compare = ArchivePage_Compare; } function bi_comp( a, b ){ return -a.Compare( b ); } function FindIdx( myURL ){ for ( var n=0; n" + currentPageName + "
"); } for ( var n=start; n