function initializeJQueryApps() {

				// Watermarks for input elements
					j$('#entersearch').watermark('enter search terms', {className:'watermark'});
					j$('#loc_address').watermark('address', {className:'watermark'});
					j$('#loc_city').watermark('city', {className:'watermark'});
					j$('#loc_zip').watermark('zip', {className:'watermark'});

					//j$('.required').watermark('required', {className:'watermarkreq'});

				// ACCORDIAN with cookie for tab persistence
					var accordion = j$("#accordion");
					var index = j$.cookie("accordion");
					var active;
					if (index !== null) {
						active = accordion.find("h3:eq(" + index + ")");
					} else {
						active = 0
					}
					accordion.accordion({
						header: "h3",
						event: "click hoverintent",
						active: active,
						// autoHeight: true,
						change: function(event, ui) {
							var index = j$(this).find("h3").index ( ui.newHeader[0] );
							j$.cookie("accordion", index, {
								path: "/"
							});
						}
					});

					// accordion tab panel layout changes
					j$("div#pnl_findphys h3").addClass('jh-ui-corner-top');
					j$("div#pnl_findserv h3").addClass('jh-ui-corner-bottom');
					j$("div#pnl_findserv h3.ui-state-active").addClass('ui-corner-bottom');	
					j$("div#pnl_findserv div").addClass('jh-ui-corner-bottom');




				// Hover states on the static widgets
					j$('#dialog_link, ul#icons li').hover(
						function() { j$(this).addClass('ui-state-hover'); }, 
						function() { j$(this).removeClass('ui-state-hover');}
					);
					

				// Ad slider
					j$(".slider").easySlider({
						auto: true, 
						continuous: true,
						numeric: true,
						controlsBefore:	'<div id=controlwrap>',
						controlsAfter:	'</div>',
						speed:500,
						pause:5000
					});


				// top nav mega menu
					function megaHoverOver(){
						j$(this).find(".sub").stop().fadeTo('fast', 1).show();
							
						//Calculate width of all ul's
						(function(j$) { 
							jQuery.fn.calcSubWidth = function() {
								rowWidth = 0;
								//Calculate row
								j$(this).find("ul").each(function() {					
									rowWidth += j$(this).width(); 
								});	
							};
						})(jQuery); 
						
						if ( j$(this).find(".row").length > 0 ) { //If row exists...
							var biggestRow = 0;	
							//Calculate each row
							j$(this).find(".row").each(function() {							   
								j$(this).calcSubWidth();
								//Find biggest row
								if(rowWidth > biggestRow) {
									biggestRow = rowWidth;
								}
							});
							//Set width
							j$(this).find(".sub").css({'width' :biggestRow});
							j$(this).find(".row:last").css({'margin':'0'});
							
						} else { //If row does not exist...
							
							j$(this).calcSubWidth();
							//Set Width
							j$(this).find(".sub").css({'width' : rowWidth});
							
						}
					}
					
					function megaHoverOut(){ 
					  j$(this).find(".sub").stop().fadeTo('fast', 0, function() {
						  j$(this).hide(); 
					  });
					}
								
					var config = {    
						 sensitivity: 2, // number = sensitivity threshold (must be 1 or higher)    
						 interval: 100, // number = milliseconds for onMouseOver polling interval    
						 over: megaHoverOver, // function = onMouseOver callback (REQUIRED)    
						 timeout: 500, // number = milliseconds delay before onMouseOut    
						 out: megaHoverOut // function = onMouseOut callback (REQUIRED)    
					};
				
					j$("ul#topnav li .sub").css({'opacity':'0'});
					j$("ul#topnav li").hoverIntent(config);
									
					
					// Tabs
					j$('#tabs').tabs();
					

					// Generic image rotator - see http://jhsmh.org/Services/MentalHealthServices.aspx for sample
					j$('#slideshow').cycle();
					
					//YoutTube Playlist display on media page
					//j$("ul.demo2").ytplaylist({addThumbs:true, holderId: 'ytvideo2', playerHeight:200, playerWidth:310});


}



