/* generated javascript */
var skin = 'vector';
var stylepath = '/skins';

/* MediaWiki:Common.js */
//<source lang="javascript">


// JavaScript Document// Import scripts specific to editing pages
if (wgAction == "edit" || wgAction == "submit")
{
    importScript("MediaWiki:Editpage.js")
}
 
/** Main Page layout fixes *********************************************************
 *
 *  Description: Adds an additional link to the complete list of languages available.
 */
 
if (wgPageName == 'Главная_страница' || wgPageName == 'Обсуждение:Главная_страница') 
    addOnloadHook(function () {
        var nstab = document.getElementById('ca-nstab-main')
        if (nstab && wgUserLanguage=='ru') 
        while (nstab.firstChild) nstab = nstab.firstChild
        nstab.nodeValue = 'Главная'
    }
)

/* Scripts specific to Internet Explorer */
 
if (navigator.appName == "Microsoft Internet Explorer")
{
    /* Internet Explorer bug fix  */
    var oldWidth;
    var docEl = document.documentElement;
 
    function fixIEScroll()
    {
        if (!oldWidth || docEl.clientWidth > oldWidth)
            doFixIEScroll();
        else
            setTimeout(doFixIEScroll, 1);
 
        oldWidth = docEl.clientWidth;
    }
 
    function doFixIEScroll() {
        docEl.style.overflowX = (docEl.scrollWidth - docEl.clientWidth < 4) ? "hidden" : "";
    }
 
    document.attachEvent("onreadystatechange", fixIEScroll);
    document.attachEvent("onresize", fixIEScroll);

  
    /* Remove need for CSS hacks regarding MSIE and IPA  */
    if (document.createStyleSheet) 
    {
        document.createStyleSheet().addRule('.IPA', 'font-family: "Doulos SIL", "Charis SIL", Gentium, "DejaVu Sans", Code2000, "TITUS Cyberbit Basic", "Arial Unicode MS", "Lucida Sans Unicode", "Chrysanthi Unicode";');
    }
 
    // In print IE (7?) does not like line-height
    appendCSS( '@media print { sup, sub, p, .documentDescription { line-height: normal; }}');
 
    // IE overflow bug
    appendCSS('div.overflowbugx { overflow-x: scroll !important; overflow-y: hidden !important; } div.overflowbugy { overflow-y: scroll !important; overflow-x: hidden !important; }');
 
    //Import scripts specific to Internet Explorer 6
    if (navigator.appVersion.substr(22, 1) == "6") 
    {
        importScript("MediaWiki:IE6Fixes.js")
    }
 
}

//</source>

/* MediaWiki:Vector.js */
/* Указанный здесь JavaScript будет загружен всем участникам, использующим векторную тему оформления  */