// JavaScript Document

// Alt implementation, decided to use header include
//var $jj = jQuery.noConflict();

jQuery(document).ready(function(){	 
		 

	// find h2 elements and prepend with anchor
	
	jQuery('h2').each( function() {				 
		jQuery(this).before('<a name="' + jQuery(this).html().replace(' ', '_') + '"></a>');		
	});
	// set header grad image
	if(jQuery('#branding').html().length != 12)
	{
		var headerHTML = jQuery('#branding').html();
		jQuery('#branding').html(headerHTML + '<img style="position:relative;left:0px;top:-380px;z-index:1000;width:940px;" src="http://proclaim-care.co.uk/wp-content/themes/proclaim/images/header-grad.png" height="20px"   alt="">');
	}
	else
	{		
		jQuery('#branding').html('<img src="http://proclaim-care.co.uk/wp-content/themes/proclaim/images/header-grad.png" alt="">');
	}
	// set appoint us button
	jQuery('#appoint').click(function (){
		document.location = "https://proclaim-care.co.uk/secure/appoint_us_new.html";
	});
	jQuery('#appoint').hover(function() {
		jQuery(this).css('cursor','pointer');
	});
	jQuery('.slideshow').cycle({
    	fx: 'fade',
        speed: 2500,
	timeout:5000               
    });
});



 



