	/*** JCAROUSELLITE CODE ***/
	
	/**
	 * jCarouselLite - jQuery plugin to navigate images/any content in a carousel style widget.
	 * @requires jQuery v1.2 or above
	 *
	 * http://gmarwaha.com/jquery/jcarousellite/
	 *
	 * Copyright (c) 2007 Ganeshji Marwaha (gmarwaha.com)
	 * Dual licensed under the MIT and GPL licenses:
	 * http://www.opensource.org/licenses/mit-license.php
	 * http://www.gnu.org/licenses/gpl.html
	 *
	 * Version: 1.0.1
	 * Note: Requires jquery 1.2 or above from version 1.0.1
	 */
	
	
	(function($) {                                          // Compliant with jquery.noConflict()
	$.fn.jCarouselLite = function(o) {
		o = $.extend({
			btnPrev: null,
			btnNext: null,
			btnGo: null,
			mouseWheel: false,
			auto: null,
	
			speed: 200,
			easing: null,
	
			vertical: false,
			circular: true,
			visible: 3,
			start: 0,
			scroll: 1,
	
			beforeStart: null,
			afterEnd: null
		}, o || {});
	
		return this.each(function() {                           // Returns the element collection. Chainable.
	
			var running = false, animCss=o.vertical?"top":"left", sizeCss=o.vertical?"height":"width";
			var div = $(this), ul = $("ul", div), tLi = $("li", ul), tl = tLi.size(), v = o.visible; var count = 0;
	
			if(o.circular) {
				ul.prepend(tLi.slice(tl-v-1+1).clone())
				  .append(tLi.slice(0,v).clone());
				o.start += v;
			}
	
			var li = $("li", ul), itemLength = li.size(), curr = o.start;
			div.css("display", "block");
	
			li.css({overflow: "hidden", float: o.vertical ? "none" : "left"});
			ul.css({margin: "0", padding: "0", position: "relative", "list-style-type": "none", "z-index": "1"});
			div.css({overflow: "hidden", position: "relative", "z-index": "2", left: "0px"});
	
			var liSize = o.vertical ? height(li) : width(li);   // Full li size(incl margin)-Used for animation
			var ulSize = liSize * itemLength;                   // size of full ul(total length, not just for the visible items)
			var divSize = liSize * v;                           // size of entire div(total length for just the visible items)
	
			li.css({width: li.width(), height: li.height()});
			ul.css(sizeCss, ulSize+"px").css(animCss, -(curr*liSize)+21);
	
			div.css(sizeCss, divSize+34+"px");                     // Width of the DIV. length of visible images
	
			if(o.btnPrev)
				$(o.btnPrev).click(function() {
					return go(curr-o.scroll);
				});
	
			if(o.btnNext)
				$(o.btnNext).click(function() {
					return go(curr+o.scroll);
				});
	
			if(o.btnGo)
				$.each(o.btnGo, function(i, val) {
					$(val).click(function() {
						return go(o.circular ? o.visible+i : i);
					});
				});
	
			if(o.mouseWheel && div.mousewheel)
				div.mousewheel(function(e, d) {
					return d>0 ? go(curr-o.scroll) : go(curr+o.scroll);
				});
	
			if(o.auto)
				var runAuto = setInterval(function() {
					go(curr+o.scroll);
				}, o.auto+o.speed);
	
			function vis() {
				return li.slice(curr).slice(0,v);
			};
	
			function go(to) {
				if(!running) {
					if(o.beforeStart)
						o.beforeStart.call(this, vis());
	
					if(o.circular) {            // If circular we are in first or last, then goto the other end
						if(to<=o.start-v-1) {           // If first, then goto last
							ul.css(animCss, -((itemLength-(v*2))*liSize)+"px");
							// If "scroll" > 1, then the "to" might not be equal to the condition; it can be lesser depending on the number of elements.
							curr = to==o.start-v-1 ? itemLength-(v*2)-1 : itemLength-(v*2)-o.scroll;
						} else if(to>=itemLength-v+1) { // If last, then goto first
							ul.css(animCss, -( (v) * liSize ) + "px" );
							// If "scroll" > 1, then the "to" might not be equal to the condition; it can be greater depending on the number of elements.
							curr = to==itemLength-v+1 ? v+1 : v+o.scroll;
						} else curr = to;
					} else {                    // If non-circular and to points to first or last, we just return.
						if(to<0) return;
						else curr = to;
					}                           // If neither overrides it, the curr will still be "to" and we can proceed.
	
					running = true;
					if(to>=itemLength-v+1) {
							if(count >0) {clearInterval(runAuto);}
							ul.animate(
								animCss == "left" ? { left: 21 } : { top: -(curr*liSize) } , o.speed, o.easing,
								function() {
									if(o.afterEnd)
										o.afterEnd.call(this, vis());
									running = false;
								}
							);
							curr = 0;
							count++;
						}
					else{
						ul.animate(
							animCss == "left" ? { left: -(curr*liSize)+21 } : { top: -(curr*liSize) } , o.speed, o.easing,
							function() {
								if(o.afterEnd)
									o.afterEnd.call(this, vis());
								running = false;
							}
						);
					}
					// Disable buttons when the carousel reaches the last/first, and enable when not
					if(!o.circular) {
						$(o.btnPrev + "," + o.btnNext).removeClass("disabled");
						$( (curr-o.scroll<0 && o.btnPrev)
							||
						   (curr+o.scroll > itemLength-v && o.btnNext)
							||
						   []
						 ).addClass("disabled");
					}
	
				}
				return false;
			};
		});
	};
	
	function css(el, prop) {
		return parseInt($.css(el[0], prop)) || 0;
	};
	function width(el) {
		return  el[0].offsetWidth + css(el, 'marginLeft') + css(el, 'marginRight');
	};
	function height(el) {
		return el[0].offsetHeight + css(el, 'marginTop') + css(el, 'marginBottom');
	};
	
	})(jQuery);
	/*** END JCAROUSSELLITE ***/
	
	/*** AUTOCOLUMN CODE ***/	
	// version 1.4.0
	// http://welcome.totheinter.net/columnizer-jquery-plugin/
	// created by: Adam Wulf adam.wulf@gmail.com
	
	(function($){
	
	 $.fn.columnize = function(options) {
	
	
		var defaults = {
			// default width of columnx
			width: 400,
			// optional # of columns instead of width
			columns : false,
			// true to build columns once regardless of window resize
			// false to rebuild when content box changes bounds
			buildOnce : false,
			// an object with options if the text should overflow
			// it's container if it can't fit within a specified height
			overflow : false,
			// this function is called after content is columnized
			doneFunc : function(){},
			// if the content should be columnized into a 
			// container node other than it's own node
			target : false,
			// re-columnizing when images reload might make things
			// run slow. so flip this to true if it's causing delays
			ignoreImageLoading : true,
			// should columns float left or right
			float : "left",
			// ensure the last column is never the tallest column
			lastNeverTallest : false
		};
		var options = $.extend(defaults, options);
	
		return this.each(function() {
			var $inBox = options.target ? $(options.target) : $(this);
			var maxHeight = $(this).height();
			var $cache = $('<div></div>'); // this is where we'll put the real content
			var lastWidth = 0;
			var columnizing = false;
			$cache.append($(this).children().clone(true));
			
			// images loading after dom load
			// can screw up the column heights,
			// so recolumnize after images load
			if(!options.ignoreImageLoading && !options.target){
				if(!$inBox.data("imageLoaded")){
					$inBox.data("imageLoaded", true);
					if($(this).find("img").length > 0){
						// only bother if there are
						// actually images...
						var func = function($inBox,$cache){ return function(){
							if(!$inBox.data("firstImageLoaded")){
								$inBox.data("firstImageLoaded", "true");
								$inBox.empty().append($cache.children().clone(true));
								$inBox.columnize(options);
							}
						}}($(this), $cache);
						$(this).find("img").one("load", func);
						$(this).find("img").one("abort", func);
						return;
					}
				}
			}
			
			$inBox.empty();
			
			columnizeIt();
			
			if(!options.buildOnce){
				$(window).resize(function() {
					if(!options.buildOnce && $.browser.msie){
						if($inBox.data("timeout")){
							clearTimeout($inBox.data("timeout"));
						}
						$inBox.data("timeout", setTimeout(columnizeIt, 200));
					}else if(!options.buildOnce){
						columnizeIt();
					}else{
						// don't rebuild
					}
				});
			}
			
			/**
			 * return a node that has a height
			 * less than or equal to height
			 *
			 * @param putInHere, a dom element
			 * @$pullOutHere, a jQuery element
			 */
			function columnize($putInHere, $pullOutHere, $parentColumn, height){
				while($parentColumn.height() < height &&
					  $pullOutHere[0].childNodes.length){
					$putInHere.append($pullOutHere[0].childNodes[0]);
				}
				if($putInHere[0].childNodes.length == 0) return;
				
				// now we're too tall, undo the last one
				var kids = $putInHere[0].childNodes;
				var lastKid = kids[kids.length-1];
				$putInHere[0].removeChild(lastKid);
				var $item = $(lastKid);
				
				
				if($item[0].nodeType == 3){
					// it's a text node, split it up
					var oText = $item[0].nodeValue;
					var counter2 = options.width / 18;
					if(options.accuracy)
					counter2 = options.accuracy;
					var columnText;
					var latestTextNode = null;
					while($parentColumn.height() < height && oText.length){
						if (oText.indexOf(' ', counter2) != '-1') {
							columnText = oText.substring(0, oText.indexOf(' ', counter2));
						} else {
							columnText = oText;
						}
						latestTextNode = document.createTextNode(columnText);
						$putInHere.append(latestTextNode);
						
						if(oText.length > counter2){
							oText = oText.substring(oText.indexOf(' ', counter2));
						}else{
							oText = "";
						}
					}
					if($parentColumn.height() >= height && latestTextNode != null){
						// too tall :(
						$putInHere[0].removeChild(latestTextNode);
						oText = latestTextNode.nodeValue + oText;
					}
					if(oText.length){
						$item[0].nodeValue = oText;
					}else{
						return false; // we ate the whole text node, move on to the next node
					}
				}
				
				if($pullOutHere.children().length){
					$pullOutHere.prepend($item);
				}else{
					$pullOutHere.append($item);
				}
				
				return $item[0].nodeType == 3;
			}
			
			function split($putInHere, $pullOutHere, $parentColumn, height){
				if($pullOutHere.children().length){
					$cloneMe = $pullOutHere.children(":first");
					$clone = $cloneMe.clone(true);
					if($clone.attr("nodeType") == 1 && !$clone.hasClass("dontend")){ 
						$putInHere.append($clone);
						if($clone.is("img") && $parentColumn.height() < height + 20){
							$cloneMe.remove();
						}else if(!$cloneMe.hasClass("dontsplit") && $parentColumn.height() < height + 20){
							$cloneMe.remove();
						}else if($clone.is("img") || $cloneMe.hasClass("dontsplit")){
							$clone.remove();
						}else{
							$clone.empty();
							if(!columnize($clone, $cloneMe, $parentColumn, height)){
								if($cloneMe.children().length){
									split($clone, $cloneMe, $parentColumn, height);
								}
							}
							if($clone.get(0).childNodes.length == 0){
								// it was split, but nothing is in it :(
								$clone.remove();
							}
						}
					}
				}
			}
			
			
			function singleColumnizeIt() {
				if ($inBox.data("columnized") && $inBox.children().length == 1) {
					return;
				}
				$inBox.data("columnized", true);
				$inBox.data("columnizing", true);
				
				$inBox.empty();
				$inBox.append($("<div class='first last column' style='width:98%; padding: 3px; float: " + options.float + ";'></div>")); //"
				$col = $inBox.children().eq($inBox.children().length-1);
				$destroyable = $cache.clone(true);
				if(options.overflow){
					targetHeight = options.overflow.height;
					columnize($col, $destroyable, $col, targetHeight);
					// make sure that the last item in the column isn't a "dontend"
					if(!$destroyable.children().find(":first-child").hasClass("dontend")){
						split($col, $destroyable, $col, targetHeight);
					}
					
					while(checkDontEndColumn($col.children(":last").length && $col.children(":last").get(0))){
						var $lastKid = $col.children(":last");
						$lastKid.remove();
						$destroyable.prepend($lastKid);
					}
	
					var html = "";
					var div = document.createElement('DIV');
					while($destroyable[0].childNodes.length > 0){
						var kid = $destroyable[0].childNodes[0];
						for(var i=0;i<kid.attributes.length;i++){
							if(kid.attributes[i].nodeName.indexOf("jQuery") == 0){
								kid.removeAttribute(kid.attributes[i].nodeName);
							}
						}
						div.innerHTML = "";
						div.appendChild($destroyable[0].childNodes[0]);
						html += div.innerHTML;
					}
					var overflow = $(options.overflow.id)[0];
					overflow.innerHTML = html;
	
				}else{
					$col.append($destroyable);
				}
				$inBox.data("columnizing", false);
				
				if(options.overflow){
					options.overflow.doneFunc();
				}
				
			}
			
			function checkDontEndColumn(dom){
				if(dom.nodeType != 1) return false;
				if($(dom).hasClass("dontend")) return true;
				if(dom.childNodes.length == 0) return false;
				return checkDontEndColumn(dom.childNodes[dom.childNodes.length-1]);
			}
			
			function columnizeIt() {
				if(lastWidth == $inBox.width()) return;
				lastWidth = $inBox.width();
				
				var numCols = Math.round($inBox.width() / options.width);
				if(options.columns) numCols = options.columns;
	//			if ($inBox.data("columnized") && numCols == $inBox.children().length) {
	//				return;
	//			}
				if(numCols <= 1){
					return singleColumnizeIt();
				}
				if($inBox.data("columnizing")) return;
				$inBox.data("columnized", true);
				$inBox.data("columnizing", true);
				
				$inBox.empty();
				$inBox.append($("<div style='width:" + (Math.round(100 / numCols) - 2)+ "%; padding: 3px; float: " + options.float + ";'></div>")); //"
				$col = $inBox.children(":last");
				$col.append($cache.clone());
				maxHeight = $col.height();
				$inBox.empty();
				
				var targetHeight = maxHeight / numCols;
				var firstTime = true;
				var maxLoops = 3;
				var scrollHorizontally = false;
				if(options.overflow){
					maxLoops = 1;
					targetHeight = options.overflow.height;
				}else if(options.height && options.width){
					maxLoops = 1;
					targetHeight = options.height;
					scrollHorizontally = true;
				}
				
				for(var loopCount=0;loopCount<maxLoops;loopCount++){
					$inBox.empty();
					var $destroyable;
					try{
						$destroyable = $cache.clone(true);
					}catch(e){
						// jquery in ie6 can't clone with true
						$destroyable = $cache.clone();
					}
					$destroyable.css("visibility", "hidden");
					// create the columns
					for (var i = 0; i < numCols; i++) {
						/* create column */
						var className = (i == 0) ? "first column" : "column";
						var className = (i == numCols - 1) ? ("last " + className) : className;
						$inBox.append($("<div class='" + className + "' style='width:" + (Math.round(100 / numCols) - 2)+ "%; float: " + options.float + ";'></div>")); //"
					}
					
					// fill all but the last column (unless overflowing)
					var i = 0;
					while(i < numCols - (options.overflow ? 0 : 1) || scrollHorizontally && $destroyable.children().length){
						if($inBox.children().length <= i){
							// we ran out of columns, make another
							$inBox.append($("<div class='" + className + "' style='width:" + (Math.round(100 / numCols) - 2)+ "%; float: " + options.float + ";'></div>")); //"
						}
						var $col = $inBox.children().eq(i);
						columnize($col, $destroyable, $col, targetHeight);
						// make sure that the last item in the column isn't a "dontend"
						if(!$destroyable.children().find(":first-child").hasClass("dontend")){
							split($col, $destroyable, $col, targetHeight);
						}else{
	//						alert("not splitting a dontend");
						}
						
						while(checkDontEndColumn($col.children(":last").length && $col.children(":last").get(0))){
							var $lastKid = $col.children(":last");
							$lastKid.remove();
							$destroyable.prepend($lastKid);
						}
						i++;
					}
					if(options.overflow && !scrollHorizontally){
						var IE6 = false /*@cc_on || @_jscript_version < 5.7 @*/;
						var IE7 = (document.all) && (navigator.appVersion.indexOf("MSIE 7.") != -1);
						if(IE6 || IE7){
							var html = "";
							var div = document.createElement('DIV');
							while($destroyable[0].childNodes.length > 0){
								var kid = $destroyable[0].childNodes[0];
								for(var i=0;i<kid.attributes.length;i++){
									if(kid.attributes[i].nodeName.indexOf("jQuery") == 0){
										kid.removeAttribute(kid.attributes[i].nodeName);
									}
								}
								div.innerHTML = "";
								div.appendChild($destroyable[0].childNodes[0]);
								html += div.innerHTML;
							}
							var overflow = $(options.overflow.id)[0];
							overflow.innerHTML = html;
						}else{
							$(options.overflow.id).empty().append($destroyable.children().clone(true));
						}
					}else if(!scrollHorizontally){
						// the last column in the series
						$col = $inBox.children().eq($inBox.children().length-1);
						while($destroyable.children().length) $col.append($destroyable.children(":first"));
						var afterH = $col.height();
						var diff = afterH - targetHeight;
						var totalH = 0;
						var min = 10000000;
						var max = 0;
						var lastIsMax = false;
						$inBox.children().each(function($inBox){ return function($item){
							var h = $inBox.children().eq($item).height();
							lastIsMax = false;
							totalH += h;
							if(h > max) {
								max = h;
								lastIsMax = true;
							}
							if(h < min) min = h;
						}}($inBox));
	
						var avgH = totalH / numCols;
						if(options.lastNeverTallest && lastIsMax){
							// the last column is the tallest
							// so allow columns to be taller
							// and retry
							targetHeight = targetHeight + 30;
							if(loopCount == maxLoops-1) maxLoops++;
						}else if(max - min > 30){
							// too much variation, try again
							targetHeight = avgH + 30;
						}else if(Math.abs(avgH-targetHeight) > 20){
							// too much variation, try again
							targetHeight = avgH;
						}else {
							// solid, we're done
							loopCount = maxLoops;
						}
					}else{
						// it's scrolling horizontally, fix the width/classes of the columns
						$inBox.children().each(function(i){
							$col = $inBox.children().eq(i);
							$col.width(options.width + "px");
							if(i==0){
								$col.addClass("first");
							}else if(i==$inBox.children().length-1){
								$col.addClass("last");
							}else{
								$col.removeClass("first");
								$col.removeClass("last");
							}
						});
						$inBox.width($inBox.children().length * options.width + "px");
					}
					$inBox.append($("<br style='clear:both;'>"));
				}
				$inBox.find('.column').find(':first.removeiffirst').remove();
				$inBox.find('.column').find(':last.removeiflast').remove();
				$inBox.data("columnizing", false);
	
				if(options.overflow){
					options.overflow.doneFunc();
				}
				options.doneFunc();
			}
		});
	 };
	})(jQuery);
	/*** END AUTOCOLUMN ***/
	
	jQuery(document).ready(function() {
		jQuery('#header-carousel').jCarouselLite({ 
			btnNext: ".jcarousel-next",
        	btnPrev: ".jcarousel-prev", 
			auto: 5000,
			speed: 500,
			circular:false
		});
		
		jQuery('#gallerycarousel').jcarousel({ 
			scroll: 1, 
			auto: 0, 
			wrap: 'both',
			buttonNextHTML:"<div id=\"galleries-next\"><a href=\"javascript:void(0)\"></a></div>",
			buttonPrevHTML:"<div id=\"galleries-prev\"><a href=\"javascript:void(0)\"></a></div>"
		});
		$('.columnize').columnize({ columns: 3 });
		
		jQuery("div#showcase-poll").html(jQuery("div.hc-poll").remove()); 
		jQuery("div.hc-poll").css("display", "block");
		

		function clickBg(e, url) {
			evt = e || window.event;

			if(e.target.nodeName == 'BODY') {
				window.open(url);
			}
		}

		if(wallpaper!=""){
			jQuery('body').click(function(event) {
				clickBg(event, wallpaper);
			});
		}
		
		if (document.getElementById("header-carousel")){
			document.getElementById('header-carousel').style.visibility = 'visible'  
		}
		if (document.getElementById("gallerycarousel")){
				document.getElementById('gallerycarousel').style.visibility = 'visible'  
		}
		
			
			
	});
		setTimeout(function(){
	    	$('#user_posts').appendTo($('.pluck-third-posts-section-text'));
	    	$('#user_posts').css("display", "block").css;
		}, 3000);
		
		

		function ReturnMostCommented(response){
			var html = "<ol>";
			response.DiscoverContentAction.DiscoveredContent.sort(function(a,b){
				return b.Comments.NumberOfComments - a.Comments.NumberOfComments;
			});
			
			$.each(response.DiscoverContentAction.DiscoveredContent, function(i,item){
				html += "<li>";
				html += "<a href='"+item.PageUrl+"'>"+item.PageTitle+"</a>";
				html += "<p class='comment-count'><a href='"+item.PageUrl+"'>"+item.Comments.NumberOfComments+" comments</a></p>";
				html += "</li>";
			});
			
			html += "</ol>";
			$('div#most_commented_ticker').html(html);

			return true;
		}

		String.prototype.word_limit = function(i) {
			var words;
			var newStr = "";
			words = this.split(/[\s]+/);
			if(i > words.length) {
				return this;
			}
			for(c=0; c <= i-1; c++){
				newStr += ' ' + words[c];
			}
			return newStr;
		}
		function ReturnInboxCount(response){
			var pmCount = response.PrivateMessageFolderList.FolderList[1].UnreadMessageCount;
			$('span#pmCount').html(pmCount);
			//IE hack
			$('span#pmCount').empty().append(pmCount);
		}
	
		function ReturnPageRequestBatch(response){
			$.each(response.Responses, function(index, obj){
				if(obj.DiscoverContentAction){
					ReturnMostCommented(obj);
				}

				if(obj.ActivityFeed){
					ReturnChatter(obj);
				}

				if(obj.PrivateMessageFolderList){
					ReturnInboxCount(obj);
				}
			});
		}

		function PageRequestBatch() {
			var requestBatch = new RequestBatch();
			var req = false;
			
			// MOST COMMENTED
			if($('div#most_commented_ticker')) {
				var searchSections = new Array();
					searchSections[0] = new Section("news");
					searchSections[1] = new Section("entertainment");
					searchSections[2] = new Section("celebs");
					searchSections[3] = new Section("relationships");
					searchSections[4] = new Section("guys");
					searchSections[5] = new Section("style");
					searchSections[6] = new Section("money");
				var searchCategories = new Array();
					searchCategories[0] = new Category("all");
				var activityDisco = new Activity("Commented");
				var contentType = new ContentType("Article");
		
				var limitToContributors = new Array();
					limitToContributors[0] = new UserTier("All");
				
				requestBatch.AddToRequest(new DiscoverContentAction (searchSections,searchCategories,limitToContributors,activityDisco,contentType,3,10));
				req = true;
			}
			
			// CHATTER
			if($('ul#chatter-widget')) {
				requestBatch.AddToRequest(new CommunityFeedRequest(1, 100));
				req = true;
			}
			
			// INBOX
			if($('span#pmCount')) {
				var pmFolderList = new PrivateMessageFolderList();  
				requestBatch.AddToRequest(pmFolderList);
				req = true;
			}

			if(req) {
				requestBatch.BeginRequest(serverUrl, ReturnPageRequestBatch);
			}
		}
		jQuery(document).ready(function() {
		PageRequestBatch();
		});
		
		function ArticleCommentRecommend(response){
			var newArticleArr = new Array();
			if ( articleIdArr.length == 1 ){
				var isNew = true;
				for ( var i in response.Responses ){
					if (articleIdArr[0] == response.Responses[i].Article.ArticleKey.Key){
						var isNew = false;
					}
				}
				if (isNew){
					newArticleArr.push(articleIdArr[0]);
				}
			}
			if(newArticleArr.length > 0){
				requestBatch = new RequestBatch();
					for(var i in newArticleArr){
						requestBatch.AddToRequest(new UpdateArticleAction(new ArticleKey(newArticleArr[i]), articleInfo[0], articleInfo[1], new Section(articleInfo[2]),new Array()));
					}
				requestBatch.BeginRequest(serverUrl, function(){});
			}
			
			for ( var i in response.Responses ){
				var html = "";
				var CommentWord = "";
				if(response.Responses[i]){
					//Singular vs. Plural Comment(s)
					var CommentWord = "Comments";					
					if (parseInt(response.Responses[i].Article.Comments.NumberOfComments) != 1){
						CommentWord = "Comments";
					}
					html += "("+ response.Responses[i].Article.Comments.NumberOfComments +")";
				}
		
				$('div.meta_comments a.'+response.Responses[i].Article.ArticleKey.Key).html(CommentWord);
				$('.meta_comments span.'+response.Responses[i].Article.ArticleKey.Key).html(html);
			}
		}
		
		function GetCommentsRecommendations(batchArray){
				requestBatch = new RequestBatch();
				for ( var i in articleIdArr ){
					requestBatch.AddToRequest(new ArticleKey(articleIdArr[i]));
				}
				requestBatch.BeginRequest(serverUrl, ArticleCommentRecommend);
				
		}
		
		jQuery(document).ready(function() {
			if(typeof( window['articleIdArr'] ) != "undefined"){
				
				GetCommentsRecommendations(articleIdArr);
			}
		});
		
		