
        /* popup window */
function chatOpenPopup(url, name, nw, nh) {
    var w_w = nw ? nw : 750, w_h = nh ? nh : 500;
    var w = window.open(url, name, 'width=' + w_w + ',height=' + w_h + ',location=1,status=1,resizable=yes,scrollbars=1');

    var coords = getCenteredCoords(w_w, w_h);
    try {
        w.moveTo(coords[0],coords[1]);
    } catch(e) {}
    return false;
};
function getCenteredCoords(width, height) {
    var xPos = null;
    var yPos = null;
    var parentSize;
    var parentPos;
    if (window.ActiveXObject) {
        parentSize = [document.documentElement.clientWidth, document.documentElement.clientHeight];
        parentPos= [window.screenLeft, window.screenTop];
    } else {
        parentSize = [window.outerWidth, window.outerHeight];
        parentPos= [window.screenX, window.screenY];
    }
    xPos = parentPos[0] +
           Math.max(0, Math.floor((parentSize[0] - width) / 2));
    yPos = parentPos[1] +
           Math.max(0, Math.floor((parentSize[1] - (height*1.25)) / 2));
    return [xPos, yPos];
};
        document.write('<link href="http://st1.chatovod.ru/css/widget/style_mini.css?3" rel="stylesheet" media="all" />');
        
     document.write('<style type="text/css">'+
        '.chatovodchatHeader {background-color:#5eacd6;}'+
                '.chatovodchat {border-color:#0743db;}'+
                '.chatovodchatHeader {color:#333336;}'+
                '.chatovodchatHeader .chatovodchatTitle {text-shadow:1px 1px 0 #040500;}'+

                'a.chatovodenter, a.chatovodenter:visited {background-color:#3636d1;}'+
                'a.chatovodenter, a.chatovodenter:visited {border-color:#4d0ffa;}'+
                'a.chatovodenter, a.chatovodenter:visited {color:#fdfff5;}'+
                'a.chatovodenter, a.chatovodenter:visited {text-shadow:1px 1px 0 #010a1a;}'+
                'a.chatovodenter:hover {background-color:#020d57;}'+
    '</style>');
    
        document.write('<div class="chatovodchat" style="width:250px">');
        document.write('<div class="chatovodchatHeader"><div class="chatovodchatHeaderWrapper"><div class="chatovodchatTitle">рассуждалка</div></div></div>');
        document.write('<div class="chatovodchatMain"><div class="chatovodchatMainWrapper"><p>Сейчас в чате 0 чел.</p><div style="margin-top:3px;"><a class="chatovodenter" href="http://ooaybolit.chatovod.ru/widget/" onclick="return false;" onmouseup="return chatOpenPopup(\'http://ooaybolit.chatovod.ru/widget/\',\'chat\');">Войти в чат</a>            </div>        </div>   </div>');
        document.write('</div>');