//run fun
hostingObj=[
		['10GB','100GB','$9','99','http://my.nofrillsreseller.com/cart.php?a=add&pid=1'],
		['20GB','200GB','$19','99','http://my.nofrillsreseller.com/cart.php?a=add&pid=2'],
		['30GB','300GB','$29','99','http://my.nofrillsreseller.com/cart.php?a=add&pid=3'],
		['40GB','400GB','$39','99','http://my.nofrillsreseller.com/cart.php?a=add&pid=4'],
		['50GB','500GB','$49','99','http://my.nofrillsreseller.com/cart.php?a=add&pid=5']
	];
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(1);
	doActiveNodes(1);
	doActiveBar(1);
	$( ".choose-box .ui-slider" ).slider({
	value: 1,
	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);
	}
	});

});
