		
		$(document).ready(function(){	
			$("#slider").easySlider({
				auto: true, 
				continuous: true,
				speed: 1000,
				pause: 4000,
				controlsShow: true,
				numeric: true,
			});

			
			$("a[rel='colorbox']").colorbox();
			
			$(".paymentIdc").click(function(){
				$(".paymt").text($(this).attr("n2"));
				if ($(".deliveryIdc:checked").attr("c2") == undefined)
				{
					$(".costt").text($(this).attr("c2"));
				}
				else{
				    $("#payment_option3").click(function(){
				        $(".costt").hide();
                        $(".costdotpay").show();
                        
				    });

				    $("#payment_option1").click(function(){
				        $(".costt").show();
                        $(".costdotpay").hide();
                        
				    });
				    $("#payment_option2").click(function(){
				        $(".costt").show();
                        $(".costdotpay").hide();
                        
				    });                                        
					$(".costt").text(parseFloat($(this).attr("c2"))+parseFloat($(".deliveryIdc:checked").attr("c2")));
				}//alert($(this).attr("n2"));
				//Math.round(number).toFixed(2);

				$(".costr").text(parseFloat(parseFloat($(".totalcost").text())+parseFloat($(".costt").text())).toFixed(2));
				
			});
			
			$(".deliveryIdc").click(function(){
				$(".paymd").text($(this).attr("n2"));
				if ($(".paymentIdc:checked").attr("c2") == undefined)
				{
					$(".costt").text($(this).attr("c2"));
				}
				else{
					$(".costt").text(parseFloat($(this).attr("c2"))+parseFloat($(".paymentIdc:checked").attr("c2")));
				}//alert($(this).attr("n2"));
				$(".costr").text(parseFloat(parseFloat($(".totalcost").text())+parseFloat($(".costt").text())).toFixed(2));
				
			});
			
		$("#invoiceBtn").click(function () {
		$("#invoice").toggle("slow");
		$('#nextBtnWithoutInvoice').toggle("slow");;
	});
			
			
			if ( $('#invoiceBtn').attr('checked') )
	{
		$('#invoice').css('display','block');
		$('#nextBtnWithoutInvoice').css('display','none');
	}
	else
	{
		$('#invoice').css('display','none');
		$('#nextBtnWithoutInvoice').css('display','block');
	}
			
			
		});	
