jQuery(document).ready(function($){

$('.project').hover(function(){
	$(this).addClass('.hover');
    }, function() {
    $(this).removeClass('.hover');
});

$('.view').hover(function(){
	$(this).addClass('.hover');
    }, function() {
    $(this).removeClass('.hover');
});

$('#slideshow').cycle({ 
    fx:      'fade',
    timeout:  6000,
	speed:  2000, 
	pause: 1
}); 


var oTxtFields = $('input, textarea');
$.each(oTxtFields, function(){
	var label = $('label[for=' + $(this).attr('id') + ']');
	label.addClass('overlayed');
	if (!$(this).val() == '') {
		label.hide();
	}
	$(this)
		.focus(function(e){
			$('label[for=' + $(e.target).attr('id') + ']').hide();
		})
		.blur(function(e){
			if ($(e.target).val() == '') {
				$('label[for=' + $(e.target).attr('id') + ']').show();
			}
		})
	;
});



/* Thumbnail grid hover dropdowns 
 $(".hidden").hide(); 
	
    $("div.project").hover(
      function () {
      if ($.browser.msie) $(".hidden", this).show();
        $(".hidden", this).animate({ height: 'show' }, 'fast');
      }, 
      function () {
      if ($.browser.msie) $(".hidden", this).hide();
        $(".hidden", this).animate({ height: 'hide' }, 'fast');
      }
    );
*/

});
