curWeek = 4; wna = new Array(); wna[0] = new Array(); wna[0][0] = 1;//week number wna[0][1] = 'Test Article';//title wna[0][2] = 'This is a test';//subtitle wna[0][3] = 'by Unknown';//author wna[0][4] = '';//article description wna[0][5] = 10391;//articleID wna[1] = new Array(); wna[1][0] = 2;//week number wna[1][1] = 'Another Test';//title wna[1][2] = 'This is another test';//subtitle wna[1][3] = 'by Unknown';//author wna[1][4] = '';//article description wna[1][5] = 10392;//articleID wna[2] = new Array(); wna[2][0] = 3;//week number wna[2][1] = 'Yet Another Test';//title wna[2][2] = 'This is another test';//subtitle wna[2][3] = 'by Unknown';//author wna[2][4] = '';//article description wna[2][5] = 10394;//articleID wna[3] = new Array(); wna[3][0] = 4;//week number wna[3][1] = 'TestTest';//title wna[3][2] = '';//subtitle wna[3][3] = 'by Unknown';//author wna[3][4] = '';//article description wna[3][5] = 10395;//articleID wna[4] = new Array(); wna[4][0] = 5;//week number wna[4][1] = 'CELEBRITY HIDEAWAYS';//title wna[4][2] = '52 Celebrity hideaways that you can visit too!';//subtitle wna[4][3] = 'by Roshan McArthur';//author wna[4][4] = 'Next time you travel, access your inner paparazzo. If you\'re wondering where your favorite celebs spend their down-time, check out our list of 52 star-studded destinations. We\'ve collected hotels, islands and hideaways where you\'ll find them holed away - and the best news is, they\'re all open to the public. So what are you waiting for?';//article description wna[4][5] = 10383;//articleID /*var cWeek = document.getElementById('currentWeek'); var cArticle = document.getElementById('currentArticle'); var cLink = document.getElementById('currentLink');*/ function setWeek() { document.getElementById('currentWeek').innerHTML = wna[curWeek][0]; document.getElementById('currentTitle').innerHTML = wna[curWeek][1]; document.getElementById('currentSubtitle').innerHTML = wna[curWeek][2]; document.getElementById('currentAuthor').innerHTML = wna[curWeek][3]; document.getElementById('currentArticle').innerHTML = wna[curWeek][4]; document.getElementById('currentLink').href = 'article.cfm?id=' + wna[curWeek][5]; } function changeWeek(dir) { if (dir == 'next') { if(curWeek <4) { curWeek++; setWeek(); } else { curWeek = 0; setWeek(); } } else { if(curWeek > 0) { curWeek--; setWeek(); } else { curWeek = 4; setWeek(); } } }