function ImgLink(b,a,c){newimg=window.open("","Image","Width="+200+", Height="+200+", Toolbar=0, Status=0, Menubar=0, Scrollbars=0, Resizable=1, left=300, top=100");newimg.document.open();newimg.document.write('<html><body topmargin=0 leftmargin=0 onload="FitPic();"><script language="javascript">var arrTemp=self.location.href.split("?"); var picUrl = (arrTemp.length>0)?arrTemp[1]:""; var NS = (navigator.appName=="Netscape")?true:false; function FitPic() {iWidth = (NS)?window.innerWidth:document.body.clientWidth;iHeight = (NS)?window.innerHeight:document.body.clientHeight;iWidth = document.images[0].width - iWidth;iHeight = document.images[0].height - iHeight;window.resizeBy(iWidth, iHeight);self.focus();}; <\/script><a href="javascript: window.close();"><img src='+b+' border="0" alt="Закрыть окно"></a></body>');newimg.document.close()}function initSpoilers(a){$("div.sp-head-wrap",$(a)).click(function(){$(this).find("div.sp-head").toggleClass("unfolded");$(this).next("div.sp-body").slideToggle("fast")})}function initSpoilers2(a){$("div.sp-head-wrap2",$(a)).click(function(){$(this).find("div.sp-head2").toggleClass("unfolded2");$(this).next("div.sp-body2").slideToggle("fast")})}function show(a){if(document.getElementById(a).style.display=="none"){document.getElementById(a).style.display="block"}}function hide(a){if(document.getElementById(a).style.display=="block"){document.getElementById(a).style.display="none"}}function syncList(){}syncList.prototype.sync=function(){for(var a=0;a<arguments.length-1;a++){document.getElementById(arguments[a]).onchange=(function(d,c,b){return function(){d._sync(c,b)}})(this,arguments[a],arguments[a+1]);document.getElementById(arguments[0]).onchange()}};syncList.prototype._sync=function(a,f){var b=document.getElementById(a),e=document.getElementById(f);e.length=0;if(b.length>0){var d=this.dataList[b.options[b.selectedIndex==-1?0:b.selectedIndex].value];for(var c in d||null){if(d.hasOwnProperty(c)){e.options[e.length]=new Option(d[c],c)}}if(b.selectedIndex==-1){setTimeout(function(){b.options[0].selected=true},1)}if(e.length>0){setTimeout(function(){e.options[0].selected=true},1)}}e.onchange&&e.onchange()};var syncList1=new syncList(),ds="deliv_simple",de="deliv_express",dn="deliv_np",si="Обычная (акция!)",ex="Экспресс (+200 руб)",S="Small",M="Medium",L="Large";syncList1.dataList={bliz:{ds:si,de:ex},wm:{ds:si,de:ex},yandex:{ds:si,de:ex},contact:{ds:si,de:ex},qiwi:{ds:si,de:ex},kyky:{ds:si,de:ex},np:{dn:"Экспресс, с наложенным платежом (+300 руб)"},ds:{S:S,M:M,L:L,DS:"Deluxe Small",DM:"Deluxe Medium",DL:"Deluxe Large"},de:{S:S,M:M,L:L},dn:{S:S,M:M,L:L}};var addthis_config={ui_language:"ru",ui_click:true,data_track_clickback:true,services_compact:"facebook,livejournal,vk,twitter,my.ya.ru,email,more",services_custom:{name:"Я.ру",url:"http://my.ya.ru/posts_add_link.xml?URL={{url}}&title={{title}}",icon:"images/yaru.gif"}};var addthis_localize={share_caption:"Рассказать друзьям",email:"Электропочта",favorites:"Избранное",more:"Еще 306..."};function addthis_rename(){var b=false;function a(){if(!b){$("span","#atic_livejournal").html("ЖЖ");$("span","div#atic_facebook").html("Фейсбук");$("span","div#atic_vk").html("ВКонтакте");$("span","div#atic_twitter").html("Твиттер");$("a","div#at15s_head").html("&times;").css({"font-size":"150%","font-weight":"normal"});$("#at16lb").show();b=true}$(".addthis_button_compact").bind("click",function(){$("#at16lb").show()})}function c(){$("#at16lb").hide()}addthis.addEventListener("addthis.menu.open",a);addthis.addEventListener("addthis.menu.close",c)}$(document).ready(function(){addthis_rename()});function li(){document.write("<img src='http://counter.yadro.ru/hit?r"+escape(document.referrer)+((typeof(screen)=="undefined")?"":";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+";"+Math.random()+"' width=1 height=1 alt=''>")}var ScrollText={speed:1,interval:30,mouseControl:true,clid:"scrolltextdiv",text:[],_appendCount:[],intervalFlag:0,init:function(){var a=$("."+ScrollText.clid);if(ScrollText.mouseControl){a.mouseover(function(){ScrollText.stop()});a.mouseout(function(){ScrollText.play()})}a.each(function(b){ScrollText.text.push($(this).html());ScrollText._appendCount.push(0)});ScrollText.play()},doScrollText:function(){var a=$("."+ScrollText.clid);a.each(function(b){if(this.scrollTop+a.height()>=this.scrollHeight){if(ScrollText._appendCount[b]>100){ScrollText._appendCount[b]=0;$("."+ScrollText.clid+" ."+ScrollText.clid+"_temp").remove()}$("<div class="+ScrollText.clid+"_temp>"+ScrollText.text[b]+"</div>").appendTo($(this));ScrollText._appendCount[b]++}this.scrollTop+=ScrollText.speed})},play:function(){ScrollText.intervalFlag=window.setInterval("ScrollText.doScrollText();",ScrollText.interval)},stop:function(){window.clearInterval(ScrollText.intervalFlag)}};
