﻿// JScript 文件

function lk(obj)
{

obj.setAttribute("href",obj.getAttribute("link"));


}


function OnBodyBegin()
{

}
function SetWinHeight(){
 var bobo=document.getElementById("bobo"); //iframe id
  if (document.getElementById){
   if (bobo && !window.opera){
    if(bobo.Document && bobo.Document.body.scrollHeight){
     bobo.height = bobo.Document.body.scrollHeight;
    }else if (bobo.contentDocument && bobo.contentDocument.body.offsetHeight){
     bobo.height = bobo.Document.body.scrollHeight;
    } 
   }
  }


 }

function OnBodyEnd()
{
//document.getElementById("MainMid").innerHTML='<iframe src="http://code13.keyrun.com/k.html?id=216485&title='+document.title+'" marginheight=0 marginwidth=0 frameborder=0 scrolling=no height="100" width="760" ></iframe>';
document.getElementById("HeadBanner").innerHTML="<div align='center'><iframe  width=468 frameborder=0 border=0  scrolling=no height=70 src=http://www.baimin.com/show/468x60.htm></iframe></div>";
document.getElementById("MainBottom").innerHTML='<embed src="http://a.alimama.cn/widget/yr1/yr1fixed_950_90.swf" flashvars="catid=999900001&count=20&sz=15&type=1&i=mm_10072069_0_0" width="950" height="90" quality="high" wmode="transparent" bgcolor="#ffffff" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /><iframe  width=760 frameborder=0 border=0  scrolling=no height=100 src=http://www.baimin.com/show/760x602.htm></iframe>';

 

}

function AddFav(url,title){ 
     if ((typeof window.sidebar == 'object') && (typeof window.sidebar.addPanel == 'function'))//Gecko 
     { 
         window.sidebar.addPanel(title,url,title); 
     }
     else//IE 
     { 
         window.external.AddFavorite(url,title); 
     } 
}


