﻿//关闭,最小化,最大化
var 
  divHeight=28*QQNum+50;
  qqBodyHeight=28*QQNum+10;
  
function showDiv(){
	document.getElementById('PopWindow').style.height = divHeight+'px';
	document.getElementById('showvod').style.display = 'none';
	document.getElementById('hidevod').style.display = 'block';
}

function hideDiv(){
	document.getElementById('PopWindow').style.height = 29 + 'px';
	document.getElementById('hidevod').style.display = 'none';
	document.getElementById('showvod').style.display = 'block';	
}

function closeDiv(){
	document.getElementById('PopWindow').style.display = 'none';
}

try
{
    setTimeout('hideDiv();', 20000);  
    //以下是为了兼容 xhtml1.0 和 html4两种情况 / ie6 ie7 ff 的兼容用hack 
    if( typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat')
    {
        document.writeln('<div  style="z-index:9;right:0;bottom:0; height:'+divHeight+'px;width:140px;overflow:hidden;POSITION:fixed;_position:absolute; _margin-top:expression(document.documentElement.clientHeight-this.style.pixelHeight+document.documentElement.scrollTop);filter:Alpha(Opacity=70);" id="PopWindow" >');
    }
    else 
    {
        document.writeln('<div  style="z-index:9;right:0;bottom:0; height:'+divHeight+'px;width:140px;overflow:hidden;POSITION:fixed;*position:absolute; *top:expression(eval(document.body.scrollTop)+eval(document.body.clientHeight)-this.style.pixelHeight);filter:Alpha(Opacity=70);" id="PopWindow" >');
    }
    document.writeln('<div style="z-index:9; POSITION: absolute; width:140px; height:30px; overflow:hidden;">');
    document.writeln('<span style="CURSOR: pointer;float:left; width:85px; height:14px; clear:none;overflow:hidden;margin:10px 5px 0px 0px;  " onmouseover=showDiv()></span>');
    document.writeln('<span style="CURSOR: pointer;float:right;width:15px; height:14px; clear:none;margin:9px 7px 0px 3px;" onclick=closeDiv()></span>');
    document.writeln('<span style="CURSOR: pointer;float:right;width:15px; height:14px; clear:none;overflow:hidden;display:none;  margin:9px 2px 0px 0px;background-image:url(images/qq_max.gif);" onclick=showDiv() id="showvod"></span>');
    document.writeln('<span style="CURSOR: pointer;float:right;width:15px; height:14px; clear:none;overflow:hidden;display:bolck; margin:9px 1px 0px 0px;background-image:url(images/qq_min.gif);" onclick=hideDiv() id="hidevod"></span>');
    document.writeln('</div> ');
    
    
    document.writeln('<table border="0" width="140" cellspacing="0" cellpadding="0">');
    document.writeln('<tr>');
    document.writeln('<td align="left" height="33" background="images/qq_top.gif"></td>');
    document.writeln('</tr>');
    document.writeln('<tr>');
    document.writeln('<td align="center" background="images/qq_middle.gif"><iframe scrolling=no frameborder=0 width=130 height='+qqBodyHeight+' src="qq.aspx"></iframe></td>');
    document.writeln('</tr>');
    document.writeln('<tr>');
    document.writeln('<td height="5" background="images/qq_bottom.gif"></td>');
    document.writeln('</tr>');  
    document.writeln('</table> ');
    document.writeln('</div>');
}
catch(err)
{
}
