Stinger Electric Automatic Floor Scrubber - 18"
Your Price:
$1,689.00
- Save:
$989.00!
'));
$('#partition-configurator-controls .number-picker input').val(l.MinQty);
loadRooms($('#partition-configurator'), l, false);
}
}
function loadDimensionsEditor(rb) {
$('#dimension-configurator').empty();
if ($('#layout-select .layout-custom input[type=radio]:checked').length > 0) return;
if (typeof (rb) == 'undefined')
var rb = $('#layout-typical').find('input[type=radio]:checked');
if (rb.length > 0) {
var l = jQuery.parseJSON(rb.closest('li').find('input[type=hidden]').val());
loadRooms($('#dimension-configurator'), l, true);
}
}
function loadRooms(e, l, addDimensions) {
e.empty();
var scale = 1;
if (!addDimensions) scale = .5;
var val = $('#partition-configurator-controls .number-picker input').val();
if (isNaN(val)) return false;
var rooms = parseInt(val);
if (room l.MaxQty) return false;
//top hor arrow
if (addDimensions && rooms > 1) {
var w = l.stallWidth * (rooms - 1) + l.alcoveWidth;
var dW = (rooms > 1 && l.stallPosition == 'right' ? l.stallImageWidth - l.stallWidth : l.alcoveImageWidth - l.alcoveWidth); //if real image width more than room width add difference
e.append($('
'));
}
//left vert arrow
if (addDimensions) {
var h = (rooms > 1 && l.stallPosition == 'left') ? l.stallHeight - l.stallArrowBottomMargin : l.alcoveHeight - l.alcoveArrowBottomMargin;
e.append($('
'));
}
var alcove = $('
');
var room = $('
');
//add hor arrow and door
if (addDimensions) {
room.append($('
'));
room.append($('
'));
}
alcove.append(room);
if (addDimensions)
alcove.append($('
'));
var stalls = [];
for (var i = 0; i l.stallHeight ? (l.alcoveHeight * scale) + 40 : (l.stallHeight * scale) + 40) + 'px;">
');
var room = $('
');
//add hor arrow and door
if (addDimensions) {
room.append($('
'));
room.append($('
'));
}
stall.append(room);
if (addDimensions)
stall.append($('
'));
stalls.push(stall);
}
if (l.stallPosition == 'left') {
for (var i = 0; i 1) {
var h = (rooms > 1 && l.stallPosition == 'right') ? l.stallHeight - l.stallArrowBottomMargin : l.alcoveHeight - l.alcoveArrowBottomMargin;
var m = (rooms > 1 && l.stallPosition == 'right') ? (l.stallImageWidth > l.stallWidth ? l.stallImageWidth - l.stallWidth : 0) : (l.alcoveImageWidth > l.alcoveWidth ? l.alcoveImageWidth - l.alcoveWidth : 0);
e.append($('
'));
}
}
function setDoorPlacement(e) {
$(e).closest('.partition').find('.room .door')
.removeClass('left-in')
.removeClass('left-out')
.removeClass('right-in')
.removeClass('right-out')
.addClass($(e).val());
}
function addRoom(e, qty) {
var n = $(e).closest('.number-picker').find('input');
if (n.length > 0) {
var min = parseInt(n.attr('min')), max = parseInt(n.attr('max'));
var val = isNaN(n.val()) ? 0 : parseInt(n.val()), newVal = val + qty;
if (newVal > max) newVal = max;
if (newVal 0) {
var l = jQuery.parseJSON(rb.closest('li').find('input[type=hidden]').val());
loadRooms($('#partition-configurator'), l, false);
}
}
}
}
function validateSizes() {
var w = 0;
var isValid = true;
$.each($('#dimension-configurator input.size-width.required'), function () {
var $this = $(this);
if (!isNaN($this.val()) && $this.val() > 0) {
$this.removeClass('error');
w += parseFloat($this.val());
}
else {
$this.addClass('error');
isValid = false;
}
});
if (isValid)
$('#dimension-configurator #total-width').val(w);
$.each($('#dimension-configurator input.size-height.required'), function () {
var $this = $(this);
if (!isNaN($this.val()) && $this.val() > 0)
$this.removeClass('error');
else {
$this.addClass('error');
isValid = false;
}
});
return isValid;
}
function addScreen(e, qty) {
var n = $(e).closest('.number-picker').find('input');
if (n.length > 0) {
var min = parseInt(n.attr('min')), max = parseInt(n.attr('max'));
var val = isNaN(n.val()) ? 0 : parseInt(n.val()), newVal = val + qty;
if (newVal > max) newVal = max;
if (newVal