function coverMenu() {
	var cover = document.getElementById('cover');
	var coverWidth = (960 - document.getElementById('menu-main').offsetWidth + 1) + "px";
	cover.style.width = coverWidth;
	}
	
function toggleDefinitions() {
	
	$('#kb-definitions ul li').click(function(){
		$(this).toggleClass("toggleDef")
		$(this.children).toggle();
		})
	}
	
function validForm() {
	}
	
window.onload = function() {
	coverMenu();
	if(document.getElementById("kb-definitions")) { toggleDefinitions(); }
	if(document.getElementById("wpcf7-f1-p11-o1")) { validForm(); }
	}
	
	$(document).ready(function() {
		
		$('.wpcf7-not-valid-tip-no-ajax').siblings().addClass("error");
		
		
		$('input').focus(function() {
			var value=$(this).val();
			$(this).val("");
		});
		$('textarea').focus(function() {
			var value=$(this).val();
			$(this).val("");
		});
		$('input').blur(function() {
			if($(this).val()=="") {
				$(this).val(value);
			}
		});
		$('textarea').blur(function() {
			if($(this).val()=="") {
				$(this).val(value);
			}
		});
	});
