(function main () {
var slots = document.querySelectorAll("div.slicksharesslot");
for(i = 0; i < slots.length; i++)
{
var slot = slots[i];
var widgetid = slot.getAttribute("widgetid");
var bg = (slot.getAttribute("bg") ? slot.getAttribute("bg") : "");
var textcolor = (slot.getAttribute("textcolor") ? slot.getAttribute("textcolor") : "");
var width = slot.offsetWidth;
var frameWidth = width;
var frameHeight = 0;
var cols = 0;
var imageHeight = 0;
var elements = 0;
if(width <= 200)
{
frameHeight = 880;
cols = 1;
imageHeight = 130;
elements = 4;
}
else if(width <= 300)
{
frameHeight = 950;
cols = 1;
imageHeight = 150;
elements = 4;
}
else if(width <= 400)
{
frameHeight = 380;
cols = 2;
imageHeight = 100;
elements = 4;
}
else if(width <= 500)
{
frameHeight = 410;
cols = 2;
imageHeight = 120;
elements = 4;
}
else if(width <= 700)
{
frameHeight = 460;
cols = 2;
imageHeight = 150;
elements = 4;
}
else if(width <= 900)
{
frameHeight = 650;
cols = 3;
imageHeight = 130;
elements = 9;
}
else
{
frameHeight = 430;
cols = 4;
imageHeight = 130;
elements = 8;
}
var ifr = "";
slot.innerHTML = ifr;
}
})();
(function main () {
var rand = 10;
if(rand == 1)
{
var slots = document.querySelectorAll("div.slicksharesembed, div.slicksharesslot");
}
else
{
var slots = document.querySelectorAll("div.slicksharesembed");
}
for(i = 0; i < slots.length; i++)
{
var slot = slots[i];
var widgetid = slot.getAttribute("widgetid");
var bg = (slot.getAttribute("bg") ? slot.getAttribute("bg") : "");
var textcolor = (slot.getAttribute("textcolor") ? slot.getAttribute("textcolor") : "");
var publisherid = slot.getAttribute("publisher");
var width = slot.offsetWidth;
var frameWidth = width;
var frameHeight = 0;
var cols = 0;
var imageHeight = 0;
var elements = 0;
if(width <= 300)
{
frameHeight = 250;
}
else if(width <= 400)
{
frameHeight = 200;
}
else
{
frameHeight = 150;
}
var ifr = "";
slot.innerHTML = ifr;
}
})();