$(function() {
// Contact Us Form Style
$("#contactUs input[type=text]").addClass('text'); 

//Seach Auto Focus
var searchBoxes = $(".searchTextBox");
var searchBox2 = $("#search1");
var searchBox2Default = "Search...";
searchBoxes.focus(function(e){  
     $(this).addClass("active");  
 });  
 searchBoxes.blur(function(e){  
     $(this).removeClass("active");  
 });  
searchBox2.focus(function(){
	if($(this).attr("value") == searchBox2Default) $(this).attr("value", "");
});
searchBox2.blur(function(){
	if($(this).attr("value") == "") $(this).attr("value", searchBox2Default);
});

$(".tbl_entry tr:even").addClass('odd');

$(".featboxWrapper").scrollable({ 
        vertical:true,  
        size: 2,
        interval: 9000,
        loop: true,  
        prev: '.prev',
        next: '.next',
        speed: 600, 
        navi: ".navi",
        items: ".items"       
});

$(".sideFeatWrapper").scrollable({ 
        vertical:true,  
        size: 1,
        interval: 9000,
        loop: true,  
        prev: '.prev',
        next: '.next',
        speed: 600, 
        navi: ".navi",
        items: ".items"       
});

$(".navi a[href=0]").text('1');
$(".navi a[href=1]").text('2');
$(".navi a[href=2]").text('3');
$(".navi a[href=3]").text('4');


$('#banSlides').before('<div id="banTabs">').cycle({
    fx:     'scrollRight',
    speed:  1000,
    timeout: 4000,
    pager:  '#banTabs',
    pagerAnchorBuilder: function(idx, slide) {
    return '<a href="#">' + slide.title + '</a>';
}});


$('.datePicker').datepicker({yearRange: '1950:2010',changeMonth: true,changeYear: true});
$(".passDate").live('mouseover',function(){$(this).datepicker({yearRange: '1950:2010',changeMonth: true,changeYear: true});});
});

<!--//--><![CDATA[//><!--
sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
//--><!]]>

