$(function() {
	$("#newsletter-signup").submit(function() {
		conversion('newsletter');
	});
	
	function conversion(id) {
		var image = new Image(1,1);
		
		codes = {
			newsletter: 'http://www.googleadservices.com/pagead/conversion/970564249/?label=nurrCL_jxAIQmcXmzgM&amp;guid=ON&amp;script=0'
		};
		
		image.src = codes[id];
		return;
	}
	
	
	$('.revealnext').css({'cursor':'pointer'}).click(function(){
		$(this).siblings('.revealnext').next().hide('fast');
		$(this).siblings('.revealnext').find('span').html('(click to view)');
		//$(this).next().toggle('fast');
		if ($(this).next().css('display') == 'none') {
			$(this).next().show('fast');
			$(this).find('span').html('');
		} else {
			$(this).next().hide('fast');
			$(this).find('span').html('(click to view)');
		}
	}).append(' <span>(click to view)</span>').next().css({'display':'none'});
});
