function AddFavorite(sTitle) {
	var sURL = window.location.href;
	try {
		window.external.addFavorite(sURL, sTitle);
	} catch (e) {
		try {
			window.sidebar.addPanel(sTitle, sURL, "");
		} catch (e) {
			alert("加入收藏失败，请使用Ctrl+D进行添加");
		}
	}
}
//获取当前日期
function setTime() {
    var now = new Date();
    var year = now.getFullYear();       //年
    var month = now.getMonth() + 1;     //月
    var day = now.getDate();            //日
    var hh = now.getHours();            //时
    var mm = now.getMinutes();          //分
    var ss = now.getSeconds();


    var clock = year + "年";
    if (month < 10)
        clock += "0";
    clock += month + "月";

    if (day < 10)
        clock += "0";
    clock += day + "日 ";

    if (hh < 10)
        clock += "0";
    clock += hh + ":";

    if (mm < 10) 
       clock += '0';
   clock += mm + ":";

    if (ss < 10)
        clock += '0';
    clock += ss;

    $("#showdate").html("今天是 "+clock + '  星期' + '日一二三四五六'.charAt(new Date().getDay()));
}
$(document).ready(function(){
   setInterval("setTime()",500);
});
$(function(){
$('.set_show span').mouseover(function(){
            $(this).addClass('cur_sbar');
			$('.cur_sbar div').show();
        }).mouseout(function(){
            $(this).removeClass('cur_sbar');
			$(this).find('div').hide();
        });
});
$(function () {
  $(".imgbox").imgBox({ idName: "#lightbox" })   
})