jQuery(document).ready(function(){
		
		jQuery('.btn-boolen').click(function(){
			//remove all selected values
			jQuery(this).parent('div').children('a').removeClass('yes_no_selected');
			//find the class
			var class_name = jQuery(this).attr('class');
			//remove the 'btn-boolen' from the string
			val = class_name.substr(11);
			//add value
			jQuery(this).parent('div').children('input').attr("value", val);
			
			jQuery(this).toggleClass('yes_no_selected');
			return false;
		});
		
		//zebra striping
		jQuery("table.target_segment tr:even").addClass("alt");
		
		//message/flash closing
		jQuery(".message").mouseover(function() {
			jQuery(this).css('cursor', 'pointer');
			jQuery(this).attr('title', 'click to close');
		});
		jQuery(".message").click(function() {
			jQuery(this).hide();
		});
		
		var quotes = []
		quotes.push(['&quot;In just a few months working with Bizo, we’re increasing our brand awareness with audiences that matter.  Bizo’s business targeting ensures we’re getting in front of the most qualified audiences for our business, and it shows in the results.&quot;</span>', '– Richard Turcott, CMO for RatePoint, Inc., a leading provider of customer feedback and online reputation management services']);
		quotes.push(['&quot;Plaxo has a user base that is very attractive to advertisers.  Bizo\'s targeting capabilities have enabled advertisers for the first time to directly reach specific groups within that user base, in turn yielding significantly higher revenue for Plaxo.&quot;', '– Peter Lester, the VP of business development for Plaxo, a social utility popular with professionals']);
		quotes.push(['The business targeting that Bizo’s network provides has generated about a 100% increase in the value of the inventory we’re using to target ads. That means our campaigns are twice as effective as they were before using Bizo.', '– Jay Schwedelson, Corporate Vice President, Worldata'])
		quotes.push(['Having worked with Bizo for a number of my clients - I can say that their dedication to client success and honesty with what works and how to improve on shortcomings will guarantee them success in the future!', '– Jennifer Bachner, 90 Octane'])
		quotes.push(['the Rubicon Project’s top priority is providing our ad network partners with safe, quality-driven inventory opportunities. Bizo is an extremely valuable partner and is consistently placed in the top tier of our premium inventory because of their quality branded advertisers and high CPM performance', '– Raleigh Harbour, VP of Ad Network Development'])
		quotes.push(['&quot;Hoover&rsquo;s is a valuable tool for sales and marketing audiences, and Bizo allows us to efficiently reach specific target audiences to describe the value we can deliver.  We have been working with Bizo for a few months now and are excited that we have found a new channel that is showing increased ROI above and beyond our past efforts.&quot;', "– Rocky Brown, marketing manager for Hoovers"])
		quotes.push(['&quot;Bizo gives us more than 100% better value for our impressions than any other ad network while delivering additional revenues from anonymously targeting our audience after they have left Spoke.  That&rsquo;s real money that goes right to our bottom line.&quot;', "– Frank Vaculin, the CEO of business information publisher Spoke"])
		var random_number = Math.floor(quotes.length*Math.random());

		
		if(jQuery("#quotes_text").length > 0) {
			jQuery("#quotes_text p:first").html(quotes[random_number][0]);
			jQuery("#quotes_text p:last").addClass('sub').html(quotes[random_number][1]);
		}
		
		if(jQuery(".quotes-side").length > 0) {
			jQuery(".quotes-side p:first").html(quotes[random_number][0]);
			jQuery(".quotes-side p:last").html(quotes[random_number][1]);
		}
		
		
		if(jQuery("#p_leads").length > 0) {
		  jQuery("#p_leads").submit(function(){
		    jQuery(this).slideUp('slow', function(){
		      jQuery("#lead-capture #flash").show();
		    });
		    return false;
		  });
		}
		
});
