$(document).ready(function(){
	
	$('.picbox').each(function(){
		// nodeName/tagName was returning undefined until added array item indicator (?)
		// http://stackoverflow.com/questions/2770207/jquery-nodename-returning-undefined
		// but forget nodeName because of errors when there is no prev node/tag to get
		// instead, we just see if prev node/tag has HTML present and, if that returns null, do nothing, but if it's got content, then add margin-top
		//var prevtag = $(this).prev()[0].nodeName;
		var prevtag = $(this).prev();
		//alert (prevtag.html());
		if (prevtag.html() == null){
		}else{
			$(this).css('margin-top','20px');
		};
	});
	
	// get default input text, remove it on focus, then replace it only if still empty
	$('div.wpcf7 input:text').each(function(){
	var defaultval = $(this).attr('value');
		//.addClass('placeholder-text')
		$(this).addClass('blur')
		.val(defaultval)
		.bind('focus',function(){
			if(this.value == defaultval){
				$(this)
					.val('').removeClass('blur');
			}
		})
		.bind('blur',function(){
			if(this.value == ''){
				$(this)
					.val(defaultval).addClass('blur');
					//.addClass('placeholder-text');
			}
		});
	});
	// END input fuxx0ring
	
	// Remove "Howard Area" from Leadership Academy nav link?
	//$('.menu-item-124 a').html('Leadership Academy');
	
////// END ALL 	
});
//////
