/*
	===========================================================
	jQuery UI Enhancements
	Author: Foxtie, http://www.foxtie.com
	===========================================================
*/

jQuery(function( $ ){	

	Cufon.replace('h1', {fontFamily: 'AgendaLight' });
	Cufon.replace('#subpage_top_title, .contacts .footertext, .page-id-12 .cform .cf-box-title, .page-id-12 .cf-box-title, .page-id-12 #li-2-1, .page-id-12 #li-2-2, .page-id-12 #li-2-3',{fontFamily: 'AgendaLight' });
	Cufon.replace('h2, h3, h4, h5, h6,.page-id-12 ol.cf-ol li.textonly', {fontFamily: 'AgendaBold' });


	// Fancybox Init
	$("a.fancybox").fancybox({ 'zoomSpeedIn': 300, 'zoomSpeedOut': 300 });
	$(".wpcf7-mail-sent-ok").fancybox({ 'zoomSpeedIn': 300, 'zoomSpeedOut': 300 });
	
	$("a.group").fancybox({
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'autoDimensions'	: false,
		'width'    		: 800,
		'height'   		: 'auto',
		'overlayShow'	:	false
	});
	
	
	$(".page-id-12 li.cf-box-group label span:odd").addClass('checkOdd');
	$(".page-id-12 ol.cf-ol li:even").addClass('rowOdd');
	
		
	// Navigation Cursor Follow & Pulse
	var start = 1;
	
	if ($('body').hasClass('home')){ start = 0; }
	else if ($('body').hasClass('page-id-2')){ start = 1; }
	else if ($('body').hasClass('page-id-10')){ start = 2; }
	else if ($('body').hasClass('page-id-12')){ start = 3; }
	else if ($('body').hasClass('page-id-14')){ start = 4; }
	else if ($('body').hasClass('page-id-15')){ start = 5; }
	else if ($('body').hasClass('page-id-17')){ start = 6; }
	
	$("#nav").lavaLamp({ target:'a', startItem: start });
	
	$('body.home input.submit-button').click(function(){
		if ( $('span.e-mail input').val()=="E-mail" &&  $('span.Phone input').val()=="Phone" ){
			return false;
			alert ("no");
		}
	});
	
});
