
document.writeln("<style>img{border:0;}</style><div id=\"divMenu\" style=\"Z-INDEX: 1;  WIDTH: 110px; POSITION:absolute; TOP:300px; right:50px; font-size:12px; \">");
document.writeln(" <table cellspacing=\"0\" cellpadding=\"0\" width=\"144\" border=\"0\">");
document.writeln("  <tr>");
document.writeln("   <td align=\"left\">");
document.writeln("   <a href=\"javascript:void(0);\" shape=\"circle\" coords=\"91,16,12\"><img src=\"qqimg/index9-23_24.gif\" alt=\"\" width=\"145\" height=\"30\" /></a></td>");
document.writeln("  </tr>");

for(i=0;i<qqfile.length;i++){
document.writeln("  <tr>");
document.writeln("    <td style=\"padding-top:5px; padding-left:8px; padding-bottom:5px;background-repeat:repeat-y;\" background=\"qqimg/index9-23_29.jpg\" >"+qqfile[i]+"</td>");
document.writeln("  </tr>");
}

document.writeln("  <tr>");
document.writeln("    <td align=\"left\"><a href="+SiteUrl+" target=\"_blank\"><img src=\"qqimg/index9-23_35.gif\" alt=\"\" width=\"145\" height=\"6\" /></a></td>");
document.writeln("  </tr>");
document.writeln(" </table>");
document.writeln("</div>");

var bNetscape4plus = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "4");
var bExplorer4plus = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4");
function CheckUIElements(){
      var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck;

      if ( bNetscape4plus ) { 
              yMenuFrom   = document["divMenu"].top;
              yMenuTo     = top.pageYOffset + 295; 
      }
      else if ( bExplorer4plus ) {
              yMenuFrom   = parseInt (divMenu.style.top, 10);
			  yMenuTo=parseInt(document.body.scrollTop);
			  if(yMenuTo==0){yMenuTo=parseInt(document.documentElement.scrollTop);}
			  yMenuTo=parseInt(yMenuTo)+135;
			 //xxx.innerHTML=yMenuTo;
             //yMenuTo     = document.body.scrollTop + 135; //¾àÒ³Ãæ¶¥²¿µÄ¾àÀë
      }

      timeoutNextCheck = 500;

      if ( Math.abs (yButtonFrom - (yMenuTo + 152)) < 6 && yButtonTo < yButtonFrom ) {
              setTimeout ("CheckUIElements()", timeoutNextCheck);
              return;
      }

      if ( yButtonFrom != yButtonTo ) {
              yOffset = Math.ceil( Math.abs( yButtonTo - yButtonFrom ) / 10 );
              if ( yButtonTo < yButtonFrom )
                      yOffset = -yOffset;

              if ( bNetscape4plus )
                      document["divLinkButton"].top += yOffset;
              else if ( bExplorer4plus )
                      divLinkButton.style.top = parseInt (divLinkButton.style.top, 10) + yOffset;

              timeoutNextCheck = 10;
      }
      if ( yMenuFrom != yMenuTo ) {
              yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 20 );
              if ( yMenuTo < yMenuFrom )
                      yOffset = -yOffset;

              if ( bNetscape4plus )
                      document["divMenu"].top += yOffset;
              else if ( bExplorer4plus )
                      divMenu.style.top = (parseInt (divMenu.style.top, 10) + yOffset);

              timeoutNextCheck = 10;
      }
	  
//alert(divMenu.style.top);
      setTimeout ("CheckUIElements()", timeoutNextCheck);
}

function OnLoad()
{
      var y;
      if ( top.frames.length )
      if ( bNetscape4plus ) {
              document["divMenu"].top = top.pageYOffset + 135; 
              document["divMenu"].visibility = "visible";
			 
      }
      else if ( bExplorer4plus ) {
              divMenu.style.top = document.body.scrollTop + 235;
              divMenu.style.visibility = "visible";
	
      }

      CheckUIElements();
      return true;
}
OnLoad();
