jQuery(document).ready(function($){ // START

  jQuery('input[title], textarea[title]').each(function() {if($(this).val() === '') {$(this).val($(this).attr('title'));}
    $(this).focus(function() {if($(this).val() == $(this).attr('title')) {$(this).val('').addClass('focused');}});
    $(this).blur(function() {if($(this).val() === '') {$(this).val($(this).attr('title')).removeClass('focused');}});
  });


  jQuery('.fade').hover(
    function() {$(this).fadeTo("medium", 1);},
    function() {$(this).fadeTo("medium", 0.5);}
  );


	jQuery('.accordion-content').hide();
	jQuery('.accordion-title').click(function() {
  jQuery('.accordion-content').slideUp('normal');
    if($(this).next().is(':hidden') == true) {
      $(this).next().slideDown('normal');
    } 
  });


  jQuery('.warning, .question, .disclaim, .post-button, .tweet').corner('5px');
  jQuery('ul.pagination, .widget-tabs-title li a').corner('20px');
  jQuery('.current-page, ul.pagination a').corner('12px');
  jQuery('.section, .section-wide').corner('8px');

  jQuery(".uniform, .aside input, .aside textarea, .aside select, .aside button, .section input, .section textarea, .section select, .section button").uniform();

}); // END

Cufon.replace('.header-title', {fontFamily: 'novecento'});
		
function showVideo(id) {
  document.write("<div class=\"centered\">");
  document.write("<object width=\"580\" height=\"326\">");
  document.write("<param name=\"movie\" value=\"http://www.youtube.com/v/"+id+">&amp;hl=en&amp;fs=1\"></param>");
  document.write("<param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param>");
  document.write("<embed src=\"http://www.youtube.com/v/"+id+"&amp;hl=en&amp;fs=1\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"580\" height=\"326\"></embed></object>");
  document.write("</div>");
}
