
//pre-load the images for caching
//DN - Caching does not work and causes 404s to occur. Disabled for now
//$.preloadCssImages();

        
$(document).ready(function(){

        // New contact page button:
         $("#call_us_contact").click(function(){
            $("#call_us_detail").show("slow");
            doAContactEvent('LEAD', 'Show Phone number clicked');
         });

        $('#jfadmin-delete').click(function() {
            $('#jfadmin').fadeOut();
            return false;
        })



        //is fired when someone lands on the contact us page
        function doAContactEvent(eventName, evnetDescription) {
               __JAWS.action(eventName, evnetDescription);
               __JAWS.render();
        }

        //applying tootips using jquery.hovertips.js 
        
	        $(".hovertip_target").tooltip({ 
			    bodyHandler: function() { 
			        return $($(this).attr("id")).html(); 
			    }, 
			    showURL: false ,
			    delay: 1000,
			    top:5,
			    left:0,
			    track:false

			});
			
			$("#tooltip").hover(
				function() {
						$(this).removeClass("tooltip_show");
						$(this).addClass("tooltip_show").show();
					},
				
				function() {
						$(this).removeClass("tooltip_show");
						$(this).hide();
						$(this).addClass("tooltip_show").hide();
					}
					
				);
				
			
			$(".hovertip_target").hover(
				function() {
						$("#tooltip").removeClass("tooltip_show");
						$("#tooltip").addClass("tooltip_show").show();
					},
				
				function() {
						$("#tooltip").removeClass("tooltip_show");
						$("#tooltip").hide();
					}
					
				);
		
			

  	
});




