function preventSelection(element){var preventSelection=false;function addHandler(element,event,handler){if(element.attachEvent)element.attachEvent('on'+event,handler);else if(element.addEventListener)element.addEventListener(event,handler,false)}function removeSelection(){if(window.getSelection){window.getSelection().removeAllRanges()}else if(document.selection&&document.selection.clear)document.selection.clear()}function killCtrlA(event){var event=event||window.event;var sender=event.target||event.srcElement;if(sender.tagName.match(/INPUT|TEXTAREA/i))return;var key=event.keyCode||event.which;if(event.ctrlKey&&key=='A'.charCodeAt(0)){removeSelection();if(event.preventDefault)event.preventDefault();else event.returnValue=false}}addHandler(element,'mousemove',function(){if(preventSelection)removeSelection()});addHandler(element,'mousedown',function(event){var event=event||window.event;var sender=event.target||event.srcElement;preventSelection=!sender.tagName.match(/INPUT|TEXTAREA/i)});addHandler(element,'mouseup',function(){if(preventSelection)removeSelection();preventSelection=false});addHandler(element,'keydown',killCtrlA);addHandler(element,'keyup',killCtrlA)}var h7bgx='50%';var h7bgy=0;var h7quake=0;top.d7message='';function BGRmouseMove(e){if(!e)e=window.event; if(e.pageX || e.pageY){mousex=e.pageX;mousey=e.pageY;}else if(e.clientX || e.clientY) {mousex=e.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft)-document.documentElement.clientLeft;mousey=e.clientY+(document.documentElement.scrollTop||document.body.scrollTop)-document.documentElement.clientTop; }var c7width=top.document.body.clientWidth;var c7iw=1900;var dw=100;var h7direct=mousex;h7bgx=(((c7width-c7iw)/2)+dw/c7width*(h7direct)-dw/2)+'px';document.getElementById('h7bgr').style.backgroundPosition=h7bgx+' '+Math.floor(h7bgy)+'px';document.getElementById('h7logo').style.left=Math.floor((dw/c7width*(h7direct)-dw/2)/5+232)+'px';}var quaketimeid=0;function h7earthquake(c){if(c==undefined && h7quake>0){clearTimeout(quaketimeid);};if(c==undefined)c=10;h7bgy=(c*(-c%2)*0.5);document.getElementById('h7bgr').style.backgroundPosition=h7bgx+' '+Math.floor(h7bgy)+'px';document.getElementById('h7logo').style.top=Math.floor(h7bgy/5+49)+'px';h7quake=c;if(c>0)quaketimeid=setTimeout('h7earthquake('+(c-1)+')',20+(10-c)*20);}top.document.onmousemove=function(e){BGRmouseMove(e)};top.document.onclick=function(e){h7earthquake()};function h7cookie(name){var matches=top.document.cookie.match(new RegExp("(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,'\\$1') + "=([^;]*)")); return matches?decodeURIComponent(matches[1]):undefined;}var h7count=0;function h7opacity(xid,value){value=value<0?0:Math.round(value);if(value>99){document.getElementById(xid).style.opacity=1;document.getElementById(xid).style.filter='';return;}document.getElementById(xid).style.opacity=value/100;document.getElementById(xid).style.filter='alpha(opacity='+value+')';}function h7cron(){h7count+=2;h7opacity('h7enter',Math.round(h7count<10?10+(h7count)*9:100-(h7count-10)*9));if(h7count>=20) {h7count=0;document.getElementById('h7enter').style.display='none';setTimeout('h7cron()',1000*(Math.random()*2+0.2)); }else{document.getElementById('h7enter').style.display='inline-block';setTimeout('h7cron()',50);};}document.write('');function h7onload(){if(top.d7message!='')$design.message(top.d7message);var h7uid=h7cookie('ss');h7uid=h7uid==undefined?0:parseInt(h7uid);var x5title=encodeURIComponent('Игра SKAZANIE');var x5small=encodeURIComponent('Текстовая игра SKAZANIE. Огромная территория. Можно исследовать мир и путешествовать.');var x5about=encodeURIComponent('Необычная текстовая онлайн игра с огромным загадочным миром! Здесь обитают настоящие драконы, эльфы, хоббиты, тролли и орки, встречаются диковинные волшебные существа! Играйте в SKAZANIE, исследуйте магический мир и путешествуйте!');var x5fname='-s';var x5wh=20;var x5zoom='width:'+x5wh+'px;height:'+x5wh+'px;';var x5link=h7uid>0?'/?'+h7uid:'';var x5snum=0;var x5ht='h'+'t'+'t'+'p'+':'+'/'+'/';var soc7html=''+''+''+''+'';top.document.getElementById('h7soc').innerHTML=soc7html;setTimeout('h7cron()',1000);}$img={offsetx:0,ewidth:function(el,def){var w=def;try{w=parseInt(el.offsetWidth);}catch(e){}return w<=0?def:w;},turn:function(xid,dx){var e=document.getElementById(xid);if(!e.style.left)e.style.left='0px';e.style.position='relative';e.style.transition='left 0.3s ease 0s';dx=-dx;$img.offsetx+=dx;var w=$img.ewidth(e)-Math.abs(dx);if($img.offsetx>0)$img.offsetx=-w;if($img.offsetx<-w)$img.offsetx=0;e.style.left=$img.offsetx+'px';}};$design={eheight:function(el,def){var h=def;try{h=parseInt(el.offsetHeight);}catch(e){}return h<=0?def:h;},windowWidth:function(w){if(w==undefined)w=top.window;return w.document.body.clientWidth;},windowHeight:function(w){if(w==undefined)w=top.window;return w.document.body.clientHeight;},scrollWidth:function(w){if(w==undefined)w=top.window;return Math.max(w.document.body.scrollWidth,$design.windowWidth(w));},scrollHeight:function(w){if(w==undefined)w=top.window;return Math.max(w.document.body.scrollHeight,$design.windowHeight(w));},edel:function(e){if(e!=undefined && e!=null)return e.parentNode?e.parentNode.removeChild(e):e;},closeMessage:function(){$design.edel(document.getElementById('d7message'));$design.edel(document.getElementById('d7shadow'));},message:function(text){var w=700;e=top.document.createElement('div');top.document.body.appendChild(e);e.style.cssText='border-radius:30px;position:absolute;z-index:3100;display:inline-block;padding:20px;left:50%;top:50%;width:'+w+'px;background:#E2C18B url(/design-skazanie/paper-bgr.jpg) repeat top left;border:3px double #886749;color:black;';e.id='d7message';e.innerHTML=text+'
';var h=$design.eheight(document.getElementById('d7message'),300);document.getElementById('d7message').style.margin='-'+Math.round(h/2)+'px 0 0 -'+Math.round((w+40)/2)+'px';e=top.document.createElement('div');top.document.body.appendChild(e);e.style.cssText='position:absolute;z-index:3000;display:inline-block;padding:0px;margin:0px;left:0px;top:0px;width:100%;height:'+$design.scrollHeight()+'px;background-color:black;opacity:0.30;filter:alpha(opacity=30);';e.id='d7shadow';e.innerHTML=' ';}};top.window.onload=function(e){h7onload()};