/* homepage scripts */
(function(){


var homepageCufonReplace = '.box1 h2, #twitter h2, #frOptions h1, .coverage-and-email p.success, .coverage-and-email p.privacy';

// Quick fix for Cufon issues in IE 8.
if(navigator.appVersion.indexOf('MSIE 8.0') < 0){
	homepageCufonReplace += ', .promospot1 a, #carousel .infoblock h2';
}
Cufon.replace(homepageCufonReplace);
	
		
$(document).ready(function() {
	// replace the submit button with a styled link
	$(".coverage div.submit").append('<a href="#">Check coverage</a>');
	$(".coverage div.submit a").click(function() {
		$(this).parents("form").eq(0).submit();
		return false;
	});
	
	// replace the submit button with a styled link
	$(".email-signup div.submit").append('<a href="#">Sign up now</a>');
	$(".email-signup div.submit a").click(function() {
		$(this).parents("form").eq(0).submit();
		return false;
	});	

});


// stop firebug console errors in browsers that don't support it
if(!window.console)     { window.console = {}; };
if(!window.console.log) { window.console.log = function(){}; };


})();