$(document).ready(function() {
	
	// Email a friend link get the current url and add the page url to the href attribute as a mailto link
    	//$("#email").attr({ href: "mailto:enter email address?body=" + window.location})
		
		$("#email").attr({ href: "mailto:enter email address?body=You may be interested in this " + window.location})
		

    //search
	$('#fSearch').attr("value", "Search"); 
	
	$('#fSearch').focus(function(){
		if(this.value=='Search')
	{
		this.value=''
	}
	});
	
	$('#fSearch').blur(function(){
		if(this.value=='')
	{
		this.value='Search'
	}
	});
	

	
	//topnav
	
	// topnav - our business rollover
	$("img#nav1").hover(function() {
		$(this).attr("src","http://www.investis.com/bby_ar08/images/OurBusinessOn.jpg");
	}, function() {
		$(this).attr("src","http://www.investis.com/bby_ar08/images/OurBusinessOff.jpg");
	});
	
			// topnav - business rollover rollover - onstate
		$("img#nav1on").hover(function() {
			$(this).attr("src","http://www.investis.com/bby_ar08/images/OurBusinessOn.jpg");
		
		}, function() {
		$(this).attr("src","http://www.investis.com/bby_ar08/images/OurBusinessOn.jpg");
	});
	

	// topnav - integrated capabilities rollover
	$("img#nav2").hover(function() {
		$(this).attr("src","http://www.investis.com/bby_ar08/images/IntegratedCapabilitiesOn.jpg");
	}, function() {
		$(this).attr("src","http://www.investis.com/bby_ar08/images/IntegratedCapabilitiesOff.jpg");
	});
	
		
		// topnav - integrated capabilities rollover - onstate
		$("img#nav2on").hover(function() {
			$(this).attr("src","http://www.investis.com/bby_ar08/images/IntegratedCapabilitiesOn.jpg");
		
		}, function() {
		$(this).attr("src","http://www.investis.com/bby_ar08/images/IntegratedCapabilitiesOn.jpg");
		});

	
	// topnav - Operating review rollover
	$("img#nav3").hover(function() {
		$(this).attr("src","http://www.investis.com/bby_ar08/images/OperatingReviewOn.jpg");
	}, function() {
		$(this).attr("src","http://www.investis.com/bby_ar08/images/OperatingReviewOff.jpg");
	});
	
		// topnav - Operating review rollover
		$("img#nav3on").hover(function() {
			$(this).attr("src","http://www.investis.com/bby_ar08/images/OperatingReviewOn.jpg");
		}, function() {
			$(this).attr("src","http://www.investis.com/bby_ar08/images/OperatingReviewOn.jpg");
		});
	

	
	// topnav - Corporate responsibility rollover
	$("img#nav4").hover(function() {
		$(this).attr("src","http://www.investis.com/bby_ar08/images/CorporateResponsibilityOn.jpg");
	}, function() {
		$(this).attr("src","http://www.investis.com/bby_ar08/images/CorporateResponsibilityOff.jpg");
	});	
	
		// topnav - Corporate responsibility rollover
		$("img#nav4on").hover(function() {
			$(this).attr("src","http://www.investis.com/bby_ar08/images/CorporateResponsibilityOn.jpg");
		}, function() {
			$(this).attr("src","http://www.investis.com/bby_ar08/images/CorporateResponsibilityOn.jpg");
		});	
	

	
	// topnav - Governance rollover
	$("img#nav5").hover(function() {
		$(this).attr("src","http://www.investis.com/bby_ar08/images/GovernanceOn.jpg");
	}, function() {
		$(this).attr("src","http://www.investis.com/bby_ar08/images/GovernanceOff.jpg");
	});		
	
		// topnav - Governance rollover
		$("img#nav5on").hover(function() {
			$(this).attr("src","http://www.investis.com/bby_ar08/images/GovernanceOn.jpg");
		}, function() {
			$(this).attr("src","http://www.investis.com/bby_ar08/images/GovernanceOn.jpg");
		});	
	

	// topnav - our accounts rollover
	$("img#nav6").hover(function() {
		$(this).attr("src","http://www.investis.com/bby_ar08/images/SummaryON.jpg");
	}, function() {
		$(this).attr("src","http://www.investis.com/bby_ar08/images/SummaryOFF.jpg");
	});		
	
		// topnav - our accounts rollover
		$("img#nav6on").hover(function() {
			$(this).attr("src","http://www.investis.com/bby_ar08/images/SummaryON.jpg");
		}, function() {
			$(this).attr("src","http://www.investis.com/bby_ar08/images/SummaryON.jpg");
		});	

	});