window.onresize = resize_wm;
window.onerror = function(){}

var divTop,divLeft,divWidth,divHeight,docHeight,docWidth,objTimer,mytm,i = 0;

function getMsg()
{
try
{
//divTop = parseInt(document.getElementById("ctpop").style.top,0)
//divLeft = parseInt(document.getElementById("ctpop").style.left,10)
divHeight = parseInt(document.getElementById("ctpop").offsetHeight,10)
divWidth = parseInt(document.getElementById("ctpop").offsetWidth,10)
docWidth = document.body.clientWidth;
docHeight = document.body.clientHeight;
//document.getElementById("ctpop").style.top = parseInt(document.body.scrollTop,0) + docHeight + 0;// divHeight
//document.getElementById("ctpop").style.left = parseInt(document.body.scrollLeft,10) + docWidth - divWidth
document.getElementById("ctbody").style.visibility="visible"
objTimer = window.setInterval("move_wm()",12)
autocls()
}
catch(e){}
}


function resize_wm()
{
i+=1
try
{
divHeight = parseInt(document.getElementById("ctpop").offsetHeight,10)
divWidth = parseInt(document.getElementById("ctpop").offsetWidth,10)
docWidth = document.body.clientWidth;
docHeight = document.body.clientHeight;
//document.getElementById("ctpop").style.top = docHeight - divHeight + parseInt(document.body.scrollTop,0)
//document.getElementById("ctpop").style.left = docWidth - divWidth + parseInt(document.body.scrollLeft,10)
}
catch(e){}
}


function move_wm()
{
try
{
if (parseInt(document.getElementById("ctpop").style.top,10) <= (docHeight - divHeight + parseInt(document.body.scrollTop,10)))
{
window.clearInterval(objTimer)
objTimer = window.setInterval("resize_wm()",1)
}
//divTop = parseInt(document.getElementById("ctpop").style.top,10)
//document.getElementById("ctpop").style.top = divTop - 1
}
catch(e){}
}

function close_wm()
{
//document.getElementById('ctpop').style.visibility='hidden';
document.getElementById('ctbody').style.visibility='hidden';
document.getElementById('opwm').style.visibility='hidden';
if(objTimer) window.clearInterval(objTimer);
}

function mini_wm() 
{
document.getElementById('ctbody').style.visibility='hidden';
document.getElementById("opwm").style.visibility="visible";
}

function reop_wm(){
document.getElementById("opwm").style.visibility="hidden";
document.getElementById('ctbody').style.visibility='visible';
} 

function hold_wm()
{
if(mytm) clearTimeout(mytm);
}

function autocls()
{
mytm=setTimeout("mini_wm()",51900);
}





document.write("<DIV id=ctpop style='right: 0px; VISIBILITY: visible; WIDTH: 320px; POSITION: fixed; bottom:0 HEIGHT: 244px;' onmouseover='hold_wm()' onmouseout='autocls()' oncontextmenu='self.event.returnValue=false'>");
document.write("<div id=opwm style='position:relative; VISIBILITY: hidden;left:0px; top:-50px; height:26px; width:320px;'>");
document.write("<table style='width: 320px; height: 26px;border: 1px solid #999999;' cellspacing='0' cellpadding='0'>");
document.write("	<tr>");
document.write("		<td style='height: 26px;background-color:#333333;'><table width='320' height='26' border='0' cellpadding='0' cellspacing='0'>");
document.write("	<tr>");
document.write("		<td>");
document.write("			<img src='images/logo.jpg' width='260' height='26' onClick='reop_wm()' style='cursor:hand;'/></td>");
document.write("		<td width='16' height='26'></td>");
document.write("		<td width='50' height='26' style='text-align: center;'><table width='35' border='0' cellspacing='0' cellpadding='0'>");
document.write("              <tr>");
document.write("                <td><img src='images/open.jpg' width='15' height='15' onClick='reop_wm()' style='cursor:hand;' alt='展开'/></td>");
document.write("                <td width='5'></td>");
document.write("                <td><img src='images/close.jpg' width='15' height='15' onClick='close_wm()' style='cursor:hand;' alt='关闭'/></td>");
document.write("              </tr>");
document.write("            </table></td>");
document.write("	</tr>");
document.write("</table>");
document.write("</td>");
document.write("</tr>");
document.write("</table>");
document.write("</div>");
document.write("<DIV id=ctbody style='LEFT: 0px; VISIBILITY: hidden; WIDTH: 300px; POSITION: relative; TOP: 0px; HEIGHT: 218px;'>");
document.write("<table style='width: 320px; height: 218px;border: 1px solid #999999;' cellspacing='0' cellpadding='0'>");
document.write("	<tr>");
document.write("		<td style='height: 26px;background-color:#333333;'><table width='320' height='26' border='0' cellpadding='0' cellspacing='0'>");
document.write("	<tr>");
document.write("		<td>");
document.write("			<img src='images/logo.jpg' width='260' height='26' alt='' border='0'/></td>");
document.write("		<td width='16' height='26'></td>");
document.write("		<td width='50' height='26' style='text-align: center;'><table width='35' border='0' cellspacing='0' cellpadding='0'>");
document.write("              <tr>");
document.write("                <td><img src='http://www.hljradio.com/images/default/min.jpg' width='15' height='15' onClick='mini_wm()' style='cursor:hand;' alt='最小化'/></td>");
document.write("                <td width='5'></td>");
document.write("                <td><img src='http://www.hljradio.com/images/default/close.jpg' width='15' height='15' onClick='close_wm()' style='cursor:hand;' alt='关闭'/></td>");
document.write("              </tr>");
document.write("            </table></td>");
document.write("	</tr>");
document.write("</table>");
document.write("</td>");
document.write("	</tr>");
document.write("	<tr>");
document.write("		<td style='height: 240px;background-color:#333333;'>");document.write(" <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='320' height='240'>");
 document.write(" <param name='movie' value='http://www.hljradio.com/images/default/20110919.swf' />");
 document.write(" <param name='quality' value='high' />");
 document.write(" <embed src='http://www.hljradio.com/images/default/20110919.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='320' height='240'>");
				 document.write("</embed>");
 document.write("</object>");
			   
			
document.write("	</tr>");
document.write("</table>");
document.write("</DIV>");
document.write("</DIV>");
setTimeout("getMsg();",990);
