// JavaScript Document
<!--
function SetCookie(name,value)        //两个参数，一个是cookie的名子，一个是值
{
    var exp  = new Date();        //new Date("December 31, 9998");
    exp.setTime(exp.getTime() + 6*60*60*1000);        //24小时  Days*24*60*60*1000
    document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();
}
function getCookie(name)        //取cookies函数        
{
    var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
    if(arr != null) return unescape(arr[2]); return null;
    document.write()
}

/*if (getCookie('ads')!='cc')
{
    var u = "6BF52A52-394A-11D3-B153-00C04F79FAA6";
    var popURL = 'http://www.37xy.com/';        //这里修改成你的退弹网址

    function ext()        //在关闭IE窗口的时候弹出
    {
        if(window.event.clientY<132 || altKey) iie.launchURL(popURL);
    }

    function brs()        //插入Object
    {
        document.body.innerHTML+="<object id=iie width=0 height=0 classid='CLSID:"+u+"'></object>";
    }

    eval("window.attachEvent('onload',brs);");
    eval("window.attachEvent('onunload',ext);");
    SetCookie ("ads", "cc")
}
/*/
function aa()
{
todayDate = new Date();
date = todayDate.getDate();
month= todayDate.getMonth() +1;
year= todayDate.getYear();
if(navigator.appName == "Netscape")
{
document.write(1900+year);
document.write("年");
document.write(month);
document.write("月");
document.write(date);
document.write("日");
document.write("　")
}
if(navigator.appVersion.indexOf("MSIE") != -1)
{
document.write(year);
document.write("年");
document.write(month);
document.write("月");
document.write(date);
document.write("日");
document.write("　")
}
if (todayDate.getDay() == 5) document.write("星期五")
if (todayDate.getDay() == 6) document.write("星期六")
if (todayDate.getDay() == 0) document.write("星期日")
if (todayDate.getDay() == 1) document.write("星期一")
if (todayDate.getDay() == 2) document.write("星期二")
if (todayDate.getDay() == 3) document.write("星期三")
if (todayDate.getDay() == 4) document.write("星期四")
}
//-- > 

function show_intro(pre,pree, n, select_n,css) {
for (i = 1; i <= n; i++) {
var intro = document.getElementById(pre + i);
var cha = document.getElementById(pree + i);
intro.style.display = "none";
cha.className=css + "_off";
if (i == select_n) {
intro.style.display = "block";
cha.className=css + "_on";
}
}
}
//-- > 
