﻿// JScript 文件

//设置为首页
function defaulhome(){
	this.home.style.behavior='url(#default#homepage)';
	this.home.setHomePage('http://www.zjfsi.com/');
}
//收藏本站
function addBookMark(){
        bookmarkurl="http://www.zjfsi.com";
        bookmarktitle="中国氟硅创新网";
        if (document.all)
        window.external.AddFavorite(bookmarkurl,bookmarktitle);
    }
    
//$寻找脚本对象
function $(elementName)
{ return document.getElementById(elementName); }

 function InitMenu() {
    var url = location.href.toLowerCase();
    if (url.indexOf("index") > -1  )
    { $("Index").className = "ts"; }
    if (url.indexOf("product") > -1)
    { $("Product").className = "ts"; }
    if (url.indexOf("intro") > -1)
    { $("Intro").className = "ts"; }
    if (url.indexOf("offer") > -1)
    { $("Offer").className = "ts"; }
    if (url.indexOf("news") > -1)
    { $("News").className = "ts"; }
    if (url.indexOf("article") > -1)
    { $("Article").className = "ts"; }
    if (url.indexOf("catalog") > -1)
    { $("Catalog").className = "ts"; }
    if (url.indexOf("inquiry") > -1)
    { $("Inquiry").className = "ts"; }
    if (url.indexOf("contact") > -1)
    { $("Contact").className = "ts"; }
    if (url.indexOf("job") > -1)
    { $("Job").className = "ts"; }
}
