// creator Katz Web Services
(function ($) {
// VERTICALLY ALIGN FUNCTION
$.fn.vAlign = function() {
	return this.each(function(i){
	var ah = $(this).height();
	var ph = $(this).parent().height();
	var mh = (ph - ah) / 2;
	$(this).css('margin-top', mh);
	});
};
})(jQuery);

$(document).ready(function(){
	// target="_blank"
	$("a[rel='nofollow'], a[rel='external']").click( function() {
		window.open(this.href);
		return false;
	});
	
	//set cookie
	$("a.contact-cookie").click(function() {
		$.cookies.set("contact-cookie", true);
		
		return true;
	});
});
