$(document).ready(function(){
	
	// external links
	$("a[@rel='external']").click(function() {
		return !window.open($(this).attr("href"));
	});
	$('.hide-with-js').hide(); // use this class to hide the message "please open this link in new window"
	
	// fade in messages
	$('.successMsg').hide();
	$('.successMsg').fadeIn(1000);
	$('.errorMsg div').hide();
	$('.errorMsg div').fadeIn(1000);
	$('.warningMsg').hide();
	$('.warningMsg').fadeIn(1000);
	
	// non-clickable links
	$(".return-false").click( function() {
		return false;
	});
	
	
	// SERVICII
	$("#servicii #content ol li h2 a").click( function() {
		$("#servicii #content ol li").css("background","url(images/servicii/arrow-big-down.png) no-repeat left bottom");
		$("#servicii #content ol ul li").css("background","transparent");
		$("#servicii #content ol li div").slideUp(300);
		$($(this).parent().parent()).css("background","url(images/servicii/arrow-big-up.png) no-repeat left bottom");
		$($(this).parent().parent()).find('div').slideDown(300);
		return false;
	});
	
});
