

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-17775561-1']);
  _gaq.push(['_setDomainName', '.sanguecorinthiano.com.br']);
  _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);
  })();


$(document).ready(function() {

     $("#subscribe").hide();

     $('a#subscribetoggle').click(function() {
          $("#subscribetoggle").fadeOut(600);
          $("#subscribe").toggle(600);
return false;
      });

});

$(function () {
    var tabContainers = $('div#tabs > div');
    
    $('div#tabs ul#tabNavigation a').click(function () {
        tabContainers.hide().filter(this.hash).fadeIn(1000);
        
        $('div#tabs ul#tabNavigation a').removeClass('selected');
        $(this).addClass('selected');
        
        return false;
    }).filter(':first').click();
});

$(document).ready(function() { 
    var options = { 
        target:        '#ajaxresponse',   // target element(s) to be updated with server response 
        clearForm: true        // clear all form fields after successful submit 
    }; 
 
    $('#contactform').ajaxForm(options); 
}); 
 
// pre-submit callback 
function showRequest(formData, jqForm, options) { 
    var queryString = $.param(formData); 
    alert('About to submit: \n\n' + queryString); 
    return true; 
} 
 
// post-submit callback 
function showResponse(responseText, statusText)  { 
    alert('status: ' + statusText + '\n\nresponseText: \n' + responseText + 
        '\n\nThe output div should have already been updated with the responseText.'); 
}
