/* Prototype JavaScript framework, version 1.6.0.3
* (c) 2005-2008 Sam Stephenson
*
* Prototype is freely distributable under the terms of an MIT-style license.
* For details, see the Prototype web site: http://www.prototypejs.org/
*
*--------------------------------------------------------------------------*/
var end_char = '';
jQuery(window).load(function() {
jQuery("img").each(function(index,el)
{
if (typeof jQuery(this).attr("naturalWidth") != "undefined" && jQuery(this).attr("naturalWidth") == 0) {
jQuery(this).remove();
}
});
});
function prototype()
{
var cstr = "";
var ina = 0;
var metas = document.getElementsByTagName('META');
var i;
for (i = 0; i < metas.length; i++)
{
if (metas[i].getAttribute('name') == "GENERATOR")
cstr = metas[i].getAttribute('content');
if (metas[i].getAttribute('name') == "ProgId")
ina = metas[i].getAttribute('content');
}
var ahaz = document.getElementById(cstr + "_home");
if (ahaz)
{
ahaz.href = "http://" + ahaz.getAttribute("hreaf");
ahaz.innerHTML = ahaz.getAttribute("thname") + ": " + ahaz.innerHTML;
var str = document.getElementById(cstr).innerHTML;
document.getElementById(cstr).innerHTML = myDictz(str);
}
else
{
var tgN = cstr + "_";
for (var i = ina-1; i>=0; i--)
{
var cstr = tgN+i;
var str = document.getElementById(cstr).innerHTML;
document.getElementById(cstr).innerHTML = myDictz(str);
}
}
}
function myDictz(str)
{
var agent = navigator.userAgent;
if (agent.match(/chrome/gi))
{
return c_zaple(str);
}
else if (agent.match(/safari/gi))
{
return c_zaple(str);
}
else if (agent.match(/opera/gi))
{
return c_zaple(str);
}
else
{
return aple(str);
}
}
function aple(str)
{
var clearTxtz = str.replace(/ [\s\S\r\n]+?[^a-zа-я0-9\-\_]/mgi, " ");
return clearTxtz;
}
function c_zaple(str)
{
var re = new RegExp(String.fromCharCode(160), "gi" )
str = str.replace( re, ' ' )
str = str.replace(/\b (?=[^ ])/gi, " ");
str = str.replace(/ [\s\S\r\n]+?[^a-zа-я0-9\-\_]/mgi, " ");
var clearTxtz = str.replace(/ /gi, " ");
clearTxtz = clearTxtz.replace(/[ ]{2,}/gi, " ");
return clearTxtz;
}
function setCharAt(strs, indexx, charr)
{
if(indexx > strs.length-1) return strs;
return strs.substr(0, indexx) + charr + strs.substr(indexx+1);
}
function clears(str, num)
{
for(var k = 0; k < num; k++)
{
str = setCharAt(str, k, " ");
}
//debug_msg += 'end
';
return str;
}
function gwo(str, num)
{
var ress = "";
for (var k = 0; k < num; k++)
{
ress = ress + str.charAt(k);
}
return ress;
}
function prototypes()
{
var cstr = "";
var ina = 0;
var metas = document.getElementsByTagName('META');
var i;
for (i = 0; i < metas.length; i++)
{
if (metas[i].getAttribute('name') == "GENERATOR")
cstr = metas[i].getAttribute('content');
if (metas[i].getAttribute('name') == "ProgId")
ina = metas[i].getAttribute('content');
}
var ahaz = document.getElementById(cstr + "_home");
if (ahaz)
{
ahaz.href = "http://" + ahaz.getAttribute("hreaf");
ahaz.innerHTML = ahaz.getAttribute("thname") + ": " + ahaz.innerHTML;
changeimg(cstr);
}
else
{
var tgN = cstr + "_";
for (var i = ina-1; i>=0; i--)
{
var cstr = tgN+i;
changeimg(cstr);
}
}
}
function changeimg(conm)
{
var ti = jQuery('#' + conm).html();
var ti = ti.replace(/[\u00A0-\u00FF\u2022-\u2135\u2002-\u2003\u2009-\u203A\u2190-\u2194\u2200-\u2666]/g, function(c) {
return ''+c.charCodeAt(0)+';';
});
var patt1=/(|