function ExpandGroupList(obj)
{
var x, dis;
if (obj.node == 1)
{
obj.node = 0;
obj.src = "http://yczx80.dooite.com:80/pic/plus1.gif";
dis = "none";
}
else
{
obj.node = 1;
dis = "inline";
obj.src = "http://yczx80.dooite.com:80/pic/minus1.gif";
}
for(var x = obj.parentNode.parentNode.rowIndex + 1; x < document.all.CTState.rows.length; x ++)
{
if (document.all.CTState.rows[x].cells.length == 1)
break;
document.all.CTState.rows[x].style.display = dis;
}
}
function ActiveService(nMode)
{
if (nMode == 1)
document.all.TitleID.style.backgroundColor = "#10246A";
else
document.all.TitleID.style.backgroundColor = "gray";
}
function MinimizeServiceWin()
{
if (document.all.MainServiceTR.style.display == "none")
{
document.all.MainServiceTR.style.display = "inline";
document.all.MinImg.src = "http://yczx80.dooite.com:80/pic/Minimize.gif";
}
else
{
document.all.MainServiceTR.style.display = "none";
document.all.MinImg.src = "http://yczx80.dooite.com:80/pic/Maximize.GIF";
}
}
var g_oDrag, g_posX, g_posY;
function WOLBeginDrag(obj)
{
document.body.setActive();
document.onmousemove = WOLDragingObj;
document.onmouseup = WOLEndDragObj;
document.ondragstart = WOLDragingObj;
g_posX = event.screenX - obj.style.pixelLeft;
g_posY = event.screenY - obj.style.pixelTop;
obj.style.zIndex += 1;
obj.setCapture();
obj.setActive();
if (typeof(g_oDrag) == "object")
g_oDrag.style.zIndex = g_oDrag.oldIndex;
g_oDrag = obj;
g_oDrag.oldIndex = g_oDrag.style.zIndex;
g_oDrag.style.zIndex = 50;
}
function WOLDragingObj()
{
g_oDrag.style.pixelLeft = event.screenX - g_posX;
g_oDrag.style.pixelTop = event.screenY - g_posY;
event.returnValue = false;
}
function WOLEndDragObj()
{
document.onmousemove = null;
document.onmouseup = null;
document.ondragstart = null;
document.releaseCapture();
document.onmousemove = null;
g_oDrag.oldx = g_oDrag.style.pixelLeft - document.body.scrollLeft;
g_oDrag.oldy = g_oDrag.style.pixelTop - document.body.scrollTop;
}
function PushButton(obj)
{
obj.style.borderLeftColor = "#404040";
obj.style.borderTopColor = "#404040";
obj.style.borderRightColor = "white";
obj.style.borderBottomColor = "white";
obj.all.MinImg.style.borderLeft = "1px solid #808080";
obj.all.MinImg.style.borderTop = "1px solid #808080";
obj.all.MinImg.style.borderRight = "0px none";
obj.all.MinImg.style.borderBottom = "0px none";
event.cancelBubble = true;
}
function PopButton(obj)
{
obj.style.borderLeftColor = "white";
obj.style.borderTopColor = "white";
obj.style.borderRightColor = "#404040";
obj.style.borderBottomColor = "#404040";
obj.all.MinImg.style.borderLeft = "0px none";
obj.all.MinImg.style.borderTop = "0px none";
obj.all.MinImg.style.borderRight = "1px solid #808080";
obj.all.MinImg.style.borderBottom = "1px solid #808080";
}
var g_nUsers = 0;
function UserChange(UserName, nChange)
{
if ((UserName == "客人") || (UserName.indexOf("G_") == 0))
return;
switch (nChange)
{
case 1:
g_nUsers ++;
break;
case 2:
g_nUsers --;
break;
case 3:
g_nUsers = 0;
break;
default:
break;
}
CheckState(UserName, nChange);
}
function CheckState(UserName, nChange)
{
for (var x = 0; x < CTState.rows.length; x++)
{
if (((UserName == CTState.rows[x].cells[0].node) || (nChange == 3)) && (CTState.rows[x].cells.length > 1))
{
if (nChange == 1)
{
CTState.rows[x].style.color = "black";
CTState.rows[x].cells[1].innerText = "[交谈]";
CTState.rows[x].online = 1;
CTState.rows[x].all.UserImg.src = "http://yczx80.dooite.com:80/pic/msn.gif";
}
else
{
CTState.rows[x].style.color = "gray";
CTState.rows[x].cells[1].innerText = "[留言]";
CTState.rows[x].all.UserImg.src = "http://yczx80.dooite.com:80/pic/msn1.gif";
CTState.rows[x].online = 0;
}
}
}
}
var oPopTimer;
function ShowPageMessage(msg)
{
var ss = msg.split("|");
document.all.JNet_MsgBox.msg = msg;
document.all.JNet_MsgBox.style.width = 240;
document.all.JNet_MsgBox.style.height = 180;
document.body.focus();
document.all.JNet_MsgBox.contentWindow.document.write("
" +
"" +
"
" +
"" +
"| " +
ss[2] + ": | " +
" |
" +
"| " +
" " + ss[5] +
" |
");
document.all.JNet_MsgBox.style.display = "inline";
document.all.JNet_MsgBox.style.left = document.body.clientWidth - document.all.JNet_MsgBox.contentWindow.document.body.scrollWidth;
document.all.JNet_MsgBox.style.top = document.body.clientHeight - document.all.JNet_MsgBox.contentWindow.document.body.scrollHeight;
document.all.JNet_MsgBox.style.width = document.all.JNet_MsgBox.contentWindow.document.body.scrollWidth;
document.all.JNet_MsgBox.style.height = 1;
nOffset = 0;
oPopTimer = window.setInterval(PopUpMsg, 20);
}
var nOffset;
function PopUpMsg()
{
nOffset += 2;
if (parseInt(document.all.JNet_MsgBox.style.width) < document.all.JNet_MsgBox.contentWindow.document.body.scrollWidth)
{
document.all.JNet_MsgBox.style.width = Math.max(240, document.all.JNet_MsgBox.contentWindow.document.body.scrollWidth);
document.all.JNet_MsgBox.style.left = document.body.clientWidth - parseInt(document.all.JNet_MsgBox.style.width);
}
if (nOffset < document.all.JNet_MsgBox.contentWindow.document.body.scrollHeight + 1)
{
document.all.JNet_MsgBox.style.top = document.body.clientHeight - nOffset - 2;
document.all.JNet_MsgBox.style.height = nOffset + 2;
}
else
window.clearInterval(oPopTimer);
}
function OpenChat(obj)
{
if (typeof(obj) == "object")
{
if (obj.online == 1)
RealMsg(obj.cells[0].innerText);
else
window.open("http://yczx80.dooite.com:80/TableAction.asp?Clan=1&CookID=" + JNet_CookieID + "&ActionID=103", "_blank",
"width=480,height=360,scrollbars=0,status=0");
}
else
{
if (g_nUsers > 0)
RealMsg("ANY");
else
window.open("http://yczx80.dooite.com:80/TableAction.asp?Clan=1&CookID=" + JNet_CookieID + "&ActionID=103", "_blank",
"width=480,height=360,scrollbars=0,status=0");
}
}
var swfObj, swfTimer;
function PlaySWF(obj, AffixFile)
{
var ss = AffixFile.split("@:@");
if (document.all.JNet_Flash.parentNode.tagName != "BODY")
document.body.appendChild(document.all.JNet_Flash);
if (typeof(obj) == "object")
{
if (obj.innerText == "点击停止")
return StopSWF();
obj.innerText = "点击停止";
}
if (swfTimer > 0)
{
window.clearTimeout(swfTimer);
swfObj.innerText = "点击播放";
}
document.all.JNet_Flash.movie = ss[0] + "&Clan=1&CookID=" + JNet_CookieID;
document.all.JNet_Flash.style.display = "inline";
if (typeof(obj) == "object")
swfTimer = window.setTimeout("StopSWF();", 60000);
swfObj = obj;
}
function StopSWF()
{
document.all.JNet_Flash.movie = "http://yczx80.dooite.com:80/skin/blank.swf";
document.all.JNet_Flash.style.display = "none";
if (typeof(swfObj) == "object")
swfObj.innerText = "点击播放";
window.clearTimeout(swfTimer);
swfTimer = 0;
}
function ClickMessage()
{
// RealMsg(document.all.JNet_MsgBox.contentWindow.document.all.oTitle.node);
// HideMessage();
}
function HideMessage()
{
document.all.JNet_MsgBox.style.display = "none";
}
function ShowService(nType)
{
if (nType == 1)
{
if (typeof(document.all.OnlineImg) == "object")
document.all.OnlineImg.style.display = "inline";
if (typeof(document.all.JNet_Service) == "object")
document.all.JNet_Service.style.display = "inline";
}
else
{
if (typeof(document.all.OnlineImg) == "object")
document.all.OnlineImg.style.display = "none";
if (typeof(document.all.JNet_Service) == "object")
document.all.JNet_Service.style.display = "none";
}
}
function SetServicePos(nPos)
{
var obj = document.all.JNet_Service;
if (typeof obj != "object")
return;
ShowService(1);
switch (nPos)
{
case 0: //left top list
break;
case 1: //right top list
obj.style.left = document.body.clientWidth - obj.offsetWidth;
break;
case 2: //left bottom list
obj.style.top = document.body.clientHeight - obj.offsetHeight;
break;
case 3: //right bottom list
obj.style.left = document.body.clientWidth - obj.offsetWidth;
obj.style.top = document.body.clientHeight - obj.offsetHeight;
break;
case 4: //left top mini list
MinimizeServiceWin();
break;
case 5: //right top mini list
MinimizeServiceWin();
obj.style.left = document.body.clientWidth - obj.offsetWidth;
break;
case 6: //left bottom mini list
MinimizeServiceWin();
obj.style.top = document.body.clientHeight - obj.offsetHeight;
break;
case 7: //right bottom mini list
MinimizeServiceWin();
obj.style.left = document.body.clientWidth - obj.offsetWidth;
obj.style.top = document.body.clientHeight - obj.offsetHeight;
break;
case 8: //left top icon
break;
case 9: //right top icon
break;
case 10: //left bottom icon
break;
case 11: //right bottom icon
break;
case 12: //hidden
ShowService(0);
break;
}
obj.oldx = obj.style.pixelLeft;
obj.oldy = obj.style.pixelTop;
}
var JNet_CookieID;
try
{
// if (window.top == window)
// {
JNet_CookieID = getCookieValue("JofoID");
if (JNet_CookieID == null)
JNet_CookieID = 252714;
setCookieValue("JofoID", JNet_CookieID, 180);
document.write("");
document.write("