// JavaScript Document

$(function ($) {
			

	if (jQuery('#fluencyAdminHeader').length)
	{
		jQuery('#df_home_container_middle_slideshow').css('z-index','90');
		jQuery('#df_home_container_middle_slideshow #ulBlock').css('display','block');
	}

	/*if ($('#df_home_container').length) {
		jQuery('#df_home_container_middle_quicklinks ul li:nth-child(1)').hover(function() {
		  jQuery('#df_home_container_middle_quicklinks ul li:nth-child(1) ul li').slideToggle('slow', function() {
			// Animation complete.
		  });
		});
		
		jQuery('#df_home_container_middle_quicklinks ul li:nth-child(2)').hover(function() {
		  jQuery('#df_home_container_middle_quicklinks ul li:nth-child(2) ul li').slideToggle('slow', function() {
			// Animation complete.
		  });
		});
		
		jQuery('#df_home_container_middle_quicklinks ul li:nth-child(3)').hover(function() {
		  jQuery('#df_home_container_middle_quicklinks ul li:nth-child(3) ul li').slideToggle('slow', function() {
			// Animation complete.
		  });
		});
		
		jQuery('#df_home_container_middle_quicklinks ul li:nth-child(4)').hover(function() {
		  jQuery('#df_home_container_middle_quicklinks ul li:nth-child(4) ul li').slideToggle('slow', function() {
			// Animation complete.
		  });
		});		
	}*/

	/* detail page titles */
    if (location.href.indexOf("/EventDetail.aspx") > -1) {
        $('.ceTitle').css('display', 'none');
        $title = $('.ceTitle').html();
        $('.page_title').prepend($title);
    }
    if (location.href.indexOf("/BlogEntryDetail.aspx") > -1) {
        $('.blog h2').css('display', 'none');
        $title = $('.blog h2').html();
        $('.page_title').prepend($title);
    }
    if (location.href.indexOf("/sitemap.aspx") > -1) {
        $title = "Sitemap";
        $('.page_title').prepend($title);
    }
    if (location.href.indexOf("/SearchResults.aspx") > -1) {
        $title = "Search results";
        $('.page_title').prepend($title);
        $('.content_top').html('');
    }
	
	if ($('#addFeature').length) {
		jQuery('#df_content_container_middle_slideshow').css('position','relative');
		jQuery('#df_content_container_middle_slideshow').css('float','left');
		jQuery('#df_content_container_middle_slideshow').css('z-index','2');
		
		jQuery('#df_content_container_middle_navigation').css('position','relative');
		jQuery('#df_content_container_middle_navigation').css('float','left');
		jQuery('#df_content_container_middle_navigation').css('z-index','2');
		
		jQuery('#df_content_container_content').css('position','relative');
		jQuery('#df_content_container_content').css('float','left');
		jQuery('#df_content_container_content').css('z-index','2');
	}	
	
});
