function onMyMenuOpen(obj)
{   
	var dl = obj.dl;
	var dt = obj.dt;
	var dd = obj.dd;
	var d = document.createElement('div');
	d.className = 'debug';
	d.innerHTML =  dt.innerHTML + ' is opened' ;
//  document.body.insertBefore( d , dl.nextSibling);
};

function onMyMenuClose(obj)
{
	var dl = obj.dl;
	var dt = obj.dt;
	var dd = obj.dd;
	var d = document.createElement('div');
	d.className = 'debug';
	d.innerHTML =  dt.innerHTML + ' is closed' ;
	//document.body.insertBefore( d , dl.nextSibling);
};

var oOptions=
{ 
	/*all options are optional*/
    /* [ bool ] if dependent is false, then each menu open/close independently*/
    dependent:true,
            
    /* [function] callback when a menu is opened*/
    onOpen:onMyMenuOpen,
            
    /* [function] ccallback when a menu is closed*/
    onClose:onMyMenuClose,
            
    /* [array] cdefault ids of opened menues' <dt>*/
    openedIds:['optionMain_0','summary'],
            
    /* [number ] seconds for animations*/
    seconds:0.5,
            
    /*[ bool ] set true if the animation is to be played slower and slower and vise versa*/
    easeOut:false,
            
    /*[ bool ] set true if the animation is to be played*/
    animation:true
}

/**
 *Updated By : Abdullah Yaseen - 08/31/2008
 *Description : Updated to move according menu  construction in cutomdetailoptions.jsp page in order to 
 * 				select the option as default value when only one option type exist.
 * 				(don not prompt the user to select this option because it the only option exist). per jira#: BD-523.
 */
  