// Custom code
jQuery(document).ready(function () {
    // Used for executing code only on certain pages
    pathname = window.location.pathname;
    
	// Phone replacement
    if (phone != null)
    {
		if (jQuery('span[class^=ums_dynamicnumber]').length > 0)
    	{
			if (phone.split('|').length > 1)
			{
				phones = phone.split('|');
				$('span[class^=ums_dynamicnumber]').each(function () {
					var class = $(this).attr('class');
					var id = class.substr(17);
					jQuery('.' + class).text(phones[id]);
				});
			}
			else
			{
            	jQuery('span[class^=ums_dynamicnumber]').text(phone);
			}
        }	
    }
	
	if (pathname == '/paula_deen2011.php')
	{
		$("a[title='Download brochure. ']").click(function () { _gaq.push(['ct._trackPageview', 'paula_brochure']); });
		$("div.sidecontent a").click(function () {
			if ($(this).text() == 'deen@alicetravel.com')
			{
				_gaq.push(['ct._trackPageview', 'email_deen']);
			}
			else
			{
				_gaq.push(['ct._trackPageview', 'follow_facebook']);
			}
		});
	}
});
