$(document).ready(function(){

	$('.leftcol .feature').hover(function(){
			$(this).children().stop().animate({marginTop:'18px'},200);
		},function(){
			$(this).children().stop().animate({marginTop:'100px'},200);
		});
		
		
});


$(document).ready(function(){
	// Add class to show jquery is loaded
	$('#infosys').addClass('js-on');


	$('#infosys .selections .selection').not('#infosys #Businesses').hide();
	
	$('#infosys .selections .dropdown').toggle(function(){
			$('#infosys #geo .selection').slideUp(200);
			$(this).next('#infosys .selection').slideDown(400);
			
		},function(){
			$(this).next('#infosys .selection').slideUp(200);
		});
	
	// Add Checkbox Styling
	$('#infosys .state').addClass('jscheckbox');
	
	$('#infosys.js-on .jscheckbox').click(function(){

    var checked = $(this).children('input[type=checkbox]').attr('checked');
    
    if(checked === false){
        $(this).children('input[type=checkbox]').attr('checked',true);
        $(this).addClass('checked');
    }
    if(checked === true){
        $(this).children('input[type=checkbox]').attr('checked',false);
        $(this).removeClass('checked');
    }

	});
	
	$('.list-neighborhood .jscheck input').hide();
	$('.list-neighborhood .jscheck').addClass('yesno');
	
	$('#infosys.js-on .jscheck').click(function(){

		var checked = $(this).children('input[type=checkbox]').attr('checked');
		
		if(checked === false){
			$(this).children('input[type=checkbox]').attr('checked',true);
			$(this).addClass('checked');
		}
		else if(checked === true){
			$(this).children('input[type=checkbox]').attr('checked',false);
			$(this).removeClass('checked');
		}

	});
	
});
