/* <![CDATA[ */
		jQuery(document).ready(function($) {
			
			// Activeaza functiile aici
			$(".pitem").click(function(){
				$(".radio").removeClass("radioactive");
				$(this).children(".radio").addClass("radioactive");
			});
			/* SCROLL TO */
			// hide #back-top first
			$("#back-top").hide();
			
			// fade in #back-top
			$(function () {
				$(window).scroll(function () {
					if ($(this).scrollTop() > 100) {
						$('#back-top').fadeIn();
					} else {
						$('#back-top').fadeOut();
					}
				});
		
				// scroll body to 0px on click
				$('#back-top a').click(function () {
					$('body,html').animate({
						scrollTop: 0
					}, 800);
					return false;
				});
			});
			
			//Show-hide miniforms
			/*
			$("div.miniForm").hide();
			$(".active").show();
			$("div.miniFormTitle a").click(function(){
				$("div.miniForm:visible").hide();
				$(this).parent().next().fadeIn("slow");
				return false;
			});
			$("a.close").click(function(){
				$("div.miniForm:visible").fadeOut("slow");
				return false;
			});
			*/
			
			//Hover
			$('ul.hover').hover(function() {
			  $(this).addClass('pretty-hover');
				}, function() {
				$(this).removeClass('pretty-hover');
			});
			

			
		});
		
/* ]]> */


//Pentru textarea
function textAreaDefaultMsg(obj) {
	if (obj.value=='Introdu aici mesajul tau care va fi tiparit pe felicitare. Daca vei completa acest camp mesajul sugerat va fi ignorat!') {
		obj.value='';
	}
	else {
		/* do nothing */
	}
	
}

function textAreaMsgClear(obj) {
	if (obj.value=='') {
		obj.value='Introdu aici mesajul tau care va fi tiparit pe felicitare. Daca vei completa acest camp mesajul sugerat va fi ignorat!';
	}
	else {
		/* do nothing */
		
	}
	
}
