Cufon.replace('.sidepanel h4, #enews-title, h1, #footerwrap .telephone');

$(function(){
	$('#breadcrumb, .sidepanel,.promotions li, th, #contact-form-container, #safeheatfaq h2,#renewablefaq h2,#homecoverfaq h2').corner('8px');
	$('#slideshow li a').corner('8px right');
	
	
	var active_color = '#000';
	var inactive_color = '#9c9c9c';
	$("input.default-value").css("color", inactive_color);
	$("input.default-value").css("font-weight", "bold");
  var default_values = new Array();
  $("input.default-value").focus(function() {
    if (!default_values[this.id]) {
      default_values[this.id] = this.value;
	  $("input.default-value").css("font-weight", "normal");
    }
    if (this.value == default_values[this.id]) {
      this.value = '';
      this.style.color = active_color;
    }
    $(this).blur(function() {
      if (this.value == '') {
        this.style.color = inactive_color;
        this.value = default_values[this.id];
      }
    });
  });

});

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-6146016-4']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
	
	jQuery(document).ready(function($) {
 
	$(".panel-bg").click(function(event){		
		event.preventDefault();
		$('html,body').animate({scrollTop:$('#apply').offset().top}, 500);
	});
});
