<!--
function fontSize(size){ 
  var fz = document.all?document.all["mfcontent"]:G("mfcontent");
  if(size==12){
    fz.className = "sec_l";
  }
  else{
    fz.className = "sec_l_" + size;
  }
}

function AddFa(url,val){
  try{
    window.external.addFavorite(url,val);
  }
  catch (e){
    try{
      window.sidebar.addPanel(val,url,"");
    }
    catch (e){
      alert("加入收藏失败，请使用Ctrl+D进行添加");
    }
  }
}

function doPrint(){
  var bdhtml = window.document.body.innerHTML;
  var sprnstr = "<!--startprint-->";
  var eprnstr = "<!--endprint-->";
  var leftstr = "";
  leftstr += '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'
  leftstr += '<html xmlns="http://www.w3.org/1999/xhtml">'
  leftstr += '<body>'
  leftstr += '<div id="container"><div id="main">'
  var rightstr = "";
  rightstr += '</div></div>'
  rightstr += '</body>'
  rightstr += '</html>'
  var prnhtml = bdhtml.substr(bdhtml.indexOf(sprnstr)+17);
  prnhtml = prnhtml.substring(0,prnhtml.indexOf(eprnstr));
  window.document.body.innerHTML = leftstr + prnhtml + rightstr;
  window.print();
}

function _loading(_left,_top,_str){
  document.write('<div id="_loading" style="position:absolute; width:300px; height:30px; line-height:30px; left:'+ _left +'px; top:'+ _top +'px; color:red; filter:alpha (opacity=100)">');
  document.write('  <table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">');
  document.write('    <tr>');
  document.write('      <td valign="middle" width="25" align="left"><img src="/images/loading.gif" width="16" height="16"></td>');
  document.write('      <td valign="middle" align="left">'+ _str +'</td>');
  document.write('    </tr>');
  document.write('  </table>');
  document.write('</div>');
}

function removeElement(_element){
         var _parentElement = _element.parentNode;
         if(_parentElement){
                _parentElement.removeChild(_element);
         }
}

function G(id){if(typeof(id)=="string"){if(document.getElementById(id)){return document.getElementById(id);}else{return false;}};return id;}

function LineService(Direction,MarginX,MarginY){
  var Html = '';
  Html+= '<table id="LineServiceDiv" width="140" height="152" border="0" background="/images/pp_bg.jpg" style="margin:0px; padding:0px; height:152px; overflow:hidden;">';
  Html+='  <tr>';
  Html+='    <td height="8" valign="top" style=" width:130px;text-align:right; font-size:1px;overflow:hidden; height:8px; padding:8px 10px 0px 0px; line-height:0px;"><a href="javascript:void(0)" title="关闭" target="_self" onClick="G(\'LineServiceDiv\').style.display=\'none\';"><img src="/images/pp_c.jpg" width="7" height="8" border="0"/></a></td>';
  Html+='  </tr>';
  Html+='  <tr>';
  Html+='    <td height="30" valign="bottom">';
  Html+='		<div style="float:right; width:65px; text-align:left;">';
  Html+='	<a href="tencent://message/?uin=834449820&Site=蒙游客服1&Menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=10:834449820:10"></a></div></td>';
  Html+='  </tr>';
  Html+='  <tr>';
  Html+='    <td height="30" valign="bottom">';
  Html+='		<div style="float:right; width:65px; text-align:left;">';
  Html+='	<a href="tencent://message/?uin=834449820&Site=蒙游客服1&Menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=10:834449820:10"></a></div></td>';
  Html+='  </tr>';
  Html+='  <tr>';
  Html+='    <td height="66">&nbsp;</td>';
  Html+='  </tr>';
  Html+='</table>';
  
  var Div = document.createElement("div");
  Div.id = "LineSvc";
  Div.style.position = "absolute";
  Div.style.top = MarginY + "px";
  if(Direction=="left"){Div.style.left = MarginX + "px";}
  if(Direction=="right"){Div.style.right = MarginX + "px";}
  Div.innerHTML = Html;
  document.body.appendChild(Div);
  setInterval(FloatDiv,20);
  
  function FloatDiv(){
    var Did = document.getElementById("LineSvc");
    var DidTop = parseInt(Did.style.top);
    var Diff = (document.documentElement.scrollTop + MarginY - DidTop)*.70;
    Did.style.top = MarginY + document.documentElement.scrollTop - Diff + "px";
    if(Direction=="left"){Did.style.left = MarginX + "px";}
    if(Direction=="right"){Did.style.right = MarginX + "px";}
  }
}
//-->
