var $j = jQuery.noConflict();

$j(document).ready(function() { 

	$j(".open").click(function(){
	 	$j(this).parent().toggleClass("act");
	// 	$j(this).parent().find("ul").slideToggle('1500');
	});
	
	$j(".tx-mmforum-pi1-listtopic-newtopic:empty")
		.html(
			'<div class="tx-mmforum-textbutton"><a href="index.php?id=64" class="fancyInlineSmall"><img height="16" width="16" border="0" title="" alt="" src="typo3temp/GB/9667326dc5.gif"><span class="tx-mmforum-buttontext">Neues Thema</span></a></div>'+
			'<div class="tx-mmforum-textbutton"><a href="index.php?id=64" class="fancyInlineSmall"><img height="16" width="16" border="0" title="" alt="" src="typo3temp/GB/9667326dc5.gif"><span class="tx-mmforum-buttontext">Login</span></a></div>'
		);
	$j(".tx-mmforum-pi1-listtopic-answer:empty").html(
			'<div class="tx-mmforum-textbutton"><a href="index.php?id=64" class="fancyInlineSmall"><img height="16" width="16" border="0" title="" alt="" src="typo3temp/GB/9667326dc5.gif"><span class="tx-mmforum-buttontext">Antworten</span></a></div>'+
			'<div class="tx-mmforum-textbutton"><a href="index.php?id=64" class="fancyInlineSmall"><img height="16" width="16" border="0" title="" alt="" src="typo3temp/GB/9667326dc5.gif"><span class="tx-mmforum-buttontext">Login</span></a></div>'
		);
	
	$j(".fancyInline").fancybox({
				'width'				: '75%',
				'height'			: '75%',
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
	$j(".externalLinkFancy").fancybox({
				'width'				: '75%',
				'height'			: '75%',
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
	$j(".fancyFile").fancybox({
				'width'				: '75%',
				'height'			: '75%',
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
			$j(".fancyInlineSmall").fancybox({
				'width'				: '50%',
				'height'			: '50%',
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
			$j(".fancyInlineBig").fancybox({
				'width'				: '90%',
				'height'			: '90%',
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
	$j(".fancyImage").fancybox();
	
	$j("input[type*='text']").focusin(function(){
			$j(this).addClass("active");
	});
	$j("input[type*='text']").focusout(function(){
			$j(this).removeClass("active");
	});
	
});

