	$(function(){
		$("#sliderDiv3 .sliderBtns a:nth-child(1)").css("margin-left","25px");
		$("#sliderDiv3 .sliderBtns a:nth-child(2)").css("margin-left","160px");
		$("#sliderDiv3 .sliderBtns a:nth-child(3)").css("margin-left","160px");
		$("#sliderDiv3 .sliderBtns a:nth-child(4)").css("margin-left","155px");
		$("#sliderDiv3 .sliderBtns a:nth-child(5)").css("margin-left","150px");
		$("#sliderDiv3 .sliderBtns a:nth-child(6)").css("margin-left","150px");

		$("#sliderDiv3 .sliderBtns a:nth-child(1)").text(windows.name[0]);
		$("#sliderDiv3 .sliderBtns a:nth-child(2)").text(windows.name[1]);
		$("#sliderDiv3 .sliderBtns a:nth-child(3)").text(windows.name[2]);
		$("#sliderDiv3 .sliderBtns a:nth-child(4)").text(windows.name[3]);
		$("#sliderDiv3 .sliderBtns a:nth-child(5)").text(windows.name[4]);

		$( "#slider3" ).slider({
			//range: "min",
			value:1,
			min: 0,
			max: windows.name.length-1,
			step: 1,
			slide: function( event, ui ){
				updateSlider3(ui.value);
			}
		});
		updateSlider3($( "#slider3" ).slider( "value" ));
	});
	setSlider3 = function(id){
		$( "#slider3" ).slider( "value" ,id);
		updateSlider3(id);
	}
	updateSlider3 = function(sValue){
		$("#sliderDiv3 .sliderBoxs a").attr("href","https://my.up2vps.com/"+windows.order[sValue]);
	
		$("#sliderDiv3 .sliderBoxs div:nth-child(1) b").html(windows.coreName[sValue]);
		$("#sliderDiv3 .sliderBoxs div:nth-child(2) b").html(windows.ramName[sValue]);
		$("#sliderDiv3 .sliderBoxs div:nth-child(3) b").html(windows.storageName[sValue]);
		$("#sliderDiv3 .sliderBoxs div:nth-child(4) b").html(windows.bandName[sValue]);
		$("#sliderDiv3 .sliderBoxs div:nth-child(5) b").html(windows.priceName[sValue]);
		
		$("#sliderDiv3 .sliderBoxs div:nth-child(1) p").fadeOut("fast",function(){
			$(this).text(windows.core[sValue]).fadeIn()
			$("#sliderDiv3 .sliderBoxs div:nth-child(2) p").fadeOut("fast",function(){
				$(this).text(windows.ram[sValue]).fadeIn()
					$("#sliderDiv3 .sliderBoxs div:nth-child(3) p").fadeOut("fast",function(){
						$(this).text(windows.storage[sValue]).fadeIn()
						$("#sliderDiv3 .sliderBoxs div:nth-child(4) p").fadeOut("fast",function(){
							$(this).text(windows.bandwidth[sValue]).fadeIn()
							$("#sliderDiv3 .sliderBoxs div:nth-child(5) p").fadeOut("fast",function(){$(this).text(windows.price[sValue]).fadeIn()});
						});
					});
			});
		});
	}
	orderSlider3 = function(){
		var id = $( "#slider3" ).slider( "value" );
		window.location = "http://my.up2vps.com/"+(windows.order[id]);
	}
