jQuery(document).ready(function() {
								
	$('.scroll-pane').jScrollPane();
	
	$("a.oneImage").fancybox({
			'titlePosition'	: 'inside'
		});
	
	$("a[rel=galerie]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'inside'
	
		});
	
	$(".iFrame").fancybox({
		'width'				: 820,
		'height'			: 600,
        'autoScale'     	: false,
		'type'				: 'iframe'
	});
	
	$("#searchInput").autocomplete("/library/boxes/searchAutoComplete.php", {
		width: 260,
		matchContains: true,
		minChars: 2,
		selectFirst: false
	});
	
	
	$('#arrayNewsticker').innerfade({
				animationtype: 'slide',
				speed: 1500,
				timeout: 4000,
				type: 'random',
				containerheight: '20px'
			});
			
	$('textarea.tinymce').tinymce({
		// Location of TinyMCE script
		script_url : '/library/javascript/tiny_mce_3_4_4/tiny_mce.js',
		//php_external_list_url : "/library/javascript/tiny_mce_3_4_4/plugins/php/examples/example_php_list.js",
	
		// General options
		theme : "advanced",
		language : "de",
		extended_valid_elements : "span[!class],div[class|style|id],iframe[class|src|frameborder=0|width|height|name],img[class|src|border=0|alt|title|style|class|id|hspace|vspace|width|height|align|onmouseover|onmouseout|name]",
	
		plugins : "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,loremipsum,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,advlist",
	
		// Theme options
		theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,outdent,indent,blockquote,|,formatselect,|,loremipsum",
		theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,undo,redo,|,link,unlink,anchor,image,cleanup,code,|,forecolor,backcolor",
		theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,iespell,advhr",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "none",
		theme_advanced_resizing : true,
		convert_urls: false,
		relative_urls: false
	
	});
});
