function out(menu)
{
if(window.event.toElement.id!=menu && window.event.toElement.id!="link" && window.event.toElement.id!="td1")
menu.style.visibility="hidden";
}
function out1()
{
  menu1.style.visibility="hidden";
  menu2.style.visibility="hidden";
}
//-->

function over(menu)
{
  menu.style.visibility='visible';
  menu.style.top=68;
  menu.style.left=284+(document.body.clientWidth-850)/2;
  menu2.style.visibility="hidden";
}

function over1(menu)
{
  menu.style.visibility='visible';
  menu.style.top=68;
  menu.style.left=366+(document.body.clientWidth-850)/2;
  menu1.style.visibility="hidden";
}

//双击页面时,页面滚动函数
var currentpos,timer;
function initialize()
{
timer=setInterval("scrollwindow()",10);
}
function sc(){
clearInterval(timer);
}
function scrollwindow()
{
currentpos=document.body.scrollTop;
window.scroll(0,++currentpos);
if (currentpos != document.body.scrollTop)
sc();
}
document.onmousedown=sc
document.ondblclick=initialize




//添加到收藏夹
function addF(){
if(navigator.appName=="Microsoft Internet Explorer"){
window.external.addFavorite(location.href,"亿迪防伪技术有限公司");
}else{
alert("您好,您的浏览器不支持该功能");
}
}
//设为主页
function setHomePage()
{
  document.body.style.behavior='url(#default#homepage)';
  document.body.setHomePage(location.href);
  return false;
}

//关闭窗口(来自网上)
function CloseWin()
{
var ua=navigator.userAgent
var ie=navigator.appName=="Microsoft Internet Explorer"?true:false
if(ie){
var IEversion=parseFloat(ua.substring(ua.indexOf("MSIE ")+5,ua.indexOf(";",ua.indexOf("MSIE "))))
if(IEversion< 5.5){
var str = '<object id=noTipClose classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11">'
str += '<param name="Command" value="Close"></object>';
document.body.insertAdjacentHTML("beforeEnd", str);
document.all.noTipClose.Click();
}
else{
window.opener =null;
window.close();
}
}
else{
window.close()
}
}

