	$(function(){
		$("#sliderDiv1 .sliderBtns a:nth-child(1)").text(openVZ.name[0]);
		$("#sliderDiv1 .sliderBtns a:nth-child(2)").text(openVZ.name[1]);
		$("#sliderDiv1 .sliderBtns a:nth-child(3)").text(openVZ.name[2]);
		$("#sliderDiv1 .sliderBtns a:nth-child(4)").text(openVZ.name[3]);
		$("#sliderDiv1 .sliderBtns a:nth-child(5)").text(openVZ.name[4]);

		$( "#slider" ).slider({
			//range: "min",
			value:1,
			min: 0,
			max: openVZ.name.length-1,
			step: 1,
			slide: function( event, ui ){
				updateSlider1(ui.value);
			}
		});
		updateSlider1($( "#slider" ).slider( "value" ));
	});
	setSlider1 = function(id){
		$( "#slider" ).slider( "value" ,id);
		updateSlider1(id);
	}
	updateSlider1 = function(sValue){
		$("#sliderDiv1 .sliderBoxs a").attr("href","https://my.up2vps.com/"+openVZ.order[sValue]);

		$("#sliderDiv1 .sliderBoxs div:nth-child(1) b").html(openVZ.coreName[sValue]);
		$("#sliderDiv1 .sliderBoxs div:nth-child(2) b").html(openVZ.ramName[sValue]);
		$("#sliderDiv1 .sliderBoxs div:nth-child(3) b").html(openVZ.ram2Name[sValue]);
		$("#sliderDiv1 .sliderBoxs div:nth-child(4) b").html(openVZ.storageName[sValue]);
		$("#sliderDiv1 .sliderBoxs div:nth-child(5) b").html(openVZ.bandName[sValue]);
		$("#sliderDiv1 .sliderBoxs div:nth-child(6) b").html(openVZ.priceName[sValue]);
		
		$("#sliderDiv1 .sliderBoxs div:nth-child(1) p").fadeOut("fast",function(){
			$(this).text(openVZ.core[sValue]).fadeIn()
			$("#sliderDiv1 .sliderBoxs div:nth-child(2) p").fadeOut("fast",function(){
				$(this).text(openVZ.ram[sValue]).fadeIn()
				$("#sliderDiv1 .sliderBoxs div:nth-child(3) p").fadeOut("fast",function(){
					$(this).text(openVZ.ram2[sValue]).fadeIn()
					$("#sliderDiv1 .sliderBoxs div:nth-child(4) p").fadeOut("fast",function(){
						$(this).text(openVZ.storage[sValue]).fadeIn()
						$("#sliderDiv1 .sliderBoxs div:nth-child(5) p").fadeOut("fast",function(){
							$(this).text(openVZ.bandwidth[sValue]).fadeIn()
							$("#sliderDiv1 .sliderBoxs div:nth-child(6) p").fadeOut("fast",function(){$(this).text(openVZ.price[sValue]).fadeIn()});
						});
					});
				});
			});
		});
	}

