/* ! Copyright 2009 Webroot Software, Inc. All rights reserved */

var out = [];
function getPrice(options) {

//set defaults to WAV if options are not set
var prodID = (typeof options[0] == "undefined") ? "WAV" : options[0];
var prod = prodID.toLowerCase();
var inputs = (typeof options[1] == "undefined") ? [ 
"div#"+prod+"_num_years", 
"div#"+prod+"_num_comp", 
"div#"+prod+"_num_storage",
"div#"+prod+"_num_yearsB", 
"div#"+prod+"_num_compB", 
"div#"+prod+"_num_storageB" 
] : options[1];
var cartBase = 'http://www.webroot.com/shoppingcart/update_cart.php?';
var totalPrice = null,
totalPPU = null,
cartLink = null,
totalPriceB = null,
totalPPUB = null,
cartLinkB = null;
switch(prodID) {
case "WSS":
/**************************************
// ! **case WSS
WSS == Webroot Spy Sweeper
**************************************/ 
var yp = null,
nYears = null,
nComp = null,
ypB = null,
nYearsB = null,
nCompB = null;
//get top slider values
nYears = $(inputs[0]).slider("value");
nComp = $(inputs[1]).slider("value");
nYearsB = $(inputs[0]+"B").slider("value");
nCompB = $(inputs[1]+"B").slider("value");
yp = ''+nYears+''+nComp+'';
ypB = ''+nYearsB+''+nCompB+'';
totalPrice = arSSPrice[yp];
totalPPU = arSSPPU[yp];
cartLink = cartBase + arSSCartLink[yp]; 
totalPriceB = arSSPrice[ypB];
totalPPUB = arSSPPU[ypB];
cartLinkB = cartBase + arSSCartLink[ypB]; 
out = [
[totalPrice,totalPPU,cartLink],
[totalPriceB,totalPPUB,cartLinkB]
];
break; 
case "WWW":
break;
case "WISE":
/**************************************
// ! **case WISE
WISE == Webroot Internet Security Essentials
**************************************/ 
var yp = null,
nYears = null,
nComp = null,
nStorage = null,
ypB = null,
nYearsB = null,
nCompB = null,
nStorageB = null;

//get slider values
nYears = $(inputs[0]).slider("value");
nComp = $(inputs[1]).slider("value");
nStorage = $(inputs[2]).slider("value");
nYearsB = $(inputs[0]+"B").slider("value");
nCompB = $(inputs[1]+"B").slider("value");
nStorageB = $(inputs[2]+"B").slider("value");

yp = ''+nYears+ ''+nComp+ ''+nStorage;
ypB = ''+nYearsB+''+nCompB+''+nStorageB;

totalPrice = arWISEPrice[yp];
totalPPU = arWISEPPU[yp];
cartLink = cartBase + arWISECartLink[yp]; 
totalPriceB = arWISEPrice[ypB];
totalPPUB = arWISEPPU[ypB];
cartLinkB = cartBase + arWISECartLink[ypB]; 
out = [
[totalPrice,totalPPU,cartLink],
[totalPriceB,totalPPUB,cartLinkB]
];
break; 
case "WAV":
/**************************************
// ! **case WAV
WAV == Webroot AntiVirus with AntiSpyware
**************************************/ 
var yp = null,
nYears = null,
nComp = null,
nStorage = null,
ypB = null,
nYearsB = null,
nCompB = null,
nStorageB = null;

//get slider values
nYears = $(inputs[0]).slider("value");
nComp = $(inputs[1]).slider("value");
nStorage = $(inputs[2]).slider("value");
nYearsB = $(inputs[0]+"B").slider("value");
nCompB = $(inputs[1]+"B").slider("value");
nStorageB = $(inputs[2]+"B").slider("value");

yp = ''+nYears+''+nComp+''+nStorage;
ypB = ''+nYearsB+''+nCompB+''+nStorageB;

totalPrice = arWAVPrice[yp];
totalPPU = arWAVPPU[yp];
cartLink = cartBase + arWAVCartLink[yp]; 
totalPriceB = arWAVPrice[ypB];
totalPPUB = arWAVPPU[ypB];
cartLinkB = cartBase + arWAVCartLink[ypB]; 
out = [
[totalPrice,totalPPU,cartLink],
[totalPriceB,totalPPUB,cartLinkB]
];
break; 
}
return out;
}
$(function() {
//after DOM is loaded
/*******************************************
// WISE -- Internet Security Essentials 
// ! ++WISE Configuration Options
*******************************************/ 
var wiseVals = [],
wiseOptions = [
"WISE",
[
"div#wise_num_years",
"div#wise_num_comp",
"div#wise_num_storage"
],
[
"h3#wisePrice",
"span#wisePPU",
"a#wiseCartLink"
],
["2","3","1"],
[]
],
wiseB = [
"WISE",
[
wiseOptions[1][0]+"B", 
wiseOptions[1][1]+"B", 
wiseOptions[1][2]+"B"
],
[
wiseOptions[2][0]+"B", 
wiseOptions[2][1]+"B", 
wiseOptions[2][2]+"B"
]
]; 
//slider handle images
var imgExt = (jQuery.support.opacity) ? ".png" : ".gif";
wiseOptions[4][0] = "slider-handle-blank"+imgExt;
wiseOptions[4][1] = "slider-handle-1"+imgExt;
wiseOptions[4][2] = "slider-handle-2"+imgExt;
wiseOptions[4][3] = "slider-handle-3"+imgExt;
wiseOptions[4][5] = "slider-handle-5"+imgExt;
wiseOptions[4][10] = "slider-handle-10"+imgExt;
wiseOptions[4][25] = "slider-handle-25"+imgExt;
wiseOptions[4][50] = "slider-handle-50"+imgExt;
/*******************************************
// WISE -- Internet Security Essentials 
// ! ++WISE Slider Init
*******************************************/ 
//wise pc's slider
$(wiseOptions[1][1]).slider({ 
orientation: 'horizontal',
animate: true,
value: wiseOptions[3][1],
min: 3,
max: 5,
step: 2,
start: function(event,ui) {
$(ui.handle).css("background-image", "url(/shared/img_structure/"+wiseOptions[4][0]+")");
},
change: function(event, ui) {
wiseVals = getPrice(wiseOptions);
$(ui.handle).css("background-image", "url(/shared/img_structure/"+wiseOptions[4][ui.value]+")");
//update price/savings/cart 
$(wiseOptions[2][0]).html('$'+wiseVals[0][0]);
$(wiseOptions[2][1]).html('$'+wiseVals[0][1]);
$(wiseOptions[2][2]).attr("href", wiseVals[0][2]);
}
});
//wise years slider
$(wiseOptions[1][0]).slider({ 
orientation: 'horizontal',
animate: true,
value: wiseOptions[3][0],
min: 1,
max: 3,
step: 1,
start: function(event,ui) {
$(ui.handle).css("background-image", "url(/shared/img_structure/"+wiseOptions[4][0]+")");
},
change: function(event, ui) {
wiseVals = getPrice(wiseOptions);
$(ui.handle).css("background-image", "url(/shared/img_structure/"+wiseOptions[4][ui.value]+")");
//update price/savings/cart 
$(wiseOptions[2][0]).html('$'+wiseVals[0][0]);
$(wiseOptions[2][1]).html('$'+wiseVals[0][1]);
$(wiseOptions[2][2]).attr("href", wiseVals[0][2]);
}
}); 
//wise storage slider
$(wiseOptions[1][2]).slider({ 
orientation: 'horizontal',
animate: true,
value: wiseOptions[3][2],
min: 1,
max: 5,
step: 1,
start: function(event,ui) {
$(ui.handle).css("background-image", "url(/shared/img_structure/"+wiseOptions[4][0]+")");
},
change: function(event, ui) {
wiseVals = getPrice(wiseOptions);
var wiseSVals = ["2","5","10","25","50"];
//change value 1 to a two since we start them out with 2GB of storage, not 1GB 
var handleVal = (ui.value == 1) ? 2 : wiseSVals[ui.value-1];
$(ui.handle).css("background-image", "url(/shared/img_structure/"+wiseOptions[4][handleVal]+")");
//update price/savings/cart 
$(wiseOptions[2][0]).html('$'+wiseVals[0][0]);
$(wiseOptions[2][1]).html('$'+wiseVals[0][1]);
$(wiseOptions[2][2]).attr("href", wiseVals[0][2]);
}
});

//bottom sliders
//wise pc's slider B
$(wiseB[1][1]).slider({ 
orientation: 'horizontal',
animate: true,
value: wiseOptions[3][1],
min: 3,
max: 5,
step: 2,
start: function(event,ui) {
$(ui.handle).css("background-image", "url(/shared/img_structure/"+wiseOptions[4][0]+")");
},
change: function(event, ui) {
wiseVals = getPrice(wiseOptions);
$(ui.handle).css("background-image", "url(/shared/img_structure/"+wiseOptions[4][ui.value]+")");
//update price/savings/cart 
$(wiseB[2][0]).html('$'+wiseVals[1][0]);
$(wiseB[2][1]).html('$'+wiseVals[1][1]);
$(wiseB[2][2]).attr("href", wiseVals[1][2]);
}
});
//wise years slider B
$(wiseB[1][0]).slider({ 
orientation: 'horizontal',
animate: true,
value: wiseOptions[3][0],
min: 1,
max: 3,
step: 1,
start: function(event,ui) {
$(ui.handle).css("background-image", "url(/shared/img_structure/"+wiseOptions[4][0]+")");
},
change: function(event, ui) {
wiseVals = getPrice(wiseOptions);
$(ui.handle).css("background-image", "url(/shared/img_structure/"+wiseOptions[4][ui.value]+")");
//update price/savings/cart 
$(wiseB[2][0]).html('$'+wiseVals[1][0]);
$(wiseB[2][1]).html('$'+wiseVals[1][1]);
$(wiseB[2][2]).attr("href", wiseVals[1][2]);
}
}); 
//wise storage sliderB
$(wiseB[1][2]).slider({ 
orientation: 'horizontal',
animate: true,
value: wiseOptions[3][2],
min: 1,
max: 5,
step: 1,
start: function(event,ui) {
$(ui.handle).css("background-image", "url(/shared/img_structure/"+wiseOptions[4][0]+")");
},
change: function(event, ui) {
wiseVals = getPrice(wiseOptions);
var wiseSVals = ["2","5","10","25","50"];
//change value 1 to a two since we start them out with 2GB of storage, not 1GB 
var handleVal = (ui.value == 1) ? 2 : wiseSVals[ui.value-1];
$(ui.handle).css("background-image", "url(/shared/img_structure/"+wiseOptions[4][handleVal]+")");
//update price/savings/cart 
$(wiseB[2][0]).html('$'+wiseVals[1][0]);
$(wiseB[2][1]).html('$'+wiseVals[1][1]);
$(wiseB[2][2]).attr("href", wiseVals[1][2]);
}
});


//wise set initial values
wiseVals = getPrice(wiseOptions);
var wiseSVals = ["2","5","10","25","50"],
initVal = wiseOptions[3],
t=0;
//slider A
for (t=0;t<=2;t++) {
var thisDiv = wiseOptions[1][t],
hdlClass = thisDiv+" .ui-slider-handle",
hdlVal = 0;
if (t==2) {
//storage slider
hdlVal = (initVal[2] == 1) ? 2 : wiseSVals[initVal[t]-1];
} else {
//other sliders
hdlVal = initVal[t];
} 
$(thisDiv).slider({value: hdlVal});
$(hdlClass).css("background-image","url(/shared/img_structure/"+wiseOptions[4][hdlVal]+")");
}
//slider B
for (t=0;t<=2;t++) {
var thisDiv = wiseOptions[1][t]+"B",
hdlClass = thisDiv+" .ui-slider-handle",
hdlVal = 0;
if (t==2) {
//storage slider
hdlVal = (initVal[2] == 1) ? 2 : wiseSVals[initVal[t]-1];
} else {
//other sliders
hdlVal = initVal[t];
} 
$(thisDiv).slider({value: hdlVal});
$(hdlClass).css("background-image","url(/shared/img_structure/"+wiseOptions[4][hdlVal]+")");
}
//update price/savings/cart 
$(wiseOptions[2][0]).html('$'+wiseVals[0][0]);
$(wiseOptions[2][1]).html('$'+wiseVals[0][1]);
$(wiseOptions[2][2]).attr("href", wiseVals[0][2]);
//Bottom sliders
$(wiseB[2][0]).html('$'+wiseVals[1][0]);
$(wiseB[2][1]).html('$'+wiseVals[1][1]);
$(wiseB[2][2]).attr("href", wiseVals[1][2]);
/*******************************************
// WAV -- AntiVirus with AntiSpyware
// ! ++WAV Configuration Options
*******************************************/ 
var wavVals = [],
wavOptions = [
"WAV",
[
"div#wav_num_years",
"div#wav_num_comp",
"div#wav_num_storage"
],
[
"h3#wavPrice",
"span#wavPPU",
"a#wavCartLink"
],
["2","1","1"],
[]
],
wavB = [
"WAV",
[
wavOptions[1][0]+"B", 
wavOptions[1][1]+"B", 
wavOptions[1][2]+"B"
],
[
wavOptions[2][0]+"B", 
wavOptions[2][1]+"B", 
wavOptions[2][2]+"B"
]
];
//slider handle images
var imgExt = (jQuery.support.opacity) ? ".png" : ".gif";
wavOptions[4][0] = "slider-handle-blank"+imgExt;
wavOptions[4][1] = "slider-handle-1"+imgExt;
wavOptions[4][2] = "slider-handle-2"+imgExt;
wavOptions[4][3] = "slider-handle-3"+imgExt;
wavOptions[4][5] = "slider-handle-5"+imgExt;
wavOptions[4][10] = "slider-handle-10"+imgExt;
wavOptions[4][25] = "slider-handle-25"+imgExt;
wavOptions[4][50] = "slider-handle-50"+imgExt;
/*******************************************
// WAV -- AntiVirus with AntiSpyware
// ! ++WAV Slider Init
*******************************************/ 
//wav pc's slider
$(wavOptions[1][1]).slider({ 
orientation: 'horizontal',
animate: true,
value: wavOptions[3][1],
min: 1,
max: 5,
step: 2,
start: function(event,ui) {
$(ui.handle).css("background-image", "url(/shared/img_structure/"+wavOptions[4][0]+")");
},
change: function(event, ui) {
wavVals = getPrice(wavOptions);
$(ui.handle).css("background-image", "url(/shared/img_structure/"+wavOptions[4][ui.value]+")");
//update price/savings/cart 
$(wavOptions[2][0]).html('$'+wavVals[0][0]);
$(wavOptions[2][1]).html('$'+wavVals[0][1]);
$(wavOptions[2][2]).attr("href", wavVals[0][2]);
}
});
//wav years slider
$(wavOptions[1][0]).slider({ 
orientation: 'horizontal',
animate: true,
value: wavOptions[3][0],
min: 1,
max: 3,
step: 1,
start: function(event,ui) {
$(ui.handle).css("background-image", "url(/shared/img_structure/"+wavOptions[4][0]+")");
},
change: function(event, ui) {
wavVals = getPrice(wavOptions);
$(ui.handle).css("background-image", "url(/shared/img_structure/"+wavOptions[4][ui.value]+")");
//update price/savings/cart 
$(wavOptions[2][0]).html('$'+wavVals[0][0]);
$(wavOptions[2][1]).html('$'+wavVals[0][1]);
$(wavOptions[2][2]).attr("href", wavVals[0][2]);
}
}); 
//wav storage slider
$(wavOptions[1][2]).slider({ 
orientation: 'horizontal',
animate: true,
value: wavOptions[3][2],
min: 1,
max: 5,
step: 1,
start: function(event,ui) {
$(ui.handle).css("background-image", "url(/shared/img_structure/"+wavOptions[4][0]+")");
},
change: function(event, ui) {
wavVals = getPrice(wavOptions);
var wavSVals = ["1","5","10","25","50"];
$(ui.handle).css("background-image", "url(/shared/img_structure/"+wavOptions[4][wavSVals[ui.value-1]]+")");
//update price/savings/cart 
$(wavOptions[2][0]).html('$'+wavVals[0][0]);
$(wavOptions[2][1]).html('$'+wavVals[0][1]);
$(wavOptions[2][2]).attr("href", wavVals[0][2]);
}
});
//BOTTOM
//wav pc's slider
$(wavB[1][1]).slider({ 
orientation: 'horizontal',
animate: true,
value: wavOptions[3][1],
min: 1,
max: 5,
step: 2,
start: function(event,ui) {
$(ui.handle).css("background-image", "url(/shared/img_structure/"+wavOptions[4][0]+")");
},
change: function(event, ui) {
wavVals = getPrice(wavOptions);
$(ui.handle).css("background-image", "url(/shared/img_structure/"+wavOptions[4][ui.value]+")");
//update price/savings/cart 
$(wavB[2][0]).html('$'+wavVals[1][0]);
$(wavB[2][1]).html('$'+wavVals[1][1]);
$(wavB[2][2]).attr("href", wavVals[1][2]);
}
});
//wav years slider
$(wavB[1][0]).slider({ 
orientation: 'horizontal',
animate: true,
value: wavOptions[3][0],
min: 1,
max: 3,
step: 1,
start: function(event,ui) {
$(ui.handle).css("background-image", "url(/shared/img_structure/"+wavOptions[4][0]+")");
},
change: function(event, ui) {
wavVals = getPrice(wavOptions);
$(ui.handle).css("background-image", "url(/shared/img_structure/"+wavOptions[4][ui.value]+")");
//update price/savings/cart 
$(wavB[2][0]).html('$'+wavVals[1][0]);
$(wavB[2][1]).html('$'+wavVals[1][1]);
$(wavB[2][2]).attr("href", wavVals[1][2]);
}
}); 
//wav storage slider
$(wavB[1][2]).slider({ 
orientation: 'horizontal',
animate: true,
value: wavOptions[3][2],
min: 1,
max: 5,
step: 1,
start: function(event,ui) {
$(ui.handle).css("background-image", "url(/shared/img_structure/"+wavOptions[4][0]+")");
},
change: function(event, ui) {
wavVals = getPrice(wavOptions);
var wavSVals = ["1","5","10","25","50"];
$(ui.handle).css("background-image", "url(/shared/img_structure/"+wavOptions[4][wavSVals[ui.value-1]]+")");
//update price/savings/cart 
$(wavB[2][0]).html('$'+wavVals[1][0]);
$(wavB[2][1]).html('$'+wavVals[1][1]);
$(wavB[2][2]).attr("href", wavVals[1][2]);
}
});

//wav set initial values
wavVals = getPrice(wavOptions);
var wavSVals = ["1","5","10","25","50"];
var t=0;
for (t=0;t<3;t++) {
var foo = wavOptions[1][t],
bar = foo+" .ui-slider-handle"; 
$(foo).slider({value: wavOptions[3][t]}); 
$(bar).css("background-image","url(/shared/img_structure/"+wavOptions[4][wavOptions[3][t]]+")"); 
}
var t=0;
for (t=0;t<3;t++) {
var foo = wavOptions[1][t]+"B",
bar = foo+" .ui-slider-handle"; 
$(foo).slider({value: wavOptions[3][t]}); 
$(bar).css("background-image","url(/shared/img_structure/"+wavOptions[4][wavOptions[3][t]]+")"); 
}
//update price/savings/cart 
$(wavOptions[2][0]).html('$'+wavVals[0][0]);
$(wavOptions[2][1]).html('$'+wavVals[0][1]);
$(wavOptions[2][2]).attr("href", wavVals[0][2]);
//Bottom Sliders
$(wavB[2][0]).html('$'+wavVals[1][0]);
$(wavB[2][1]).html('$'+wavVals[1][1]);
$(wavB[2][2]).attr("href", wavVals[1][2]);
/*******************************************
// WSS -- Spy Sweeper
// ! ++WSS Configuration Options
*******************************************/ 
var wssVals = [],
wssOptions = [
"WSS",
[
"div#wss_num_years",
"div#wss_num_comp"
],
[
"h3#wssPrice",
"span#wssPPU",
"a#wssCartLink"
],
["1","3"],
[]
],
wssB = [
"WSS",
[
wssOptions[1][0]+"B", 
wssOptions[1][1]+"B"
],
[
wssOptions[2][0]+"B", 
wssOptions[2][1]+"B", 
wssOptions[2][2]+"B"
]
];
//slider handle images
var imgExt = (jQuery.support.opacity) ? ".png" : ".gif";
wssOptions[4][0] = "slider-handle-blank"+imgExt;
wssOptions[4][1] = "slider-handle-1"+imgExt;
wssOptions[4][2] = "slider-handle-2"+imgExt;
wssOptions[4][3] = "slider-handle-3"+imgExt;
wssOptions[4][5] = "slider-handle-5"+imgExt;
/*******************************************
// WSS -- Spy Sweeper
// ! ++ WSS Slider Init
*******************************************/ 
//wss pc's slider
$(wssOptions[1][1]).slider({ 
orientation: 'horizontal',
animate: true,
value: wssOptions[3][1],
min: 1,
max: 5,
step: 2,
start: function(event,ui) {
$(ui.handle).css("background-image", "url(/shared/img_structure/"+wssOptions[4][0]+")");
},
change: function(event, ui) {
wssVals = getPrice(wssOptions);
$(ui.handle).css("background-image", "url(/shared/img_structure/"+wssOptions[4][ui.value]+")");
//update price/savings/cart 
$(wssOptions[2][0]).html('$'+wssVals[0][0]);
$(wssOptions[2][1]).html('$'+wssVals[0][1]);
$(wssOptions[2][2]).attr("href", wssVals[0][2]);
}
});
//wss years slider
$(wssOptions[1][0]).slider({ 
orientation: 'horizontal',
animate: true,
value: wssOptions[3][0],
min: 1,
max: 3,
step: 1,
start: function(event,ui) {
$(ui.handle).css("background-image", "url(/shared/img_structure/"+wssOptions[4][0]+")");
},
change: function(event, ui) {
wssVals = getPrice(wssOptions);
$(ui.handle).css("background-image", "url(/shared/img_structure/"+wssOptions[4][ui.value]+")");
//update price/savings/cart 
$(wssOptions[2][0]).html('$'+wssVals[0][0]);
$(wssOptions[2][1]).html('$'+wssVals[0][1]);
$(wssOptions[2][2]).attr("href", wssVals[0][2]);
}
});
// BOTTOM
//wss pc's slider
$(wssB[1][1]).slider({ 
orientation: 'horizontal',
animate: true,
value: wssOptions[3][1],
min: 1,
max: 5,
step: 2,
start: function(event,ui) {
$(ui.handle).css("background-image", "url(/shared/img_structure/"+wssOptions[4][0]+")");
},
change: function(event, ui) {
wssVals = getPrice(wssOptions);
$(ui.handle).css("background-image", "url(/shared/img_structure/"+wssOptions[4][ui.value]+")");
//update price/savings/cart 
$(wssB[2][0]).html('$'+wssVals[1][0]);
$(wssB[2][1]).html('$'+wssVals[1][1]);
$(wssB[2][2]).attr("href", wssVals[1][2]);
}
});
//wss years slider
$(wssB[1][0]).slider({ 
orientation: 'horizontal',
animate: true,
value: wssOptions[3][0],
min: 1,
max: 3,
step: 1,
start: function(event,ui) {
$(ui.handle).css("background-image", "url(/shared/img_structure/"+wssOptions[4][0]+")");
},
change: function(event, ui) {
wssVals = getPrice(wssOptions);
$(ui.handle).css("background-image", "url(/shared/img_structure/"+wssOptions[4][ui.value]+")");
//update price/savings/cart 
$(wssB[2][0]).html('$'+wssVals[1][0]);
$(wssB[2][1]).html('$'+wssVals[1][1]);
$(wssB[2][2]).attr("href", wssVals[1][2]);
}
});
//wss set initial values
wssVals = getPrice(wssOptions);
var t=0;
for (t=0;t<3;t++) {
var foo = wssOptions[1][t],
bar = foo+" .ui-slider-handle"; 
$(foo).slider({value: wssOptions[3][t]}); 
$(bar).css("background-image","url(/shared/img_structure/"+wssOptions[4][wssOptions[3][t]]+")");
}
var t=0;
for (t=0;t<3;t++) {
var foo = wssOptions[1][t]+"B",
bar = foo+" .ui-slider-handle"; 
$(foo).slider({value: wssOptions[3][t]}); 
$(bar).css("background-image","url(/shared/img_structure/"+wssOptions[4][wssOptions[3][t]]+")");
}
//update price/savings/cart 
$(wssOptions[2][0]).html('$'+wssVals[0][0]);
$(wssOptions[2][1]).html('$'+wssVals[0][1]);
$(wssOptions[2][2]).attr("href", wssVals[0][2]);
$(wssB[2][0]).html('$'+wssVals[1][0]);
$(wssB[2][1]).html('$'+wssVals[1][1]);
$(wssB[2][2]).attr("href", wssVals[1][2]);
});
