
$(function() 
{ 
	$("#arata").toggle(
		function()
		{
			$("#ofertenoi").show('slow');
		},
		function()
		{
			$("#ofertenoi").hide('slow');
		});
		
	$("#aratafoto").toggle(
		function()
		{
			$("#farafoto").show('slow');
		},
		function()
		{
			$("#farafoto").hide('slow');
		});
		
	$("#arataimcomp").toggle(
		function()
		{
			$("#incomp").show('slow');
		},
		function()
		{
			$("#incomp").hide('slow');
		});
		
	$("#aratareguli").toggle(
		function()
		{
			$("#reg").show('slow');
		},
		function()
		{
			$("#reg").hide('slow');
		});
	
	$("#aratavechi").toggle(
		function()
		{
			$("#vechi").show('slow');
		},
		function()
		{
			$("#vechi").hide('slow');
		});  
	$("#aratafarafurnz").toggle(
		function()
		{
			$("#farafurnz").show('slow');
		},
		function()
		{
			$("#farafurnz").hide('slow');
		});
	$("#aratafaraproduc").toggle(
		function()
		{
			$("#faraproduc").show('slow');
		},
		function()
		{
			$("#faraproduc").hide('slow');
		});
	
	$("#aratainactive").toggle(
		function()
		{
			$("#inactive").show('slow');
		},
		function()
		{
			$("#inactive").hide('slow');
		});  
	$("#aratapreturivechi").toggle(
		function()
		{
			$("#preturivechi").show('slow');
		},
		function()
		{
			$("#preturivechi").hide('slow');
		});
	$("#aratapreturinule").toggle(
		function()
		{
			$("#preturinule").show('slow');
		},
		function()
		{
			$("#preturinule").hide('slow');
		});
	$("#arataextrase").toggle(
		function()
		{
			$("div.extrase").show('slow');
		},
		function()
		{
			$("div.extrase").hide('slow');
		}); 
	$('a').tooltip({showURL: false});
});


$(document).ready(

	function()
	{
		$("#ofertenoi").hide(); $("#titluofnoi").hide();
		$("#farafoto").hide();
		$("#incomp").hide();
		$("#farafurnz").hide();
		$("#faraproduc").hide();
		$("#vechi").hide();
		$("#reg").hide();
		$("#inactive").hide();
		$("#preturivechi").hide();
		$("#preturinule").hide();
		$("div.extrase").hide();
//      		{extraParams: {field: function() { return $("#field").val(); }}});
	}
);	

(function ($) {
// VERTICALLY ALIGN FUNCTION
$.fn.vAlign = function() {
	return this.each(function(i){
	var ah = $(this).height();
	var ph = $(this).parent().height();
	var mh = Math.ceil((ph-ah) / 2);
	$(this).css('margin-top', mh);
	});
};
})(jQuery);


