"undefined"==typeof window.SC_TeaserBlock&&(window.SC_IIterator=function(a){this.n=a;this.f=0;this.m=a.length},window.SC_IIterator.prototype={next:function(){var a=this.n[this.f];this.f++;this.f==this.m&&(this.f=0);return a}},window.SC_UA=function(){},window.SC_UA.prototype={h:function(){return navigator.userAgent.toLowerCase()},k:function(){return-1!=this.h().indexOf("chrome")},t:function(){return-1!=this.h().indexOf("msie")&&!this.u()},u:function(){return-1!=this.h().indexOf("opera")},z:function(){return!this.k()&&
!this.t()}},window.SC_TBObj=function(){this.B=new window.SC_UA},window.SC_TBObj.prototype={domain:"http://domain.com",k:function(){return-1!=this.h().indexOf("chrome")},v:function(){var a=this.c.params,c="";if(a){var b=0,d;for(d in a){var e=d,i=a[d];b++;c=1==b?c+("?"+e+"="+i):c+("&"+e+"="+i)}}return c},link:function(a,c,b,d){return this.domain+"/click/"+c+"/"+b+"/"+d+"/"+this.v()},e:function(a,c,b){if(!this.c.code)return"";a||(a="font");var c=c?"_"+c:"",d={font:{},domain:{color:"009A28"},price:{color:"F0690F",
bold:1,underline:1},head:{color:"000000",bold:1,underline:1,size:parseInt(this.c.code.font_size,10)+2}},e=[],b=b?b+"_":"";e.push("font-family:"+(this.c.code[b+a+"_family"+c]||this.c.code.font_family));e.push("font-size:"+(this.c.code[b+a+"_size"+c]||d[a].size||this.c.code.font_size)+"px");e.push("color:#"+(this.c.code[b+a+"_color"+c]||d[a].color||this.c.code.font_color));e.push(this.fontWeight(this.c.code[b+a+"_bold"+c]||d[a].bold));e.push(this.A(this.c.code[b+a+"_underline"+c]||d[a].I));return e.join("; ")},
fontWeight:function(a){var c="font-weight:normal";1==a&&(c="font-weight:bold");return c},A:function(a){var c="text-decoration:none";1==a&&(c="text-decoration:underline");return c},textAlign:function(){var a="text-align:none";switch(this.c.code.text_h_align){case 1:a="text-align:left";break;case 2:a="text-align:center";break;case 3:a="text-align:right"}return a},g:function(){var a="vertical-align:none";switch(this.c.code.text_v_align){case 1:a="vertical-align:top";break;case 2:a="vertical-align:middle";
break;case 3:a="vertical-align:bottom"}return a},q:function(){var a=this.c.code.image_border_size,c=this.c.code.image_border_color,b=this.c.code.image_margin,d=this.c.code.image_size,e=[];0!==a?e.push("border:"+a+"px solid #"+c):e.push("border:none");0!==b&&e.push("margin:"+b+"px");d&&(e.push("width:"+d+"px"),e.push("min-width:"+d+"px"),e.push("height:"+d+"px"));return e.join("; ")},w:function(){var a=[],c="",b=this.c.code.border_size;0!==b?this.c.code.border_color&&(c="border:"+b+"px solid #"+this.c.code.border_color):
c="border: none";a.push(c);this.c.code.background_color&&a.push("background-color:#"+this.c.code.background_color);return a.join("; ")},l:function(){var a=this.c.code.background_color_hover,c=this.e(!1,"hover"),b="";a&&(b+="#"+this.b+"_Table:hover {background: #"+a+" !important}");b+="#"+this.b+" ."+this.b+"_title {"+this.e()+"}";b+="#"+this.b+" ."+this.b+"_title:hover {"+c+"}";b+="#"+this.b+" ."+this.b+"_title-hover {"+c+"}";if(this.c.teasers&&this.c.teasers[0]&&(a=this.c.teasers[0],a.G&&(b+="#"+
this.b+" ."+this.b+"_head {"+this.e("head")+"}",b+="#"+this.b+" ."+this.b+"_head:hover {"+this.e("head","hover")+"}",b+="#"+this.b+" ."+this.b+"_head-hover {"+this.e("head","hover")+"}"),a.H&&(b+="#"+this.b+" ."+this.b+"_price {"+this.e("price")+"}",b+="#"+this.b+" ."+this.b+"_price:hover {"+this.e("price","hover")+"}",b+="#"+this.b+" ."+this.b+"_price-hover {"+this.e("price","hover")+"}"),a.F))b+="#"+this.b+" ."+this.b+"_domain {"+this.e("domain")+"}",b+="#"+this.b+" ."+this.b+"_domain:hover {"+
this.e("domain","hover")+"}",b+="#"+this.b+" ."+this.b+"_domain-hover {"+this.e("domain","hover")+"}";return b},j:function(a,c){var b="";return b=1==c?this.b+"_"+a+"_link":this.b+"_"+a},d:function(a,c,b){a=document.createElement(a);if(c)for(var d in c)"style"==d?a.style.cssText=c[d]:a.setAttribute(d,c[d]);b&&(a.innerHTML=b);return a},s:function(a,c){document.getElementById(a+"_link").setAttribute("class",c+"_title-hover")},r:function(a,c){var b=document.getElementById(a+"_link");b&&(b.removeAttribute("class"),
b.setAttribute("class",c+"_title"))},C:function(a){return!a.match(/:\/\//)?"http://"+a:a},i:function(a,c){var b=this.d("div"),d=this.d("a",{href:a.lb_click_url,target:"_blank",title:a["lb_"+c],rel:"nofollow","class":this.b+"_"+c,className:this.b+"_"+c},a["lb_"+c]);this.a(b,d);return b},o:function(a,c,b,d){var b=this.d("a",{href:c.lb_click_url,title:c.lb_title,"class":this.b+"_title",className:this.b+"_title",id:this.j(d,1),target:"_blank",rel:"nofollow"},c.lb_title),e=this.d("a",{href:c.lb_click_url,
target:"_blank",title:c.lb_title,rel:"nofollow"}),i,m,k;c.lb_head&&(k=this.i(c,"head"));c.lb_domain&&(m=this.i(c,"domain"));c.lb_price&&(i=this.i(c,"price"));var d=this.d("img",{src:this.C(c.lb_img_url),alt:c.lb_title,style:this.q(),id:this.j(d),onmouseover:"window.SC_TeaserBlock.imgMouseOver(this.id, '"+this.b+"')",onmouseout:"window.SC_TeaserBlock.imgMouseOut(this.id, '"+this.b+"')"}),j=this.d("tbody"),l=this.d("table",{cellspacing:0,cellpadding:0,border:0,width:"auto"}),h=this.d("tr"),o=this.d("tr"),
f=this.d("td",{style:this.textAlign()+"; "+this.g()+"; border:0"}),g=this.d("td",{style:this.textAlign()+"; "+this.g()+"; border:0"}),n=this.d("div",{style:this.textAlign()+"; "+this.g()+"; border:0"}),a=parseInt(a,10)||2;switch(a){case 1:k?this.a(f,k):this.a(f,b);this.a(h,f);this.a(j,h);this.a(e,d);this.a(g,e);this.a(o,g);k&&(this.a(n,b),m&&this.a(n,m),i&&this.a(n,i),this.a(g,n));this.a(j,o);break;case 2:"string"===typeof this.c.code.more_font_family?(a=this.d("tr"),i=this.d("td",{style:"text-align:right; vertical-align:bottom; border:0"}),
c=this.d("a",{href:c.lb_click_url,target:"_blank",title:"\u0447\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435",style:this.e(!1,!1,"more")+"; margin:10px"},"\u0447\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 &raquo;"),g.setAttribute("rowspan",2),g.setAttribute("width",this.c.code.image_size),l.setAttribute("width","100%"),this.a(i,c),this.a(a,i),this.a(e,d),this.a(g,e),this.a(h,g),this.a(f,b),this.a(h,f),this.a(j,h),this.a(j,a)):(this.a(e,d),this.a(g,e),this.a(h,g),
k&&this.a(f,k),this.a(f,b),m&&this.a(f,m),i&&this.a(f,i),this.a(h,f),this.a(j,h));break;case 3:k&&this.a(g,k);this.a(e,d);this.a(g,e);this.a(o,g);this.a(j,o);this.a(f,b);m&&this.a(f,m);i&&this.a(f,i);this.a(h,f);this.a(j,h);break;case 4:k&&this.a(f,k),this.a(f,b),m&&this.a(f,m),i&&this.a(f,i),this.a(h,f),this.a(e,d),this.a(g,e),this.a(h,g),this.a(j,h)}this.a(l,j);return l},a:function(a,c){a.appendChild(c)},p:function(){function a(a){td.onmouseup=function(){window.open(a)}}var c=this.d("div",{style:"display:none; position:absolute;"}),
b="",d=this.c.code_id,e=this.c.code.v_count||1,i=this.c.code.h_count||1,m=this.c.code.text_layout||1,k=0,j=document.getElementById(this.b);if(null===j)throw"block container '"+this.b+"' not found";j.innerHTML="";var l=this.d("style",{type:"text/css"});if(l.styleSheet)l.styleSheet.cssText=this.l();else{var h=document.createTextNode(this.l());this.a(l,h)}this.a(document.getElementsByTagName("head")[0],l);for(var l=this.d("tbody"),h=this.d("table",{cellspacing:0,cellpadding:0,border:0,width:"auto",style:this.w(),
id:this.b+"_Table"}),o=new window.SC_IIterator(this.c.teasers),f=null,g,n=0;n<e;n++){g=this.d("tr");this.a(l,g);for(var q=0;q<i;q++){td=this.d("td",{style:this.textAlign()+"; "+this.g()+"; padding:5px; border:0","class":this.b+"_td"});f=o.next();this.B.z()&&f.lb_click_url2&&a(f.lb_click_url2);this.a(g,td);var r=this.o(m,f,d,k);this.a(td,r);f.ad_html&&(b+=f.ad_html);k++}}this.c.ad_html&&(b+=this.c.ad_html);this.a(l,g);this.a(h,l);this.a(j,h);""!==b&&(c.innerHTML=b,this.a(j,c))},D:function(a,c){this.b=
a;this.c=c;this.p()}},window.SC_TeaserBlock=new window.SC_TBObj,window.SC_TeaserBlock.writeBlock=window.SC_TeaserBlock.D,window.SC_TeaserBlock.imgMouseOver=window.SC_TeaserBlock.s,window.SC_TeaserBlock.imgMouseOut=window.SC_TeaserBlock.r);var p;if("object"==typeof window.SC_BuildTeaserBlock&&window.SC_BuildTeaserBlock.pop)for(;p=window.SC_BuildTeaserBlock.pop();)"function"==typeof p&&p();else"function"==typeof window.SC_BuildTeaserBlock&&window.SC_BuildTeaserBlock();
