<!-- Замена ссылки офсайт в превью на "оригинал" -->
<script type="text/javascript">
function insertUploadedImage(img){var b='img]',c='url',prev='['+b+img.src+'[/'+b,lnk=$(img).attr('data-img-url'),link='['+c+'='+lnk+']',orig='['+b+lnk+'[/'+b;if($('#selected-insert-format').val()=='viewer')bbcode(link+prev+'[/'+c+']\n','');else bbcode(orig+'\n','');}
</script>
<!-- //ПОДГРУЗКА КОНТЕНТА CМАЙЛОВ Ч2,HTML низ/ -->
<script>tstSmileLoad_2()</script>
<script type="text/javascript">
function select_text(elem){if(window.getSelection){var s=window.getSelection();if(s.setBaseAndExtent){s.setBaseAndExtent(elem,0,elem,elem.innerText.length-1);}
else{var r=document.createRange();r.selectNodeContents(elem);s.removeAllRanges();s.addRange(r);}}
else if(document.getSelection){var s=document.getSelection();var r=document.createRange();r.selectNodeContents(elem);s.removeAllRanges();s.addRange(r);}
else if(document.selection){var r=document.body.createTextRange();r.moveToElementText(elem);r.select();}}
</script>
<!--Слайдшоу в Топике -->
<script>if('\v'=='v'){$(document).ready(function(){
$.getScript("https://forumstatic.ru/files/0010/b4/f8/96425.js");});
} else {$.getScript("https://forumstatic.ru/files/0010/b4/f8/96425.js");}
</script>
<script type="text/javascript">
/********************************************************
МАССИВ ССЫЛОК НА КАРТИНКИ, ИСКЛЮЧАЕМЫХ ИЗ СЛАЙД-ШОУ
********************************************************/
var Arr_notPreview =[
"http://s4.rimg.info/99ce36ce7049923eaac6202918853e3d.gif",
"http://uploads.ru/i/v/w/x/vwxPh.gif",
"http://uploads.ru/i/O/s/d/OsdPJ.gif",
"http://uploads.ru/i/O/z/K/OzK10.png",
"http://uploads.ru/i/Y/L/a/YLaml.gif",
"http://uploads.ru/i/L/b/3/Lb3qT.gif",
"http://uploads.ru/i/s/8/p/s8p0j.gif",
"http://uploads.ru/i/H/k/P/HkPoC.gif",
"http://s1.uploads.ru/i/Ifyce.gif",
"http://s2.rimg.info/9685c4858ff836cff3451286e46d3a7d.gif",
"http://s3.rimg.info/3da96f60008c5a526ed3cd71de1393f2.gif",
"http://uploads.ru/i/b/d/p/bdpmv.gif",
"http://uploads.ru/i/m/h/Q/mhQEM.gif",
"http://uploads.ru/i/F/e/C/FeCA7.gif",
"http://uploads.ru/i/P/6/k/P6kRn.gif",
"http://uploads.ru/i/D/M/A/DMAsv.gif",
"http://uploads.ru/i/J/q/r/Jqrhu.gif",
"http://uploads.ru/i/r/g/s/rgsRC.gif",
"http://uploads.ru/i/F/r/e/FreY8.gif",
"http://s1.uploads.ru/i/PDtla.gif",
"http://uploads.ru/i/Q/s/E/QsEG6.gif",
"http://uploads.ru/i/S/0/F/S0F8y.gif",
"http://uploads.ru/i/a/F/C/aFCfh.gif",
"http://uploads.ru/i/t/T/M/tTM4H.gif",
"http://uploads.ru/i/C/g/y/Cgy2p.gif",
"http://uploads.ru/i/K/6/7/K67f3.gif",
"http://s4.rimg.info/8c05fffcbe08ca56760ab2427835958f.gif",
"http://uploads.ru/i/Y/U/e/YUevd.gif",
"http://s19.rimg.info/637bee705cbaf44768cedf66f602784e.gif",
"http://s19.rimg.info/f0a16c1a0f9c89e9b65119954932b2e4.gif",
"http://uploads.ru/i/P/b/6/Pb61H.gif",
"http://uploads.ru/i/m/0/2/m02Gf.gif",
"http://s10.rimg.info/e975bc40079d953f537888325e728545.gif",
"http://uploads.ru/i/6/f/d/6fdm4.gif",
"http://mirgif.com/lubov/love_049.gif",
"http://uploads.ru/i/t/U/V/tUVd7.gif",
"http://s2.rimg.info/d913d5846aa1b3d705cff4d58a4775c7.gif",
"http://blestki.com/RAZDELITEL/25.gif",
"http://s2.rimg.info/b2b50d66dd0e537c0e3b4dce8434e8c0.gif",
"http://cool-pictures.ucoz.ru/_ph/110/2/382045593.gif",
"http://s17.rimg.info/77e79e7d4ec34c3f08d980c717863921.gif",
"http://miranimashek.com/_ph/100/2/613803777.gif",
"http://s6.rimg.info/8bec7236112a64f054943736bbc39c79.gif",
"http://uploads.ru/i/v/p/b/vpbSa.gif",
"http://savepic.su/5201933.gif",
"http://uploads.ru/i/1/E/k/1Ekxo.gif",
"http://s1.uploads.ru/i/m/F/H/mFHzw.gif",
"http://s1.uploads.ru/i/3/2/f/32fp4.gif",
"http://s11.rimg.info/3b79bb89fd4298bb6ff2fd106001da79.gif",
"http://uploads.ru/i/G/x/M/GxMfW.gif",
"http://uploads.ru/i/1/H/n/1HnRz.gif",
"http://uploads.ru/i/r/M/T/rMThl.gif",
"http://uploads.ru/i/m/W/R/mWRzP.gif",
"http://s17.rimg.info/4d2d2b5b17e1677833615848de6af869.gif",
"http://smayli.ru/data/smiles/lubova-545.gif",
"http://s10.rimg.info/e5413e915f3dddb80ec369a286f956e7.gif",
"http://s5.rimg.info/013ab370b70036d92a69443e57b1ef8e.gif",
"http://uploads.ru/i/d/4/Q/d4Qy9.gif",
"End" ];
// var guest_access=true;
</script>
<style>
.Obrml1{
border:outset #fff 1px;
margin-bottom:2px;
}
.L_5 {
background-attachment: scroll;
background-clip: border-box;
background-color: #000000;
background-image: none;
background-origin: padding-box;
background-position: 0% 0%;
background-repeat: repeat;
background-size: auto;
z-index: 9999;
position: fixed;
}
.L_5, .L_6, .L_7 {
left: 0px;
top: 0px;
width: 100%;
height: 100%;
display: block;
}
.Obrml{
border:solid #F7DCB6 1px;
border-width:9px 5px 9px 5px;
opacity:1;
}
.tipsy .tipsy-inner {
letter-spacing:1px!important;
}
.tipsy.slide .tipsy-inner {
font-size:12px!important;
}
</style>
<!--<link rel="stylesheet" href="https://forumstatic.ru/files/0010/b4/f8/26092.css"/>-->
<script>
$(".post-content .postimg").parent("a[href*='http://uploads.ru/?v=']").each(function(){var a=($(this).attr("href"));a=a.replace('http://uploads.ru/?v=','http://s1.uploads.ru/i/');$(this).attr("href",a);});if($("#pun-viewtopic").length){if(typeof(guest_access)=='undefined'){var guest_access=false;}
var FirstCheck_to_HOST=true;$(".post .post-body img[src^='/uploads/']").each(function(){$(this).addClass("postimg");$(this).attr("alt",$(this).attr("src"));});if(typeof(Arr_notPreview)!='undefined'){for(var i=0;i<(Arr_notPreview.length-1);i++){$(".post img[src='"+Arr_notPreview[i]+"'].postimg").each(function(){$(this).addClass("notPreview");});}}
$(".post a .postimg").each(function(){var a1=$(this).parent("a").attr("href");var a2=$(this).attr("src");var a3=$(this).attr("alt");var a=a1.replace(/^\S*\/click\.php\?/img,'')
$(this).parents("a").attr("href",a);var img_extens=['jpg','png','gif','jpeg'];var ImgExt=false,aNotExt;for(var i in img_extens){var pattern="\\."+img_extens[i]+"$";var regexp=new RegExp(pattern,"img");aNoExt=a.replace(regexp,'');if(a!=aNoExt){ImgExt=true;break}};if(ImgExt){var S=aNoExt.replace(/\S{5}\/\/uploads\.ru\/\?v=/img,'');if(S!=aNoExt){S=a.replace(/\S{5}\/\/uploads\.ru\/\?v=/img,'');S=a3.replace(/\/[^\/]*$/img,'/'+S);a=S.replace(/\/\/uploads.ru\/t\//img,'//uploads.ru/i/')};}else{if(a.indexOf("http://savepic")!=-1){S=a3.replace(/m(\.\S{3,4})$/img,'$1');if(S!=a3){a=S;ImgExt=true;}}}
if(ImgExt){if($.trim(a)!=''){$(this).attr("alt",a);$(this).parents("a").attr("href",a)}
else{$(this).parents("a").attr("href",$(this).attr("src"));}}else{$(this).parents("a").addClass("hTml")}});function SetIload(a){a.addClass("Iload");a.find(".postimg").attr("title","Просмотр Слайд-шоу?");a.attr("rel","iLoad|Post-image");var b=a.parents(".post").find(".pa-author a").text();var c=a.parents(".post").find("h3:first span strong:first").text();str="|post "+c+"; Aвтор: "+b;a.attr("a-title",str);a.attr("title",str);}
function ImgPostLoad(){$(".post .postimg").not(".notPreview").each(function(){var w=parseInt($(this).width(),10);var h=parseInt($(this).height(),10);j=w-14;var a=$(this).parents("a");var b=$(this).attr("alt");var c='<span class=Obrml1 style="display:inline-block;"><span class=Obrml style="width:'+j+'px;display:inline-block;"></span></span>';if(a.length){$(this).addClass("Ref")}else{if(w>67&&h>65){$(this).addClass("NoRef");$(this).wrap('<a href="'+b+'" target="_blank"></a>');}}a=$(this).parents("a");if(!a.hasClass("hTml")){SetIload($(this).parent("a"));a.wrap(c);}else{a.attr("title","Переход по ссылке");}});}
var tst='<div id=show_stLoad style="width:100%;height:12px;border:none transparent;visibility:hidden;"><img id="Gif_test" style="height:100%;width:100%;" src="../i/blank.gif" /></div>';$("#html-footer").prepend(tst);function AnimTstLoad(){var a=$("#show_stLoad1,#t_stLoad"),b=$("#show_stLoad1 *");b.animate({opacity:.05},1800,"linear",function(){a.replaceWith("");});}
function TstLoad(){var a=$("#Gif_test").height();if(a>11){ImgPostLoad()}else{timerID=setTimeout("TstLoad()",100);return;}}
if(GroupID!=3||guest_access){TstLoad();$(".post .Iload .postimg").mousedown(function(){$(this).parent(".Iload").attr("title",$(this).parent(".Iload").attr("a-title"));});$(".post .Iload .postimg").mouseover(function(){$(this).parents(".Iload").removeAttr("title")}).mouseout(function(){$(this).parents(".Iload").attr("title",$(this).parents(".Iload").attr("a-title"))});$("#pun-viewtopic a.Iload img.postimg").tipsy({live:true,gravity:'w slide'});$("#pun-viewtopic a.hTml").tipsy({live:true,gravity:'w slide'});}}
</script>
<!-- End//Слайдшоу в Топике -->