//Set of jquery functions for loading external HTML into the template
jQuery(document).ready(function(){
	if (document.location.protocol != "https:") {
									
	jQuery.getJSON("http://www.inkline.ca/rippleScripts/weatherFeed.php?callback=?", 
		function(data) {
			//alert("Temp: " + data.temp + ", Condition: " + data.condition);
			jQuery("#weatherDiv").html(
				"<a href='http://www.weatheroffice.gc.ca/city/pages/on-118_metric_e.html' target='blank'>" + 
				data.temp + ", " + data.condition + "<br />" +
				"Sunrise: " + data.sunrise + ", Sunset: " + data.sunset +				
				"</a>"
			);
		});
						   
	}	
});

