//Site settings, global variables, etc
var monthName = [ "January","February","March","April","May","June","July","August","September","October","November","December" ];   
var hashLoc = document.location.hash.split(/\//g);

OH_config = {
	xmlFilePath : '/ohcms/cores/files/xml.php',
	jsonPath : '/ohcms/objects.json',
	baseurl : '/'
}

OH_config.ck = {
	toolbar_Full:
	[
	    ['Source','-','Templates'],
	    ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker'],
	    ['Undo','-','SelectAll','RemoveFormat'],
	    '/',
	    ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
	    ['NumberedList','BulletedList','-','Blockquote'],
	    ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
	    ['Link','Unlink','Anchor'],
	    ['Image','Flash','Table','HorizontalRule','SpecialChar'],
	    '/',
	    ['Styles','Format','Font','FontSize'],
	    ['TextColor','BGColor'],
	    ['Maximize','-','About']
	],
	toolbar_Basic :
	[
	    ['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink','-','About']
	]
};

function reloadhashLoc() {
	alert(document.location.hash.split(/\//g));
}

function trim(string) {
	return string.replace(/^0*/, "");
}

function dump(b,d){var c="";d||(d=0);for(var e="",a=0;a<d+1;a++)e+="    ";if(typeof b=="object")for(var f in b){a=b[f];if(typeof a=="object"){c+=e+"'"+f+"' ...\n";c+=dump(a,d+1)}else c+=e+"'"+f+"' => \""+a+'"\n'}else c="===>"+b+"<===("+typeof b+")";return c};

OH_errors = {
	checkArgs: function(args) {
		if(args.length != args.callee.length) {
			oh_errors.display('Invalid number of arguments');
			return;
		}
	},
	display: function(t) {
		alert(t);
	}
}
