if ( typeof( $ ) != 'undefined' ) {
	$.noConflict();
}

jQuery(document).ready(function(){
	var linx = jQuery(document).find(".jquery_title");
	linx.each(function(i){		
		this.href = "javascript:void(0)",
		this.onclick = function(){
			var box_outer = this.parentNode;
			if ( typeof( box_outer.sw_original_height ) == 'undefined' ) {
				box_outer.sw_original_height = jQuery(box_outer).height();
			}
			var box = jQuery(box_outer).find(".jquery_box");
			if ( box ) {
				var box_height = jQuery(box).outerHeight()+jQuery(this).outerHeight();
				jQuery(box).css({"visibility":"visible"});
				if( jQuery(box_outer).height() <= box_outer.sw_original_height ){	
					jQuery(box_outer).animate(
						{"height": box_height},
						900
					);
				} else {
					jQuery(box_outer).animate(
						{"height": box_outer.sw_original_height},
						900, 
						function() {
							jQuery(box).css({"visibility":"hidden"});
						}

					);
				}
			} else {
				console.log( '.jquery_box hiányzik' );
			}
		}
	});
});

