$(document).ready(function() {

	// toggle
	//Hide (Collapse) the toggle containers on load
	$(".toggle_container").hide(); 

	//Switch the "Open" and "Close" state per click
	$("h3.trigger").toggle(function(){
		$(this).addClass("active");
		}, function () {
		$(this).removeClass("active");
	});

	//Slide up and down on click
	$("h3.trigger").click(function(){
		$(this).next(".toggle_container").slideToggle("slow,");
	});
	
	$('.entry').each(function(){    
	    $(this).attr("href","/state selector.aspx"); 
	});
	
	//Shadowbox.init();	
	
    if ($('#mainFeature').attr("id") == "mainFeature")
    {
    	$('#mainFeature').cycle({
		fx: 'fade',
		pager: '#paginationWrapper'
	    });
	    $('.date-pick').datePicker();    
    }
		

	//var dropdown = $('.dropdown .box').eq(0);
	//var height = $(dropdown).find('.wrap > ul').height()
	//$(dropdown).find('.wrap').css('height',height+20+"px")
	//$(dropdown).css('height',height+30+"px")	
	

});



