if(!window.BlacknWhite) 
    var BlacknWhite = {}; 



BlacknWhite = { 
    init     : function(options) 
    { 
        options = jQuery.extend({minor : 7}, options); 
        if(jQuery.browser.msie && jQuery.browser.version < options.minor) {
			jQuery('#wrapper').css("filter","gray");
    		$('#ie6alert').fadeIn('fast');
			//$('#ie6alert').css("filter","color")
		}
	} 
};

$(document).ready(function() {

//	alert('updated');

    //BlacknWhite.init();
	
	//$('#closealert').click(function() {
    //		$('#ie6alert').hide();
	//});
	
	$('#show-product-results').addClass('activebutton');
	$('#trial-results').hide();
	
	$('#show-product-results').click(function() {
		$('#show-product-results, #show-trial-results').removeClass('activebutton');
		$(this).addClass('activebutton');
		$('#product-results').fadeIn('fast');
		$('#trial-results').hide();
	});
	
	$('#show-trial-results').click(function() {
		$('#show-product-results, #show-trial-results').removeClass('activebutton');
		$(this).addClass('activebutton');
		$('#product-results').hide();
		$('#trial-results').fadeIn('fast');
	});
	
	
	$('p.a').hide();
	
	$('p.q').toggle(function() {
		$(this).next('p.a').slideDown('fast');
	},function() {
		$(this).next('p.a').slideUp('fast');
	});
	
	$('div.ie6_update').click(function() {
		$(this).hide();
	});
	
	$('ul.about-tabs a').click(function() {
		
		$('ul.about-tabs a').each(function() {
			$(this).parent().removeClass('active');
		});
		
		$(this).parent().addClass('active');
		
		var tabVal = $(this).attr("title");
		$('div.tab-content').each(function() {
			$(this).hide();
			if($(this).hasClass(tabVal)) {
				$(this).fadeIn('fast');
			}
		});
	});
	

});