//create the dates for search links var myDate = new Date(); day0 = myDate.getFullYear() + "-" + (myDate.getMonth() + 1) + "-" + myDate.getDate(); //add a day to the date var myDate = new Date(); myDate.setDate(myDate.getDate() + 1); day1 = myDate.getFullYear() + "-" + (myDate.getMonth() + 1) + "-" + myDate.getDate(); //add 7 var myDate = new Date(); myDate.setDate(myDate.getDate() + 7); day7 = myDate.getFullYear() + "-" + (myDate.getMonth() + 1) + "-" + myDate.getDate(); //add 14 var myDate = new Date(); myDate.setDate(myDate.getDate() + 14); day14 = myDate.getFullYear() + "-" + (myDate.getMonth() + 1) + "-" + myDate.getDate(); //add 30 var myDate = new Date(); myDate.setDate(myDate.getDate() + 30); day30 = myDate.getFullYear() + "-" + (myDate.getMonth() + 1) + "-" + myDate.getDate(); var myDate = new Date(); // Find Friday diff = 5 - myDate.getDay(); myDate.setDate(myDate.getDate() + diff); we_start = myDate.getFullYear() + "-" + (myDate.getMonth() + 1) + "-" + myDate.getDate(); // ...and end on Sunday myDate.setDate(myDate.getDate() + 2); we_end = myDate.getFullYear() + "-" + (myDate.getMonth() + 1) + "-" + myDate.getDate(); var month = myDate.getMonth() + 1 var day = myDate.getDate() var year = myDate.getFullYear() //-------------------------------------------------------------------------------------- // Add the Type over the menu items $.widget( "custom.catcomplete", $.ui.autocomplete, { _renderMenu: function( ul, items ) { var self = this, currentType = ""; $.each( items, function( index, item ) { if ( item.type != currentType ) { ul.append( "
  • " + item.type + "
  • " ); currentType = item.type; } self._renderItem( ul, item ); }); } }); function keywords_go(href, search) { if(search == 1) { var action = $('#form_search_keywords').attr('action'); href = action + href; } else { href = 'http://events.getcreativesanantonio.com' + href; } var child = window.open(href, '_self'); if(!child){ alert('You have a popup blocker enabled. Please allow popups for this site'); } return false; }