//variables

var showBS = 0;
var t;

//rotate brand statements (bs) and lis
showNextBS = function(currentBS){
	if (currentBS != 10){
		showBS = currentBS +1;
	} else {
		showBS = 0;
	}
	
	//hide current BS then show next
	$("li#bs" + showBS).fadeIn('slow'), function() {
		if(jQuery.browser.msie)   
		this.style.removeAttribute('filter');
	};
	$("li#bs" + currentBS).fadeOut('slow');
		
	// re-run this function
	t=setTimeout("showNextBS(showBS)",3000);
}

$(document).ready(function(){
	
	// time before start of function
	var x=setTimeout("showNextBS(showBS)",0)

	
	$(function(){
	var spt = $('.mailto');
	var at = / at /;
	var dot = / dot /g;
	var addr = $(spt).text().replace(at,"@").replace(dot,".");
	$(spt).after('<a href="mailto:'+addr+'?Subject=Enquiry" title="Email us">'+ addr +'</a>')
	$(spt).remove();
	});
	
});

