//	Babies
	MasterArray.length = 0;
//	initialize recirc feeds; used on Main and Category pages
	var initializeFeeds = function() {
		if (!document.getElementById) return;
		if (!document.getElementsByTagName) return;
		var recircArray = {
			'recircs' : [
				{ // new recirc feed calls
					'id'		: 'col2',
					'feed' 		: [
						{
							'name'  	: 'Huffington Post',
							'json' 		: 'http://www.people.com/people/static/json/huffingtonpost/feed.js',
							'site' 		: 'http://www.huffingtonpost.com/entertainment/',
							'image' 	: 'http://img2.timeinc.net/people/static/i/misc/logoHuffingtonPost.gif',
							'callback'	: PEOPLE.recirccallback,
							'display'	: 3
						},{
							'name'  	: 'TotalBeauty.com',
							'json' 		: 'http://www.people.com/people/static/json/totalbeauty/feed.js',
							'site' 		: 'http://www.totalbeauty.com',
							'image' 	: 'http://img2.timeinc.net/people/static/i/misc/logoTotalBeauty.gif',
							'callback'	: PEOPLE.recirccallback,
							'display'	: 3
						}
					]
				},{
					'id'		: 'col4',
					'feed' 		: [
						{
							'name'  	: 'InStyle.com',
							'json' 		: 'http://www.people.com/people/static/json/instyle_whatsrightnow/feed.js',
							'site' 		: 'http://www.instyle.com',
							'image' 	: 'http://img2.timeinc.net/people/static/i/misc/logoInStyle.gif',
							'callback'	: PEOPLE.recirccallback,
							'display'	: 3
						}
					]
				},{
					'id'		: 'rightcolumnrecirc',
					'feed' 		: [
						{
							'name'  	: 'OMG',
							'json' 		: 'http://www.people.com/people/static/json/omggoddess/feed.js',
							'site' 		: 'http://omg.yahoo.com/blogs/goddess',
							'image' 	: 'http://img2.timeinc.net/people/static/i/babies/header_omg.gif',
							'callback'	: PEOPLE.recirccallback,
							'display'	: 3
						}
					]
				},{
					'id'		: 'rightcolumnrecircbottom',
					'feed' 		: [
						{
							'name'  	: 'PopSugar.com',
							'json' 		: 'http://www.people.com/people/static/json/popsugar/feed.js',
							'site' 		: 'http://www.popsugar.com',
							'image' 	: 'http://img2.timeinc.net/people/static/i/news/logoPopSugar.gif',
							'callback'	: PEOPLE.recirccallback,
							'display'	: 3
						}
					]
				}
			]
		};
		pushToMasterArray(recircArray);
	};
	initializeFeeds();
// Babies JS
PEOPLE.Babies = {
	init : function() {
		$('#main').addClass('js');
		if ($('#getPeopleEverywhere').length){PEOPLE.Babies.tooltip('#getPeopleEverywhere');};
		if ($('#leftColumn ul.sharebar').length){
			PEOPLE.Babies.tooltip('#leftColumn ul.sharebar');
			$('#leftColumn ul.sharebar .email a').click(function(){popEmailWin(this.href);return false;});
		};
		if ($('#addpeoplenews').length){PEOPLE.addpeoplenews();};
		if ($('#rightcolumnrecirc').length){$('#rightcolumnrecirc').prepend('\n<p class="title">Around the Web</p>');};
	},
	tooltip : function(v) {
		if (!$(v).length) return false;
		var xOffset = 10,
			yOffset = 20,
			items = $(v).find('a'),
			s;
		if (items.length) {
			for (var i = -1, len = items.length; ++i < len;) {
				s = items[i];
				if (s.title != '' && typeof(s.title != 'undefined')) {
					s.onmouseover = function(e) {
						if (this.title == 'undefined') return false;
						this.t = this.title;
						this.title = '';
						var top = (e.pageY-xOffset)+'px',
							left = (e.pageX+yOffset)+'px',
							tooltip = '<p id="tooltip" style="top:'+top+';left:'+left+';">'+this.t+'</p>';
						$('body:first').append(tooltip);
					};
					s.onmouseout = function(){
						this.title = this.t;
						$('#tooltip').remove();
					};
				};
			};
		};
	}
};
$(function(){PEOPLE.Babies.init();});
