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