//nav
jQuery(document).ready(function(){
	jQuery("#nav_928623 li a").wrapInner("<span></span>");
  });
 jQuery(function(){
	jQuery("#nav_928623 li").hover(
	function() {
	// mousehover
      jQuery(this).children("ul").show();
    }, 
      function () {
	  // mouseout
        jQuery(this).children("ul").hide();
    });
	jQuery("#nav_928623 li ul li").hover(
      function () {
	  // mouseout
        jQuery(this).children("ul").hide();
    });


//pre populate
    jQuery('input#CLFullName').autofill({
      value: 'Name',
      defaultTextColor: '#939598',
      activeTextColor: '#777777'
    });
    jQuery('input#CLEmailAddress').autofill({
      value: 'Email',
      defaultTextColor: '#939598',
      activeTextColor: '#777777'
    });

//check in form



//select
	jQuery('select#ddDay').selectmenu({
				style:'dropdown', 
				menuWidth: 72,
				maxHeight:130
			});
	jQuery('select#ddDay2').selectmenu({
				style:'dropdown', 
				menuWidth: 72,
				maxHeight:130
			});
	jQuery('select#ddMonth').selectmenu({
				style:'dropdown', 
				menuWidth: 120,
				maxHeight:130
			});
	jQuery('select#ddMonth2').selectmenu({
				style:'dropdown', 
				menuWidth: 120,
				maxHeight:130
			});
	jQuery('select#ddMonth').selectmenu({style:'dropdown'});
	jQuery('#search .webform').hide();
	jQuery('.moreOptions').toggle(function(){
		jQuery('#search .webform').slideDown('slow');
		jQuery(this).text('LESS OPTIONS');
		},
		function(){
		jQuery('#search .webform').slideUp('slow');
		jQuery(this).text('MORE OPTIONS');
		});
	
//slideshow
//	jQuery('#slideshow').s3Slider({
//            timeOut: 4000
//        });

 
//announcements
 jQuery('.news').toggle(function(){
		jQuery('.announcements').slideDown('slow');
		jQuery(this).css('background-image', 'url(/images/btn_dropdown.gif)');
		},
		function(){
		jQuery('.announcements').slideUp('slow');
		jQuery(this).css('background-image', 'url(/images/btn-arrow.gif)');
		});
 
//variables
	jQuery('input#CaptchaV2').css('width', '148px');
});



// todays date
   /*             var monthtext=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sept','Oct','Nov','Dec'];
                
                function populatedropdown(dayfield, monthfield, dayfield2, monthfield2){
                var today=new Date()
                var dayfield=document.getElementById(dayfield)
                var monthfield=document.getElementById(monthfield)
				var dayfield2=document.getElementById(dayfield2)
                var monthfield2=document.getElementById(monthfield2)
                for (var i=0; i<31; i++)
                dayfield.options[i]=new Option(i, i+1)
                dayfield.options[today.getDate()]=new Option(today.getDate(), today.getDate(), true, true) //select today's day
				for (var j=0; j<31; j++)
                dayfield2.options[j]=new Option(j, j+1)
                dayfield2.options[today.getDate()]=new Option(today.getDate(), today.getDate(), true, true) //select today's day
                for (var m=0; m<12; m++)
                monthfield.options[m]=new Option(monthtext[m], monthtext[m])
                monthfield.options[today.getMonth()]=new Option(monthtext[today.getMonth()], monthtext[today.getMonth()], true, true) //select today's month
				 for (var n=0; n<12; n++)
                monthfield2.options[n]=new Option(monthtext[n], monthtext[n])
                monthfield2.options[today.getMonth()]=new Option(monthtext[today.getMonth()], monthtext[today.getMonth()], true, true) //select today's month
                }

*/

