$(document).ready(function() {
	//When page loads...
	$(".tab_content div").hide(); //Hide all content
	$(".triggers span:first").addClass("rounded").show(); //Activate first tab
	$(".tab_content div:first").show(); //Show first tab content

	//On Click Event
	$(".triggers span").click(function() {

		$(".triggers span").removeClass("rounded"); //Remove any "rounded" class
		$(this).addClass("rounded"); //Add "rounded" class to selected tab
		$(".tab_content div").hide(); //Hide all tab content

		var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the rounded tab + content
		$(activeTab).fadeIn(); //Fade in the rounded ID content
		return false;
	});
	
	$(".icons a, .thumbs a, #bimage").fancybox({
		'titleShow'		: false,
		'transitionIn'	: 'elastic',
		'transitionOut'	: 'elastic',
		'speedIn':700,
		'speedOut':700
	});

	
	$.ajax({dataType: "json", url: "ajaxDescr",
			success: function(data)
			{
				prodTexts['unique']   = data[9];
				prodTexts['newline'] = data[6];
				prodTexts['standart']  = data[7];
				prodTexts['platinum'] = data[8];

				$('#flashdescr').html(prodTexts['platinum']);
  		  	}
		});

	


});
	var prodTexts = [];
	function ShowText(name)
	{
		//alert(name);
		$('#flashdescr').html(prodTexts[name]);
	}
