		//start -> right block functions
		var SwitchRightBlock_target = null;
		var SwitchRightBlock_callback = null;
		var ContainerForAds;

		function SwitchRightblock(_fx, _callback)
		{
			if(ContainerForAds == undefined)
				ContainerForAds = document.getElementById('div_RightBlock_ad');

			switch(_fx)
			{
				case 'Notes':
				{
					if(ShmoopUser_auth == false)
					{
						Goto('/login');
						return;
					}

					item_id = '';
					if(ShmoopItem_ids != undefined)
					{
						for(var i=0; i<ShmoopItem_ids.length; i++)
							item_id += ShmoopItem_ids[i] + ',';
					}

					item_id += ShmoopObject_id;

					document.getElementById('RightBlock_LinkBlock_Conversations').className = 'PageFx_Button_Un';
					document.getElementById('RightBlock_LinkBlock_Conversations_img').src = '/media/v1d3/page_fx/un/conversations.gif';
					document.getElementById('RightBlock_LinkBlock_WGO').className = 'PageFx_Button_Un';
					document.getElementById('RightBlock_LinkBlock_WGO_img').src = '/media/v1d3/page_fx/un/whats_going_on.gif';
					document.getElementById('RightBlock_LinkBlock_Notes').className = 'PageFx_Button_Sel';
					document.getElementById('RightBlock_LinkBlock_Notes_img').src = '/media/v1d3/page_fx/at/take_notes.png';
					break;
				}
				case 'Conversations':
				{
					if(ShmoopUser_auth == false)
					{
						Goto('/login');
						return;
					}

					item_id = ShmoopObject_id;

					document.getElementById('RightBlock_LinkBlock_WGO').className = 'PageFx_Button_Un';
					document.getElementById('RightBlock_LinkBlock_WGO_img').src = '/media/v1d3/page_fx/un/whats_going_on.gif';
					document.getElementById('RightBlock_LinkBlock_Notes').className = 'PageFx_Button_Un';
					document.getElementById('RightBlock_LinkBlock_Notes_img').src = '/media/v1d3/page_fx/un/take_notes.gif';
					document.getElementById('RightBlock_LinkBlock_Conversations').className = 'PageFx_Button_Sel';
					document.getElementById('RightBlock_LinkBlock_Conversations_img').src = '/media/v1d3/page_fx/at/conversations.png';
					break;
				}
				case 'WGO':
				default:
				{
					item_id = ShmoopObject_id;

					document.getElementById('RightBlock_LinkBlock_Notes').className = 'PageFx_Button_Un';
					document.getElementById('RightBlock_LinkBlock_Notes_img').src = '/media/v1d3/page_fx/un/take_notes.gif';
					document.getElementById('RightBlock_LinkBlock_Conversations').className = 'PageFx_Button_Un';
					document.getElementById('RightBlock_LinkBlock_Conversations_img').src = '/media/v1d3/page_fx/un/conversations.gif';
					document.getElementById('RightBlock_LinkBlock_WGO').className = 'PageFx_Button_Sel';
					document.getElementById('RightBlock_LinkBlock_WGO_img').src = '/media/v1d3/page_fx/at/whats_going_on.png';
					break;
				}
			}

			SwitchRightBlock_target = _fx;
			SwitchRightBlock_callback = _callback;

			document.getElementById('RightBlock_Replace').innerHTML = '<div style="font-size:13px;margin-top:15px;color:#aaa;width:460px;" align="center">Loading<div><img src="/media/ajax/bar_fff_000.gif" style="margin-left:-5px;"><\/div><\/div>';

			var url = '/ajax/template/rightblock?fx=' + _fx + '&item_id=' + item_id;
			var xhrcall = new Ajax(url, {onComplete:SwitchRightBlock_Response}).request();

			//SAVE RIGHT BLOCK CLICKED VALUE IN HIDDEN FIELD TO USE WHEN USER CLICKS OUTSIDE OF INPUTBOX, (WHEN RETURN TO REST JS FUNCTION IS FIRED).
			document.getElementById('input_right_block_value').value = _fx;
		}

		function SwitchRightBlock_Response(_response)
		{
			//switch the viewer

			if(SwitchRightBlock_target == 'Notes')
			{
				eval(_response);
			}
			else if(SwitchRightBlock_target == 'Conversations')
			{
				document.getElementById('RightBlock_Replace').innerHTML = _response;
			}
			else if(SwitchRightBlock_target == 'WGO')
			{
				document.getElementById('RightBlock_Replace').innerHTML = _response;
				var adtoreplace = document.getElementById('div_RightBlock_ad');
				adtoreplace.parentNode.replaceChild(ContainerForAds, adtoreplace);
			}

			if(SwitchRightBlock_callback != undefined && SwitchRightBlock_callback != null)
			{
				SwitchRightBlock_callback.call(this);
			}
		}

		//end -> right block functions


	/* BEGIN - IF YOU LIKE THIS, YOU'LL LIKE THAT */
		/*function LoadLikeThisLikeThat_Ajax(_moduleID, _shortTitle, _subject, _synSubject, _showhide)
		{
			if(_synSubject == undefined || _synSubject == null)
				_synSubject = "";
			if(_showhide == undefined || _showhide == null)
				_showhide = "none";
				//var ajaxUrl = '/ajax/LikeThis/LikeThis?fx=rightside&subject='+_subject+'&id='+_moduleID+'&shorttitle='+_shortTitle+'&subject='+_subject;
				//var myRequest = new Request({url: ajaxUrl, onSuccess: LoadLikeThisLikeThat_Ajax_Response, method: 'post', data: {subject: _subject}}).send(); // Fire it
				var url = '/ajax/LikeThis/LikeThis?fx=rightside&subject='+_subject+'&id='+_moduleID+'&shorttitle='+_shortTitle+'&modSyn='+_synSubject+'&showhide='+_showhide;
				var xhr = new Ajax(url, {onComplete:LoadLikeThisLikeThat_Ajax_Response, method: 'get' }).request();
		}

		function LoadLikeThisLikeThat_Ajax_Response(_response)
		{
			if(_response== "no member")
				alert("You're not signed in!!!")
			else if(_response == "error"){
				//document.getElementById('divImageError').innerHTML = "<div style=\"background:white;font-size:10pxborder:1px red solid;padding:10px;margin-top:10px;\">Error Approving Image.  Please contact Tech Team.</div>";
			}
			else
			{
				//alert(_response);
				document.getElementById('divLikeThisContent').innerHTML = _response;
			}
		}

		function DisplayAllGenreModules(_synSubject)
		{
			document.getElementById("spin").style.display = 'block';
			if(document.getElementById(_synSubject) == null)
			{
				LoadLikeThisLikeThat_Ajax(ShmoopModuleID, ShmoopShortTitle, ShmoopSubject, _synSubject, 'block');
			}
			else
			{
				LoadLikeThisLikeThat_Ajax(ShmoopModuleID, ShmoopShortTitle, ShmoopSubject, _synSubject, 'none');
			}
		}
		window.addEvent('domready', function(){
			//LOAD RIGHT IF  YOU LIKE THIS
			LoadLikeThisLikeThat_Ajax(ShmoopModuleID, ShmoopShortTitle, ShmoopSubject);

		});*/
	/* END - IF YOU LIKE THIS, YOU'LL LIKE THAT */
