//	StyleWatch
	MasterArray.length = 0;
//	initialize recirc feeds; used on Main and Category pages
	var initializeSWFeed = function() {
		if (!document.getElementById) return;
		if (!document.getElementsByTagName) return;
		var recircArray = {
			'recircs' : [
				{ // new recirc feed calls
					'id'		: 'col2',
					'feed' 		: [
						{
							'name'  	: 'Huffington Post',
							'json' 		: 'http://img2-short.timeinc.net/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://img2-short.timeinc.net/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://img2-short.timeinc.net/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'  	: 'InStyle.com',
							'json' 		: 'http://img2-short.timeinc.net/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'		: 'rightcolumnrecircbottom',
					'feed' 		: [
						{
							'name'  	: 'StyleList',
							'json' 		: 'http://www.people.com/people/static/json/stylelist/feed.js',
							'site' 		: 'http://www.stylelist.com',
							'image' 	: 'http://img2.timeinc.net/people/static/i/misc/logoStyleList_8.png',
							'callback'	: PEOPLE.recirccallback,
							'display'	: 3
						}
					]
				}
			]
		};
		pushToMasterArray(recircArray);
	};
	initializeSWFeed();
// SW JS
PEOPLE.SW = {
	init : function() {
		$('#main').addClass('js');
		if ($('#rightcolumnrecirc').length){$('#rightcolumnrecirc').prepend('\n<p class="title">Around the Web</p>');};
		if ($('#top5looks').length) {PEOPLE.SW.top5nav();};
		if ($('#timestamp').length) {PEOPLE.addtodaysdate('timestamp');};
		//if ($('#morestylewatch').length) {PEOPLE.SW.cleanmorestylewatch();};
	},
	cleanmorestylewatch : function() { // temp fix until cleansed mark-up gets to prod
		$('#morestylewatch').find('.toutSection').each(function() {
			var id = $(this).attr('id').trim();
			$(this).attr('id',id);
		});
	},
	top5nav : function() { // functionality for the Top 5 tout navigation. This assumes there will always be exactly FIVE slides
		$('#top5looksnavigation a').click(function() {
			var slidenumber = Number($('#top5looksnavigation span.thisslide').text()); //keep track of the current slide
			if ($(this).parent().hasClass('next')) { //next slide listener
				$('#top5looks_slides').animate({"left": "-=330px"}, "slow"); //animate to next slide
				$('#top5looksnavigation li').each(function() { $(this).removeClass('off'); }); //turn on all links (for now)
				slidenumber ++;
				$('#top5looksnavigation span.thisslide').html(slidenumber+'&nbsp;'); //update pagination display
				if (slidenumber == 5) { //we've reached the end of the gallery, turn off "next"
					$('#top5looksnavigation li.next').addClass('off');
					if($('#top5looksnavigation li.next p').length < 1){ //appending a <p> to the next tab for styling purposes
						$('#top5looksnavigation li.next').append('<p></p>');
					}
				}
			} else if ($(this).parent().hasClass('previous')) { //previous slide listener
				$('#top5looks_slides').animate({"left": "+=330px"}, "slow"); //animate to next slide
				$('#top5looksnavigation li').each(function() { $(this).removeClass('off'); }); //turn on all links (for now)
				slidenumber --;
				$('#top5looksnavigation span.thisslide').html(slidenumber+'&nbsp;'); //update pagination display
				if (slidenumber == 1) { //we've reached the beginning of the gallery, turn off "previous"
					$('#top5looksnavigation li.previous').addClass('off');
				}
			}
			return false;
		});
	}
};
tii_callFunctionOnWindowLoad(PEOPLE.SW.init);
