// gFeedKey for www.novatechhelp.com//var gFeedKey = 'ABQIAAAAgxjZd7hOXLQhd3QaJ1wX2RT1xhWUZv2OcipfBYjtIfSlDa7FlRSqNRQqVQkx-N4hamdym9irL4VYQQ'; // gFeedKey for 18thdc.comvar gFeedKey = 'ABQIAAAAN-DX-qunZh2MnDNgPj3ddhQnosvSREXDeY8eAN-qqLPMprIJohS2xWBrAUT5Q4k_M7gTtcRywHYLDg';// MAIN NAVIGATION$(document).ready(function(){	$("#homeBtn").click(function () {window.location = "http://18thdc.com/index.htm";});	$("#drinksBtn").click(function () {window.location = "http://18thdc.com/menu-drinks.htm";});	$("#foodBtn").click(function () {window.location = "http://18thdc.com/menu-food.htm";});	$("#specialsBtn").click(function () {window.location = "http://18thdc.com/specials.htm";});	$("#communityBtn").click(function () {window.location = "http://18thdc.com/community.htm";});	$("#directionsBtn").click(function () {window.location = "http://18thdc.com/directions.htm";});	$("#happeningsBtn").click(function () {window.location = "http://18thdc.com/happenings.htm";});		$("#homeLink").click(function () {window.location = "http://18thdc.com/index.htm";});	$("#drinksLink").click(function () {window.location = "http://18thdc.com/menu-drinks.htm";});	$("#foodLink").click(function () {window.location = "http://18thdc.com/menu-food.htm";});	$("#specialsLink").click(function () {window.location = "http://18thdc.com/specials.htm";});	$("#communityLink").click(function () {window.location = "http://18thdc.com/community.htm";});	$("#directionsLink").click(function () {window.location = "http://18thdc.com/directions.htm";});	$("#happeningsLink").click(function () {window.location = "http://18thdc.com/happenings.htm";});	$("#aboutusLink").click(function () {window.location = "http://18thdc.com/aboutus.htm";});		$(".phone img").click(function(event){window.location = "http://18thdc.com/directions.htm#contact-us";});	$(".address img").click(function(event){window.location = "http://18thdc.com/directions.htm";});	$("#siteNav ul li").hover(function () {      $(this).css({ "background-color":"#415f75"});    }, function () {      var cssObj = {        "background-color": "#1E5480",        "font-weight": "",        color: "rgb(0,40,244)"      }      $(this).css(cssObj);    });	/*$.preloadImages = function() {for (var i = 0; i<arguments.length; i++) {img = new Image();img.src = arguments[i];}}$.preloadImages ("http://18thdc.com/Images/rounded-nav-btn-blue-on.png","http://18thdc.com/Images/contactBarTop-blue-on.png");	*/});// END MAIN NAVIGATIONfunction getBlogFeed(feedId, divId, num) {	 var html = "";	 $.jGFeed('http://18thdc.blogspot.com/feeds/posts/default/-/' + feedId,	  function(feeds) {		  // Check for errors		  if(!feeds) {				// there was an error		  return false;	  }	  // do whatever you want with feeds here	  for(var i=0; i<feeds.entries.length; i++) {		  html += formatSpecials(feeds.entries[i]);	  }	  $(divId).html(html);	 }, num, gFeedKey);	 return html;}function getWPFeed(feedId, divId, num) {	 var html = "";	 $.jGFeed('http://18thdc.wordpress.com/category/' + feedId + '/feed/',	  function(feeds) {		// Check for errors		if(!feeds) {			// there was an error			return false;		}		// do whatever you want with feeds here		for(var i=0; i<feeds.entries.length; i++) {			html += formatSpecials(feeds.entries[i]);		}		$(divId).html(html);	 }, num, gFeedKey);	 return html;}function formatSpecials(event) {	var html = "<h1>"+ event.title + "</h1>";	html += cleanFeed(event.content);	return html;}function cleanFeed(content) {	var output = content;	if (null != content) {		var re = new RegExp(/<\/?(?!h1|h2|p|a)\w+((\s+\w+(\s*=\s*(?:\"(.|\n)*?\"|'(.|\n)*?'|[^'\">\s]+))?)+\s*|\s*)\/?>/gim);		output = content.replace(re, "");	}	return output;}
