// JavaScript Document
$(document).ready(function(){
	//background hover effects on home page
    $("#hp_links > .column-4 > ul").hover(
		function(){
			$(this).parent().addClass("over");
		},
		function(){
			$(this).parent().removeClass("over");
		}
	);
	
	//Flash Replacement Homepage
	if($("body").attr("class") == "home"){
		//Replace src with correct flash file, update width and heightif needed.
		//Note the location of the flash in the src is relative to the HTML page calling this javascript, not this file.
		$('#hp_flash').flash({ src: '/flash/Pitney-Bowes-Business-Insight.swf', width: 899, height: 260 });
		//preloads 2 images used for rollovers
		preload_image = new Image(222,198); 
    	preload_image.src="/images/homepage/how_do_i4.png";

		preload_image2 = new Image(707,448); 
    	preload_image2.src="/images/layout/customer_open_bg.png";

	}
	
	//Customers Page
	$(".customer-closed > h2").toggle(function(){
			$(this).parent("div").removeClass("customer-closed").addClass("customer-opened");
			},
			function(){
				$(this).parent("div").removeClass("customer-opened").addClass("customer-closed");
			});
});

