// JavaScript Document

$(document).ready(function(){

// float the SIDEBAR
//$('.template1 .sideBar').floatsidebar({anchor:'#adminWrapper',scroll:false});

// float the TOOLBAR at the footer
/*var disable_float = false;
if($('body').is('.edit')) disable_float = true;
$(".template1 .toolbar_fullscreen_container").floattoolbar({selector:'#adminWrapper',disable:disable_float});*/

	/*
	 * This is to make the height for the cover, because the text which should be covers is dynamic, so the height can be dynamic, 
	 * also the cover div can not the open at the begining of the text and closed at the end of the content, because of its opacity which affect the text colour inside
	 */
	 
	// If a central page with fragments, 
	// let the fragment.js file take care of putting proper covers
	if(typeof(fragmentsFile) == "undefined")
		$("[id='cover']").each(function(){
			$(this).css({
				height:$(this).parent().height(),
				width:$(this).parent().width()
			});
		});

	//if (window.desableWysiwygAddMedia)
	//	desableWysiwygAddMedia();

	if (window.notImplemented)
		notImplemented();

});

