var DmdNTWSettings_02e84d457a0d4cdba757eaf78f40738f = { pageItems : [[{"DiamdNo":"OCT240015","StockNo":"STL343828","Title":"BOOK OF CUTTER #1 CVR A MORA","Publisher":"BOOM! STUDIOS","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"NOV241725","StockNo":"STL350402","Title":"POWER LORDS #1","Publisher":"ONI PRESS INC.","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"NOV240248","StockNo":"STL351102","Title":"RED SONJA 2023 #18","Publisher":"DYNAMITE","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"NOV240118","StockNo":"STL350436","Title":"SILVERHAWKS #1","Publisher":"DYNAMITE","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"SEP240327","StockNo":"STL341643","Title":"VAMPIRELLA #674","Publisher":"DYNAMITE","IsAllowed":true,"IsCustom":false,"Category":"1 "}],[{"DiamdNo":"NOV240972","StockNo":"STL348020","Title":"ARCHIE IS MR JUSTICE #2","Publisher":"ARCHIE COMIC PUBLICATIONS","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"OCT241106","StockNo":"STL343618","Title":"BLACK HAMMER: SPIRAL CITY #3","Publisher":"DARK HORSE PRH","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"JUN241776","StockNo":"STL325165","Title":"KNIGHTS OF THE DINNER TABLE #316","Publisher":"KENZER \u0026 COMPANY","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"OCT241188","StockNo":"STL343395","Title":"TEENAGE MUTANT NINJA TURTLES: NIGHTWATCHER #5","Publisher":"IDW-PRH","IsAllowed":true,"IsCustom":false,"Category":"1 "}],[{"DiamdNo":"OCT241105","StockNo":"STL343717","Title":"BEHEMOTH #1","Publisher":"DARK HORSE PRH","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"OCT241135","StockNo":"STL343719","Title":"SHADOW OF THE GOLDEN CRANE #1","Publisher":"DARK HORSE PRH","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"SEP241213","StockNo":"STL339981","Title":"SPACE USAGI: WHITE STAR RISING #3","Publisher":"DARK HORSE PRH","IsAllowed":true,"IsCustom":false,"Category":"1 "}]], dates : ["Wednesday, January 29, 2025","Wednesday, January 22, 2025","Wednesday, January 15, 2025"], numOfColumns : 3, primaryColor : '#1F68A5', secondaryColor : '#1FA548', bgColor : '#FFFFFF', itemWidthPer : 100 / 3, numPrevWeeks : 2, nextWeeksDate : '', curWeekDate : 'Wednesday, January 29, 2025', rowsPerPage: 0, curPage: 0, currentIndex: 0 }; function DmdNTW_02e84d457a0d4cdba757eaf78f40738f() { var settings = DmdNTWSettings_02e84d457a0d4cdba757eaf78f40738f; document.write('
'); for (var i = 0; i < settings.dates.length; i++) { if (settings.dates[i] == settings.curWeekDate) { DmdNTW_ChangeDate_02e84d457a0d4cdba757eaf78f40738f(i); settings.currentIndex = i; } } } function DmdNTW_ChangeDate_02e84d457a0d4cdba757eaf78f40738f(index) { var settings = DmdNTWSettings_02e84d457a0d4cdba757eaf78f40738f; settings.currentIndex = index; settings.curPage = 0; document.getElementById("dmdNewReleasesWidget_02e84d457a0d4cdba757eaf78f40738f").innerHTML = DmdNTW_SetDisplayMarkup_02e84d457a0d4cdba757eaf78f40738f(settings.pageItems[index], settings.dates[index]); } function DmdNTW_NextPage_02e84d457a0d4cdba757eaf78f40738f() { var settings = DmdNTWSettings_02e84d457a0d4cdba757eaf78f40738f; settings.curPage += 1; document.getElementById("dmdNewReleasesWidget_02e84d457a0d4cdba757eaf78f40738f").innerHTML = DmdNTW_SetDisplayMarkup_02e84d457a0d4cdba757eaf78f40738f(settings.pageItems[settings.currentIndex], settings.dates[settings.currentIndex]); } function DmdNTW_PrevPage_02e84d457a0d4cdba757eaf78f40738f() { var settings = DmdNTWSettings_02e84d457a0d4cdba757eaf78f40738f; settings.curPage -= 1; document.getElementById("dmdNewReleasesWidget_02e84d457a0d4cdba757eaf78f40738f").innerHTML = DmdNTW_SetDisplayMarkup_02e84d457a0d4cdba757eaf78f40738f(settings.pageItems[settings.currentIndex], settings.dates[settings.currentIndex]); } function DmdNTW_SetDisplayMarkup_02e84d457a0d4cdba757eaf78f40738f(collection, displayDate) { var settings = DmdNTWSettings_02e84d457a0d4cdba757eaf78f40738f; var markup = ''; markup += '

New Releases - ' + displayDate + '

'; markup += '
'; var curWeekIndex = 0; markup += '
'; markup += 'Upcoming Releases'; if (settings.dates.length > 1) { markup += ' - '; for(var j = 0; j < settings.dates.length; j++) { var dateText = '' if (settings.dates[j] == settings.curWeekDate) { dateText = "This Week"; curWeekIndex = j; } else if (settings.dates[j] == settings.nextWeeksDate) { dateText = "Next Week"; } else { if (j - curWeekIndex == 1) { dateText = "Last Week"; } else { dateText = (j - curWeekIndex) + " Weeks Previous"; } } markup += '' + dateText + ''; if (j != settings.dates.length -1) { markup += ' - '; } } } markup += '
'; var startingIndex = settings.curPage * (settings.rowsPerPage) * settings.numOfColumns; var endingIndex = (settings.curPage + 1) * (settings.rowsPerPage) * settings.numOfColumns; var hasMore = true; var isFirstPage = settings.curPage == 0; if (endingIndex >= collection.length || settings.rowsPerPage == 0) { endingIndex = collection.length; hasMore = false; } if (settings.rowsPerPage != 0) { markup += '
'; if (!isFirstPage) { markup += '<< PREV PAGE'; } if (!isFirstPage && hasMore) { markup += ' '; } if (hasMore) { markup += 'NEXT PAGE >>'; } markup += '
'; } for(var i = startingIndex; i < endingIndex; i++) { markup += '
'; markup += ''; markup += '
' + collection[i].Title + '
'; markup += '
' + collection[i].Publisher + '
'; markup += '
'; } if (settings.rowsPerPage != 0) { markup += '
'; markup += '
'; if (!isFirstPage) { markup += '<< PREV PAGE'; } if (!isFirstPage && hasMore) { markup += ' '; } if (hasMore) { markup += 'NEXT PAGE >>'; } markup += '
'; } markup += '
'; return markup; } DmdNTW_02e84d457a0d4cdba757eaf78f40738f();