		//for google map
			function swapComm(commID) {
				//hide all comm detail divs

                $("#commList > div").css("display","none");

               
                
                //Mac: Removed showing th comm list on the side.
                //show this one	
                $("#commList > #comm"+commID).css("display","block");

                //Mac: Place the content into the google maps overlay div
                // get id of div that contains the content
                var toLoad = $("#commWindowContent_" + commID);
                
                // get content of that div
                var content = $(toLoad).html();
                
                // place content in target div
                $('#commWindow_' + commID).html(content);
                //alert(content);

			}
			
			function play() {
			  if (ytplayer) {
				ytplayer.playVideo();
			  }
			}
		
		//community map page
		$(document).ready(function() {

			$("#commMapDropDown").change( function() {
			  //get commID
			  var commUrl=$(this).val();
			  //swapComm(commID);
			  if (commUrl!=""){
			  window.location=commUrl;
			  }
			});
			
			$("#subheader").hover(function () {
				$("#subheader_message").slideDown("slow");
			});
			
			$("#subheader_message").click(function () {
				$("#subheader_message").slideUp("slow");
			});
			
			$(".linkDesign").click( function() { 
				$(".toggleDesign").toggleClass("hideme");
			} );
			
			$(".linkHistory").click( function() { 
				$(".toggleHistory").toggleClass("hideme");
			} );
			
			$(".youtimage").click( function() { 
				$(".youtplayer").toggleClass("hide");
				$(".youtimage").toggleClass("hide");
				setInterval('play()', 5000);
				return false;
			} );
			

		 });
	
		//photo gallery enlargement
		function openLarge(src,caption){
			tb_show(caption,src);
			//return false;
		}