var DmdNTWSettings_31232e4a76e3490fb104756f67b1c821 = { pageItems : [[{"DiamdNo":"JUN248744","StockNo":"STL342018","Title":"BRUCE DICKINSONS THE MANDRAKE PROJECT #4","Publisher":"Z2 COMICS","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"JAN251498","StockNo":"STL356949","Title":"KATABASIS #4","Publisher":"BLACKBOX COMICS","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"FEB250400","StockNo":"STL363490","Title":"SOLOMON KANE SERPENT RING #2","Publisher":"TITAN COMICS","IsAllowed":true,"IsCustom":false,"Category":"1 "}],[{"DiamdNo":"FEB250395","StockNo":"STL362753","Title":"CONAN BARBARIAN #20","Publisher":"TITAN COMICS","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"FEB250235","StockNo":"STL363805","Title":"DARKWING DUCK #3","Publisher":"DYNAMITE","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"JUL241195","StockNo":"STL328893","Title":"FANTASTIC FOUR: FULL CIRCLE EXPANDED EDITION GN","Publisher":"ABRAMS COMICARTS","IsAllowed":true,"IsCustom":false,"Category":"3 "},{"DiamdNo":"FEB250152","StockNo":"STL363722","Title":"GIANT-SIZED WACKY RACES #1","Publisher":"DYNAMITE","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"FEB250285","StockNo":"STL363839","Title":"GREEN HORNET MISS FURY #4 CVR A FRANCAVILLA","Publisher":"DYNAMITE","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"FEB250114","StockNo":"STL363687","Title":"RED SONJA VS AOD #1","Publisher":"DYNAMITE","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"JAN251764","StockNo":"STL356362","Title":"THE SURGEON #4","Publisher":"LAGUNA STUDIOS","IsAllowed":true,"IsCustom":false,"Category":"1 "}],[{"DiamdNo":"FEB251325","StockNo":"STL363390","Title":"CAPTAIN ACTION VS AL CAPONE VAMPIRE #1","Publisher":"AMERICAN MYTHOLOGY PRODUCTIONS","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"NOV247782","StockNo":"STL364676","Title":"FCBD 2025 BUNDLE OF 50 POST MALONES BIG RIG #1","Publisher":"VAULT COMICS","IsAllowed":true,"IsCustom":false,"Category":"13 "},{"DiamdNo":"SEP242228","StockNo":"STL338697","Title":"FINAL FIGHT #4","Publisher":"UDON ENTERTAINMENT INC","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"JAN250405","StockNo":"STL359559","Title":"LENORE THE TIME WAR #3","Publisher":"TITAN COMICS","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"JAN251596","StockNo":"STL356823","Title":"RED RANGE #1","Publisher":"DEAD SKY PUBLISHING LLC","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"JAN251342","StockNo":"STL358104","Title":"RETURN OF THE LIVING DEAD #3","Publisher":"AMERICAN MYTHOLOGY PRODUCTIONS","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"JAN251683","StockNo":"STL355744","Title":"ROBOT TOD #2","Publisher":"FLOATING WORLD COMICS","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"JAN250342","StockNo":"STL360017","Title":"THUNDERCATS #14","Publisher":"DYNAMITE","IsAllowed":true,"IsCustom":false,"Category":"1 "}]], dates : ["Wednesday, April 23, 2025","Wednesday, April 16, 2025","Wednesday, April 9, 2025"], numOfColumns : 5, primaryColor : '#1F68A5', secondaryColor : '#1FA548', bgColor : '#FFFFFF', itemWidthPer : 100 / 5, numPrevWeeks : 2, nextWeeksDate : '', curWeekDate : 'Wednesday, April 23, 2025', rowsPerPage: 0, curPage: 0, currentIndex: 0 }; function DmdNTW_31232e4a76e3490fb104756f67b1c821() { var settings = DmdNTWSettings_31232e4a76e3490fb104756f67b1c821; document.write('
'); for (var i = 0; i < settings.dates.length; i++) { if (settings.dates[i] == settings.curWeekDate) { DmdNTW_ChangeDate_31232e4a76e3490fb104756f67b1c821(i); settings.currentIndex = i; } } } function DmdNTW_ChangeDate_31232e4a76e3490fb104756f67b1c821(index) { var settings = DmdNTWSettings_31232e4a76e3490fb104756f67b1c821; settings.currentIndex = index; settings.curPage = 0; document.getElementById("dmdNewReleasesWidget_31232e4a76e3490fb104756f67b1c821").innerHTML = DmdNTW_SetDisplayMarkup_31232e4a76e3490fb104756f67b1c821(settings.pageItems[index], settings.dates[index]); } function DmdNTW_NextPage_31232e4a76e3490fb104756f67b1c821() { var settings = DmdNTWSettings_31232e4a76e3490fb104756f67b1c821; settings.curPage += 1; document.getElementById("dmdNewReleasesWidget_31232e4a76e3490fb104756f67b1c821").innerHTML = DmdNTW_SetDisplayMarkup_31232e4a76e3490fb104756f67b1c821(settings.pageItems[settings.currentIndex], settings.dates[settings.currentIndex]); } function DmdNTW_PrevPage_31232e4a76e3490fb104756f67b1c821() { var settings = DmdNTWSettings_31232e4a76e3490fb104756f67b1c821; settings.curPage -= 1; document.getElementById("dmdNewReleasesWidget_31232e4a76e3490fb104756f67b1c821").innerHTML = DmdNTW_SetDisplayMarkup_31232e4a76e3490fb104756f67b1c821(settings.pageItems[settings.currentIndex], settings.dates[settings.currentIndex]); } function DmdNTW_SetDisplayMarkup_31232e4a76e3490fb104756f67b1c821(collection, displayDate) { var settings = DmdNTWSettings_31232e4a76e3490fb104756f67b1c821; 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_31232e4a76e3490fb104756f67b1c821();