$(document).ready(function(){
	$('#home_img')
		//.after('<div id="galleryNav">')
		.cycle({
		fx:     'fade', 
		speed:     2800,
		timeout: 3000, 
		pause:   1,
		speedIn:     900,  // speed of the "in" transition 
		speedOut:    100,  // speed of the "out" transition 
		pager:  '#galleryNav',
		next:   '#next',
		prev:   '#prev',
		pauseOnHover: true,
		pauseOnPagerHover: true,
		after: onAfter()
	});	
});
 
$.fn.hoverClass = function(c) {
	return this.each(function(){
		$(this).hover( 
			function() { $(this).addClass(c);  },
			function() { $(this).removeClass(c); }
		);
	});
};	  

function of(x){
x.style.display='none';
document.getElementById('p').style.display='inline';
document.getElementById('p').focus();
};

function ob(x){
x.style.display='none';
document.getElementById('t').style.display = 'inline';
document.getElementById('t').value = (x.value) ? '' : 'password ';
};

function onAfter() {
	$('.swapitem').css({
        height: 140,
        width: 950
    });
}

function toggleItem(d){
	d = "#" + d;
	$(d).toggle("fast");
}

$(document).ready(function() {
  $('.legislator-lookup').load('/non-cms-pages/find-your-legislators/index.php');
});
