if(gSlnWidget==undefined) {
var gSlnWidget = {
  host: 'www.gdeslon.ru',
  widgets: {}, 
  moreHolderNum: 0,
  check_ie:function() {
  	return /*@cc_on!@*/false;
  },
  getWidgetDivId:function(num){
    return('gdeslon_widget_' + num);
  },
  getScripts:function(path){
    var a=document.getElementsByTagName("script"),b,c=[];
    for(b in a){
      if(a[b].src&&a[b].src.indexOf(path)!=-1){
        c.push(a[b])
      }
    }
    return c
  },
  isOccupied:function(a){
    var b=a.previousSibling,c=0;
    while(b&&b.nodeType!=1){
      b=b.previousSibling
    }
    if(b){
      return b.className.indexOf("gdeslon-widget")!=-1
    }else{
      return false
    }
  },
  prependWrapperTo:function(b, wNum, sc){
    var a=document.createElement("div"), wd=this.widgets[wNum];
    a.setAttribute('id',this.getWidgetDivId(wNum));
    a.setAttribute('wnum', wNum);
    a.setAttribute("class","gdeslon-widget" + wd.sclass);
    if (this.check_ie()) {
      a.className = "gdeslon-widget" + wd.sclass;
    }
    a.innerHTML = sc;
    b.parentNode.insertBefore(a,b);
    return a;
  },
  insertWidgetFor:function(path, wNum, sc){
    var a=this.getScripts(path),b;
    for(b in a){
      if((typeof(a[b]) == "object") && !this.isOccupied(a[b])){
        return this.prependWrapperTo(a[b], wNum, sc)
      }
    }
  },
  findSiblingWidget:function(a){
    var b=a.parentNode;
    while(b&&b.nodeType!=1){
      b=b.parentNode
    }
    if(b&&b.className.indexOf("gdeslon-widget")!=-1){
      return b;
    }else{
      return false;
    }
  },
  findOldScript:function(w,k){
    var b=w.nextSibling;
    while(b&&b.nodeType!=1){
      b=b.nextSibling;
    }
    if(b&&b.src.indexOf(k)!=-1){
      return b;
    }else{
      return false; 
    }
  },
  createNewScript:function(b,s){
    var a=document.createElement("script");
    a.setAttribute("type","text/javascript");
    a.setAttribute("src",s);
    return a;
  },
  spinner: null,
  getSpinner:function(){
    if (this.spinner==null){
      a=document.createElement('div');
      a.setAttribute("style","width:16px;height:16px;background-image:url(http://www.gdeslon.ru/images/indicator.gif);background-repeat:no-repeat;");
      this.spinner=a;
    }
    return this.spinner;
  },
  removeSpinner:function(){
    if (this.spinner!=null){
      this.spinner.parentNode.removeChild(this.spinner);
    }
  },
  updateWidget:function(f){
    var a=f.action+'?keywords='+encodeURIComponent(f.keywords.value);
    if (f.sub_id) a=a+'&sub_id='+(f.sub_id.value);
    var w=this.findSiblingWidget(f);
    if (w){
      var wd=this.widgets[w.getAttribute('wnum')];
      var s=this.findOldScript(w,(wd.type < 2 ? 'agent' : 'showcase'));
      if (s){
        var i = this.getSpinner();
        w.parentNode.replaceChild(i,w);
        var n = this.createNewScript(s,a);
        s.parentNode.replaceChild(n,s);
      }
    }
    return false;
  },
  getMoreRows:function(bt){
    bt.style.display = 'none';

    var widget = gSlnWidget.findSiblingWidget(bt);
    
    var widgetData = this.widgets[widget.getAttribute('wnum')];
    this.moreHolderNum++;
    var moreHolder = document.createElement('div');
    moreHolder.setAttribute('id','more_holder_'+this.moreHolderNum);
    moreHolder.appendChild(this.getSpinner());
    bt.parentNode.insertBefore(moreHolder,bt);
    var loader = document.createElement('script');
    var url = 'http://' + this.host + '/' + widgetData.more_url + '?target_holder=' + this.moreHolderNum + '&keywords=' + encodeURIComponent(widgetData.keywords)+'&exclude=' + widgetData.ids.join(',') + widgetData.sub_id
    loader.setAttribute('id','more_script_'+this.moreHolderNum);
    loader.setAttribute('src',url);
    bt.parentNode.insertBefore(loader,bt);
    return false;
  }
};

};
var widgetData = {
  num: '5279',
  accessKey: '71f95dec13184e12c2b0ed201c4a6c2ebc19050f',
  keywords: 'kitty',
  ids: [6757572,6757648,6757682,6757684,6757708,6757740,6757858,6757974,8773466],
  
  type: '2',
  width: '516',
  height: '634',
  sub_id: '',
  sclass: '',
  more_url: 'showcase/71f95dec13184e12c2b0ed201c4a6c2ebc19050f/more.js'
}
gSlnWidget.widgets['5279'] = widgetData;

var gsLogoCode = '';
var gsSearchBar = '';
var gsCssStyle = '';
var gsItems = '<div class=\"gdeslon-item\">\n  <a href=\"http://www.gdeslon.ru/r/6cb9ad9c4918ef8e740899ae1a7e2a241a4a7f25/6757572/\" target=\"_blank\" rel=\"nofollow\">\n    <image src=\"http://www.gdeslon.ru/uploads/commodities/00/06/75/75/72/picture/small.jpg?1315734373\" alt=\"Dabaz.org Заколка Hello Kitty  10 шт.\" title=\"Dabaz.org Заколка Hello Kitty  10 шт.\">\n  <\/a>\n  <div class=\"gdeslon-title\">Dabaz.org Заколка Hello Kitty  10 шт.<\/div>\n  <div class=\"gdeslon-price\">630р<\/div>\n  <div class=\"gdeslon-link\">\n    <a href=\"http://www.gdeslon.ru/r/6cb9ad9c4918ef8e740899ae1a7e2a241a4a7f25/6757572/\" target=\"_blank\" rel=\"nofollow\">Купить<\/a>\n  <\/div>\n<\/div><div class=\"gdeslon-item\">\n  <a href=\"http://www.gdeslon.ru/r/6cb9ad9c4918ef8e740899ae1a7e2a241a4a7f25/6757648/\" target=\"_blank\" rel=\"nofollow\">\n    <image src=\"http://www.gdeslon.ru/uploads/commodities/00/06/75/76/48/picture/small.jpg?1315734387\" alt=\"Dabaz.org Коврик для мышки Hello Kitty\" title=\"Dabaz.org Коврик для мышки Hello Kitty\">\n  <\/a>\n  <div class=\"gdeslon-title\">Dabaz.org Коврик для мышки Hello Kitty<\/div>\n  <div class=\"gdeslon-price\">130р<\/div>\n  <div class=\"gdeslon-link\">\n    <a href=\"http://www.gdeslon.ru/r/6cb9ad9c4918ef8e740899ae1a7e2a241a4a7f25/6757648/\" target=\"_blank\" rel=\"nofollow\">Купить<\/a>\n  <\/div>\n<\/div><div class=\"gdeslon-item\">\n  <a href=\"http://www.gdeslon.ru/r/6cb9ad9c4918ef8e740899ae1a7e2a241a4a7f25/6757682/\" target=\"_blank\" rel=\"nofollow\">\n    <image src=\"http://www.gdeslon.ru/uploads/commodities/00/06/75/76/82/picture/small.jpg?1315734389\" alt=\"Dabaz.org Косметичка Hello Kitty\" title=\"Dabaz.org Косметичка Hello Kitty\">\n  <\/a>\n  <div class=\"gdeslon-title\">Dabaz.org Косметичка Hello Kitty<\/div>\n  <div class=\"gdeslon-price\">530р<\/div>\n  <div class=\"gdeslon-link\">\n    <a href=\"http://www.gdeslon.ru/r/6cb9ad9c4918ef8e740899ae1a7e2a241a4a7f25/6757682/\" target=\"_blank\" rel=\"nofollow\">Купить<\/a>\n  <\/div>\n<\/div><div class=\"gdeslon-item\">\n  <a href=\"http://www.gdeslon.ru/r/6cb9ad9c4918ef8e740899ae1a7e2a241a4a7f25/6757684/\" target=\"_blank\" rel=\"nofollow\">\n    <image src=\"http://www.gdeslon.ru/uploads/commodities/00/06/75/76/84/picture/small.jpg?1315734389\" alt=\"Dabaz.org Пенал Hello Kitty\" title=\"Dabaz.org Пенал Hello Kitty\">\n  <\/a>\n  <div class=\"gdeslon-title\">Dabaz.org Пенал Hello Kitty<\/div>\n  <div class=\"gdeslon-price\">450р<\/div>\n  <div class=\"gdeslon-link\">\n    <a href=\"http://www.gdeslon.ru/r/6cb9ad9c4918ef8e740899ae1a7e2a241a4a7f25/6757684/\" target=\"_blank\" rel=\"nofollow\">Купить<\/a>\n  <\/div>\n<\/div><div class=\"gdeslon-item\">\n  <a href=\"http://www.gdeslon.ru/r/6cb9ad9c4918ef8e740899ae1a7e2a241a4a7f25/6757708/\" target=\"_blank\" rel=\"nofollow\">\n    <image src=\"http://www.gdeslon.ru/uploads/commodities/00/06/75/77/08/picture/small.jpg?1315734391\" alt=\"Dabaz.org Подвес для телефона Hello Kitty\" title=\"Dabaz.org Подвес для телефона Hello Kitty\">\n  <\/a>\n  <div class=\"gdeslon-title\">Dabaz.org Подвес для телефона Hello Kitty<\/div>\n  <div class=\"gdeslon-price\">130р<\/div>\n  <div class=\"gdeslon-link\">\n    <a href=\"http://www.gdeslon.ru/r/6cb9ad9c4918ef8e740899ae1a7e2a241a4a7f25/6757708/\" target=\"_blank\" rel=\"nofollow\">Купить<\/a>\n  <\/div>\n<\/div><div class=\"gdeslon-item\">\n  <a href=\"http://www.gdeslon.ru/r/6cb9ad9c4918ef8e740899ae1a7e2a241a4a7f25/6757740/\" target=\"_blank\" rel=\"nofollow\">\n    <image src=\"http://www.gdeslon.ru/uploads/commodities/00/06/75/77/40/picture/small.jpg?1315734394\" alt=\"Dabaz.org Пирсинг Hello Kitty\" title=\"Dabaz.org Пирсинг Hello Kitty\">\n  <\/a>\n  <div class=\"gdeslon-title\">Dabaz.org Пирсинг Hello Kitty<\/div>\n  <div class=\"gdeslon-price\">340р<\/div>\n  <div class=\"gdeslon-link\">\n    <a href=\"http://www.gdeslon.ru/r/6cb9ad9c4918ef8e740899ae1a7e2a241a4a7f25/6757740/\" target=\"_blank\" rel=\"nofollow\">Купить<\/a>\n  <\/div>\n<\/div><div class=\"gdeslon-item\">\n  <a href=\"http://www.gdeslon.ru/r/6cb9ad9c4918ef8e740899ae1a7e2a241a4a7f25/6757858/\" target=\"_blank\" rel=\"nofollow\">\n    <image src=\"http://www.gdeslon.ru/uploads/commodities/00/06/75/78/58/picture/small.jpg?1315734403\" alt=\"Dabaz.org Расчёска Hello Kitty\" title=\"Dabaz.org Расчёска Hello Kitty\">\n  <\/a>\n  <div class=\"gdeslon-title\">Dabaz.org Расчёска Hello Kitty<\/div>\n  <div class=\"gdeslon-price\">180р<\/div>\n  <div class=\"gdeslon-link\">\n    <a href=\"http://www.gdeslon.ru/r/6cb9ad9c4918ef8e740899ae1a7e2a241a4a7f25/6757858/\" target=\"_blank\" rel=\"nofollow\">Купить<\/a>\n  <\/div>\n<\/div><div class=\"gdeslon-item\">\n  <a href=\"http://www.gdeslon.ru/r/6cb9ad9c4918ef8e740899ae1a7e2a241a4a7f25/6757974/\" target=\"_blank\" rel=\"nofollow\">\n    <image src=\"http://www.gdeslon.ru/uploads/commodities/00/06/75/79/74/picture/small.jpg?1315734412\" alt=\"Dabaz.org Часы Hello Kitty\" title=\"Dabaz.org Часы Hello Kitty\">\n  <\/a>\n  <div class=\"gdeslon-title\">Dabaz.org Часы Hello Kitty<\/div>\n  <div class=\"gdeslon-price\">800р<\/div>\n  <div class=\"gdeslon-link\">\n    <a href=\"http://www.gdeslon.ru/r/6cb9ad9c4918ef8e740899ae1a7e2a241a4a7f25/6757974/\" target=\"_blank\" rel=\"nofollow\">Купить<\/a>\n  <\/div>\n<\/div><div class=\"gdeslon-item\">\n  <a href=\"http://www.gdeslon.ru/r/6cb9ad9c4918ef8e740899ae1a7e2a241a4a7f25/8773466/\" target=\"_blank\" rel=\"nofollow\">\n    <image src=\"http://www.gdeslon.ru/uploads/commodities/00/08/77/34/66/picture/small.jpg?1321005155\" alt=\"Dabaz.org Кошелёк Hello Kitty\" title=\"Dabaz.org Кошелёк Hello Kitty\">\n  <\/a>\n  <div class=\"gdeslon-title\">Dabaz.org Кошелёк Hello Kitty<\/div>\n  <div class=\"gdeslon-price\">1330р<\/div>\n  <div class=\"gdeslon-link\">\n    <a href=\"http://www.gdeslon.ru/r/6cb9ad9c4918ef8e740899ae1a7e2a241a4a7f25/8773466/\" target=\"_blank\" rel=\"nofollow\">Купить<\/a>\n  <\/div>\n<\/div>';




gsCssStyle = '<hr>\n<style>\n.gdeslon-widget {position: relative;}\n    #gdeslon_widget_5279 hr {display: none}\n    #gdeslon_widget_5279 {font-family:Arial,Verdana,sans-serif;font-size:12px;line-height:14px;font-style:normal;width:516px;height:634px;}\n    #gdeslon_widget_5279 a {border:0;height: 100px;vertical-align:middle;overflow:hidden;display:block;text-align:center;}\n    #gdeslon_widget_5279 img {border: 0;vertical-align:middle;}\n    #gdeslon_widget_5279 form {height: 30px;margin: 0 2px;}\n    #gdeslon_widget_5279 .gdeslon-item {text-align:center;width:160px;height:180px;float:left;border: 1px solid #eee}\n    #gdeslon_widget_5279 .gdeslon-item {padding: 3px 3px;margin:2px 2px;}\n    #gdeslon_widget_5279 .gdeslon-item .gdeslon-title {margin-top:2px;height:37px;overflow:hidden}\n    #gdeslon_widget_5279 .gdeslon-item .gdeslon-link {font-size: 13px;height: 15px;}\n    #gdeslon_widget_5279 .gdeslon-item .gdeslon-link a {height: 15px;}\n    #gdeslon_widget_5279 .gdeslon-item .gdeslon-price {font-size: 13px;height: 15px;}\n    #gdeslon_widget_5279 .gdeslon-more {padding:5px;height:28px;text-align:left;}\n<\/style>';

var gsMoreButton = '<a class=\"gdeslon-more\" style=\"display:block; clear:both;\" href=\"#\" onclick=\"javascript:return gSlnWidget.getMoreRows(this)\" id=\"gdeslon_bt_more_' + widgetData.num + '\">Ещё товары<\/a>';


function gsHandleShowcase5279() {

gSlnWidget.insertWidgetFor('/showcase/71f95dec13184e12c2b0ed201c4a6c2ebc19050f.js', widgetData.num, (gsSearchBar + gsCssStyle + gsItems + gsMoreButton + gsLogoCode));
gSlnWidget.removeSpinner();

  //var options = {agent_id:"5279",path:"http://www.gdeslon.ru/showcase/71f95dec13184e12c2b0ed201c4a6c2ebc19050f.js",width:"516",height:"634",withCSS:true}
  //gSlnShowcase.insertWidgetFor('', options);
}
gsHandleShowcase5279();



