'+
'';
alink = document.createElement("a");
alink.href="#";
alink.className="em";
alink.onclick = function(){widgetSilkfairStore299_5309.widgetShowItem(idx);return false;}
alink.innerHTML = strOut;
return alink;
}
this.widgetDrawItems = function(){
if(this.Items.length <= this.itemsToShow) {
i = 0;
to = this.Items.length;
} else {
i = this.currentItem;
if ((this.currentItem + this.itemsToShow) <= this.Items.length){
to = this.currentItem + this.itemsToShow;
}else{
to = this.Items.length;
}
}
document.getElementById(this.el_items_list).innerHTML = "";
for (i;i<=to;i++){
obj = this.Items[i];
strOut = this.widgetDrawItem(i);
document.getElementById(this.el_items_list).appendChild(strOut);
}
}
this.widgetShowItem = function(idx){
this.thumbHighlight(idx);
container = document.getElementById(this.el_image_preview);
str_image = "";
container.innerHTML = str_image;
document.getElementById(this.el_widget_item_name).innerHTML = this.Items[idx].name.substr(0, this.item_name_size);
document.getElementById(this.el_widget_item_description).innerHTML = this.Items[idx].description.substr(0, this.item_description_size);
document.getElementById(this.el_item_price).innerHTML = this.Items[idx].price;
document.getElementById(this.el_item_link).href = this.storeDomain + "/" + this.Items[idx].id;
}
this.widgetShowNullItem = function(){
container = document.getElementById(this.el_image_preview);
str_image = "";
container.innerHTML = str_image;
document.getElementById(this.el_widget_item_name).innerHTML = "Skybye`s Jewelcraft".substr(0, this.store_name_size);
document.getElementById(this.el_items_list).innerHTML = "Skybye\'s JewelCraft is a new store currently based out of Kuwait but shipping from the United States. Skybye (Aka Tera) is currently residing in Kuwait with her husband working for the US military. She makes her jewelry while she\'s there and then ships it back to the US to be shipped to customers from there. (The pieces are never posted on the site until they reach the States.) Skybye\'s JewelCr...".substr(0, this.store_description_size);
}
this.thumbHighlight = function(idx){
if(this.Items.length <= this.itemsToShow) {
i = 0;
to = this.Items.length;
} else {
i = this.currentItem;
to = this.currentItem + this.itemsToShow;
}
for (i;i<=to;i++){
obj = this.Items[i]
if ( document.getElementById(this.el_thumb_prefix + i) ){
document.getElementById(this.el_thumb_prefix + i).className = "wg_thumb";
}
}
document.getElementById(this.el_thumb_prefix + idx).className = "wg_thumb_high";
}
// Default html : version = 1
this.widgetDrawHtml = function(){
strOut = '