var DmdNTWSettings_23e6e4ea501c45ba9c219d660c23ff29 = { pageItems : [[{"DiamdNo":"OCT241955","StockNo":"STL342045","Title":"BIOGRAPHIX: MOEBIUS SC","Publisher":"UNIVERSITY PRESS OF MISSISSIPP","IsAllowed":true,"IsCustom":false,"Category":"4 "},{"DiamdNo":"OCT240015","StockNo":"STL343828","Title":"BOOK OF CUTTER #1 CVR A MORA","Publisher":"BOOM! STUDIOS","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"OCT240016","StockNo":"STL343829","Title":"BOOK OF CUTTER #1 CVR B DELL EDERA","Publisher":"BOOM! STUDIOS","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"NOV240066","StockNo":"STL347461","Title":"HELLO DARKNESS #7","Publisher":"BOOM! STUDIOS","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"NOV240101","StockNo":"STL347484","Title":"JIM HENSONS LABYRINTH #5","Publisher":"BOOM! STUDIOS","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"NOV241902","StockNo":"STL347720","Title":"LITTLE MEGA MAN GN VOL 01","Publisher":"UDON ENTERTAINMENT INC","IsAllowed":true,"IsCustom":false,"Category":"3 "},{"DiamdNo":"AUG241400","StockNo":"STL336439","Title":"LITTLE STOOGES #1","Publisher":"AMERICAN MYTHOLOGY PRODUCTIONS","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"NOV241626","StockNo":"STL347595","Title":"MARK SPEARS MONSTERS #3","Publisher":"KEENSPOT ENTERTAINMENT","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"SEP240085","StockNo":"STL340643","Title":"RED BEFORE BLACK #4","Publisher":"BOOM! STUDIOS","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"NOV240248","StockNo":"STL351102","Title":"RED SONJA 2023 #18","Publisher":"DYNAMITE","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"DEC241238","StockNo":"STL354600","Title":"RETURN OF THE LIVING DEAD #2","Publisher":"AMERICAN MYTHOLOGY PRODUCTIONS","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"SEP241407","StockNo":"STL341056","Title":"SILENT NIGHT DEADLY NIGHT VS VALENTINE BLUFFS MASSACRE #1","Publisher":"AMERICAN MYTHOLOGY PRODUCTIONS","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"NOV240118","StockNo":"STL350436","Title":"SILVERHAWKS #1","Publisher":"DYNAMITE","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"NOV241567","StockNo":"STL346916","Title":"THE BADGER: MAD MONKEY SHOCK `N` ROLL #1","Publisher":"1FIRST COMICS","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"NOV240297","StockNo":"STL351079","Title":"THUNDERCATS #12","Publisher":"DYNAMITE","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"NOV247227","StockNo":"STL363019","Title":"THUNDERCATS #12 CVR Y FOC BONUS MARK SPEARS FOIL","Publisher":"DYNAMITE","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"NOV247235","StockNo":"STL363027","Title":"THUNDERCATS #12 CVR ZG 10 COPY FOC INCV SPEARS VIRGIN SNAKE","Publisher":"DYNAMITE","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"NOV247033","StockNo":"STL341643","Title":"VAMPIRELLA #674","Publisher":"DYNAMITE","IsAllowed":true,"IsCustom":false,"Category":"1 "}]], dates : ["Wednesday, January 29, 2025"], numOfColumns : 4, primaryColor : '#1F68A5', secondaryColor : '#ff0000', bgColor : '#FFFFFF', itemWidthPer : 100 / 4, numPrevWeeks : 0, nextWeeksDate : '', curWeekDate : 'Wednesday, January 29, 2025', rowsPerPage: 0, curPage: 0, currentIndex: 0 }; function DmdNTW_23e6e4ea501c45ba9c219d660c23ff29() { var settings = DmdNTWSettings_23e6e4ea501c45ba9c219d660c23ff29; document.write('
'); for (var i = 0; i < settings.dates.length; i++) { if (settings.dates[i] == settings.curWeekDate) { DmdNTW_ChangeDate_23e6e4ea501c45ba9c219d660c23ff29(i); settings.currentIndex = i; } } } function DmdNTW_ChangeDate_23e6e4ea501c45ba9c219d660c23ff29(index) { var settings = DmdNTWSettings_23e6e4ea501c45ba9c219d660c23ff29; settings.currentIndex = index; settings.curPage = 0; document.getElementById("dmdNewReleasesWidget_23e6e4ea501c45ba9c219d660c23ff29").innerHTML = DmdNTW_SetDisplayMarkup_23e6e4ea501c45ba9c219d660c23ff29(settings.pageItems[index], settings.dates[index]); } function DmdNTW_NextPage_23e6e4ea501c45ba9c219d660c23ff29() { var settings = DmdNTWSettings_23e6e4ea501c45ba9c219d660c23ff29; settings.curPage += 1; document.getElementById("dmdNewReleasesWidget_23e6e4ea501c45ba9c219d660c23ff29").innerHTML = DmdNTW_SetDisplayMarkup_23e6e4ea501c45ba9c219d660c23ff29(settings.pageItems[settings.currentIndex], settings.dates[settings.currentIndex]); } function DmdNTW_PrevPage_23e6e4ea501c45ba9c219d660c23ff29() { var settings = DmdNTWSettings_23e6e4ea501c45ba9c219d660c23ff29; settings.curPage -= 1; document.getElementById("dmdNewReleasesWidget_23e6e4ea501c45ba9c219d660c23ff29").innerHTML = DmdNTW_SetDisplayMarkup_23e6e4ea501c45ba9c219d660c23ff29(settings.pageItems[settings.currentIndex], settings.dates[settings.currentIndex]); } function DmdNTW_SetDisplayMarkup_23e6e4ea501c45ba9c219d660c23ff29(collection, displayDate) { var settings = DmdNTWSettings_23e6e4ea501c45ba9c219d660c23ff29; 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_23e6e4ea501c45ba9c219d660c23ff29();