comments={displayed:true,showHide:function(){if(this.displayed==true){this.displayed=false;o('commarea').style.display='none';o('commlink').innerHTML=o('commlink').innerHTML.substring(0,o('commlink').innerHTML.length - 1);}else{this.displayed=true;o('commarea').style.display='block';o('commlink').innerHTML=o('commlink').innerHTML+':';}},onFocus:function(top){o('cpopup').style.visibility='visible';san.add('cpopup1','o(\'cpopup\').style.top=val+\'px\';',0,top,200);},onBlur:function(top){o('cpopup').style.visibility='hidden';},countLenght:function(clength,maxlength){var symbols=maxlength - clength;o('cpopup').innerHTML=symbols;if(symbols>20){o('cpopup').style.color='#fff';}else if(symbols>10 && symbols<=20){o('cpopup').style.color='#fffb8d';}else if(symbols<10 && symbols>=0){o('cpopup').style.color='#ffc4c4';}else if(symbols<0){o('cpopup').style.color='#cc6060';}},onSubmit:function(form){var submit=true;if(form.nick.value=='ваш ник' || form.nick.value==''){form.nick.style.color='#c00400';submit=false;}if(form.comment.value=='ваш комментарий' || form.comment.value=='' || form.comment.value.length>500){form.comment.style.color='#c00400';submit=false;}return submit;}};intro={hide_scroll:function(){if(getCookie('intro')==null)document.body.style.overflow='hidden';},turn_off:function(){san.add('turn_off','o(\'intro_off\').style.top=val+\'px\';',-16,0,200,'intro.turn_off_back()');},turn_off_back:function(){san.add('turn_off','o(\'intro_off\').style.top=val+\'px\';',0,-16,150,'intro.shade()');},shade:function(){o('intro_black').style.display='block';o('intro_black').style.background='url(/file/img/intro/blend10.png)';setTimeout("o('intro_black').style.background='url(/file/img/intro/blend20.png)'",30);setTimeout("o('intro_black').style.background='url(/file/img/intro/blend30.png)'",60);setTimeout("o('intro_black').style.background='url(/file/img/intro/blend40.png)'",90);setTimeout("o('intro_black').style.background='url(/file/img/intro/blend50.png)'",120);setTimeout("o('intro_black').style.background='url(/file/img/intro/blend60.png)'",150);setTimeout("o('intro_black').style.background='url(/file/img/intro/blend70.png)'",180);setTimeout('intro.shadefull()',2180)},shadefull:function(){o('intro_black').style.background='url(/file/img/intro/blend80.png)';setTimeout("o('intro_black').style.background='url(/file/img/intro/blend90.png)'",50);setTimeout("o('intro_black').style.background='url(/file/img/intro/blend100.png)'",100);setTimeout('intro.showbutton()',200)},showbutton:function(){san.add('ib_button','sb(o(\'ib_button\'),val)',0,100,200,'');},flame:function(){o('ib_flame').style.display='block';san.add('ib_flame','sb(o(\'ib_flame\'),val)',0,100,500,'intro.hide()');},hide:function(){o('handle').className='handle';o('footer').className='footer';o('intro_main').style.display='none';san.add('intro_black','sb(o(\'intro_black\'),val)',100,0,300,'intro.finish()');san.add('ib_flame','sb(o(\'ib_flame\'),val)',100,0,300,'');},finish:function(){setCookie('intro','1','Mon,09-Jan-2014 00:00:00 GMT','/');o('intro').style.display='none';setTimeout("document.body.style.overflow='auto'",1000);}};function o(id){ return document.getElementById(id);} function sb(ob,v){ ob.style.filter='alpha(opacity='+v+')';ob.style.opacity=v/100;}san={timers:new Object,onerror:function(e){},add:function(name,action,from,to,time,after){ try{ if(san.timers[name]==null){san.timers[name]=new Object;}if(action !=false && action !=undefined){san.timers[name].action=action;}san.timers[name].from=san.timers[name].current || from || 0;san.timers[name].to=to || 0;if(time !=undefined){san.timers[name].time=time;}else{san.timers[name].time=300;}var now=new Date();san.timers[name].starttime=now.getTime();if(after !=undefined){san.timers[name].after=after;}san.timer(name); }catch(e){ this.onerror(e)}},timer:function(n){try{t=san.timers[n];var now=new Date();if(t.timer !=null){clearTimeout(t.timer);}var tpos=(now.getTime()- t.starttime)/t.time;tpos=(tpos>1)?1:tpos;var val=t.from+Math.round((t.to - t.from)*tpos);eval(t.action);t.current=val;if(tpos==1){if(t.after !=null)eval(t.after);}else{t.timer=setTimeout("san.timer('"+n+"')",5);}}catch(e){ this.onerror(e)}}};function setCookie(name,value,expires,path,domain,secure){document.cookie=name+"="+escape(value)+((expires)?";expires="+expires:"")+((path)?";path="+path:"")+((domain)?";domain="+domain:"")+((secure)?";secure":"");}function getCookie(name){var cookie=" "+document.cookie;var search=" "+name+"=";var setStr=null;var offset=0;var end=0;if(cookie.length>0){offset=cookie.indexOf(search);if(offset !=-1){offset+=search.length;end=cookie.indexOf(";",offset);if(end==-1){end=cookie.length;}setStr=unescape(cookie.substring(offset,end));}}return setStr;}