// JavaScript Document


$(document).ready(function(){
	
	
	

 $('.expand1').live('click',function() {
	 
	
	if ($(this).hasClass('close1')== true) {
	$('#reflectWebFeatures').stop().animate({'width':'1825px'});	
	$(this).removeClass('close1');	
	$(this).addClass('open1');
	$(this).removeClass('openArrow');
	$(this).addClass('closeArrow');
	
	
	
	
	}else if ($(this).hasClass('open1')== true) {
	
		$('#reflectWebFeatures').stop().animate({'width':'618px'});
	 	 $(this).removeClass('open1');	
	$(this).addClass('close1');	
		$(this).removeClass('closeArrow');
	$(this).addClass('openArrow');
	
	 }

});


$('.expand2').live('click',function() {
	// alert('clicked');
	//$(this).children('.closeFeature').css('visibility','visible');
	
	if ($(this).hasClass('close2')== true) {
	$('#reflectMirrorFeatures').stop().animate({'width':'830px'});	
	$(this).removeClass('close2');	
	$(this).addClass('open2');
	$(this).removeClass('openArrow');
	$(this).addClass('closeArrow');
	
	
	
	}else if ($(this).hasClass('open2')== true) {
	
		$('#reflectMirrorFeatures').stop().animate({'width':'225px'});
	 	 $(this).removeClass('open2');	
	$(this).addClass('close2');	
		$(this).removeClass('closeArrow');
	$(this).addClass('openArrow');
	 }
});

$('.expand3').live('click',function() {
	
	if ($(this).hasClass('close3')== true) {
	$('#reflectPhoneFeatures').stop().animate({'width':'660px'});	
	$(this).removeClass('close3');	
	$(this).addClass('open3');
$(this).removeClass('openArrow');
	$(this).addClass('closeArrow');	
	
	}else if ($(this).hasClass('open3')== true) {	

		$('#reflectPhoneFeatures').stop().animate({'width':'270px'});
	 	 $(this).removeClass('open3');	
	$(this).addClass('close3');	
		$(this).removeClass('closeArrow');
	$(this).addClass('openArrow');
	
	 }


});
});
