// JavaScript Document
/// <reference path="jquery-vsdoc.js" />
$(document).ready(function() {
    $('#spanclose').click(function() {
        $('#AddCategory').hide('slow');
    })

    $('#wantadd').click(function() {
        $('#AddCategory').show('slow');
    })

    $('#ctl00_CPH_Main_b_Add').click(function() {
        $('#AddCategory').hide('slow');
    })

    $('#ctl00_CPH_Main_b_Save').click(function() {
        $tb_Title = $('#ctl00_CPH_Main_tb_Title').val();
        if ($tb_Title == "") {
            alert("喂，等等，标题写了吗？");
            return false;
        }
    })


    $('#imgAdd').hover(
    function() {
        $('#bgbox').animate({ left: '620', top: '10', width: '250', height: '20', opacity: 'show' }, "slow", "linear");
        $('#bgbox').html('地址：南通市青年东路299号 邮编：226000');
    },
    function() {
        $('#bgbox').hide('slow');
    })

    $('#imgTel').hover(
    function() {
        $('#bgbox').animate({ left: '670', top: '10', width: '280', height: '160', opacity: 'show' }, "slow", "linear");
        $('#bgbox').html('驾驶证业务咨询电话：0513-85269025<br/>机动车业务咨询电话：051385269019<br/>交巡警支队违章处理一号窗口：0513-85027855<br/>满分学习及网上提交体检证明咨询电话：85269007<br/>机动车检测咨询电话：0513-85269018<br/>综合及举报电话:0513-85269000');
    },
    function() {
        $('#bgbox').hide('slow');
    })

    $('#imgMail').hover(
    function() {
        $('#bgbox').animate({ left: '740', top: '10', width: '100', height: '40', opacity: 'show' }, "slow", "linear");
        $('#bgbox').html('举报信箱：ntcgs@163.com');
    },
    function() {
        $('#bgbox').hide('slow');
    })

    $('#imgTime').hover(
    function() {
        $('#bgbox').animate({ left: '790', top: '10', width: '230', height: '30', opacity: 'show' }, "slow", "linear");
        $('#bgbox').html('办公时间：<br/>上午:9：00-12：00 下午:13：30-17：30');
    },
    function() {
        $('#bgbox').hide('slow');
    })

})


