﻿function ShowFocus(width, height) {
    var interval_time = 3;
    var focus_width = width;
    var focus_height = height;
    var text_height = 0;
    var text_mtop = 0;
    var text_lm = 0;
    var textmargin = text_mtop + "|" + text_lm;
    var textcolor = "#FFFFFF|0x000000";
    var text_align = 'center';
    var swf_height = focus_height + text_height + text_mtop;
    var text_size = 14;

    var borderStyle = "1|0xe0e0e0|100";

    var links = 'http://www.21578.com/news/content.aspx?id=509|http://www.21578.com/news/content.aspx?id=510|http://www.21578.com/news/content.aspx?id=509|http://www.21578.com/news/content.aspx?id=510'
    var pics = '../images/focus01.jpg|../images/focus02.jpg|../images/focus03.jpg|../images/focus04.jpg'
    var texts = ' ||| '
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + focus_width + '" height="' + swf_height + '">');
    document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="../include/focus.swf"> <param name="quality" value="high"><param name="Wmode" value="transparent">');
    document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
    document.write('<param name="FlashVars" value="pics=' + pics + '&links=' + links + '&texts=' + texts + '&borderwidth=' + focus_width + '&borderheight=' + focus_height + '&textheight=' + text_height + '&textmargin=' + textmargin + '&textcolor=' + textcolor + '&borderstyle=' + borderStyle + '&text_align=' + text_align + '&interval_time=' + interval_time + '&textsize=' + text_size + '">');
    document.write('<embed src="../include/focus.swf" wmode="opaque" FlashVars="pics=' + pics + '&links=' + links + '&texts=' + texts + '&borderwidth=' + focus_width + '&borderheight=' + focus_height + '&textheight=' + text_height + '&textmargin=' + textmargin + '&textcolor=' + textcolor + '&borderstyle=' + borderStyle + '&text_align=' + text_align + '&interval_time=' + interval_time + '&textsize=' + text_size + '" menu="false" bgcolor="#ffffff" quality="high" width="' + focus_width + '" height="' + swf_height + '" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>');

}
function enterroom(roomid, roomtype) {
    var path = "zyurl://CommandType=";
    if (roomtype == 2) {
        path = path + "bigstart";
    }
    else if (roomtype == 3) {
        path = path + "gamestarstart";
    }
    else { return false; }
    path = path + "&RoomID=" + roomid;
    path = path + "&RoomName=big&RoomTypeName=bigroom";
    location.href = path;
}
function WriteDownloadMessage() {
    var mess = " <h3>众游世界娱乐客户端</h3>";
    mess = mess + "<p>软件版本：2.0.0.41</p>";
    mess = mess + "<p>软件大小：26.3M</p>";
    mess = mess + "<p>操作系统：Win XP/2003/Vista/7</p>";
    mess = mess + "<p>更新时间：2011-11-03</p>";
    mess = mess + "<div class='down'><a href='http://60.191.100.198/ZYIMSetup.exe'><img src='../images/download01.gif' alt='' /></a></div>";
    mess = mess + "<div class='down'><a href='http://61.158.139.141/ZYIMSetup.exe'><img src='../images/download02.gif' alt='' /></a></div>";
    document.write(mess);
}
function WriteSignerMessage() {
    var mess = '';
    mess += '<div class="showsigner"><div class="img"><img src="../upload/signer/6.gif" alt="" /></div>';
    mess += '<div class="name">咖啡</div></div>';
    mess += '<div class="showsigner"><div class="img"><img src="../upload/signer/7.jpg" alt="" /></div>';
    mess += '<div class="name">柔情</div></div>';
    mess += '<div class="showsigner"><div class="img"><img src="../upload/signer/3.gif" alt="" /></div>';
    mess += '<div class="name">菜小依</div></div>';
    mess += '<div class="showsigner"><div class="img"><img src="../upload/signer/4.gif" alt="" /></div>';
    mess += '<div class="name">天籁小黑</div></div>';
    mess += '<div class="showsigner"><div class="img"><img src="../upload/signer/5.gif" alt="" /></div>';
    mess += '<div class="name">贼婆</div></div>';
    document.write(mess);
}
