//run fun
hostingObj=[
		['1 GB','10 GB','\u20ac12','','http://euro-servers.info/hosting.html'],
		['3 GB','50 GB','\u20ac24','','http://euro-servers.info/hosting.html'],
		['5 GB','150 GB','\u20ac48','','http://euro-servers.info/hosting.html'],
		['300GB','3000GB','\u20ac72','','http://euro-servers.info/hepsiahosting.html'],
		['\u221E','\u221E','\u20ac108','','http://euro-servers.info/hepsiahosting.html']
	];
function doActiveNodes(w){
		var u=108;
		var width=u+108*w;
		$('.slider-nodes-active').css("width",width);
}
function doActiveBar(w){
		var u=65;
		var width=u+108*w;
		$('.slide-bar-active').css("width",width);
}
function steValue(val){
		
			var curVals=hostingObj[val];
			$(".choose-object li.disk span").text(curVals[0]);
			$(".choose-object li.bandwidth span").text(curVals[1]);
			$(".choose-object li.price span").text(curVals[2]);
			$(".choose-object li.price sup").text(curVals[3]);
			$(".choose-box .order-now").attr("href",curVals[4]);
	}
$(document).ready(function(){
	Cufon.replace("h2,h3,,h4,th",{hover:true});
	$("#nav li:not('.selected')").hover(function(){
		$(this).addClass('selected');
	},function(){
		$(this).removeClass('selected');
	});
	steValue(0);
	doActiveNodes(0);
	doActiveBar(0);
	$( ".choose-box .ui-slider" ).slider({
	value: 0,
	min: 0,
    max: 4,
	animate: true,
	stop:function(e,ui){
		//var t = $(this) ,w;
		var x = $(this).slider( "value" );
		
		doActiveNodes(x);
		doActiveBar(x);
		steValue(x);
	}
	});

});
