$(document).ready(function() {
						   
$('a.who, a.what').hover(function() {		  
		$(this).siblings('div').fadeIn()
});

$('#nav div').mouseleave(function() {
		$(this).fadeOut()
});



$('.featureslider') 
.before('<div id="featureboxnav">') 
.cycle({ 
    fx:     'scrollHorz', 
    speed:  '2000', 
    timeout: 14000, 
    pager:  '#featureboxnav' 
});

$('.newsslider').cycle({ 
    fx:     'scrollHorz', 
    speed:  '650', 
    timeout: 28000, 
    next:   '#newsnext', 
    prev:   '#newsprev' 
});

$('.mapslider').cycle({ 
    fx:     'scrollHorz', 
    speed:  '650', 
    timeout: 14000, 
    next:   '#mapnext', 
    prev:   '#mapprev' 
});

$(".map").hover(function() {
		
		$('a',this).stop().animate({
			"opacity": 0.6
			}, 250, 'linear')
	
	},function() {
	
		
		$('a',this).stop().animate({
			"opacity": 0
			}, 250, 'linear')
	
	});

});

function setBlank(txtBox) {
          switch(txtBox.name)
                   {
                   case 'name':
                     if (txtBox.value == 'Your Name') {
                               txtBox.value = '';
                     }
                     break;
                   case 'number':
                     if (txtBox.value == 'Contact Number') {
                               txtBox.value = '';
                     }
                     break;
                   case 'date':
                     if (txtBox.value == 'Date Occurred mm/dd/yyyy') {
                               txtBox.value = '';
                     }
                     break;					 
                   case 'query':
                     if (txtBox.value == 'What happened?') {
                               txtBox.value = '';
                     }
                     break;
 
                   break; 
                   default:
                      break;
                   }
}
 
function checkBlank(txtBox) {
          if (txtBox.value == '') {
                   switch(txtBox.name)
                   {
                   case 'name':
                     txtBox.value = 'Your Name';
                     break;
                   case 'number':
                     txtBox.value = 'Contact Number';
                     break;
                   case 'date':
                     txtBox.value = 'Date Occurred mm/dd/yyyy';
                     break;					 
                   case 'query':
                     txtBox.value = 'What happened?';
                     break;
                               
                   default:
                      break;
                   }
          }
}

