/**
 * @author Timo 9.09.2005
 */
var f_C,f_D,f_K,f_s;

menu.html={//CONSTANTS
		S_ID : '@1',
		S_TYPE : '@2',
		S_SRC : '@3',
		S_CLASS_NAME : '@4',
		S_ON_CLICK : '@5',
		S_ALT : '@6',
		S_NAME : '@7',
		S_VALUE : '@8',
		S_HREF : '#',//'@9',
		S_PARENT_INDEX : '@a',
		/**
		 * @see 10general.css :@import "10className.css";
		 * @see 10formMenu.css
		 */    
		S_CLASS_BLOCK : 'b',
		S_CLASS_BORDER_0 : 'b0',
		S_CLASS_BUTTON : 'bn',
		S_CLASS_HIDDEN : 'h',
		S_CLASS_HIGLIGHT : 'hl',
		S_CLASS_NONE : 'n',
		S_CLASS_TEXT : 'tx',
		S_CLASS_VISIBLE : 'v',
		S_CLASS_ZERO : 'z',//not used
		
		_S_LEFTWARDS:CssProperty.LEFTWARDS,
		_S_RIGHTWARDS:CssProperty.RIGHTWARDS,
		_S_HORIZONTAL:CssProperty.HORIZONTAL,
		_S_VERTICAL:CssProperty.VERTICAL,
		
		S_BACKGROUND : ' #e0e0e0',//S_BACKGROUND : ' fixed no-repeat center right #e0e0e0',
		/**
		 * @see 3id.js Both 2 sets must be unique.
		 */ 
		S_CAPTION_ID : 'c',//'Caption', 
		S_INPUT_ID : 'i',// 'v',//'Input', 
		S_WOMB_ID : 'k',//'Kid',//S_NODE_ID : 'Node', 
		S_PARENT_NAME : 'n',//'ParentName',
		S_MOM_ID : 'p',//'Parent', 
		S_SWITCH_KID_ID : 's',//'switchKid',//S_SWITCH_PARENT_ID : 'switchParent',
		
		S_INPUT_END : '/>',
		
		S_SEPARATOR : '_',
		
		S_PACKAGE : 'decider.',
		//S_STAY : ' onfocus="f_C(this);" onmouseout="f_s(this);"', //fails
		S_STAY : ' onmouseover="f_C(this);" onmouseout="f_s(this);"',
		
		img :{
			/**
			 * @see menu.html.img.setThis
			 * @see menu.view.switchKid
			 */
			PLUS:'imgPlus img',
			MINUS:'imgMinus img',
			PLUS_HOOK:'imgPlusHook img',
			MINUS_HOOK:'imgMinusHook img',
			CROSS:'imgCross img',
			HOOK:'imgHook img',
			LINE:'imgLine img',
			EMPTY:'imgEmpty img'
		}//img 
/**
 * Input
 */
, _aInput:new Array(
		/*0*/ 'hidden',
		/*1*/ 'checkbox',
		/*2*/ 'radio',//radio inputs of the same set must have the same name
		/*3*/ 'file',
		/*4*/ "text", // HtmlAttribute.TEXT,
		/*5*/ 'submit',
		/*6*/ 'button',
/*7*/ 'reset')
}//CONSTANTS

menu.html.setHtmlTags=function(){
	/**
	 * Tag
	 */
	this._sSwitchKid="f_K(this, '";//+this.S_ID
	this._sSwitchMom="f_D('"+this.S_MOM_ID;//+this.S_ID
	this._sFunctionEnd="');";
	
	this._sInput='<input'+this.S_STAY;
	
	this._sImgStart='<span';
	this._sImgEnd='>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>';
	this._sImgEmpty=this._sImgStart+' class="'+this.img.EMPTY+'"'+this._sImgEnd;
	
	this._sImgLine=this._sImgStart+' class="'+this.img.LINE+'"'+' onclick="'+this._sSwitchMom;
	this._sImgCross=this._sImgStart+' class="'+this.img.CROSS+'"'+' onclick="'+this._sSwitchMom;
	this._sImgHook=this._sImgStart+' class="'+this.img.HOOK+'"'+' onclick="'+this._sSwitchMom;
	this._sDadSwitch=this._sFunctionEnd+'"'+this._sImgEnd;
	
	this._sImgPlus=this._sImgStart+' class="'+this.img.PLUS+'"'+' onclick="'+this._sSwitchKid;
	this._sImgPlus_=this._sImgStart+' class="'+this.img.PLUS_HOOK+'"'+' onclick="'+this._sSwitchKid;
	this._sKidSwitch=this._sFunctionEnd+'" \n id="'+this.S_SWITCH_KID_ID; 
}//setHtmlTags

menu.html.setAbreviations=function(){
  try{
	f_s=task.stay;
	f_C=task.setCurrent;
	f_D=task.switchMom;
	f_K=task.switchKids;
  }catch(e_rror){Log.showExeption( e_rror, 'menu.html.setAbreviations');}
}//setAbreviations
//menu.html.setHtmlTags();
