function init() {
	//initNav();
	//initPopUp();
	//fixModuleHeights();
}
function popUpInit() {
	
}
/*
function fixModuleHeights() {
	var mainAreaDiv=fixElement("contentArea");
	var mod1Div=fixElement("modules1");
	var mod2Div=fixElement("modules2");
	var tallestDiv = mainAreaDiv;
	if (mod1Div && tallestDiv) {
		if (getAbsHeight(mod1Div) > getAbsHeight(tallestDiv)) tallestDiv = mod1Div;
	}
	if (mod2Div && tallestDiv) {
		if (getAbsHeight(mod2Div) > getAbsHeight(tallestDiv)) tallestDiv = mod2Div;
	}
	if (mod1Div && tallestDiv && getAbsHeight(mod1Div) < getAbsHeight(tallestDiv)) {
		setHeight(mod1Div,(getAbsHeight(tallestDiv)-42));
	}
	if (mod2Div && tallestDiv && getAbsHeight(mod2Div) < getAbsHeight(tallestDiv)) {
		setHeight(mod2Div,(getAbsHeight(tallestDiv)-42));
	}
}
*/

function CKEDITOR_narrow_toolbar () {
	return [
		['Source','-','Preview','Maximize','-','Cut','Copy','Paste','-','SpellChecker','-','Undo','Redo','-','Find','Replace']
		, ['Image','Flash','Table','-','Link','Unlink','Anchor','-','TextColor','BGColor']
		, ['Bold','Italic','Underline','Strike','Subscript','Superscript','-','Outdent','Indent','-','JustifyLeft','JustifyCenter','JustifyBlock']
		, ['Styles','Format','Font','FontSize']
	];

}

var pageLoaded = true;

function getHashState () {
	var keyvalue, hash, hashedpairs, hashvalues = [];
		
	hash = location.hash.replace("#",'');
	if (hash) hashedpairs = hash.split("^");
	
	if (hashedpairs && hashedpairs.length > 0) {
		for (i in hashedpairs) {
			keyvalue = hashedpairs[i].split("="); 
			hashvalues[keyvalue[0]] = (keyvalue[1] ? keyvalue[1] : keyvalue[0]);
		} 
	}
	else {
		hashvalues[0] = hash;
	}

	return hashvalues;
}

function getHash () {
	return location.hash.replace("#",'');
}

function hideShortcutBar(barId, userId) {
	xaja ('action=hideshortcutbar&barId=' + barId + "&userId=" + userId, 0, '', '/inc/global/interface.ajax.php', 'blackhole', function () {
		hideDiv(barId + "_bar");
		hideDiv(barId + "_box");
	});
}

function hrefto (url) {
	window.location.href = url;
}

