$(document).ready(function(){
    
    $('#slideshow').jqFancyTransitions({ width: 546, height: 270, titleOpacity: 0 });
    

    
    $('a.fancybox').fancybox({
	'speedIn': 600, 
	'speedOut': 200,
	'type': 'image'
    });
    
    $("label").inFieldLabels();

    $( "#articleFormTabs" ).tabs();

    var config = {
	height: 600,
	toolbar:
	[
	    ['Source'],
	    ['Cut','Copy','Paste','PasteText','PasteFromWord'],
	    ['Undo','Redo'],
	    ['Font','FontSize'],
	    ['TextColor','BGColor','RemoveFormat'],
	    ['Link','Unlink'],
	    '/',
	    ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
	    ['NumberedList','BulletedList','-','Outdent','Indent'],
	    ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
	    ['BidiLtr', 'BidiRtl'],
	    ['Image','Flash','Table','HorizontalRule','PageBreak'],
	],

	filebrowserBrowseUrl: '/js/kcfinder-2.21/browse.php?type=files',
	filebrowserImageBrowseUrl: '/js/kcfinder-2.21/browse.php?type=images',
	filebrowserFlashBrowseUrl: '/js/kcfinder-2.21/browse.php?type=flash',
	filebrowserUploadUrl: '/js/kcfinder-2.21/upload.php?type=files',
	filebrowserImageUploadUrl: '/js/kcfinder-2.21/upload.php?type=images',
	filebrowserFlashUploadUrl: '/js/kcfinder-2.21/upload.php?type=flash'
    };

    // Initialize the editor.
    // Callback function can be passed and executed after full instance creation.
    $('.ck_editor').ckeditor(config);
});

