﻿$('document').ready(function(){
	//initialize form
	$('#comment-form #name[value=""]').attr('value','Name');
	$('#comment-form #email[value=""]').attr('value','Email (not shown to others)');
	$('#comment-form #url[value=""]').attr('value','Website URL (if any)');

	//slide
	$('#add-comment h2').click(function(){
		$('#comment-form').slideToggle('medium');
	});

	//sticky

	/*$(window).scroll(function(){
		var offset = $('#social').offset();
		var h = $(window).height();
		var scroll = $(window).scrollTop();
		var tex = "social offset= " + offset.top + " win height = " + h + " scrolltop = " + scroll;
		$('.field.textarea').attr('value', tex);

		if( offset.top < scroll ){
			$('#social').css('position', 'fixed');
		} else {
			$('#social').css('position', 'absolute');
		}
	});*/
});

