/*
Name of project: FHM
Author:Sergej Rozkov <s.rockov@citrus.lt>
*/

$(document).ready(function(){
    $("a:has(*[id='Logo'])").addClass("tLogo");

    /* Mozilla Firefox fix */
    if ($.browser.mozilla) {
        $('#Site .nRContent .Begin').height($('#Site .nLContent').height()).css({position:'relative'}).width(100);
        $('#Next #Site #Flash').height($('#Site .nLContent').height()-12).css({position:'absolute', top:'8', left:'8', borderBottom:'2px solid black'});
    }

    /* OPERA fix */
    if ($.browser.opera) {
        $('#Next #Site .nRContent .Begin').css({position:'relative', width:'100'});
        $('#Next #Site #Flash').height($('#Next #Site .nLContent').height()-12).css({position:'absolute', borderBottom:'2px solid black'});
    }

    /* SAFARI fix */
    if ($.browser.safari) {
        $('.wSite').css({    width:'978px' });
        $('#HCMenu').css({   width:$('.wSite').width()+11, right:'-2px' });
        $('#EndR').css({     width:$('#EndR').width(), position:'absolute', right:'222px' });
    }

    /* Internet Exlporer fix */
    if ($.browser.msie) {
        /* if ($('#h2bg').width() > 460) { $('#h2bg').width(460); }*/ /* Instead of max-width:75% */
        /* MenSide strut between left and right site parts */
        /*
        $('#Footer .nRBlocks').append($('<span class="Strut"></span>'));
        $(#Footer .nRBlocks .Strut').css({ width:'15px', height:'15px', backgroundColor:$('.bgFooter').css('backgroundColor'), position:'absolute', right:'13px', top:'-11px', fontSize:'0'}); 
        */
    }

});