

jQuery(document).ready(function(){
      doReady();
      
});

function doReady(){

		jQuery("#communityRoomLocation a").click(
			function(){
				jQuery(this).parent().find("div#communityRoomLocationForm").toggle();
				jQuery(this).toggleClass("active");
			}
		);
	  
		var intSearchResultItemZindex = 150;
		jQuery("#communityRoomSearchResults ul li").each(function(){
			jQuery(this).css("z-index", intSearchResultItemZindex);
			intSearchResultItemZindex-=1;
		});

      
      /*jQuery("#communityRoomSearchResults ul li a.nextClass").hover(
          function(){
              jQuery(this).parent().find("div.nextClassFlyout").show();
          },
          function(){
              jQuery(this).parent().find("div.nextClassFlyout").hide();
          }
      );*/
      
		jQuery("#communityRoomSearchResults ul li a.nextClass").mouseover(function(){
			jQuery(this).parent().find("div.nextClassFlyout").show();
		});
		jQuery("#communityRoomSearchResults ul li a.nextClass").mouseout(function(){
			jQuery(this).parent().find("div.nextClassFlyout").hide();
		});
		jQuery("div.nextClassFlyout").hover(
			function(){
				jQuery(this).show();
			},
			function(){
				jQuery(this).hide();
			}
		);

		jQuery("div#removeItemControl a.cancelLink").click(function(event){
 			jQuery("div#removeItemControl").hide();
 			event.preventDefault();
		}); 
}

function resetCsContactUsForm() {
        tb_show("","cs_contact_us_cancel.jsp?height=270&width=460","");

}

