	$(document).ready(function(){
		$("#tabs").tabs({ selected: 1 });
		mediaspot();
	    $("#sotabs").tabs({ selected: 0 });
        $(".tweet").tweet({
            username: "mmforthepeople",
            join_text: "auto",
            avatar_size: 32,
            count: 5,
            auto_join_text_default: "-", 
            auto_join_text_ed: "we",
            auto_join_text_ing: "we were",
            auto_join_text_reply: "we replied to",
            auto_join_text_url: "we were checking out",
            loading_text: "loading tweets..."
        });
        $('#youtubevideos').youTubeChannel({ 
            userName: 'mmforthepeople', 
            channel: "favorites", 
            hideAuthor: true,
            numberToDisplay: 6,
            linksInNewWindow: true
            //other options
            //loadingText: "Loading...",                    
        });		
}); 

var player1 = null;
      var player2 = null;
 
   
	  function mediaspot()
      {
 
			
        var so2 = new SWFObject('player.swf', 'jstest2', '279', '225', '9.0.124');
            so2.addParam('allowscriptaccess', 'always');
            so2.addParam('allowfullscreen',   'true');
			so2.addParam('wmode', 'opaque');
		  so2.addParam('flashvars',           'file=crist-news.flv&streamer=rtmp://fms1.forthepeople.com/vod/_videos&image=http://www.forthepeople.com/images2/video_crist.jpg&frontcolor=cccccc&lightcolor=66cc00&backcolor=111111');
            so2.write('mediavid');
      };
	  /*
	    so2.addParam('flashvars',           'file=fb_debtcollector-lawsuit.flv&streamer=rtmp://fms1.forthepeople.com/vod/_videos&image=http://www.forthepeople.com/images2/fb_debtcollector-lawsuit-thumb.jpg&frontcolor=cccccc&lightcolor=66cc00&backcolor=111111');*/
	  
      function playerReady(obj)
      {
     
        if(obj.id == 'jstest2')
        {
          player2 = gid(obj.id);
        }
      };
 
      function loadNplay(file1, file2)
      {
       
        player2.sendEvent('LOAD', {file:file2, type:'video'});
        player2.sendEvent('PLAY', 'true');
      };
 
      function gid(element)
      {
        return document.getElementById(element);
      };
	 
