function pushSourceButton(sId)  {
   var oEditor = FCKeditorAPI.GetInstance(sId);  // there is your fckeditor instance name
   //alert(oEditor)
   oEditor.Commands.GetCommand('Source').Execute();           

}

function toggleItem(id) {
	($('#' +id).css('display') == 'none') ? $('#' + id).show() : $('#' + id).hide();
}

function checkAllBoxes(oControl) {
	if (oControl.checked) {
		$("INPUT[type='checkbox']").attr('checked', true);
	} else {
		$("INPUT[type='checkbox']").attr('checked', false);
	}
}
	
function balanceHeight() {
	var objLeft = document.getElementById("wrapper-main-left");
	var objCenter = document.getElementById("wrapper-main-center");
	var objRight = document.getElementById("wrapper-main-right");
	var objHeader = document.getElementById("layout-header");
	var objFooter = document.getElementById("layout-footer");
	var arrHeight = new Array(objLeft.clientHeight,objCenter.clientHeight,objRight.clientHeight);
	var intMaxHeight = 0;
	
	for (i = 0; i < arrHeight.length; i++) {
		if (arrHeight[i] > intMaxHeight) {
			intMaxHeight = arrHeight[i];
		}
	}
	
	objLeft.style.height = intMaxHeight + "px";
	objCenter.style.height = intMaxHeight + "px";
	objRight.style.height = intMaxHeight + "px";
}

function navSetSelected(id,active) {
	var objNav = document.getElementById(id + "-ctr");
	if (active && objNav) {
		objNav.style.color = "#FF0000";
	} else {
		objNav.style.color = "#FFFFFF";
	}
}

// IE6 hover function for dropdown menus
nav_set_hover = function() {
	var sfEls = document.getElementById("nav-main").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
 			this.className+=" hover";
		}
 		sfEls[i].onmouseout=function() {
 			this.className=this.className.replace(new RegExp(" hover\\b"), "");
 		}
 	}
}
if (window.attachEvent) window.attachEvent("onload", nav_set_hover);
