// JavaScript Document
		var userID;
		var accessToken;
		var whosGoingUrl;
		var url;
		var returnParam;
		var facebookAppID = 191180567585311;
		var XID = $('title').text().split(" ").join("");
		
		

		$(document).ready(function() {
		if($("#Header img").length != 0){
			$("#DiningModule-RestaurantTitle").remove();
			$("#DiningModule-SearchLinks").css('margin-bottom',20);
		}else{
			$("#DiningModule-RestaurantTitle").show();
		}
		connectToFacebook();
		try{

			$("#numOfReviews").html($("#Reviews p").length);
			$(".slidingDiningModuleLeft").each(function(i){
			if($(this).find("li").length > 1){
				$(this).easySlider({
					controlsBefore:	'<p id="controls'+i+'" class="pageLeft">',
					controlsAfter:	'</p>',
					prevId: 'pageLeftprevBtn'+i,
					nextId: 'pageLeftnextBtn'+i,
					prevText: 'Previous',	
					nextText: 'Next',
					auto: false, 
					continuous: false
				});
				}
			});
			}
			catch(err){
			
			}
			
			try{
			$(".slidingDiningModuleRight").each(function(i){
			if($(this).find("li").length > 1){
				$(this).easySlider({
					controlsBefore:	'<p id="controls'+i+'" class="pageRight">',
					controlsAfter:	'</p>',
					prevId: 'pageRightprevBtn'+i,
					nextId: 'pageRightnextBtn'+i,
					prevText: 'Previous',	
					nextText: 'Next',
					auto: false, 
					continuous: false
				});
				}
			});
			}
			catch(err){
			
			}
			
			try{
			if($("#stayAndPlay").find("li").length > 1){
			$("#stayAndPlay").easySlider({
				controlsBefore:	'<p id="controls2"  class="pageRight">',
				controlsAfter:	'</p>',	
				prevId: 'prevBtn2',
				nextId: 'nextBtn2',
				prevText: 'Prev Package',	
				nextText: 'Next Package',
				auto: false, 
				continuous: false
			});
			}
			
			}
			catch(err){
			
			}
			
			try{
			$('#DiningHero').anythingSlider({				
					startPanel          : 1,
					width               : 664,
					height              : 420,
					autoStart			: ($('#DiningHero li').length > 1)?true:false,
					buildNavigation		: false,
					startText           : "",   // Start button text
					stopText            : "",   // Stop button text
					delay               : 7000,
					resizeContents      : false
				});
			}
			catch(err){
			
			}
			
			$('div.expandable').each(function(){
				 var tempHTML = $(this).html();
					$(this).html(tempHTML.split('<br><br>').join('</p><p>'));
					tempHTML = $(this).html();
					$(this).html(tempHTML.split('<br /> <br />').join('</p><p>'));
					tempHTML = $(this).html();
					$(this).html(tempHTML.split('<br/><br/>').join('</p><p>'));
					tempHTML = $(this).html();
					$(this).html(tempHTML.split('<br> <br>').join('</p><p>'));
					tempHTML = $(this).html();
					$(this).html(tempHTML.split('<br /><br />').join('</p><p>'));
				
					if (showState != "M") {				
						if($(this).find('p').length >1){
							$(this).find('p:first').next('p').nextAll('p').hide();
							$(this).append('<div class="expandAndClose"></div>');								
							$(this).find('.expandAndClose').html('<div class="read-more"><a href="javascript:void(0);">Show More<img src="/images/Property/clv/navElements/expandImage.gif" width="13" height="13" border="0"/></a></div><div class="re-collapse" style="display:none;"><a href="javascript:void(0);">Show Less<img src="/images/Property/clv/navElements/collapseImage.gif" width="13" height="13" border="0"/></a></div>');
						}
					} else {
						$(this).append('<div class="expandAndClose"></div>');								
						$(this).find('.expandAndClose').html('<div style="display:none;" class="read-more"><a href="javascript:void(0);">Show More<img src="/images/Property/clv/navElements/expandImage.gif" width="13" height="13" border="0"/></a></div><div class="re-collapse"><a href="javascript:void(0);">Show Less<img src="/images/Property/clv/navElements/collapseImage.gif" width="13" height="13" border="0"/></a></div>');

					}
			});
			
			
			
			$("div.expandable .read-more a").click(function(){
					$(this).parent().parent().parent().find('p:first').next('p').nextAll('p').show();
					$(this).parent().siblings('div').show();
					$(this).parent().hide("slow");
				});
				
			$("div.expandable .re-collapse a").click(function(){
				$(this).parent().parent().parent().find('p:first').next('p').nextAll('p').hide();
				$(this).parent().hide();
				$(this).parent().siblings('div').show();
			});
		});
