var ticker = {
items: 23,
ids: ['1', '2', '', '3', '4', '', '5', '', '6', '', '7', '8', '', '9', '10', '', '', '11', '12', '', '13', '14', '', '15', '', '16', '', '17', '18', '', '19', '20', ],
titles: ['Thanks for visiting GuitarTeacher.com!', 'Featured Lesson: The Secret Pentatonic Shapes', '', 'Free Online Guitar Jam Tracks', 'Sponsor: Songsterr.com - Tabs with Rhythm', '', 'Famous Guitar Riffs *Babe Im Gonna Leave You* by Led Zeppelin', 'Why Leave Home? Private Guitar Lessons Online via Skype with GuitarTeacher.com', 'Featured Article: 10 Must Have Items for Guitarists', '', 'Featured Lesson: 4 Scales You Should Know', 'Sweet Tweets: Follow GuitarTeacher.com on Twitter!', '', 'Featured Lesson: Guitar Harmony Chart', 'Got Guitar Questions? Get them answered FREE in the GuitarTeacher.com FORUM', '', 'Why Leave Home? Private Guitar Lessons Online via Skype with GuitarTeacher.com', 'Video Guitar Lesson: Wanted: Dead or Alive Intro', 'Weekly Live Group Guitar Lessons: Check upcoming times on the LIVE page', '', 'Famous Guitar Riffs: Play *Crazy Train* by Ozzy Osbourne/Randy Rhoads', '16 Tips For Playing Music In A Group', '', 'Stay In Touch: Signup for the GuitarTeacher.com *Play Guitar Better* Newsletter', '', 'Thanks for visiting GuitarTeacher.com', '', 'Guitar Lesson Downloads and eLessons', '25 Random Posts from GuitarTeacher.com', '', 'Features: How To Make Money Online Using Niche Content Websites', 'Guitar Reference Material &#208; Capo Transposition Chart'],
links: ['http://www.guitarteacher.com/', 'http://guitarteacher.com/2008/08/27/the-secret-pentatonic-shapes/', '', 'http://guitarteacher.com/category/jamtracks/', 'http://www.guitarteacher.com/go/songsterr.php', '', 'http://guitarteacher.com/2009/01/09/famous-guitar-riffs-babe-im-gonna-leave-you-by-led-zeppelin/', 'http://www.guitarteacher.com/private-guitar-lessons-online', 'http://guitarteacher.com/2008/12/11/10-must-have-items-for-guitarists/', '', 'http://guitarteacher.com/2008/08/19/4-scales-you-should-know/', 'http://www.twitter.com/guitarteachrcom', '', 'http://guitarteacher.com/2009/02/04/guitar-harmony-chart/', 'http://guitarteacher.com/forum', '', 'http://www.guitarteacher.com/private-guitar-lessons-online', 'http://guitarteacher.com/2008/08/18/wanted-dead-or-alive-guitar-lesson-intro/', 'http://www.guitarteacher.com/live/', '', 'http://guitarteacher.com/2009/03/03/famous-guitar-riffs-play-crazy-train-by-ozzy-osbourne-randy-rhoads/', 'http://guitarteacher.com/2009/01/08/16-tips-for-playing-music-in-a-group/', '', 'http://www.guitarteacher.com', '', 'http://www.guitarteacher.com/', '', 'http://guitarteacher.com/services/guitar-lesson-downloads/', 'http://guitarteacher.com/2009/04/14/25-random-posts-from-guitarteachercom/', '', '25 Random Posts from GuitarTeacher.com', 'http://guitarteacher.com/2009/03/10/guitar-reference-material-capo-transposition-chart/'],
nofollow: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'nofollow', '', '', ],
divId: 'post_ticker_div',
containerId: 'the_post_ticker',
tickTime: 5000,
moreLink: 0,
				count: 0,
				index: 0,
					
				init: function()
				{	
					ticker.tick(ticker.index);
				},
				tick: function(key)
				{
					var div = document.getElementById(ticker.divId);
					if (!div) return;
					
					if (key >= ticker.items) key = 0; // outside of range, reset
					if (div.firstChild != null)
					{
						div.removeChild(div.firstChild); // remove previous text
					}
					
					var child = document.createElement('div');
					var href = document.createElement('a');
					var atext = document.createTextNode(ticker.titles[key]);
					href.href = ticker.links[key];
					if(ticker.nofollow[key]) {
					href.rel = ticker.nofollow[key];
					}
					//var blurb = document.createTextNode(ticker.padding + ticker.blurbs[key]);
					if (ticker.moreLink)
					{
						var more = document.createElement('a');
						more.href = ticker.links[key];
						var moretext = document.createTextNode('more');
						more.appendChild(moretext);
					}
					//var legend = document.createTextNode(legends[key]);
					//child.appendChild(legend);
					href.appendChild(atext);
					child.appendChild(href);
					/*child.appendChild(blurb);*/
					if (ticker.moreLink) child.appendChild(more);
					div.appendChild(child);
					ticker.fade(0, ticker.divId, 1);
							
					window.setTimeout("ticker.startkill(" + key + ")", ticker.tickTime);
					ticker.count++;
					
					var cookie_date = new Date ( );  // current date & time
					cookie_date.setTime ( cookie_date.getTime() - 1 );
					
					//if(ticker.ids[key] > 0) {
					//	document.cookie = "ticker_post_id=" + ticker.ids[key] + "; expires=" + cookie_date.toGMTString();
					//	document.cookie = "ticker_post_id=" + ticker.ids[key] + ";";
					//} else {
					//	document.cookie = "ticker_post_id=" + ticker.ids[key-1] + ";";
					//}
				},
				startkill: function(key)
				{
					var div = document.getElementById(ticker.divId);
					if (!div) return;
							
					ticker.fade(100, ticker.divId, -1);
					ticker.index = key + 1;
					window.setTimeout("ticker.tick(" + ticker.index + ")", 400);
				},
				fade: function(opacity, objname, inout)
				{
					var obj = document.getElementById(objname);
					
					if (obj)
					{
						if (opacity <= 100 && opacity >= 0)
						{
							if (obj.style.MozOpacity != null)
							{
								obj.style.MozOpacity = (opacity/100)-.001;
							}
							else if (obj.style.opacity != null)
							{
								obj.style.opacity = (opacity/100)-.001;
							}
							else if (obj.style.filter != null)
							{
								obj.style.filter = "alpha(opacity="+opacity+")";
							}
							
							if (inout > 0) opacity += 10;
							else if (inout < 0) opacity -= 10;
							
							window.setTimeout("ticker.fade("+opacity+", '"+objname+"', "+inout+")", 35);
						}
					}
				}	
			}
			
			document.write("<div id=\"the_post_ticker\">");
			document.write("<div id=\"post_ticker_div\" style=\"zoom: 1; height: auto;\"></div>"); // zoom: 1 is a css hack for IE filter opacity
			document.write("</div>");
			
			ticker.init();
