$(function(){
	
	$('#tabs-section .tabs A').click(function(){
		if ($(this).hasClass('active')){
			// nothing
		} else {
			$('#tab-1').toggleClass('active');
			$('#tab-2').toggleClass('active');

			$('#tabs-section .tab-cnt').hide();
			if ($('#tab-1').hasClass('active')) {
				$('#tab-1-cnt').show();
				$('#tabs-section .more A').attr("href","new-bikes.html");
			}
			if ($('#tab-2').hasClass('active')) {
				$('#tab-2-cnt').show();
				$('#tabs-section .more A').attr("href","used-bikes.html");
			}
		}
	});
	
	$('#leftmenu UL LI UL LI.active').parent().parent().removeClass('active');
	
	if ($.browser.msie) {
	   $('BODY').addClass('msie');
	}
	
	$('.bike-details UL LI SMALL').each(function(){
		if ($(this).html() == 'Nil'){
			$(this).parent().remove();
		}
	});
	
	$('.contact-form INPUT, .contact-form SELECT, .contact-form TEXTAREA').focus(function(){
		$(this).addClass('active');
	});
	$('.contact-form INPUT, .contact-form SELECT, .contact-form TEXTAREA').blur(function(){
		$(this).removeClass('active');
	});



	$('#continue').click(function() { 
		$('#box-3 .msg').remove();
		$('#box-3 .actions').html('<input type="radio" name="option" value="subscribe" CHECKED>Subscribe&nbsp;&nbsp;<input type="radio" name="option" value="unsubscribe">Unsubscribe');
	}); 


	
	$('.with-shadow').textShadow({
		x: 1, 
		y: 1, 
		radius: 1,
		color: "#282828"
	});
});

