// 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: '100', opacity: 'show' }, "slow", "linear");
        $('#bgbox').html('咨询电话：<br/>驾驶证：0513-85269025 机动车：0513-85269019<br/>一号窗口：<br/>驾驶证：0513-85027856 机动车：0513-85027855<br/>综合及举报电话：<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');
    })

})

