function formatText(index, panel) {
	return index + "";
}

function clearTA(ta) {
	ta.innerHtml = '';
}

$(function() {
	
	$('.slider').anythingSlider( {
		easing : "linear", // Anything other than "linear" or "swing" requires the easing plugin
		autoPlay : true, // This turns off the entire FUNCTIONALY, not just if it starts running or not
		startStopped : true, // If autoPlay is on, this can force it to start stopped
		delay : 3000, // How long between slide transitions in AutoPlay mode
		animationTime : 600, // How long the slide transition takes
		hashTags : true, // Should links change the hashtag in the URL?
		buildNavigation : false, // If true, builds and list of anchor links to link to each slide
                buildArrows: true,
                forwardText: "&raquo;", // Link text used to move the slider forward (hidden by CSS, replaced with arrow image)
                backText: "&laquo;", // Link text used to move the slider back (hidden by CSS, replace with arrow image)

		pauseOnHover : true, // If true, and autoPlay is enabled, the show will pause on hover
		startText : "Start", // Start text
		stopText : "Stop", // Stop text
		navigationFormatter : null
	// Details at the top of the file on this use (advanced use)
			});

	$(".slide_btn").click(function() {
		$('.slider').anythingSlider($(this).attr('id'));
	});

	$('.inpt,.inpt3, .inpt6').click(function(){
		$(this).attr('value','');
		$(this).unbind('click');
	});
	
	$('textarea').click(function(){
		$(this).html('');
		$(this).unbind('click');
	});
	
	$('a.hasPic').lightBox();
});

function diz(val) {
	if (val == "2")
		dis = true;
	else
		dis = false;
	if (dis)
		document.getElementById("date_companie").style.display = "block";
	else
		document.getElementById("date_companie").style.display = "none";
}
