﻿// JScript 文件
window.onload=function(){
  
  var docUrl = document.URL;   
  var lastPipe = docUrl.lastIndexOf('/');   
  var lastPeriod = docUrl.lastIndexOf('.');   
  var fileName;   

  if(lastPipe<lastPeriod)   
  {
    fileName = docUrl.substring(lastPipe + 1, lastPeriod);
  }   
  else
  {   
    fileName = '';
  }
  
   
  if(fileName=='Shebaojs'||docUrl=='http://www.shebaojs.cn/')
  {
    setTabPanel1();
    //document.body.style.backgroundColor="#FFFFFF";
    document.body.style.backgroundImage="url(Images/body_back.gif)";
    document.body.style.backgroundRepeat="repeat-x";
    document.body.style.backgroundPosition="top";
  }
  else if(fileName=="YLCount")
  {
      setTabPanel1();
      document.body.style.backgroundColor="#0071B5";
  }
  else
  {
    document.body.style.backgroundColor="#0071B5";
  }
  
}

