var DmdNTWSettings_234e94c30d5e4da382b49328423bb31c = { pageItems : [[{"DiamdNo":"FEB251084","StockNo":"STL361161","Title":"ARCHIE \u0026 FRIENDS LEVEL UP ONESHOT CVR A LOVALLO \u0026 PARENT","Publisher":"ARCHIE COMIC PUBLICATIONS","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"FEB251085","StockNo":"STL361162","Title":"ARCHIE \u0026 FRIENDS LEVEL UP ONESHOT CVR B DAN DECARLO","Publisher":"ARCHIE COMIC PUBLICATIONS","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"DEC241965","StockNo":"STL349906","Title":"DANDADAN GN VOL 011","Publisher":"VIZ MEDIA LLC","IsAllowed":true,"IsCustom":false,"Category":"3 "},{"DiamdNo":"SEP242311","StockNo":"STL339865","Title":"DEVIL IS PART TIMER GN VOL 022","Publisher":"YEN PRESS","IsAllowed":true,"IsCustom":false,"Category":"3 "},{"DiamdNo":"JUN242181","StockNo":"STL327538","Title":"GIRL SAVED ON TRAIN TURNED OUT CHILDHOOD FRIEND GN VOL 07","Publisher":"YEN PRESS","IsAllowed":true,"IsCustom":false,"Category":"3 "},{"DiamdNo":"OCT242079","StockNo":"STL344245","Title":"GIRL SAVED ON TRAIN TURNED OUT CHILDHOOD FRIEND GN VOL 08","Publisher":"YEN PRESS","IsAllowed":true,"IsCustom":false,"Category":"3 "},{"DiamdNo":"DEC241964","StockNo":"STL349940","Title":"KAIJU NO 8 GN VOL 012","Publisher":"VIZ MEDIA LLC","IsAllowed":true,"IsCustom":false,"Category":"3 "},{"DiamdNo":"DEC241963","StockNo":"STL349961","Title":"MY HERO ACADEMIA GN VOL 040","Publisher":"VIZ MEDIA LLC","IsAllowed":true,"IsCustom":false,"Category":"3 "},{"DiamdNo":"DEC241957","StockNo":"STL349979","Title":"RAINBOWS AFTER STORMS GN VOL 02","Publisher":"VIZ MEDIA LLC","IsAllowed":true,"IsCustom":false,"Category":"3 "}],[{"DiamdNo":"JAN251700","StockNo":"STL355597","Title":"GOLD KEY SELECT: BORIS KARLOFF THRILLER #1","Publisher":"GOLD KEY ENTERTAINMENT","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"DEC240145","StockNo":"STL355159","Title":"HERCULOIDS #1","Publisher":"DYNAMITE","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"JAN252015","StockNo":"STL349969","Title":"ONE PUNCH MAN GN VOL 030","Publisher":"VIZ MEDIA LLC","IsAllowed":true,"IsCustom":false,"Category":"3 "},{"DiamdNo":"JAN250173","StockNo":"STL359733","Title":"RED SONJA ATTACKS MARS #1","Publisher":"DYNAMITE","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"JAN251652","StockNo":"STL355601","Title":"THE BADGER: MAD MONKEY SHOCK `N` ROLL #3","Publisher":"1FIRST COMICS","IsAllowed":true,"IsCustom":false,"Category":"1 "}]], dates : ["Wednesday, April 2, 2025","Wednesday, March 26, 2025"], numOfColumns : 5, primaryColor : '#d92929', secondaryColor : '#1FA548', bgColor : '#FFFFFF', itemWidthPer : 100 / 5, numPrevWeeks : 1, nextWeeksDate : '', curWeekDate : 'Wednesday, April 2, 2025', rowsPerPage: 0, curPage: 0, currentIndex: 0 }; function DmdNTW_234e94c30d5e4da382b49328423bb31c() { var settings = DmdNTWSettings_234e94c30d5e4da382b49328423bb31c; document.write('
'); for (var i = 0; i < settings.dates.length; i++) { if (settings.dates[i] == settings.curWeekDate) { DmdNTW_ChangeDate_234e94c30d5e4da382b49328423bb31c(i); settings.currentIndex = i; } } } function DmdNTW_ChangeDate_234e94c30d5e4da382b49328423bb31c(index) { var settings = DmdNTWSettings_234e94c30d5e4da382b49328423bb31c; settings.currentIndex = index; settings.curPage = 0; document.getElementById("dmdNewReleasesWidget_234e94c30d5e4da382b49328423bb31c").innerHTML = DmdNTW_SetDisplayMarkup_234e94c30d5e4da382b49328423bb31c(settings.pageItems[index], settings.dates[index]); } function DmdNTW_NextPage_234e94c30d5e4da382b49328423bb31c() { var settings = DmdNTWSettings_234e94c30d5e4da382b49328423bb31c; settings.curPage += 1; document.getElementById("dmdNewReleasesWidget_234e94c30d5e4da382b49328423bb31c").innerHTML = DmdNTW_SetDisplayMarkup_234e94c30d5e4da382b49328423bb31c(settings.pageItems[settings.currentIndex], settings.dates[settings.currentIndex]); } function DmdNTW_PrevPage_234e94c30d5e4da382b49328423bb31c() { var settings = DmdNTWSettings_234e94c30d5e4da382b49328423bb31c; settings.curPage -= 1; document.getElementById("dmdNewReleasesWidget_234e94c30d5e4da382b49328423bb31c").innerHTML = DmdNTW_SetDisplayMarkup_234e94c30d5e4da382b49328423bb31c(settings.pageItems[settings.currentIndex], settings.dates[settings.currentIndex]); } function DmdNTW_SetDisplayMarkup_234e94c30d5e4da382b49328423bb31c(collection, displayDate) { var settings = DmdNTWSettings_234e94c30d5e4da382b49328423bb31c; 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_234e94c30d5e4da382b49328423bb31c();