<!--

function DMenu_Main_FlatLevelContainerOpen_Render_X(MenuName,MenuNodeIndex){
  var iner = "";
  //@@@ open level div
  iner+=('<DIV ');  
	/*@@@ DMenu : generate client id for layer container : it's nessasary*/iner+=(' id="'+DMenu_GenerateClientId(MenuName,MenuNodeIndex,"children")+'" ');
  iner+=(' style="position:absolute;left:0px;top:0px;width:100px;display:none;');
  iner+=('">');
	
	//@@@ start level contents
  iner+=('<TABLE cellpadding="2" cellspacing="0" width="100%" class="DMenu_Main_FlatLevel_Container">');
  
	return iner;
}

function DMenu_Main_FlatLevelContainerClose_Render_X(MenuName,MenuNodeIndex){
   var iner="";
	 iner+=('</TABLE>');	
   //@@@ ends level contents
		 
	 iner+=('</DIV>');
	 //@@@ close level div
	 
	 return iner;
}


function DMenu_Main_FlatLevel_Render_X(MenuName,MenuNodeIndex){
     var iner="";
	   var objMenuNode = null;
		 var objTreeNode = null;
		 var id;
		 for(var i=0;i<DMenu_MenusArr.length;i++){
	       if(DMenu_MenusArr[i].MenuName==MenuName){	 
			        objMenuNode = DMenu_MenusArr[i].MenuNodes[MenuNodeIndex];
							objTreeNode = DMenu_TreesArr[objMenuNode.TreeIndex].TreeNodes[objMenuNode.TreeNodeIndex];
							id = objMenuNode.MenuNodeID;
							break;	 
				 }
		 }						 
		 if(objMenuNode==null || objTreeNode==null)return;
		 var y1 = 0; if(DMenu_BName=="IE" && objTreeNode.NodePSIndex==null)y1=-1;		 
						     				     
     iner+=('<TR>');
		 iner+=('   <TD id="'+DMenu_GenerateClientId(MenuName,id,"")+'" valign="middle" nowrap ');
              		 /*@@@ attributes of tag TD*/
									 /*@@@ execution commands for this node*/iner+=DMenu_GenerateExecutionCommandsForFlatNode(MenuName,id,objTreeNode.NodeChildrenCount,"left","right","top","top",((DMenu_BName=="IE")?-1:0),-1+y1);
              		 
              		 /*@@@ default css class*/
              		 if(objMenuNode.Selected){
              		    iner+=(' class="DMenu_Main_FlatLevel_MouseOut_selected" '); 
              		 }else if(objMenuNode.DescendantSelected){
              		    iner+=(' class="DMenu_Main_FlatLevel_MouseOut_descendant_selected" '); 
              		 }else{
              		    iner+=(' class="DMenu_Main_FlatLevel_MouseOut_normal" '); 
              		 }		 
              		 /*@@@ end default css class*/		 
              		 iner+=(' " onclick="location.href=\''+DMenu_GenerateNodeLink(objTreeNode)+'\'">');
              		 /*@@@ END attributes of tag TD*/
		 

					 
					 iner+='<DIV style="position:realtive;width:100%;height:100%;">'; 
					 							 
          		/*@@@ arrow for nodes with children*/if(objTreeNode.NodeChildrenCount>0){
							  if(DMenu_BName=="IE"){ 
    					    iner+=("<DIV style='position:absolute;width:100%;height:100%;'>");
    							iner+=('<TABLE border="0" cellpadding="0" cellspacing="0" height="100%" width="100%"><TR><TD valign="middle" align="left">');
                }        		    
								iner+=('<IMG src="template/images/menu_arrow_hw.gif" border="0" vspace="'+((DMenu_BName=="IE")?'0':'4')+'" hspace="0" width="6" height="9" align="left">');
        				if(DMenu_BName=="IE"){ 
  								iner+=("</TD></TR></TABLE>");
    							iner+=('</DIV>');
								}							 	
      		    }/*@@@ End arrow for nodes with children*/
							
							/*@@@ node caption*/ 
					    iner+='<DIV style="position:realtive;padding-left:8px;"';    					       
                		 /*@@@ default css class*/if(objMenuNode.Selected){
                		    iner+=(' class="DMenu_Main_FlatLevel_Font_selected" '); 
                		 }else if(objMenuNode.DescendantSelected){
                		    iner+=(' class="DMenu_Main_FlatLevel_Font_descendant_selected" '); 
                		 }else{
                		    iner+=(' class="DMenu_Main_FlatLevel_Font_normal" '); 
                		 }/*@@@ end default css class*/
              iner+='>';
							iner+='<SPAN dir="rtl">';			 
              iner+=(objTreeNode.NodeName);//@@@ node name
							iner+='</SPAN>';
    					iner+='</DIV>';
					    /*@@@ end node caption*/ 
					 
					 iner+='</DIV>';
					 

		 	
		 iner+=('   </TD>');	
		 iner+=('</TR>');		
		 
		 return iner;	     
}


function DMenu_Products_FlatLevelContainerOpen_Render_X(MenuName,MenuNodeIndex){
  var iner="";	 
  //@@@ open level div
  iner+=('<DIV ');  
	/*@@@ DMenu*/iner+=(' id="'+DMenu_GenerateClientId(MenuName,MenuNodeIndex,"children")+'" ');
  iner+=(' style="position:absolute;left:0px;top:0px;width:100px;display:none;');
  iner+=('">');
	
	//@@@ start level contents
  iner+=('<TABLE cellpadding="2" cellspacing="0" width="100%" class="DMenu_Products_FlatLevel_Container">');

	return iner;
}

function DMenu_Products_FlatLevelContainerClose_Render_X(MenuName,MenuNodeIndex){
   var iner="";
	 iner+=('</TABLE>');	
   //@@@ ends level contents
	 
	 iner+=('</DIV>');
	 //@@@ close level div
	 
	 return iner;
}

function DMenu_Products_FlatLevel_Render_X(MenuName,MenuNodeIndex){
     var iner="";
	   var objMenuNode = null;
		 var objTreeNode = null;
		 var id;
		 for(var i=0;i<DMenu_MenusArr.length;i++){
	       if(DMenu_MenusArr[i].MenuName==MenuName){	 
			        objMenuNode = DMenu_MenusArr[i].MenuNodes[MenuNodeIndex];
							objTreeNode = DMenu_TreesArr[objMenuNode.TreeIndex].TreeNodes[objMenuNode.TreeNodeIndex];
							id = objMenuNode.MenuNodeID;
							break;	 
				 }
		 }						 
		 if(objMenuNode==null || objTreeNode==null)return;
		 var y1 = 0; if(DMenu_BName=="IE" && objTreeNode.NodePSIndex==null)y1=-1;		 
						     				     
     iner+=('<TR>');
		 iner+=('   <TD id="'+DMenu_GenerateClientId(MenuName,id,"")+'" valign="middle" nowrap ');
              		 /*@@@ attributes of tag TD*/
              		 /*@@@ execution commands for this node*/iner+=DMenu_GenerateExecutionCommandsForFlatNode(MenuName,id,objTreeNode.NodeChildrenCount,"left","right","top","top",((DMenu_BName=="IE")?-1:0),-1+y1);

              		 /*@@@ default css class*/
              		 if(objMenuNode.Selected){
              		    iner+=(' class="DMenu_Products_FlatLevel_MouseOut_selected" '); 
              		 }else if(objMenuNode.DescendantSelected){
              		    iner+=(' class="DMenu_Products_FlatLevel_MouseOut_descendant_selected" '); 
              		 }else{
              		    iner+=(' class="DMenu_Products_FlatLevel_MouseOut_normal" '); 
              		 }		 
              		 /*@@@ end default css class*/		 
              		 iner+=(' " onclick="location.href=\''+DMenu_GenerateNodeLink(objTreeNode)+'\'">');
              		 /*@@@ END attributes of tag TD*/
		 

					 
					 iner+='<DIV style="position:realtive;width:100%;height:100%;">'; 
					 							 
          		/*@@@ arrow for nodes with children*/if(objTreeNode.NodeChildrenCount>0){
    					    if(DMenu_BName=="IE"){ 
        							iner+=("<DIV style='position:absolute;width:100%;height:100%;'>");
        							iner+=('<TABLE border="0" cellpadding="0" cellspacing="0" height="100%" width="100%"><TR><TD valign="middle" align="left">');
    							}
          		    iner+=('<IMG src="template/images/menu_arrow_hw.gif" border="0" vspace="'+((DMenu_BName=="IE")?'0':'4')+'" hspace="0" width="6" height="9" align="left">');
          				if(DMenu_BName=="IE"){ 
        							iner+=("</TD></TR></TABLE>");
        							iner+=('</DIV>');
    							}							 	
      		    }/*@@@ End arrow for nodes with children*/
							
							/*@@@ node caption*/ 
					    iner+='<DIV style="position:realtive;padding-left:8px;"';    					       
                		 /*@@@ default css class*/if(objMenuNode.Selected){
                		    iner+=(' class="DMenu_Products_FlatLevel_Font_selected" '); 
                		 }else if(objMenuNode.DescendantSelected){
                		    iner+=(' class="DMenu_Products_FlatLevel_Font_descendant_selected" '); 
                		 }else{
                		    iner+=(' class="DMenu_Products_FlatLevel_Font_normal" '); 
                		 }/*@@@ end default css class*/
              iner+='>';
							iner+='<SPAN dir="rtl">';			 
              iner+=(objTreeNode.NodeName);//@@@ node name
							iner+='</SPAN>';
    					iner+='</DIV>';
					    /*@@@ end node caption*/ 
					 
					 iner+='</DIV>';
					 

		 	
		 iner+=('   </TD>');	
		 iner+=('</TR>');		
		 
		 return iner;		     
}




/*@@@ ATTENTION !!!! DO NOT DELETE THIS LINE*/DMenu_TemplatesEngineLoaded = true;
//-->