
			function loadSocialMediaLinks()
				{
					 if (document)
					 {
						 var script= document.createElement('script');
						 script.type= 'text/javascript';
						 script.src= 'http://platform.twitter.com/widgets.js';
						 document.body.appendChild(script);

						 var script2= document.createElement('script');
						 script2.type= 'text/javascript';
						 script2.src= 'http://static.ak.fbcdn.net/connect.php/js/FB.Share';
						 document.body.appendChild(script2);
					}
				}


			function goToLocation(obj)
			{
				if(obj.value == '')
				{
					return;
				}
				else
				{
					window.location.href = obj.value;
				}

			}

			var currentCountCommunityWall = 10;
			var nextCountCommunityWall = currentCountCommunityWall;
			var dspWallObbj = new dspWalls();
			var commentsObbj = new dspComments();
			function dspMoreCommunityWall(groupId, isWallOwner, search_value)
				{
					currentCountCommunityWall = nextCountCommunityWall + 1;
					nextCountCommunityWall = currentCountCommunityWall + 2;
					var emptyDivContainer = document.getElementById('WallDivContainer');
					var fillingString = dspWallObbj.displayCommunityWallTrackingList(groupId,currentCountCommunityWall,nextCountCommunityWall, isWallOwner, search_value);
					var divTag = document.createElement("AppendedDIV");
		            divTag.id = "AppendedDIV1";
		            divTag.innerHTML = fillingString;
					emptyDivContainer.appendChild(divTag);
					loadSocialMediaLinks();
				}
				
			function searchWallComments(groupId, rangeStart, rangeEnd, isWallOwner, searchValue){
				var resultString = dspWallObbj.displayCommunityWallTrackingList(groupId, rangeStart, rangeEnd, isWallOwner, searchValue);
				var divContainer = document.getElementById('WallDivContainer');
				if(resultString == ''){
					resultString = '<div class="no-results-found"><h1>No Results Found</h1></div>';
				}
				divContainer.innerHTML = resultString; 
			}
			function dspPlayer(objID)
				{
					document.getElementById('playerDiv'+objID).style.display='block';
					document.getElementById('thumbnail'+objID).style.display='none';
				}
			function deleteComment(delete_comment_id)
				{
					var answer = confirm("Are you sure you want to delete this comment?")
					if (answer)
					{
						if(document.getElementById('c'+delete_comment_id))
						{
							document.getElementById('c'+delete_comment_id).innerHTML = '';
							commentsObbj.deleteComment(delete_comment_id);
						}
					}

				}
			function deleteStory(delete_story_id)
				{
					var answer = confirm("Are you sure you want to delete this feed?")
					if (answer)
					{
						if(document.getElementById('t'+delete_story_id))
						{
							document.getElementById('t'+delete_story_id).innerHTML = '';
							dspWallObbj.deleteTracking(delete_story_id);
						}
					}
				}

			var commentStory = new dspComments();
			function submitCommentSory(trackingId,baseDomainUserId)
				{
					var  commentDesc = document.getElementById('commentDesc_'+trackingId).value;
					var  commentPk = document.getElementById('commentPkIdHid_'+trackingId).value;
					var  commentTypeNameVar = document.getElementById('commentTypeNameHid_'+trackingId).value;
					var is_success = commentStory.postComment(0,commentTypeNameVar,baseDomainUserId,commentPk,commentDesc,'',1,'');
					if(is_success.IS_SUCCESS == true)
					{
						document.getElementById('commentDesc_'+trackingId).value = '';
						var commentsString = commentStory.displayObjectComments(commentPk,commentTypeNameVar);
						document.getElementById('commentsContainer_'+trackingId).innerHTML = '';
						document.getElementById('commentsContainer_'+trackingId).innerHTML=commentsString;
						showhide('comment_div_'+trackingId);
					}
					else
					{
						window.location.reload();
					}

				}

			function expandTextAreaChange(obj)
				{
					var theLines = obj.value.replace((new RegExp(".{"+obj.cols+"}","g")),"\n").split("\n");
					if(theLines[theLines.length-1]=="") theLines.length--;
					obj.rows = theLines.length;
				}
				
			var currentCountStatusUpdates = 7;
			var nextCountStatusUpdates = currentCountStatusUpdates;
			var dspWallObbj = new dspWalls();
			var commentsObbj = new dspComments();
			function dspMoreStatusUpdates(baseDomainUserId)
				{

					currentCountStatusUpdates = nextCountStatusUpdates + 1;
					nextCountStatusUpdates = currentCountStatusUpdates + 2;
					var emptyDivContainer = document.getElementById('WallDivContainer');
					var fillingString = dspWallObbj.displayStatusUpdatesTrackingList(baseDomainUserId,currentCountStatusUpdates,nextCountStatusUpdates);
					var divTag = document.createElement("AppendedDIV");
		            divTag.id = "AppendedDIV1";
		            divTag.innerHTML = fillingString;
					emptyDivContainer.appendChild(divTag);
				}
				
				
				
			var currentCountPublicProfile = 7;
			var nextCountPublicProfile = currentCountPublicProfile;
			function dspMorePublicProfile(userId)
				{
					currentCountPublicProfile = nextCountPublicProfile + 1;
					nextCountPublicProfile = currentCountPublicProfile + 2;
					var emptyDivContainer = document.getElementById('WallDivContainer');
					var fillingString = dspWallObbj.displayPublicWallTrackingList(userId,currentCountPublicProfile,nextCountPublicProfile);
					var divTag = document.createElement("AppendedDIV");
		            divTag.id = "AppendedDIV1";
		            divTag.innerHTML = fillingString;
					emptyDivContainer.appendChild(divTag);
				}
			
			function moveTrackingToTheTop(trackingId){
				dspWallObbj.moveTrackingToTheTop(trackingId);
				
				var sURL = unescape(window.location.pathname);
				window.location.replace( sURL );
			}


