var DmdNTWSettings_e22846ee1270471ba39e3f90f159bd83 = { pageItems : [[{"DiamdNo":"JAN251419","StockNo":"STL356478","Title":"FURRLOUGH #198","Publisher":"ANTARCTIC PRESS","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"JAN251410","StockNo":"STL356480","Title":"PRIVATE AMERICAN #3","Publisher":"ANTARCTIC PRESS","IsAllowed":true,"IsCustom":false,"Category":"1 "}],[{"DiamdNo":"JAN250173","StockNo":"STL359733","Title":"RED SONJA ATTACKS MARS #1","Publisher":"DYNAMITE","IsAllowed":true,"IsCustom":false,"Category":"1 "}],[{"DiamdNo":"JAN251102","StockNo":"STL357558","Title":"GFT 20TH ANNIV 2025 FAIRY TALE PINUP SPEC CVR A ABBONDANZA","Publisher":"ZENESCOPE ENTERTAINMENT INC","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"JAN251103","StockNo":"STL357559","Title":"GFT 20TH ANNIV 2025 FAIRY TALE PINUP SPEC CVR B VITORINO","Publisher":"ZENESCOPE ENTERTAINMENT INC","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"JAN250198","StockNo":"STL359902","Title":"HERCULOIDS #2","Publisher":"DYNAMITE","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"JAN250016","StockNo":"STL356503","Title":"MOUSE GUARD DAWN OF THE BLACK AXE #1","Publisher":"BOOM! STUDIOS","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"DEC240184","StockNo":"STL355221","Title":"SILVERHAWKS #2","Publisher":"DYNAMITE","IsAllowed":true,"IsCustom":false,"Category":"1 "},{"DiamdNo":"JAN250089","StockNo":"STL359763","Title":"THUNDERCATS LOST #1","Publisher":"DYNAMITE","IsAllowed":true,"IsCustom":false,"Category":"1 "}]], dates : ["Wednesday, April 2, 2025","Wednesday, March 26, 2025","Wednesday, March 19, 2025"], numOfColumns : 3, primaryColor : '#1F68A5', secondaryColor : '#1FA548', bgColor : '#FFFFFF', itemWidthPer : 100 / 3, numPrevWeeks : 2, nextWeeksDate : '', curWeekDate : 'Wednesday, April 2, 2025', rowsPerPage: 5, curPage: 0, currentIndex: 0 }; function DmdNTW_e22846ee1270471ba39e3f90f159bd83() { var settings = DmdNTWSettings_e22846ee1270471ba39e3f90f159bd83; document.write('
'); for (var i = 0; i < settings.dates.length; i++) { if (settings.dates[i] == settings.curWeekDate) { DmdNTW_ChangeDate_e22846ee1270471ba39e3f90f159bd83(i); settings.currentIndex = i; } } } function DmdNTW_ChangeDate_e22846ee1270471ba39e3f90f159bd83(index) { var settings = DmdNTWSettings_e22846ee1270471ba39e3f90f159bd83; settings.currentIndex = index; settings.curPage = 0; document.getElementById("dmdNewReleasesWidget_e22846ee1270471ba39e3f90f159bd83").innerHTML = DmdNTW_SetDisplayMarkup_e22846ee1270471ba39e3f90f159bd83(settings.pageItems[index], settings.dates[index]); } function DmdNTW_NextPage_e22846ee1270471ba39e3f90f159bd83() { var settings = DmdNTWSettings_e22846ee1270471ba39e3f90f159bd83; settings.curPage += 1; document.getElementById("dmdNewReleasesWidget_e22846ee1270471ba39e3f90f159bd83").innerHTML = DmdNTW_SetDisplayMarkup_e22846ee1270471ba39e3f90f159bd83(settings.pageItems[settings.currentIndex], settings.dates[settings.currentIndex]); } function DmdNTW_PrevPage_e22846ee1270471ba39e3f90f159bd83() { var settings = DmdNTWSettings_e22846ee1270471ba39e3f90f159bd83; settings.curPage -= 1; document.getElementById("dmdNewReleasesWidget_e22846ee1270471ba39e3f90f159bd83").innerHTML = DmdNTW_SetDisplayMarkup_e22846ee1270471ba39e3f90f159bd83(settings.pageItems[settings.currentIndex], settings.dates[settings.currentIndex]); } function DmdNTW_SetDisplayMarkup_e22846ee1270471ba39e3f90f159bd83(collection, displayDate) { var settings = DmdNTWSettings_e22846ee1270471ba39e3f90f159bd83; 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_e22846ee1270471ba39e3f90f159bd83();