// JavaScript Document

//Background Function
$(function(){
			$.fn.supersized.options = {  
				startwidth: 1188,  
				startheight: 668,
				vertical_center: 1,
				slideshow: 0,
				navigation: 0,
				transition: 0, //0-None, 1-Fade, 2-slide top, 3-slide right, 4-slide bottom, 5-slide left
				pause_hover: 0,
				slide_counter: 0,
				slide_captions: 0,
				slide_interval: 3000  
			};
	        $('#supersize').supersized(); 
	    });

// Home page slideshow
	$(function() {
    $('#blurbs').cycle({ 
    fx:    'fade', 
    speed:  600,
	timeout: 9000
 	});
	});

// Mailing List Popup
      $(document).ready(function() {
        $('li#mailing-list> div').hide();
        $('li#mailing-list> h3').click(function() {
          $(this).next('div').toggle('fast')
        });
	});
	  
// Contact Info Popup
      $(document).ready(function() {
        $('.contact> div').hide();
        $('.contact> h3').click(function() {
          $(this).next('div').toggle('fast')
        });
	});

//set hover class for anything
$(document).ready(function() {
 $('li#mailing-list h3').hover(function() {
 $(this).addClass('pretty-hover');
 }, function() {
 $(this).removeClass('pretty-hover');
 });
});

$(document).ready(function() {
 $('.contact h3').hover(function() {
 $(this).addClass('pretty-hover');
 }, function() {
 $(this).removeClass('pretty-hover');
 });
});

//Top Pipe Erase

$(document).ready(function(){
    $("#top li:first").css({borderLeft: 'none'});
  });

//pngFix for IE
	$(document).ready(function(){
		$('div#container').pngFix( );
	});
		