/* script.js */

// Browsers don't seem to define the console by default.
function _dp_debug(s) {
	try { console.debug(s); } catch(e) { }
}

$(document).ready(function() {

	var smi_base_url	= "http://cloud.foomg.com/common/images/social-media-icons";

	$("#where ul li a")
		.each(function() {
			var $this = $(this);

			var img_base = smi_base_url + '/' + $this.attr('id').replace(/-link$/, '').toLowerCase();

			$this.find('.image:first > .small:first')
				.append(
					$(document.createElement('img'))
						.attr('src', img_base + '_16.png')
				);

			$this.find('.image:first > .large:first')
				.append(
					$(document.createElement('img'))
						.attr('src', img_base + '_32.png')
				);
		});
});

