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;
  }
};

};
gSlnWidget.widgets['/external_link/41094.js'] = {};
gSlnWidget.insertWidgetFor('/external_link/41094.js', '/external_link/41094.js').innerHTML = "<div class=\'gdeslon-item\' style=\'text-align:center; font-family: Arial,Verdana,sans-serif; font-size: 12px; font-style: normal;\'>\n<a href=\'http://www.gdeslon.ru/r/adb4d73a882e7c85dbaceb99c22c646b0ddf0eb5\' rel=\'nofollow\' target=\'_top\'>\n<img alt=\"Электронная книга Sony PRS-950 Daily Edition\" src=\"http://www.gdeslon.ru//uploads/commodities/00/00/82/74/36/picture/small.jpg?1292275557\" title=\"Электронная книга Sony PRS-950 Daily Edition\" />\n<\/a>\n<div class=\'gdeslon-title\'>\nЭлектронная книга Sony PRS-950 Daily Edition\n<\/div>\n<div class=\'gdeslon-price\'>\n&lt;span class=&quot;no-data&quot;&gt;Мало данных&lt;/span&gt;.\n<\/div>\n<div class=\'gdeslon-link\' style=\'font-size: 13px;\'>\n<a href=\"http://www.gdeslon.ru/r/adb4d73a882e7c85dbaceb99c22c646b0ddf0eb5\" rel=\"nofollow\" target=\"_top\">Купить<\/a>\n<\/div>\n<\/div>\n";


