/*  Sitewide Javascript includes, added just before </head>.  */

jQuery(document).ready( function($) {
    // $ now OK to use: $('.title-heading').css('font-weight','900');
    $('#quick_links .widget:last').addClass('last-item');


	// Set starting slide to 1
	var startSlide = 1;
	// Get slide number if it exists
	if (window.location.hash) {
		startSlide = window.location.hash.replace('#','');
	}

//		alert(startSlide);

    
	  $("#tour-slides").slides({
//	    preload: true,
	    start: startSlide,
	    preloadImage: '/wp-content/themes/etixsales/images/loading.gif',
	    play: 6000,
	    pause: 25000,
	    hoverPause: false, 
	    generatePagination: false,
	    paginationClass: 'tour_pagination',
	    
		
		animationComplete: function(current){
			// Set the slide number as a hash
			//window.location.hash = '#' + current;
		}
	  });




	$("#mc_mv_EMAIL").val('Enter your email address');
	// for form fields clear on focus...  
	$("#mc_mv_EMAIL").focus(function() {
		if( this.value == 'Enter your email address' ) {
			this.value = "";
			}
		}).blur(function() {
			if( !this.value.length ) {
				this.value = 'Enter your email address';
			}
	});



});



// Add option to /calendar, enable jQuery UI Theme (included in header-child.php)
var extra_calendar_options = {theme: true};

