jQuery.noConflict();

// Use jQuery via jQuery(...)
jQuery(document).ready(function(){
	
	//signin box toggle disabled
	/*jQuery('.sign_in').click(function(e){
		e.preventDefault();
		jQuery('#sign_box').toggle();
		jQuery('.sign_in').toggleClass();
	});
	jQuery('body #content').click(function(){
		jQuery('#sign_box').hide();
		return false;
	});*/

	//signin box toggle newer version which uses cluetip plugin
	jQuery('#sign_in').cluetip({
		positionBy:		'fixed',
		topOffset:		35,       // Number of px to offset clueTip from top of invoking element.
		leftOffset:		-110,
		local:			true,
		showTitle:		false,
		cursor:			'pointer',
		cluetipClass:	'jtip',
		arrows:			true,
		dropShadow:		false,
		sticky:			true
	});

	// slideshow - sponsors
	 jQuery('.slideshow').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		speed: 3000, // milliseconds of slide transition
		pause: 1 // pauses on mouse hover

	});
	
	
	// slideshow - homepage highlight
	 jQuery('#highlight-slideshow').cycle({
        fx: 'turnDown', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		speed:  'fast',
        timeout: 0,
		next: '#highlight-slideshow', // click to advance
		//pause: 1, // pauses on mouse hover
        pager:  '#highlight-nav',
        pagerAnchorBuilder: function(idx, slide) {
            // return sel string for existing anchor
            return '#highlight-nav li:eq(' + (idx) + ') a';
        }
    });
	 
    jQuery("#survey_1301").validate({
		rules: {
		"cons_email": {
				required: true,
				email: true
			}
	    },
		messages: {
			"cons_email": {
			    required: "Please enter a valid email address"
				
			}
		}
	});
	 
	 
});

