function AddFavorite(sURL, sTitle)
{
    try
    {
        window.external.addFavorite(sURL, sTitle);
    }
    catch (e)
    {
        try
        {
            window.sidebar.addPanel(sTitle, sURL, "");
        }
        catch (e)
        {
            alert("加入收藏失败，请使用Ctrl+D进行添加");
        }
    }
}
//ajax的公用js
var http_request = false;
function createRequest(url) {
 //初始化对象并发出XMLHttpRequest请求
 http_request = false;
 if (window.XMLHttpRequest) { // Mozilla或其他除IE以外的浏览器
  http_request = new XMLHttpRequest();
  if (http_request.overrideMimeType) {
   http_request.overrideMimeType("text/xml");
  }
 } else if (window.ActiveXObject) { // IE浏览器
  try {
   http_request = new ActiveXObject("Msxml2.XMLHTTP");
  } catch (e) {
   try {
    http_request = new ActiveXObject("Microsoft.XMLHTTP");

     } catch (e) {}
  }
 }
 if (!http_request) {
  alert("不能创建XMLHTTP实例!");
  return false;
 }
 http_request.onreadystatechange = alertContents;    //指定响应方法
 //发出HTTP请求
 http_request.open("GET", url, true);
 http_request.send(null);
}
function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}
function nofind(){   
   var img=event.srcElement;   
   img.src="http://www.shinego.com/image/ad_bg.png";  
   img.onerror=null;      //控制不要一直跳动  
}
function noface(){   
   var img=event.srcElement;   
   img.src="http://www.shinego.com/images/avatar_small.png";  
   img.onerror=null;      //控制不要一直跳动  
}
function noface_big(){   
   var img=event.srcElement;   
   img.src="http://www.shinego.com/images/avatar.png";  
   img.onerror=null;      //控制不要一直跳动  
}
//首页图片轮换

