Sei sulla pagina 1di 7

Stun Guns at great prices

'); #13;$('#tList').find('thead > tr').find('th').remove(); for (var i = 0, l = tdCount; i tr').append('


'); #13;$('#tList').find('thead').hide(); #13;$('#tList').DataTable( destroy: true, paging:
false, searching: false, "columnDefs": [ "orderable": false, "targets": "no-sort" ] ); #13;; #13;var
entities=[ ['&','&'], ['?',' '], ['',''], ['<',''], ['"','"'], ['%22','?'] ]; var dtt; function
showResult(scrollNeeded, addToExisting) if (document.getElementById("tResult")) var text =
new
String(document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_hSearchR
esult").value); if (addToExisting) if ($('.contentBody').hasClass('list')) $/g, ''); $('.firstLoadedTable
> tbody').append(listHTML); $('.firstLoadedTable > tbody > tr').removeClass('Even Odd First
Last'); $('.firstLoadedTable').find('tr:empty').remove(); if ($('.firstLoadedTable').find('th').length > 0)
clearTimeout(dtt); dtt = setTimeout(function () buildListTable(); , 10); else if
($('.contentBody').hasClass('grid'))
$('#tResult').find('.contentBody').append(decodeHTML(text)); $('#tResult').find('.contentBody').chi
ldren('.contentBody').contents().unwrap(); else $('#tResult').append(decodeHTML(text)); if
(typeof bLazy != "undefined") setTimeout(function () bLazy.revalidate(); , 100); else
$('#tResult').html(decodeHTML(text)); if ($('.contentBody').hasClass('list'))
$('.contentBody.list').addClass('firstLoadedTable'); $('.firstLoadedTable > tbody >
tr').removeClass('Even Odd First
Last'); $('.firstLoadedTable').find('tr:empty').remove(); $('.firstLoadedTable').prepend(''); $('.firstLo
adedTable').find('th').parent('tr').detach().prependTo($('.firstLoadedTable').find('thead')); if
($('.firstLoadedTable').find('th').length > 0) buildListTable(); else if ($('.firstLoadedTable > tbody
> tr').length > 0) var l = $('.firstLoadedTable > tbody > tr:first').children('td').length; for (var i =
0; i thead').prepend(''); if (i == l) $('.firstLoadedTable >
thead').prepend(''); buildListTable();
createTopSearch(); collapseControl(); createFilters(); if
(document.getElementById("tResult").innerHTML.indexOf("unexpected error occured") >=
0) $('#tResult').html(''); var pepper spray topS =
document.getElementById("topVehicleSearch"); if (topS) topS.style.display =
'none'; topS.style.visibility = 'hidden'; topS.innerHTML = ''; topS =
document.getElementById("tdFilters"); if (topS) topS.style.display = 'none'; topS =
document.getElementById("tdFilterBottom"); if (topS) topS.style.display = 'none'; topS =
document.getElementById("bottomBar") if (topS) topS.style.display = 'none'; return false; if
(document.getElementById("tResult").innerHTML.indexOf("No Products Found") >=
0) document.getElementById("amazonSearch").style.display='inline'; else document.getElementBy
Id("amazonSearch").style.display='inline'; //refresh dropdowns var perPage =
document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_hItemsPerPage").
value; var cboItemsPerPage = document.getElementById("cboItemsPerPage"); var currentPage =
document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_hCurrentPage").v
alue; if (cboItemsPerPage != null) for (var i = 0; i ").value); var spanPages =
document.getElementById("spanPages"); spanPages.innerHTML=''; if (currentPage - 1 >
0) document.getElementById("tdPrev").innerHTML = '
&nbsp
'; else document.getElementById("tdPrev").innerHTML='
&nbsp

'; var startFrom = Math.max(currentPage-10,0); var finishAt = Math.min(parseInt(currentPage) +


10,pages); for (var i = startFrom; i ' + (i+1).toString() + ''; else spanPages.innerHTML =
spanPages.innerHTML + '' + (i+1).toString() + ''; #13;*/ /* if (currentPage
&nbsp
'; else document.getElementById("tdNext").innerHTML = '
&nbsp
'; document.getElementById("tdPrevBottom").innerHTML=document.getElementById("tdPrev").inn
erHTML; document.getElementById("tdNextBottom").innerHTML =
document.getElementById("tdNext").innerHTML; document.getElementById("spanPagesBottom").in
nerHTML = document.getElementById("spanPages").innerHTML; */ var cboSort =
document.getElementById('cboSort'); var currentSort =
document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_hCurrentSort").v
alue; for (var i = 0; i =0) ProductCount = ""; if (initialSearch.indexOf("= 0) initialSearch =
""; //document.getElementById("lblInitialSearch").innerHTML = initialSearch; //
lblCount.innerHTML = start.toString() + "-" + Math.min(ProductCount,end).toString() + " of " +
ProductCount.toString(); lblCount.innerHTML = ProductCount.toString(); #13;if (scrollNeeded &&
document.getElementById("topVehicleSearch") &&
document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_hVehicleSearch")
.value != '') if
(document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_hVehicleSearch"
).value.toLowerCase().indexOf("/select>") > 0) window.scrollTo(0, 295); else window.scrollTo(0,
195); var currentPage =
parseInt(document.getElementById('dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_hCurren
tPage').value); var totalPages =
parseInt(document.getElementById('dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_hPages')
.value); if (currentPage More
Results"; document.getElementById("bottomBar").style.display='block';
else document.getElementById("bottomBar").style.display='none'; #13;#13;function
expandCollapseFilter(flag) if (flag == 0) if (document.getElementById("filterImg").className ==
'rightBoxBullet') flag = 1; if (flag == 1)
//open document.getElementById("filterImg").className =
'rightBoxBullet_on'; document.getElementById("tdFilters").style.display=''; document.getElementB
yId("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_hTopFilterClosed").value =
""; else document.getElementById("filterImg").className =
'rightBoxBullet'; document.getElementById("tdFilters").style.display='none'; document.getElement
ById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_hTopFilterClosed").value =
"close"; // current animated collapsible panel content

var currentContent = null; function togglePannelAnimatedStatus(content, interval, step)


// wait for another animated expand/collapse action to end if
(currentContent==null) currentContent = content; var expand =
(content.style.display=="none"); if (expand) content.style.display = ""; var max_height =
content.offsetHeight; var step_height = step + (expand ? 0 : -max_height); // schedule first
animated collapse/expand event content.style.height = Math.abs(step_height) +

"px"; setTimeout("togglePannelAnimatingStatus(" + interval + "," + step + "," + max_height + ","


+ step_height + ")", interval);
/*

function CloneSelectedVehicle() try if ($('.topVehicleSearchInner').length > 0) if


($('.SelectedFilters .topVehicleContent').length ' + 'Your Vehicle: ' + VehicleSelectedText + '' +
ChangeVehicleLink + '' + CurrentBreadText) catch (ex)
#13;
*/ function togglePannelAnimatingStatus(interval, step, max_height, step_height)
var step_height_abs = Math.abs(step_height); // schedule next animated collapse/expand event if
(step_height_abs>=step && step_height_abs' + parts[1] + ' '); var CatHTML = ""; /* Move Filters
To The Side */ if ($('.FiltersSide').length > 0 && $('.topFilterWrap').length > 0)
$('.topFilterWrap').detach().appendTo('.SideFiltersWrapper'); var SearchPageWidth =
$('.SearchResultsWrapper').width(); var SideFiltersWidth = $('.topFilterWrap').width(); for (var i =
1; i =
filters.length) header.style.display='none'; content.style.display='none'; header2.style.display='no
ne'; content2.style.display = 'none'; var ThisFilterBox =
$(header).closest('.Filter'); ThisFilterBox.hide(); var ThisFilterBox2 =
$(header2).closest('.Filter'); ThisFilterBox2.hide(); continue; else header.style.display=''; conte
nt.style.display=''; header2.style.display=''; content2.style.display = ''; var ThisFilterBox =
$(header).closest('.Filter'); ThisFilterBox.show(); var ThisFilterBox2 =
$(header2).closest('.Filter'); ThisFilterBox2.show(); content.innerHTML = ''; content2.innerHTML
= ''; header.innerHTML = " " + filters[i].split("~^~")[0] + " "; header2.innerHTML =
filters[i].split("~^~")[0]; /* Filter Wrapper Class name based on the Filter name
*/ $(header).parent().addClass('filterName-' + filters[i].split("~^~")[0].split("
")[0].toLowerCase().replace(/[^a-zA-Z0-9]+/g, "")); var filterData =
filters[i].split("~^~")[1].split("~!~"); var counter = 0; var sHTML = ''; var dHTML = ''; var
buildSelect = 0; var noCheck = ""; filterLoop: for (var z = 0; z = maxOptionsPerFilter) if
($('.SideFiltersWrapper').length > 0) sHTML = sHTML + ''; else sHTML = sHTML +
''; $(content).show(); $(content2).show(); continue filterLoop; #13;#13;#13;/* build a dropdown

*/ if (counter >= maxOptionsPerFilter) var boxHTML = ''; for (var y = counter + 1; y " + fdt[2] +
""; if (boxHTML != '' && buildSelect == 0) if (maxOptionsPerFilter == 0) var droplab =
"Select..." else var droplab = "More..." dHTML = dHTML + ''; buildSelect =+ 1; else /* build
a link */ sHTML = sHTML + ''; /* Build Category Slides */ if (filterDetail[0] === "subCatFilter"
else /* build a dropdown */ if (i > 0 && counter >= maxOptionsPerFilter) var boxHTML = ''; for
(var y = counter + 1; y " + filterDetail[2] + ""; if (boxHTML != '') if (maxOptionsPerFilter == 0)
var droplab = "Select..." else var droplab = "More..." dHTML = dHTML + ''; break else /*
build a link */ sHTML = sHTML + ''; #13;counter++; #13;#13;content.innerHTML = sHTML +
dHTML; content2.innerHTML = sHTML + dHTML; if (content.innerHTML == '' && i >
0) header.style.display='none'; content.style.display='none'; header2.style.display='none'; conten
t2.style.display='none'; offset++; else if (content.innerHTML == '' && i ==
0) content.innerHTML = 'No filters selected'; content2.innerHTML = 'No filters selected';
else filterCount++; var CatHTMLStart = ' '+mainCatName+' '+catType+'
'; CatHTML = CatHTMLStart + CatHTML + '
'; if (createSlider === true) CatContent.innerHTML = CatHTML; if (createSlider === false ) if
(typeof subCatSl != "undefined") subCatSl.destroy(true, true); CatContent.innerHTML = ""; if
(sliderCount >= 5 && createSlider === true) var ipv = 5; $(window).on("throttledresize",
function (event) $('.srSubCatSl').hide(); $('.srSubCatSl').width(0);
$('.srSubCatSl').width($('.srSubCatSl').parent().width()); $('.srSubCatSl').show(); if (typeof subCatSl
!= "undefined") subCatSl.update(true); ); /* BUILD SLIDER FOR SUB CATEGORIES
*/ $('.srSubCatSl').width(0); $('.srSubCatSl').width($('.srSubCatSl').parent().width()); subCatSl =
new Swiper('.srSubCatSl', slidesPerView: ipv, grabCursor: true, watchSlidesVisibility: true,
preventClicks:false, spaceBetween: 15, nextButton: '.catCldRight', prevButton: '.catCldLeft', loop:
false, roundLengths: true, onClick: function(swiper) var csc = subCatSl.clickedSlide; var csc1 =
$(csc).find('a').attr('data-lnk1'); var csc2 = $(csc).find('a').attr('data-lnk2'); processFilterAction(csc1,
csc2); ); else CatContent.innerHTML = ""; /* Nate - Set Filter Box Sizes */ if
($('.FiltersTop').length > 0) if (filterCount 0)
$('.topFilterWrap').addClass('Hide'); $('.NarrowYourLabel').hide(); $('.SearchResultsWrapper').add
Class('noFilters'); else if ($('.topFilterWrap').length > 0)
$('.topFilterWrap').removeClass('Hide'); $('.NarrowYourLabel').show(); $('.SearchResultsWrapper'
).removeClass('noFilters'); if (filterCount >
0) //document.getElementById("tdFilterBottom").innerHTML =
document.getElementById("tdFilters").innerHTML; document.getElementById("tdFilters").style.disp
lay = ''; document.getElementById("tdFilterBottom").style.display = 'none'; try if
($('.SearchResultsWrapper.SubPageSearch').length > 0)
$('.SearchResultsWrapper').removeClass('SubPageSearch'); catch (ex) console.log(ex) else
document.getElementById("tdFilters").style.display='none'; document.getElementById("tdFilterBo
ttom").style.display = 'none'; return for (var i = filters.length; i 0)
$('.SearchResultsWrapper').addClass('SubPageSearch'); catch (ex) #13;#13;var dtStamp = new
Date(); var changeFlag = ''; if
(document.location.href.toString().toLowerCase().indexOf('/products/') > -1)
$(window).on('popstate', function () //alert('back refrsh') loadData('refreshNav', ''); ); function
processFilterAction(command,value) loadData(command,value); //togglePannelAnimatedStatus(do
cument.getElementById('tdFilters'),10,50); return function processMoreFilter(command, box) if
(box.selectedIndex >
0) processFilterAction(command,box.options[box.selectedIndex].value); box.selectedIndex =
0; function createTopSearch() { //create top search if
(document.getElementById("topVehicleSearch") &&
document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_hVehicleSearch")

.value != '') { var topS = document.getElementById("topVehicleSearch"); topS.innerHTML =


document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_hVehicleSearch")
.value; topS.style.display='block'; topS.style.visibility = 'visible'; /* if
($('.topVehicleSearchInner').length > 0) $('.topVehicleSearch').hide(); */ //populate vehicles if
(topS.innerHTML.toLowerCase().indexOf("/select>") > 0) var make =
document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_cboCarMake"); v
ar model =
document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_cboCarModel");
var years =
document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_cboCarYear"); va
r sub =
document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_cboCarSubModel
"); var makeTop = document.getElementById("cboCarMake"); var modelTop =
document.getElementById("cboCarModel"); var yearsTop =
document.getElementById("cboCarYear"); var subTop =
document.getElementById("cboCarSubmodel"); for (var i = 0; i 0) function loadData(actionName,
actionValue) var itemsPerPage =
document.getElementById('dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_hItemsPerPage').
value; var currentPage =
parseInt(document.getElementById('dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_hCurren
tPage').value); var resultView =
document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_hResultView").va
lue; if (actionName=='') if (currentPage >=
parseInt(document.getElementById('dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_hPages')
.value)) return; currentPage++; if (
document.getElementById("bottomBar")) document.getElementById("bottomBar").innerHTML =
'Loading Next Page...'; else currentPage=1; showLoading(); //var nurl = $.bbq.getState(
"flag" ); //if (nurl == undefined && actionName != 'refresh' && actionName != 'requiredChoice'
&& actionName != 'requiredChoice2') //jquery history //$.bbq.pushState( flag: 'change' ); //var
stateObj = foo: "bar" ; //history.pushState(stateObj, "page 2", "bar.html"); // alreadyloading = true;
$.ajax( type: 'POST', data: portalID: '2630', popularSearch: '', CurrentTabName: 'category',
itemsPerPage: itemsPerPage, currentPage: currentPage, resultView: resultView, actionName:
actionName, actionValue: actionValue, currentURL: currentURL , url:
'/ajaxSearchResultProducts.aspx', success: (function (data) if (actionName == 'customFilter2' &&
1 == 0) setTimeout("window.location.href='/products'", 1000); return else if (actionName != '')
updateResult(data, true); else updateResult(data, false); alreadyloading =
false; document.getElementById('dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_hCurrentP
age').value = currentPage; if (typeof bLazy != "undefined") bLazy.revalidate(); ), error: (function
(jqXHR, status) alert("error - " + jqXHR.responseText); ) ); //++ function nextPage(direction,
currentPage, pages) if (direction 0) ChangeResultPage(currentPage - 1) else if (direction > 0 &&
currentPage 0 && $('.cmprBtn').hasClass('btn-primary')) $('.cmprBtn').removeClass('btnprimary').find('span').text('Compare'); function showLoading() if
(document.getElementById("tResult")) var StoreHeightBeforeLoading =
$('#tResult').outerHeight(true); document.getElementById("tResult").innerHTML =
document.getElementById("loadingOverlay").innerHTML; $('#tResult').css( "minHeight":
StoreHeightBeforeLoading ); if (document.getElementById("bottomBar"))
document.getElementById("bottomBar").style.display = 'none'; $('#tResult').css( "minHeight": ""
); else document.getElementById("waitDivSide").style.display=''; function
registerNewsletter() document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMe
nu_2_hActionName").value="registerNewsletter"; __doPostBack('',''); function
removeCategoryFilter(id) loadData("removeCategoryFilter",id); function

removeSubCategoryFilter(id) loadData("removeSubCategoryFilter",id); function


removeSecCategoryFilter(id) loadData("removeSecCategoryFilter", id); function
removeBrandFilter(id) loadData("removeBrandFilter",id); function
removePriceFilter(id) loadData("removePriceFilter",id); function
removeCustomFilter(id) loadData("removeCustomFilter",id); function
removeInitialSearch() loadData("removeInitialSearch",''); function
markForCarSearch() showLoading(); var cboMake =
document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_cboCarMake"); v
ar cboModel =
document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_cboCarModel");
var cboYear =
document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_cboCarYear"); va
r cboSubmodel =
document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_cboCarSubModel
"); var makeID = cboMake.options[cboMake.selectedIndex].value; var modelID =
cboModel.options[cboModel.selectedIndex].value; var yearID =
cboYear.options[cboYear.selectedIndex].value; var subModelID; if (cboSubmodel &&
cboSubmodel.selectedIndex > 0) subModelID =
cboSubmodel.options[cboSubmodel.selectedIndex].value; else subModelID =
'0'; rememberVehicle(cboMake, cboModel, cboYear); window.location.href =
"https://www.selfdefenseproducts.com/products?car=" + makeID + "-" + modelID + "-" + yearID +
"-" + subModelID; var s_address = ''; var s_name = ''; var s_comment = ''; var f_email =
''; function showFeedbackBox() s_address =
document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_txtEmailFeedbac
k").value; s_name =
document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_txtNameFeedbac
k").value; s_comment =
document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_txtCommentFeed
back").value; f_email = ''; document.getElementById("trRow2").style.display =
"none"; overlayBox.setup( content: document.getElementById('divFeedback').innerHTML, width:
600, padding :"20px" ); function
sendFeedback() document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2
_txtEmailFeedback").value =
s_address; document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_txtNa
meFeedback").value =
s_name; document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_txtCom
mentFeedback").value =
s_comment; document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_fem
ail").value = f_email; if (checkFeedbackEmail() == false) alert("Please enter valid email
address"); else if
(document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_txtCommentFee
dback").value == '') alert("Please enter your
message"); else document.getElementById("waitDivSide").style.display =
'inline'; __doPostBack('',''); function checkFeedbackEmail() var str=
document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_txtEmailFeedbac
k").value; var filter=/^([w-]+(?:.[w-]+)*)@((?:[w-]+.)*w[w-]0,66).([a-z]2,6(?:.[a-z]2)?)$/i if
(filter.test(str)) return true else return false function
showConfirmationFeedback() Shadowbox.open( player: 'html', title: '', content:
document.getElementById('divFeedbackConfirmation').innerHTML, height: 215, width:
496 ); $(document).ready(function() ); function loadCarMakes(){ var cboMake =
document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_cboCarMake"); v

ar cboYear =
document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_cboCarYear"); if
(cboMake) cboMake.options.length =
0; document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_cboCarModel"
).options.length = 0; cboMake.options[0] = new Option('Select Make', ''); var yr =
cboYear.options[cboYear.selectedIndex].value; var counter = 1; for (var i = 0; i Select
Year'); createTopSearch(); function loadCarSubmodels() var cboMake =
document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_cboCarMake"); v
ar cboModel =
document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_cboCarModel");
var cboYear =
document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_cboCarYear"); va
r cboSubmodel =
document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_cboCarSubModel
"); /* Call Function to Reset drop width if 4 drops */ SetNewWidthVehicleSearchForms(); if
(!cboSubmodel) markForCarSearch(); else cboSubmodel.options.length = 0; var makeID =
cboMake.options[cboMake.selectedIndex].value; var modelID =
cboModel.options[cboModel.selectedIndex].value; var yr =
cboYear.options[cboYear.selectedIndex].value; if (makeID == '' function
getResponseSideSubmodel(response) function aftergetResponseSideSubmodel(response) { try
{ var cboMake =
document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_cboCarMake"); v
ar cboModel =
document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_cboCarModel");
var cboSubmodel =
document.getElementById("dnn_ctr306650_ViewLayoutManager_SCESideMenu_2_cboCarSubModel
"); var makeID = cboMake.options[cboMake.selectedIndex].value; var modelID =
cboModel.options[cboModel.selectedIndex].value; if (response.length

Potrebbero piacerti anche