_var.aAnswers = eval(_var.aAnswers);
_var.aData = eval(_var.aData);
_var.aOperatorPrice = eval(_var.aOperatorPrice);
_var.aSmsPrice = eval(_var.aSmsPrice);
_var.aNetPrice = eval(_var.aNetPrice);
_var.aMNet = eval(_var.aMNet);
$(document).ready(function() {
	tabControl.change("400");
	$("DIV.block12 UL LI A").click(function() {
		//$.scrollTo("max");
		setTimeout(function(){ $('html,body').animate({ scrollTop: 850 }, 'slow'); }, 500); 
	});
	$("DIV#calc02 DIV.calc01 .changePackets").click(function() {
		var selElisaPack = $(this).attr('rel');
		//console.log(selElisaPack);
		tabControl.change(selElisaPack);
		if (selElisaPack == '200')
		{
			$("DIV#calc02 DIV.calc01 .changePackets").removeClass('active');
			$("DIV#calc02 DIV.calc01 A.item001").addClass('active');
		}
		else if (selElisaPack == '400')
		{
			$("DIV#calc02 DIV.calc01 .changePackets").removeClass('active');
			$("DIV#calc02 DIV.calc01 A.item001").addClass('active');
		}
		else
		{
			$("DIV#calc02 DIV.calc01 .changePackets").removeClass('active');
			$("DIV#calc02 DIV.calc01 A.item002").addClass('active');
		}
	});
});

var tabControl = {
	change: function(sPacket) {
		if (sPacket == "200")
		{
			$(".TsTab200").each(function() {
				$(this).show();
			});
			$(".TsTab400").each(function() {
				$(this).hide();
			});
			$(".TsTab600").each(function() {
				$(this).hide();
			});
		}
		else if (sPacket == "400")
		{
			$(".TsTab200").each(function() {
				$(this).hide();
			});
			$(".TsTab400").each(function() {
				$(this).show();
			});
			$(".TsTab600").each(function() {
				$(this).hide();
			});
		}
		else
		{
			$(".TsTab200").each(function() {
				$(this).hide();
			});
			$(".TsTab400").each(function() {
				$(this).hide();
			});
			$(".TsTab600").each(function() {
				$(this).show();
			});
		}
		showTab($("#showActive"+sPacket),'tabs');
	}
}

