/* tabber options */
var tabberOptions = {
		'onClick':function(argsObj) {
			var t = argsObj.tabber; /* tabber object */
			var id = t.id; /* ID of the main tabber div */
			var i = argsObj.index; /* which tab was clicked */
			var e = argsObj.event; /* event triggered */

			var div = this.tabs[i].div;

			if (fc == true) {
				var r = confirm('Continue without saving form contents?');
				if (r == false)
					return false;
				else
					fc = false;
			}
		
			/* Display a loading message */
			div.innerHTML = "<p>Loading...<img border=0 src='../images/progress_active.gif'><\/p>";

			/* fetch the id of the tab that was clicked on */			
			var mode = div.id;
			
			/* fetch the content to display */
			var url = 'index.php';
			var pars = {
				'mode' : mode ,
				'projectid' : t.projectid ,
				'logid' : t.logid,
				'id' : t.projectid ,
				'id2' : t.logid,
				'prototype' : Prototype.Version
			}; 

			var myAjax = new Ajax.Updater(div, url, 
				{
					method:'post',
					parameters:pars,
					evalScripts:true
				});
		} ,

		'onLoad': function(argsObj) {
			var t = argsObj.tabber; /* tabber object */
			/* Load the first tab */
			argsObj.index = 0;
			this.onClick(argsObj);
		}
};
