// 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 var defaultlimit = 5; var halflimit = Math.floor( defaultlimit / 2 ); var moreLinksPhrase = "[Show all]"; var fewerLinksPhrase = "[Show fewer]"; var currentPageName = "current"; var currentPageLink = "./"; var archivePath = "/"; var preLink = ""; var postLink = ""; function ArchiveCookie_GetCookie(){ var i = document.cookie.indexOf( this.CookieName + "=" ); if ( -1 != i ){ var e = document.cookie.slice( i ).indexOf( ";" ); this.cookieVal = document.cookie.slice( i+this.CookieName.length+1, (-1 != e)?e:document.cookie.length ); return this.cookieVal; } return null; } function ArchiveCookie_SetCookie( Value ){ var expireDate = new Date(); expireDate.setTime( expireDate.getTime() + this.expireTimeInMs ); var cookietext = this.CookieName + "=" + Value + "; expires=" + expireDate.toGMTString()+"; path=/"; document.cookie = cookietext; this.cookieVal = Value; } function ArchiveCookie_KillCookie(){ var expireDate = new Date(); document.cookie = this.CookieName + "=0" + "; expires=" + expireDate.toGMTString(); this.cookieVal = null; } function ArchiveCookie_GetValue(){ return this.cookieVal; } function ArchiveCookie( theCookieName, theExpireTimeInDays ){ this.CookieName = theCookieName; this.cookieVal = null; this.expireTimeInMs = theExpireTimeInDays * 100 * 60 * 60 * 24; // methods ArchiveCookie.prototype.GetCookie = ArchiveCookie_GetCookie; ArchiveCookie.prototype.SetCookie = ArchiveCookie_SetCookie; ArchiveCookie.prototype.KillCookie = ArchiveCookie_KillCookie; ArchiveCookie.prototype.GetValue = ArchiveCookie_GetValue; } function ArchivePage_MakeLink(){ var newName = preLink + this.StartDate.getFullYear()+"-"+eval("m=this.StartDate.getMonth()+1;if(m<10){m=\'0\'+m}")+"-"+eval("d=this.StartDate.getDate();if(d<10){d=\'0\'+d}")+" - "+this.EndDate.getFullYear()+"-"+eval("m=this.EndDate.getMonth()+1;if(m<10){m=\'0\'+m}")+"-"+eval("d=this.EndDate.getDate();if(d<10){d=\'0\'+d}") + 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 ShowAll(){ var cookie = new ArchiveCookie( "LimitArchive", 365 ); cookie.SetCookie( 0 ); location.href = location.href; } function ShowRecent( HowMany ){ var cookie = new ArchiveCookie( "LimitArchive", 365 ); cookie.SetCookie( HowMany ); location.href = location.href; } function FindIdx( myURL ){ for ( var n=0; n BlogInfo.length ) || ( 0 == limit )){ limit = BlogInfo.length; } var start = 0; var end = limit; currentPage = FindIdx(location.href); if ( limit < BlogInfo.length ){ if ( null == currentPage ){ start = 0; end = limit - 1; } else { if ( currentPage < halflimit ){ start = 0; end = limit; } else { if (( currentPage + halflimit ) > ( BlogInfo.length - 1 )){ end = BlogInfo.length; start = currentPage - ( limit - ( BlogInfo.length - 1 - currentPage ) - 1 ); } else { start = currentPage - halflimit; end = currentPage + halflimit + 1; } } } } if ( null != currentPage ){ document.write( "" + currentPageName + "
"); } for ( var n=start; n" + fewerLinksPhrase + "
" ); } else { document.write( "" + moreLinksPhrase + "
" ); } } var count=0; var BlogInfo = new Array(); BlogInfo[count++] = new ArchivePage( "2002_08_25_yabon.html" , "08/25/2002 - 08/31/2002" ); BlogInfo[count++] = new ArchivePage( "2002_09_01_yabon.html" , "09/01/2002 - 09/07/2002" ); BlogInfo[count++] = new ArchivePage( "2002_09_08_yabon.html" , "09/08/2002 - 09/14/2002" ); BlogInfo[count++] = new ArchivePage( "2002_09_15_yabon.html" , "09/15/2002 - 09/21/2002" ); BlogInfo[count++] = new ArchivePage( "2002_09_29_yabon.html" , "09/29/2002 - 10/05/2002" ); BlogInfo[count++] = new ArchivePage( "2002_10_13_yabon.html" , "10/13/2002 - 10/19/2002" ); BlogInfo[count++] = new ArchivePage( "2002_10_20_yabon.html" , "10/20/2002 - 10/26/2002" ); BlogInfo[count++] = new ArchivePage( "2002_10_27_yabon.html" , "10/27/2002 - 11/02/2002" ); BlogInfo[count++] = new ArchivePage( "2002_11_03_yabon.html" , "11/03/2002 - 11/09/2002" ); BlogInfo[count++] = new ArchivePage( "2002_11_10_yabon.html" , "11/10/2002 - 11/16/2002" ); BlogInfo[count++] = new ArchivePage( "2002_11_17_yabon.html" , "11/17/2002 - 11/23/2002" ); BlogInfo[count++] = new ArchivePage( "2002_11_24_yabon.html" , "11/24/2002 - 11/30/2002" ); BlogInfo[count++] = new ArchivePage( "2002_12_01_yabon.html" , "12/01/2002 - 12/07/2002" ); BlogInfo[count++] = new ArchivePage( "2002_12_08_yabon.html" , "12/08/2002 - 12/14/2002" ); BlogInfo[count++] = new ArchivePage( "2002_12_15_yabon.html" , "12/15/2002 - 12/21/2002" ); BlogInfo[count++] = new ArchivePage( "2002_12_22_yabon.html" , "12/22/2002 - 12/28/2002" ); BlogInfo[count++] = new ArchivePage( "2002_12_29_yabon.html" , "12/29/2002 - 01/04/2003" ); BlogInfo[count++] = new ArchivePage( "2003_01_05_yabon.html" , "01/05/2003 - 01/11/2003" ); BlogInfo[count++] = new ArchivePage( "2003_01_12_yabon.html" , "01/12/2003 - 01/18/2003" ); BlogInfo[count++] = new ArchivePage( "2003_01_19_yabon.html" , "01/19/2003 - 01/25/2003" ); BlogInfo[count++] = new ArchivePage( "2003_01_26_yabon.html" , "01/26/2003 - 02/01/2003" ); BlogInfo[count++] = new ArchivePage( "2003_02_02_yabon.html" , "02/02/2003 - 02/08/2003" ); BlogInfo[count++] = new ArchivePage( "2003_02_16_yabon.html" , "02/16/2003 - 02/22/2003" ); BlogInfo[count++] = new ArchivePage( "2003_03_02_yabon.html" , "03/02/2003 - 03/08/2003" ); BlogInfo[count++] = new ArchivePage( "2003_03_09_yabon.html" , "03/09/2003 - 03/15/2003" ); BlogInfo[count++] = new ArchivePage( "2003_03_16_yabon.html" , "03/16/2003 - 03/22/2003" ); BlogInfo[count++] = new ArchivePage( "2003_03_23_yabon.html" , "03/23/2003 - 03/29/2003" ); WriteArchiveSection( BlogInfo );