﻿$(document).ready(function () {
    menu.init('#li_secretarias', '#menu_drop');
    menu.init('#li_atendimento', '#menu_dropOutrosCanais');
    menu.goTo('#li_tv_prefeitura', 'http://www.youtube.com/prefeituracatanduva');
    menu.goTo('#li_licitacoes', 'http://www.catanduva.sp.gov.br/conteudo/interna/10-1910');
    menu.goTo('#li_conheca', 'http://www.catanduva.sp.gov.br/conteudo/index/01/');

    /* PLACEHOLDER - CAMPO BUSCA */
    var textoBusca = 'Digite a palavra chave aqui.';

    $('#busca_topo input[type=text]').val(textoBusca).css('color', '#666')
		.focus(function () {
		    if ($(this).val() == textoBusca) {
		        $(this).css({
		            color: '#993366',
		            fontWeight: 'bold'
		        }).val('');
		        $('#busca_topo select').css({
		            color: '#993366',
		            fontWeight: 'bold'
		        });
		    }
		}).blur(function () {
		    if ($(this).val() == '' || $(this).val() == ' ' || $(this).val() == '  ' || $(this).val() == '   ' || $(this).val() == '    ') {
		        $(this).val(textoBusca).css({
		            color: '',
		            fontWeight: ''
		        });
		        $('#busca_topo select').css({
		            color: '',
		            fontWeight: ''
		        });
		    }
		});

		$('#campo_busca input[type=text]').val(textoBusca).css('color', '#666')
		.focus(function () {
		    if ($(this).val() == textoBusca) {
		        $(this).css({
		            color: '#993366',
		            fontWeight: 'bold'
		        }).val('');
		        $('#campo_busca select').css({
		            color: '#993366',
		            fontWeight: 'bold'
		        });
		    }
		}).blur(function () {
		    if ($(this).val() == '' || $(this).val() == ' ' || $(this).val() == '  ' || $(this).val() == '   ' || $(this).val() == '    ') {
		        $(this).val(textoBusca).css({
		            color: '',
		            fontWeight: ''
		        });
		        $('#campo_busca select').css({
		            color: '',
		            fontWeight: ''
		        });
		    }
		});
});
