$(document).ready(function() {
    $('button').hover(function() {
      $(this).addClass('hoverme');
    }, function() {
      $(this).removeClass('hoverme');
    });
  });

$(document).ready(function(){
	$('ul.sf-menu').superfish();
});  

$(document).ready(function() {
$('#headerSlideshow').cycle({ 
    fx:      'fade', 
    speed:    2500
    });
  });

/* --------- Email Signup -------------*/

    $(document).ready(function() {
        var hide = false;
        $("#select").hover(function(){
            if (hide) clearTimeout(hide);
            $("#updatesSignup").fadeIn();
            $("#select").addClass('on');
        }, function() {
            hide = setTimeout(function() {$("#updatesSignup").fadeOut("slow");}, 250);
        });
        $("#updatesSignup").hover(function(){
            if (hide) clearTimeout(hide);
        }, function() {
            hide = setTimeout(function() {$("#updatesSignup").fadeOut("slow");}, 250);
            $("#select").removeClass('on');
        });
    });


/* --------- Project Details -------------*/

$(document).ready(function() {
  $('ul.expander li .expandme').expander({
    slicePoint: 550, 
    widow: 0,
    expandText: 'more',
    expandEffect: 'fadeIn', 
    userCollapseText: '[^]'
  });
  
});

$(document).ready(function(){
				//Examples of how to assign the ColorBox event to elements
				$("a[rel='example1']").colorbox();
				$("a[rel='example2']").colorbox({transition:"fade"});
				$("a[rel='example3']").colorbox({transition:"none", width:"75%", height:"75%"});
				$("a[rel='example4']").colorbox({slideshow:true});
				$(".single").colorbox({}, function(){
					alert('Howdy, this is an example callback.');
				});
				$(".colorbox").colorbox();
				$(".youtube").colorbox({iframe:true, width:650, height:550});
				$(".iframe").colorbox({width:"80%", height:"80%", iframe:true});
				$(".inline").colorbox({width:"50%", inline:true, href:"#inline_example1"});
				
				//Example of preserving a JavaScript event for inline calls.
				$("#click").click(function(){ 
					$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
					return false;
				});
			});
