//-----------------------------------------------------------------------
//- Created by the Agama Web Menus - generator  ver 2.15
//- Copyright MP Software (c)2008
//- Can I use this script? See http://www.agama-menu.com
//-----------------------------------------------------------------------

var fd1MiscFunc = {
	ie  :	true,
	ns2 : false,
	ns3 : false,
	ns4 : false,
	ns4up : false,
  ns5 : false,
  ns5up : false,
  moz7 : false,
  ie3 : false,
  ie4 : false,
  ie5 : false,
  ie55: false,
  ie6 : false,
  op3 : false,
  op4 : false,
  op5 : false,
	op6	: false,
	op6up: false,
	Tmpinit:false,
	
	 
	InitVars	:	function () {
		this.Tmpinit=true;
	  var agt =	navigator.userAgent.toLowerCase();
 		var major = parseInt(navigator.appVersion);
	  var minor =  parseFloat(navigator.appVersion);
	  var navI =  navigator.appVersion.substring(22,25);
		var nav = ((agt.indexOf('mozilla')!=-1)&&(agt.indexOf('spoofer')==-1)&&(agt.indexOf('compatible')==-1)&&(agt.indexOf('opera')==-1)&&(agt.indexOf('webtv')==-1));
		this.ns2 = (nav&&(major==2))?true:false;
	  this.ns3 = (nav&&(major==3))?true:false;
	  this.ns4 = (nav&&(major==4))?true:false;
	  this.ns4up = (nav&&(major>=4))?true:false;
	  this.ns5 = (nav&&(major==5))?true:false;
	  this.ns5up = (nav&&(major>=5))?true:false;
	  this.moz7 = (nav&&(agt.indexOf('netscape6')==-1))?true:false;
	  var ie = (agt.indexOf("msie")!=-1)?true:false;
		this.ie=ie;
	  this.ie3 = (ie&&(major<4))?true:false;
	  this.ie4 = (ie&&(agt.indexOf("msie 4")!=-1))?true:false;
	  this.ie5 = (ie&&navI=='5.0')?true:false;
	  this.ie55 = (ie&&navI=='5.5')?true:false;
	  this.ie6 = (ie&&navI=='6.0')?true:false;
	  var op3 = (agt.indexOf("opera")!=-1)?true:false;
		this.op3=op3;
	  var op4 = (op3&&(agt.indexOf("opera 4")!=-1))?true:false;
		this.op4=op4;
		var op5 = ((op3&&((agt.indexOf("opera 5.11")!=-1)||(agt.indexOf("opera 5.02")!=-1)||(agt.indexOf("opera 5.01")!=-1)))||(op3&&(major>4)))?true:false;
		this.op5=op5;
		var op6 = (op5&&(agt.indexOf("opera 6.0")!=-1))?true:false;
		this.op6=op6;
		var op6up = (op6&&(major>6))?true:false;
		this.op6up=op6up;
		return;
	},
	
	 
	getObjNN4 : function (obj,name)
	{
		if (!this.init){this.InitVars()}
		var x = obj.layers;
		var foundLayer;
		for (var i=0;i<x.length;i++)
		{
			if (x[i].id == name)
			 	foundLayer = x[i];
			else if (x[i].layers.length)
				var tmp = this.getObjNN4(x[i],name);
			if (tmp) foundLayer = tmp;
		}
		return foundLayer;
	},

	 
	getElementHeight : function (Elem) {
		if (!this.init){this.InitVars()}
		if (this.ns4) {
			var elem = this.getObjNN4(document, Elem);
			return elem.clip.height;
		} else {
			if(document.getElementById) {
				var elem = document.getElementById(Elem);
			} else if (document.all){
				var elem = document.all[Elem];
			}
			xPos = elem.offsetHeight;
			return xPos;
		} 
	},
	
	 
	getElementWidth : function(Elem) {
		if (!this.init){this.InitVars()}
		if (this.ns4) {
			var elem = this.getObjNN4(document, Elem);
			return elem.clip.width;
		} else {
			if(document.getElementById) {
				var elem = document.getElementById(Elem);
			} else if (document.all){
				var elem = document.all[Elem];
			}
			xPos = elem.offsetWidth;
			return xPos;
		}
	},
	
	 
	getElementLeft : function (Elem) {
		if (!this.init){this.InitVars()}
		if (this.ns4) {
			var elem = this.getObjNN4(document, Elem);
			return elem.pageX;
		} else {
			var elem;
			if(document.getElementById) {
				var elem = document.getElementById(Elem);
			} else if (document.all){
				var elem = document.all[Elem];
			}
			xPos = elem.offsetLeft;
			tempEl = elem.offsetParent;
			while (tempEl != null)  {	
				xPos += tempEl.offsetLeft;
				if ((tempEl.style.position=='absolute') || (tempEl.style.position=='relative')){break}
		  		tempEl = tempEl.offsetParent;
			}
			return xPos;
		}
	},

	
	 
	getElementTop : function (Elem) {
		if (!this.init){this.InitVars()}
		if (this.ns4) {
			var elem = this.getObjNN4(document, Elem);
			return elem.pageY;
		} else {
			if(document.getElementById) {	
				var elem = document.getElementById(Elem);
			} else if (document.all) {
				var elem = document.all[Elem];
			}
			yPos = elem.offsetTop;
			tempEl = elem.offsetParent;
			while (tempEl != null){
				yPos += tempEl.offsetTop;
				if ((tempEl.style.position=='absolute') || (tempEl.style.position=='relative')){break}
		  		tempEl = tempEl.offsetParent;
	  	}
			return yPos;
		}
	}
};

fd1MiscFunc.InitVars();

 
 
 
var fd1MenuGroupHandler = {
	 
	MenuTimeout : 500,	
	ObjectsCount : 0, 
  ObjectsArray : Array(),  
	idCounter : 0,  
	idPrefix  : "menu_group_", 
	TimerCloseAllGroupID : 0,  
	TimerAnimateID : 0,  
	TmpGroupToShow	: '',  
	LC : '2607182600', 
	SubmenusDisAppearMode:0, 

  
 
	GetId:function() {  
							return this.idPrefix + this.idCounter++; 
						}, 
	
	FindGroup:function(id){  
              for (i=1; i<= this.ObjectsCount; i++){
                if (this.ObjectsArray[i].id==id) {
		              return(this.ObjectsArray[i]);
		 					  }
				      }
            },
							 
	DoOnMouseOver:function(id){ 
									window.clearTimeout(this.TimerCloseAllGroupID); 
									 
									gr=this.FindGroup(id);
									if (gr){
										if (gr.RefererItem){
											if (gr.RefererItem.OwnerGroup){
												for (i=1; i<= gr.RefererItem.OwnerGroup.Count; i++){
													if (gr.RefererItem.OwnerGroup.Items[i]==gr.RefererItem)
													{
														gr.RefererItem.OwnerGroup.Items[i].SetItemState(1);
													} 
														else
													{
														gr.RefererItem.OwnerGroup.Items[i].SetItemState(0);
													}
											 	}
											}
										}
									}
								},

	DoOnMouseOut:function(id){  
										window.clearTimeout(this.TimerCloseAllGroupID);  
                    
											this.TimerCloseAllGroupID = window.setTimeout("fd1MenuGroupHandler.CloseAllGroup()", fd1MenuGroupHandler.MenuTimeout); 
                    
									},

  DoOnMouseMove:function(id){return},
	DoOnMouseDown:function(id){return},
	DoOnMouseUp:function(id){return},

	FlipDropDown:function(id){  
										gr=this.FindGroup(id.substring(8));
										if (gr){
											gr.FlipDropDown();
										}
									},

  CloseGroup:function(id){ 
                
									gr=this.FindGroup(id);
									if (gr!=null){
										gr.CloseGroupRecurse();
									}
                
             },

  CloseAllGroup:function(){ 
												this.TmpGroupToShow=null;
												window.clearTimeout(this.TimerAnimateID);
                        for (i=1; i<= this.ObjectsCount; i++){
                          if (this.ObjectsArray[i]){
														if (this.ObjectsArray[i].IsMainGroup ==0){
														  this.ObjectsArray[i].HideGroup();
															this.ObjectsArray[i].AnimationControlValue = this.ObjectsArray[i].AnimationTo;  
               		          }
															else
														{	
			                        for (n=1; n<= this.ObjectsArray[i].Count; n++){
																this.ObjectsArray[i].Items[n].SetItemState(0);
															}
														}
                  	      }
												}
                      },

	

	ShowWithTargetOpacity:function(){  
													if (this.TmpGroupToShow != null){
                  					gr=this.FindGroup(this.TmpGroupToShow);
                  					if (gr){
															if (gr.AnimationType==100){
																gr.AnimationControlValue= gr.AnimationTo;
																obj=document.getElementById(gr.id);
													   		obj.style.MozOpacity = gr.Opacity/100 ;
														  	obj.style.filter = 'alpha(opacity=' + gr.Opacity + ')';
																obj.style.opacity=gr.Opacity/100;
															}
														}
													}
								},

  DoAnimation:function(){ 
                if (this.TmpGroupToShow != null){
                  gr=this.FindGroup(this.TmpGroupToShow);
                  if (gr){
										obj=document.getElementById(gr.id);
										objt=document.getElementById(gr.id+'_table');

										if ((gr.AnimationType>0) && (!fd1MiscFunc.ie)){ 
											gr.AnimationType=100;
										}

                    switch (gr.AnimationType){
      							   
										  case 0:{ 
												  obj.style.visibility='visible';
													objt.style.visibility='visible';

													 
												  for (this.i=1; this.i<= gr.Count; this.i++){ 
														gr.Items[this.i].ShowOrphans();
													}

													 
													if (gr.OnGroupShowJS!=''){
														eval(gr.OnGroupShowJS);
													}

													return;
											} 

										  case 100:{ 
											 		
														if (gr.AnimationControlValue==20){
															 
													  	for (this.i=1; this.i<= gr.Count; this.i++){ 
												  	  	gr.Items[this.i].ShowOrphans();
															}
														}

													 if ((gr.AnimationControlValue <= gr.AnimationTo) && (gr.AnimationControlValue<=gr.Opacity)){
														 obj.style.visibility='visible';															
														 objt.style.visibility='visible';
													   obj.style.MozOpacity = (gr.AnimationControlValue / gr.AnimationTo );
														 obj.style.filter = 'alpha(opacity=' + gr.AnimationControlValue + ')';
														 obj.style.opacity=(gr.AnimationControlValue / gr.AnimationTo );
													
											        
													   gr.AnimationControlValue=gr.AnimationControlValue+(gr.AnimationStep);
														 this.TimerAnimateID = window.setTimeout("fd1MenuGroupHandler.DoAnimation()",gr.AnimationTimeout * (gr.AnimationTo/(gr.Opacity/2)));
														 return;	
												   } 

													  
													 if (gr.OnGroupShowJS!=''){
														 eval(gr.OnGroupShowJS);
													 }

												   return;
										  } 
									  } 
									 
									   

										 
									  for (this.i=1; this.i<= gr.Count; this.i++){ 
								  	  gr.Items[this.i].ShowOrphans();
										}

									  if (obj.filters) {
											dur=(gr.AnimationTimeout * (gr.AnimationTo / gr.AnimationStep)) / 1500;
											obj.style.filter='revealTrans(duration='+dur+', transition='+gr.AnimationType+')';
									    obj.filters.revealTrans.apply(); 
											obj.style.visibility='visible';  
											objt.style.visibility='visible';
									    obj.filters.revealTrans.play();
									  } 
											else
									  { obj.style.visibility='visible';}

										 
										if (gr.OnGroupShowJS!=''){
											eval(gr.OnGroupShowJS);
										} 
								 } 
						  } 
            }

};  

	

 
 
 
var fd1MenuItemHandler = {
    ObjectsCount : 0, 
    ObjectsArray : Array(),  
		idCounter : 0,
		idPrefix  : "menu_item_",

		GetId     : function() {  
									return this.idPrefix + this.idCounter++; 
								},
	
		FindItem  : function(id) { 
                  for (i=1; i<= this.ObjectsCount; i++){
                    if (this.ObjectsArray[i].id==id) {
	                    return(this.ObjectsArray[i]);
	                  }
                  }
                },

    FindItemByGroup: function(GroupID){ 
                       for (i=1; i<= this.ObjectsCount; i++){
                         if (this.ObjectsArray[i].Group.id==GroupID) {
                           return(this.ObjectsArray[i]);
                         }
                       }
                     },

		DoOnMouseOver :  function(id){ 
                       mi=this.FindItem(id);
											 mi.SetItemState(1);
                       
												 
                       for (i=1; i<= mi.OwnerGroup.Count; i++){
													if (mi.OwnerGroup.Items[i]!=mi){
														mi.OwnerGroup.Items[i].SetItemState(0);
													} 
											 }
                       
		 	  					      
											 if (mi.Group != null || fd1MenuGroupHandler.SubmenusDisAppearMode==0){
                         for (i=1; i<= mi.OwnerGroup.Count; i++){
                           if ((mi.OwnerGroup.Items[i]!=mi) && (mi.OwnerGroup.Items[i].Group!=null)){
                              obj=document.getElementById(mi.OwnerGroup.Items[i].Group.id);
                              if ((obj != null) && (obj.style.visibility=='visible')){
										            fd1MenuGroupHandler.CloseGroup(obj.id);
                              }
                            }
                          }
											 }

											 if (mi.Group != null){ 
											 	  
											 	 fd1MenuGroupHandler.ShowWithTargetOpacity();
											    
											   
											 	 mi.Group.ShowGroup(); 
											   
         				     }
                   },

			DoOnMouseMove: function(id) {},             
			DoOnMouseOut : function (id) {},
			DoOnMouseDown: function(id){
												mi=this.FindItem(id);
												mi.SetItemState(2); 
										 },

			DoOnMouseUp: function(id){
										 mi=this.FindItem(id);
										 mi.SetItemState(1); 
						  		 },

			Navigate: function(id){  
									
									mi=this.FindItem(id);
									eval(mi.OnClickJS); 
									if (mi.URL>''){
									if (mi.URLTarget==''){self.location.href= mi.URL} else  
										if (mi.URLTarget=='_top'){top.location.href = mi.URL;} else  
											if (mi.URLTarget=='_parent'){parent.location.href= mi.URL;}else
												if (mi.URLTarget=='_self'){self.location.href= mi.URL} else
												{
													if (top.frames[mi.URLTarget]){top.frames[mi.URLTarget].location.href= mi.URL}	else
														if (self.frames[mi.URLTarget]){self.frames[mi.URLTarget].location.href= mi.URL} else
														{ 
															window.open(mi.URL,mi.URLTarget);
														}
												}
									}	
								}


    };  

	
	

 
 
 
 
 

 
 
 
function fd1MenuGroupAncestor () {
	this.Width = 300; 
	this.Height= 1;
	this.Opacity=100;
	this.Embedding='absolute';
	this.Drifting=0;  
	this.OnGroupShowJS='';
	this.OnGroupHideJS='';
  this.BgColor= '#FFFFFF';
	this.BgImage='';
	this.BgImgPos='center';
	this.BgImgRep='no-repeat';
	this.Border='solid';
	this.BorderWidth='1';
	this.BorderColor='#000000';
	this.ShadowWidth=0;   
	this.ShadowColor='#999999'; 
	this.ShadowTransparency=50; 
  this.ItemsSpacing=0;
	this.ItemsPadding_L=2;
	this.ItemsPadding_R=2;
	this.ItemsPadding_T=2;
	this.ItemsPadding_B=2;
	this.HeaderText='';
	this.HeaderTextAlign='center';
	this.HeaderTextOffsetX=0;
	this.HeaderTextOffsetY=0;
	this.HeaderHeight=0;
	this.HeaderBgColor='#125500';
	this.HeaderIcon='';
	this.HeaderIconOffsetX=10;
	this.HeaderIconOffsetY=0;
	this.HeaderBgImage='';
	this.HeaderBgImgPos='';
	this.HeaderBgImgRep='';
	this.FontFamily='';
	this.FontColor='';
	this.FontSize='';
	this.FontDecoration='';
	this.FontWeight='';
	this.FontStyle='';
	this.MenuGroupAlign=0;
	this.z=1000; 
	this.Visibility='hidden';
	this.AnimationTimeout=20;  
	this.AnimationType=100;  
	this.ShowDropDownControl=false;
	this.InitDropdownState=1;
	this.DropdownImageExpand='';
	this.DropdownImageCollapse='';
}
	

 
 
 
 
 

 
 
 
fd1MenuGroup.prototype = new fd1MenuGroupAncestor;	

 
 
 
function fd1MenuGroup(ShiftX,ShiftY,Lay) {
	this.Layout= Lay || 'V';  
	this.x=ShiftX || 0;
	this.y=ShiftY || 0;
	 
	 
   
	this.Tmp1=0; 
	this.AnimationStep=4;  
	this.AnimationFrom=0;  
	this.AnimationTo=100;  
	this.AnimationControlValue=20; 
	this.TmpMainDivStyle=''; 
	this.TargetPosX=this.x;  
	this.TargetPosY=this.y;  
	this.DefaultTop=0;
	this.DefaultLeft=0;
	this.Count=0;
	this.IsMainGroup=0;
	this.Items  = [];
	this.id     = fd1MenuGroupHandler.GetId();
	this.RefererItem = null;
	this.Preload_DropdownImageExpand=new Image();
	this.Preload_DropdownImageCollapse=new Image();
	fd1MenuGroupHandler.ObjectsCount=fd1MenuGroupHandler.ObjectsCount+1;
	fd1MenuGroupHandler.ObjectsArray[fd1MenuGroupHandler.ObjectsCount]=this;
}

 
 
 
fd1MenuGroup.prototype.Assign=function Assign(s)
{
	this.Width= 						s.Width;
	this.Height=						s.Height;
	this.Opacity=						s.Opacity;
	this.Embedding=					s.Embedding;
	this.Drifting=					s.Drifting;
	this.OnGroupShowJS=			s.OnGroupShowJS;
	this.OnGroupHideJS=			s.OnGroupHideJS;
  this.BgColor=						s.BgColor;
	this.BgImage=						s.BgImage;
	this.BgImgPos=					s.BgImgPos;
	this.BgImgRep=					s.BgImgRep;
	this.Border=						s.Border;
	this.BorderWidth=				s.BorderWidth;
	this.BorderColor=				s.BorderColor;
	this.ShadowWidth=				s.ShadowWidth;
	this.ShadowColor=				s.ShadowColor;
	this.ShadowTransparency=s.ShadowTransparency;
  this.ItemsSpacing=			s.ItemsSpacing;
	this.ItemsPadding_L=		s.ItemsPadding_L;
	this.ItemsPadding_R=		s.ItemsPadding_R;
	this.ItemsPadding_T=		s.ItemsPadding_T;
	this.ItemsPadding_B=		s.ItemsPadding_B;
	this.HeaderText=				s.HeaderText;
	this.HeaderTextAlign=		s.HeaderTextAlign;
	this.HeaderTextOffsetX=	s.HeaderTextOffsetX;
	this.HeaderTextOffsetY=	s.HeaderTextOffsetY;
	this.HeaderHeight=			s.HeaderHeight;
	this.HeaderBgColor=			s.HeaderBgColor;
	this.HeaderIcon=				s.HeaderIcon;
	this.HeaderIconOffsetX=	s.HeaderIconOffsetX;
	this.HeaderIconOffsetY=	s.HeaderIconOffsetY;
	this.HeaderBgImage=			s.HeaderBgImage;
	this.HeaderBgImgPos=		s.HeaderBgImgPos;
	this.HeaderBgImgRep=		s.HeaderBgImgRep;
	this.FontFamily=				s.FontFamily;
	this.FontColor=					s.FontColor;
	this.FontSize=					s.FontSize;
	this.FontDecoration=		s.FontDecoration;
	this.FontWeight=				s.FontWeight;
	this.FontStyle=					s.FontStyle;
	this.MenuGroupAlign=		s.MenuGroupAlign;
	this.z=									s.z;
	this.Visibility=				s.Visibility;
	this.AnimationTimeout=	s.AnimationTimeout;
	this.AnimationType=			s.AnimationType;
	this.ShowDropDownControl=s.ShowDropDownControl;
	this.InitDropdownState=s.InitDropdownState;
	this.DropdownImageExpand=s.DropdownImageExpand;
	this.DropdownImageCollapse=s.DropdownImageCollapse;
	this.MenuAlign=s.MenuAlign;
};

 
 
 
fd1MenuGroup.prototype.PreloadImages= function PreloadImages() {
	this.Preload_DropdownImageExpand.src=this.DropdownImageExpand;
	this.Preload_DropdownImageCollapse.src=this.DropdownImageCollapse;
};

 
 
 
fd1MenuGroup.prototype.AddItem= function AddItem(Item) {
  this.Count++;
  this.Items[this.Count]=Item;
  Item.OwnerGroup=this;
};


 
 
 
fd1MenuGroup.prototype.Preset= function Preset(ItemIndex,State) {
	if ((ItemIndex >=1) && (ItemIndex <= this.Count)){
		for (i=1; i<= this.Count; i++){
	    if (i==ItemIndex){
				this.Items[i].IsPreset=true;
				this.Items[i].PresetState=State;
				this.Items[i].SetItemState(State);
			}
				else
			{
				this.Items[i].IsPreset=false;
				this.Items[i].SetItemState(0);
			}
		}
	} 
};


 
 
 
fd1MenuGroup.prototype.ExpandDropDown= function ExpandDropDown() {
	dropimg=document.getElementById('dropimg_'+this.id);
	bodydiv=document.getElementById(this.id+'_itemtablecover');
	if(bodydiv)
	{
		if ((bodydiv.style.visibility!='visible')&&(bodydiv.style.visibility!=''))
		{
			bodydiv.style.display='block';
			bodydiv.style.visibility='visible';
			if(dropimg){
				dropimg.src=this.Preload_DropdownImageCollapse.src;
			}
		}
	}
};


 
 
 
fd1MenuGroup.prototype.CollapseDropDown= function CollapseDropDown() {
	dropimg=document.getElementById('dropimg_'+this.id);
	bodydiv=document.getElementById(this.id+'_itemtablecover');
	if(bodydiv)
	{
		if ((bodydiv.style.visibility=='visible')||(bodydiv.style.visibility==''))
		{  
			bodydiv.style.display='none';
			bodydiv.style.visibility='hidden';
			if(dropimg){
				dropimg.src=this.Preload_DropdownImageExpand.src;
			}
		}
	}
};


 
 
 
fd1MenuGroup.prototype.FlipDropDown= function FlipDropDown() {
	dropimg=document.getElementById('dropimg_'+this.id);
	bodydiv=document.getElementById(this.id+'_itemtablecover');
	if(bodydiv)
	{
		if ((bodydiv.style.visibility=='visible')||(bodydiv.style.visibility==''))
		{  
			bodydiv.style.display='none';
			bodydiv.style.visibility='hidden';
			if(dropimg){
				dropimg.src=this.Preload_DropdownImageExpand.src;
			}
		}
			else
		{  
			bodydiv.style.display='block';
			bodydiv.style.visibility='visible';
			if(dropimg){
				dropimg.src=this.Preload_DropdownImageCollapse.src;
			}
		}
	}
};



 
 
 
fd1MenuGroup.prototype.ToStr= function ToStr(){
	 
	this.PreloadImages();

   
	 
	if (this.Layout=='H') 
	{	
		maxwidth=0;
		widthsum=0;
		
		for (i=1; i<= this.Count; i++){ 
			if (this.Items[i].Width>maxwidth){
				maxwidth=this.Items[i].Width;
			}
			widthsum=widthsum+this.Items[i].Width;
		}
		this.Width=widthsum;
	}

  if (document.compatMode && document.compatMode == "BackCompat" && fd1MiscFunc.ie){
		MainDivWidth=this.Width-this.ItemsPadding_L-this.ItemsPadding_R;
		HeaderWidth=this.Width;
		TableWidth=MainDivWidth; 
	}
		else
	{
		MainDivWidth=this.Width;
		HeaderWidth=MainDivWidth;
		TableWidth=this.Width-this.ItemsPadding_L-this.ItemsPadding_R; 
	}

	 
	SetPosition=true;
	if (this.Embedding=='default'){this.Embedding='absolute'; SetPosition=false}
	if (this.IsMainGroup==0){this.Embedding='absolute'}

   
	if (SetPosition){
		this.TmpMainDivStyle='position: '+this.Embedding+'; left: '+this.TargetPosX+'px; top: '+this.TargetPosY+'px; '; 
  } 
		else
	{
		this.TmpMainDivStyle='position: '+this.Embedding+'; '; 
	}

	this.TmpMainDivStyle=this.TmpMainDivStyle+'z-index: '+this.z+'; visibility: '+this.Visibility+'; ';  
  this.TmpMainDivStyle=this.TmpMainDivStyle+'width: '+MainDivWidth+'px; '; 
  this.TmpMainDivStyle=this.TmpMainDivStyle+'border-width: '+this.BorderWidth+'px; border-style: '+this.Border+'; border-color: '+this.BorderColor+'; ';  
	this.TmpMainDivStyle=this.TmpMainDivStyle+'background-color: '+this.BgColor+'; '; 
	this.TmpMainDivStyle=this.TmpMainDivStyle+'background-image: url('+this.BgImage+'); background-position: '+this.BgImgPos+'; background-repeat: '+this.BgImgRep+'; ';  
	if (this.Opacity<100){this.TmpMainDivStyle=this.TmpMainDivStyle+'filter:alpha(opacity='+this.Opacity+'); -moz-opacity:'+this.Opacity+'; opacity:'+(this.Opacity/100)+'; '};  
   
	 
	this.TmpHedStyle=' padding:0px; margin:0px; height: '+this.HeaderHeight+'px; ';
	this.TmpHedStyle=this.TmpHedStyle+'width: '+HeaderWidth+'px; ';
	this.TmpHedStyle=this.TmpHedStyle+'background-color: '+this.HeaderBgColor+'; ';
	this.TmpHedStyle=this.TmpHedStyle+'background-image: url('+this.HeaderBgImage+'); background-position: '+this.HeaderBgImgPos+'; background-repeat: '+this.HeaderBgImgRep+'; ';

	 
	this.TmpSubHedStyle='position: relative; left: '+this.HeaderTextOffsetX+'px; top: '+this.HeaderTextOffsetY+'px; ';  
	this.TmpSubHedStyle=this.TmpSubHedStyle+'font-family: '+this.FontFamily+' ; font-style: '+this.FontStyle+'; font-size: '+this.FontSize+'px; font-weight: '+this.FontWeight+'; ';  
	this.TmpSubHedStyle=this.TmpSubHedStyle+'color: '+this.FontColor+' ; text-decoration: '+this.FontDecoration+'; '; 

   
  this.TmpTableCover=	'padding-top: '+this.ItemsPadding_T+'px; padding-left: '+this.ItemsPadding_L+'px; padding-right: '+this.ItemsPadding_R+'px; padding-bottom: '+this.ItemsPadding_B+'px; '; 

   
	this.TableAttr='width="'+TableWidth+'" cellpadding="0" cellspacing="0" border="0"'; 

	 
	if(this.ShowDropDownControl)
	{
	  this.TmpDropDown='<img onclick="fd1MenuGroupHandler.FlipDropDown(this.id);" id="dropimg_'+this.id+'" hspace="5" src="';
		if (this.InitDropdownState==1){
			this.TmpDropDown=this.TmpDropDown+this.Preload_DropdownImageCollapse.src; 
		}	else{
			this.TmpDropDown=this.TmpDropDown+this.Preload_DropdownImageExpand.src; 
			this.TmpTableCover=this.TmpTableCover+' visibility: hidden; display: none; ';
		}
		this.TmpDropDown=this.TmpDropDown+'" >';
	}
		else {
			this.TmpDropDown=(this.HeaderText)?'&nbsp;':'';
	}

	 
	TmpStr='<DIV style="'+this.TmpMainDivStyle+'" id="'+this.id+'" onmousedown="fd1MenuGroupHandler.DoOnMouseDown(this.id)" onmouseup="fd1MenuGroupHandler.DoOnMouseUp(this.id)" onmouseover="fd1MenuGroupHandler.DoOnMouseOver(this.id)" onmouseout="fd1MenuGroupHandler.DoOnMouseOut()">';

	 
  if (this.HeaderIcon){
  	TmpStr=TmpStr+'<img align="left" style="position: absolute; left:'+this.HeaderIconOffsetX+'px; top: '+this.HeaderIconOffsetY+'px; z-index: 1;" src="'+this.HeaderIcon+'">';  
  };

   
  TmpStr=TmpStr+'<div style="' + this.TmpHedStyle + '"><div><table  border="0" align="center" height="100%" cellpadding="0" cellspacing="0"><tr><td valign="middle" align="'+this.HeaderTextAlign+'"  width="99%"><span style="'+this.TmpSubHedStyle+'">' +this.HeaderText+'</span></td><td width="1%" valign="middle">'+this.TmpDropDown+'</td></tr></table></div></div>';  

	 
  TmpStr=TmpStr+'<div id="'+this.id+'_itemtablecover" style="'+this.TmpTableCover+'">'; 
	
	 
  if (this.Layout=='H') {
    TmpStr=TmpStr+'<TABLE '+this.TableAttr+' id="'+this.id+'_table"><TR>';  
		 
		TmpEndStr='</TR valign="top"></TABLE>';
  }
    else  
  {
    TmpStr=TmpStr+'<TABLE '+this.TableAttr+' id="'+this.id+'_table">';
		TmpEndStr='</TABLE>';
  }
  

   
  for (i=1; i<= this.Count; i++){ 
		this.Items[i].LastItem=false;
		if (i==this.Count){
			this.Items[i].LastItem=true; 
		}
		TmpStr=TmpStr+this.Items[i].ToStr(this.Layout);
  }	

   
  TmpStr=TmpStr+TmpEndStr;

	 
  TmpStr=TmpStr+'</div>'; 

	 
	TmpStr=TmpStr+'</DIV>';

	 
  for (this.i=1; this.i<= this.Count; this.i++){ 
		if (this.Items[this.i].Group != null){
		  TmpStr=TmpStr+this.Items[this.i].Group.ToStr(); 
		}  
  }	

	 
	if ((this.OnGroupShowJS!='') && (this.Visibility) && (this.IsMainGroup)){
		eval(this.OnGroupShowJS);
	}

	 
  return(TmpStr);	
};



 
 
 
fd1MenuGroup.prototype.CloseGroupRecurse=function CloseGroupRecurse(){
	this.HideGroup();
  for (this.i=1; this.i<= this.Count; this.i++){ 
    if (this.Items[this.i].Group != null){
      this.Items[this.i].Group.CloseGroupRecurse();
    }
  }
};

 
 
 
fd1MenuGroup.prototype.ShowGroupRecurse= function ShowGroupRecurse(){
 	obj=document.getElementById(this.id);
  if (obj){
	  obj.style.visibility='visible';
 	}

	if (this.IsMainGroup==0){
		this.ShowGroup();
	}

  for (this.i=1; this.i<= this.Count; this.i++){ 
    if (this.Items[this.i].Group != null){
		  this.Items[this.i].Group.ShowGroupRecurse();
    }
  }
};


 
 
 
fd1MenuGroup.prototype.HideGroup= function HideGroup(){
	 
	window.clearTimeout(fd1MenuGroupHandler.TimerAnimateID);		
	this.AnimationControlValue=20;
  obj=document.getElementById(this.id);
	objt=document.getElementById(this.id+'_table');

	if (obj!=null)
	{
	   
		for (this.i=1; this.i<= this.Count; this.i++){ 
  	  this.Items[this.i].HideOrphans();
		}

		if (obj.style.visibility!='hidden')
		{
			 
			objt.style.visibility='hidden';

			 
			obj.style.visibility='hidden';

			 
			if (this.OnGroupHideJS!=''){
				eval(this.OnGroupHideJS);
			}
		}
  }




};



 
 
 
fd1MenuGroup.prototype.ShowGroup= function ShowGroup(){
	obj=document.getElementById(this.id);
  if (obj!=null){
		
		 
		switch (this.MenuGroupAlign){
		case 0: { 

								if (this.RefererItem.OwnerGroup.Layout=='V'){  
									this.TargetPosX = fd1MiscFunc.getElementLeft(this.RefererItem.id) +  
																		fd1MiscFunc.getElementWidth(this.RefererItem.OwnerGroup.id) -  
																		this.RefererItem.OwnerGroup.ItemsPadding_L+ 
																		this.x;  
									this.TargetPosY = fd1MiscFunc.getElementTop(this.RefererItem.id) +  
																		this.y;  

								}
								else 
								{  
									this.TargetPosX = fd1MiscFunc.getElementLeft(this.RefererItem.id) +  
																		this.x;  
									
									this.TargetPosY = fd1MiscFunc.getElementTop(this.RefererItem.id) +  
																		fd1MiscFunc.getElementHeight(this.RefererItem.id) +  
																		this.y ;  
								}

								break;
						}

		case 1:	{ 
								this.TargetPosX = fd1MiscFunc.getElementLeft(this.RefererItem.id) +  
																	fd1MiscFunc.getElementWidth(this.RefererItem.OwnerGroup.id) -  
																	this.RefererItem.OwnerGroup.ItemsPadding_L+ 
																	this.x;  
								this.TargetPosY = fd1MiscFunc.getElementTop(this.RefererItem.id) -  
																	fd1MiscFunc.getElementHeight(this.id) +  
																	this.y ;  
								break;
						}

		case 2:	{ 
								this.TargetPosX = fd1MiscFunc.getElementLeft(this.RefererItem.id) +  
																	fd1MiscFunc.getElementWidth(this.RefererItem.OwnerGroup.id) -  
																	this.RefererItem.OwnerGroup.ItemsPadding_L+ 
																	this.x;  
								this.TargetPosY = fd1MiscFunc.getElementTop(this.RefererItem.id) -  
																	(fd1MiscFunc.getElementHeight(this.id) / 2) +  
																	this.y ;  
								break;
						}

		case 3:	{ 
								this.TargetPosX = fd1MiscFunc.getElementLeft(this.RefererItem.id) +  
																	fd1MiscFunc.getElementWidth(this.RefererItem.OwnerGroup.id) -  
																	this.RefererItem.OwnerGroup.ItemsPadding_L+ 
																	this.x;  
								this.TargetPosY = fd1MiscFunc.getElementTop(this.RefererItem.id) +  
																	this.y;  
								break;
						}

		case 4:	{ 
								this.TargetPosX = fd1MiscFunc.getElementLeft(this.RefererItem.id) -  
																	fd1MiscFunc.getElementWidth(this.id) -  
																	this.RefererItem.OwnerGroup.ItemsPadding_L - 
																	this.x;  
								this.TargetPosY = fd1MiscFunc.getElementTop(this.RefererItem.id) -  
																	fd1MiscFunc.getElementHeight(this.id) +  
																	this.y ;  
								break;
						}

		case 5:	{ 
								this.TargetPosX = fd1MiscFunc.getElementLeft(this.RefererItem.id) -  
																	fd1MiscFunc.getElementWidth(this.id) -  
																	this.RefererItem.OwnerGroup.ItemsPadding_L - 
																	this.x;  
								this.TargetPosY = fd1MiscFunc.getElementTop(this.RefererItem.id) -  
																	(fd1MiscFunc.getElementHeight(this.id) / 2) +  
																	this.y ;  
								break;
						}

		case 6:	{ 
								this.TargetPosX = fd1MiscFunc.getElementLeft(this.RefererItem.id) -  
																	fd1MiscFunc.getElementWidth(this.id) -  
																	this.RefererItem.OwnerGroup.ItemsPadding_L - 
																	this.x;  
								this.TargetPosY = fd1MiscFunc.getElementTop(this.RefererItem.id) +  
																	this.y;  
								break;
						}

		case 7:	{ 
								this.TargetPosX = fd1MiscFunc.getElementLeft(this.RefererItem.OwnerGroup.id) +  
																	this.x;  
								this.TargetPosY = fd1MiscFunc.getElementTop(this.RefererItem.id) +  
																	fd1MiscFunc.getElementHeight(this.RefererItem.id) +  
																	this.y ;  

								break;
						}
		}

		 
		obj.style.left = this.TargetPosX+'px';
		obj.style.top = this.TargetPosY+'px';

    

		if (obj.style.visibility=='hidden'){
       
    	window.clearTimeout(fd1MenuGroupHandler.TimerAnimateID);
			 
			this.AnimationControlValue=20; 
			 
			fd1MenuGroupHandler.TmpGroupToShow=obj.id;
			 
			for (this.i=1; this.i<= this.Count; this.i++){ 
				if (this.Items[this.i].LastItemState==1){
					this.Items[this.i].SetItemState(0);
				}
			}
			 
			fd1MenuGroupHandler.TimerAnimateID = window.setTimeout("fd1MenuGroupHandler.DoAnimation()",0);
		} 
	}
};



 
 
 
 
 

 
 
 
function fd1MenuItemAncestor()
{
	this.Text_o='';	
	this.Text_c='';	
	this.URL='';
	this.URLTarget='';
	this.Hint='';
	this.OnLeaveJS='';
	this.OnOverJS='';
	this.OnClickJS='';
	this.TextAlign='center';
	this.TextVAlign='middle';
	this.Cursor='default';
	this.PaddingLeft=0;
	this.PaddingLeft_o=0;
	this.PaddingTop=0;
	this.PaddingTop_o=0;
	this.PaddingRight=0;
	this.PaddingRight_o=0;
	this.PaddingBottom=0;
	this.PaddingBottom_o=0;
	this.FontColor='';
	this.FontColor_o='';
	this.FontColor_c='';
	this.FontFamily='';
	this.FontFamily_o='';
	this.FontFamily_c='';
	this.FontSize=10;
	this.FontSize_o='';
	this.FontSize_c='';
	this.FontDecoration='';
	this.FontDecoration_o='';
	this.FontDecoration_c='';
	this.FontWeight='';
	this.FontWeight_o='';
	this.FontWeight_c='';
	this.FontStyle='';
	this.FontStyle_o='';
	this.FontStyle_c='';
	this.LeftIcon='';
	this.LeftIcon_o='';
	this.LeftIcon_c='';
	this.LeftIconOffsetX=0;
	this.LeftIconOffsetX_o=0;
	this.LeftIconOffsetX_c=0;
	this.LeftIconOffsetY=0;
	this.LeftIconOffsetY_o=0;
	this.LeftIconOffsetY_c=0;
	this.LeftIconIsIndicator=false;
	this.RightIcon='';
	this.RightIcon_o='';
	this.RightIcon_c='';
	this.RightIconOffsetX=0;
	this.RightIconOffsetX_o=0;
	this.RightIconOffsetX_c=0;
	this.RightIconOffsetY=0;
	this.RightIconOffsetY_o=0;
	this.RightIconOffsetY_c=0;
	this.RightIconIsIndicator=true;
	this.BgColor='';
	this.BgColor_o='#44AA22';
	this.BgColor_c='';
	this.BgImage='';
	this.BgImage_o='';
	this.BgImage_c='';
	this.BgImgPos='';
	this.BgImgPos_o='';
	this.BgImgPos_c='';
	this.BgImgRep='';
	this.BgImgRep_o='';
	this.BgImgRep_c='';
	this.LeftPartBgImgPos='';
	this.LeftPartBgImage='';
	this.LeftPartBgImage_o='';
	this.LeftPartBgImage_c='';
	this.RightPartBgImgPos='';
	this.RightPartBgImage='';
	this.RightPartBgImage_o='';
	this.RightPartBgImage_c='';
	this.Border='solid';
	this.Border_o='solid';
	this.Border_c='solid';
	this.BorderWidth='1';
	this.BorderWidth_o='1';
	this.BorderWidth_c='1';
	this.BorderColor='#0';
	this.BorderColor_o='#0';
	this.BorderColor_c='#0';
	this.BorderLeft=true;
	this.BorderRight=true;
	this.BorderTop=true;
	this.BorderBottom=true;
	this.Height=10;
	this.Width=100;
	this.SeparatorSize=0;
	this.SeparatorColor='Gray';
};



 
 
 
 
 


 
 
 
fd1MenuItem.prototype = new fd1MenuItemAncestor;	

 
 
 
function fd1MenuItem(Text) {
	this.Text=Text;	
	 
	 
   
	this.id = fd1MenuItemHandler.GetId();
	this.Group = null;
  this.OwnerGroup=null;
	this.Preload_BgImage=new Image();
	this.Preload_BgImage_o=new Image();
	this.Preload_BgImage_c=new Image();
	this.Preload_BgImageLeft=new Image();
	this.Preload_BgImageLeft_o=new Image();
	this.Preload_BgImageLeft_c=new Image();
	this.Preload_BgImageRight=new Image();
	this.Preload_BgImageRight_o=new Image();
	this.Preload_BgImageRight_c=new Image();
	this.Preload_LeftIcon=new Image();
	this.Preload_LeftIcon_o=new Image();
	this.Preload_LeftIcon_c=new Image();
	this.Preload_RightIcon=new Image();
	this.Preload_RightIcon_o=new Image();
	this.Preload_RightIcon_c=new Image();
	this.LastItemState=-1;
	this.IsPreset=false;
	this.PresetState=2;
	fd1MenuItemHandler.ObjectsCount=fd1MenuItemHandler.ObjectsCount+1;
	fd1MenuItemHandler.ObjectsArray[fd1MenuItemHandler.ObjectsCount]=this;

};	



 
 
 
fd1MenuItem.prototype.Assign=function Assign(s)
{
	this.URL=									s.URL;	
	this.URLTarget=						s.URLTarget;	
	this.Hint=								s.Hint;	
	this.OnLeaveJS=						s.OnLeaveJS;	
	this.OnOverJS=						s.OnOverJS;	
	this.OnClickJS=						s.OnClickJS;	
	this.TextAlign=						s.TextAlign;	
	this.TextVAlign=					s.TextVAlign;	
	this.Cursor=							s.Cursor;	
	this.PaddingLeft=					s.PaddingLeft;	
	this.PaddingLeft_o=				s.PaddingLeft_o;	
	this.PaddingTop=					s.PaddingTop;	
	this.PaddingTop_o=				s.PaddingTop_o;	
	this.PaddingRight=				s.PaddingRight;	
	this.PaddingRight_o=			s.PaddingRight_o;	
	this.PaddingBottom=				s.PaddingBottom;	
	this.PaddingBottom_o=			s.PaddingBottom_o;	
	this.FontColor=						s.FontColor;	
	this.FontColor_o=					s.FontColor_o;	
	this.FontColor_c=					s.FontColor_c;	
	this.FontFamily=					s.FontFamily;	
	this.FontFamily_o=				s.FontFamily_o;	
	this.FontFamily_c=				s.FontFamily_c;	
	this.FontSize=						s.FontSize;	
	this.FontSize_o=					s.FontSize_o;	
	this.FontSize_c=					s.FontSize_c;	
	this.FontDecoration=			s.FontDecoration;	
	this.FontDecoration_o=		s.FontDecoration_o;	
	this.FontDecoration_c=		s.FontDecoration_c;	
	this.FontWeight=					s.FontWeight;	
	this.FontWeight_o=				s.FontWeight_o;	
	this.FontWeight_c=				s.FontWeight_c;	
	this.FontStyle=						s.FontStyle;	
	this.FontStyle_o=					s.FontStyle_o;	
	this.FontStyle_c=					s.FontStyle_c;	
	this.LeftIcon=						s.LeftIcon;	
	this.LeftIcon_o=					s.LeftIcon_o;	
	this.LeftIcon_c=					s.LeftIcon_c;	
	this.LeftIconOffsetX=			s.LeftIconOffsetX;	
	this.LeftIconOffsetX_o=		s.LeftIconOffsetX_o;	
	this.LeftIconOffsetX_c=		s.LeftIconOffsetX_c;	
	this.LeftIconOffsetY=			s.LeftIconOffsetY;	
	this.LeftIconOffsetY_o=		s.LeftIconOffsetY_o;	
	this.LeftIconOffsetY_c=		s.LeftIconOffsetY_c;	
	this.LeftIconIsIndicator=	s.LeftIconIsIndicator;	
	this.RightIcon=						s.RightIcon;	
	this.RightIcon_o=					s.RightIcon_o;	
	this.RightIcon_c=					s.RightIcon_c;	
	this.RightIconOffsetX=		s.RightIconOffsetX;	
	this.RightIconOffsetX_o=	s.RightIconOffsetX_o;	
	this.RightIconOffsetX_c=	s.RightIconOffsetX_c;	
	this.RightIconOffsetY=		s.RightIconOffsetY;	
	this.RightIconOffsetY_o=	s.RightIconOffsetY_o;	
	this.RightIconOffsetY_c=	s.RightIconOffsetY_c;	
	this.RightIconIsIndicator=s.RightIconIsIndicator;	
	this.BgColor=							s.BgColor;	
	this.BgColor_o=						s.BgColor_o;	
	this.BgColor_c=						s.BgColor_c;	
	this.BgImage=							s.BgImage;	
	this.BgImage_o=						s.BgImage_o;	
	this.BgImage_c=						s.BgImage_c;	
	this.BgImgPos=						s.BgImgPos;	
	this.BgImgPos_o=					s.BgImgPos_o;	
	this.BgImgPos_c=					s.BgImgPos_c;	
	this.BgImgRep=						s.BgImgRep;	
	this.BgImgRep_o=					s.BgImgRep_o;	
	this.BgImgRep_c=					s.BgImgRep_c;	
	this.LeftPartBgImgPos=		s.LeftPartBgImgPos;	
	this.LeftPartBgImage=			s.LeftPartBgImage;	
	this.LeftPartBgImage_o=		s.LeftPartBgImage_o;	
	this.LeftPartBgImage_c=		s.LeftPartBgImage_c;	
	this.RightPartBgImgPos=		s.RightPartBgImgPos;	
	this.RightPartBgImage=		s.RightPartBgImage;	
	this.RightPartBgImage_o=	s.RightPartBgImage_o;	
	this.RightPartBgImage_c=	s.RightPartBgImage_c;	
	this.Border=							s.Border;	
	this.Border_o=						s.Border_o;	
	this.Border_c=						s.Border_c;
	this.BorderWidth=					s.BorderWidth;	
	this.BorderWidth_o=				s.BorderWidth_o;	
	this.BorderWidth_c=				s.BorderWidth_c;	
	this.BorderColor=					s.BorderColor;	
	this.BorderColor_o=				s.BorderColor_o;	
	this.BorderColor_c=				s.BorderColor_c;	
	this.BorderLeft=					s.BorderLeft;	
	this.BorderRight=					s.BorderRight;	
	this.BorderTop=						s.BorderTop;	
	this.BorderBottom=				s.BorderBottom;	
	this.Height=							s.Height;	
	this.Width=								s.Width;	
	this.SeparatorSize=				s.SeparatorSize;	
	this.SeparatorColor=			s.SeparatorColor;	
};



 
 
 
 
fd1MenuItem.prototype.HideOrphans=function HideOrphans(){
	objRightIcon=document.getElementById(this.id+'_right_Icon_img');	
	objLeftIcon=document.getElementById(this.id+'_left_Icon_img');
	if (objRightIcon){
		objRightIcon.style.visibility='hidden';
		objRightIcon.style.display='none';
	}
	if (objLeftIcon){
		objLeftIcon.style.visibility='hidden';
		objLeftIcon.style.display='none';
	}

	objRightIcon=document.getElementById(this.id+'_right_bg_img');	
	objLeftIcon=document.getElementById(this.id+'_left_bg_img');		
	if (objRightIcon){
		objRightIcon.style.visibility='hidden';
		objRightIcon.style.display='none';
	}
	if (objLeftIcon){
		objLeftIcon.style.visibility='hidden';
		objLeftIcon.style.display='none';
	}
}; 

 
 
 
 
fd1MenuItem.prototype.ShowOrphans=function ShowOrphans(){
	objRightIcon=document.getElementById(this.id+'_right_bg_img');	
	objLeftIcon=document.getElementById(this.id+'_left_bg_img');		

	if ((objRightIcon) && (this.RightPartBgImage>'')){
		objRightIcon.style.visibility='visible';
		objRightIcon.style.display='block';
	}
	if ((objLeftIcon) && (this.LeftPartBgImage>'')){
		objLeftIcon.style.visibility='visible';
		objLeftIcon.style.display='block';
	}

	objRightIcon=document.getElementById(this.id+'_right_Icon_img');	
	objLeftIcon=document.getElementById(this.id+'_left_Icon_img');		
	if ((objRightIcon) && (this.RightIcon > '')){
		if (((this.RightIconIsIndicator) && (this.Group)) || (!this.RightIconIsIndicator)){		
			objRightIcon.style.visibility='visible';
			objRightIcon.style.display='block';
		}
	}
	if ((objLeftIcon) && (this.LeftIcon>'')){
		if (((this.LeftIconIsIndicator) && (this.Group)) || (!this.LeftIconIsIndicator)){		
			objLeftIcon.style.visibility='visible';
			objLeftIcon.style.display='block';
		}
	}
}; 



 
 
 
fd1MenuItem.prototype.PreloadImages= function PreloadImages() {
  this.Preload_BgImage.src=this.BgImage;
	this.Preload_BgImage_o.src=this.BgImage_o;
	this.Preload_BgImage_c.src=this.BgImage_c;
	this.Preload_BgImageLeft.src=this.LeftPartBgImage;
	this.Preload_BgImageLeft_o.src=this.LeftPartBgImage_o;
	this.Preload_BgImageLeft_c.src=this.LeftPartBgImage_c;
	this.Preload_BgImageRight.src=this.RightPartBgImage;
	this.Preload_BgImageRight_o.src=this.RightPartBgImage_o;
	this.Preload_BgImageRight_c.src=this.RightPartBgImage_c;
	this.Preload_LeftIcon.src=this.LeftIcon;
	this.Preload_LeftIcon_o.src=this.LeftIcon_o;
	this.Preload_LeftIcon_c.src=this.LeftIcon_c;
	this.Preload_RightIcon.src=this.RightIcon;
	this.Preload_RightIcon_o.src=this.RightIcon_o;
	this.Preload_RightIcon_c.src=this.RightIcon_c;
};



 
 
 
fd1MenuItem.prototype.ToStr= function ToStr(Layout) {
	var TmpStr='';  
	var TmpTDAttr=''; 
	var ItemCore=''; 
	var TmpTDCSS='';  
	var TmpCoreCentreTDStyle=''; 
	this.Cursor=((this.URL)&&(this.Cursor=='auto'))?'pointer':this.Cursor;

	 
	this.PreloadImages();

	 
  if (Layout=='H') {
		TmpTDAttr=TmpTDAttr+' height=' +'"'+ this.Height + '" width="'+this.Width+'" valign="top" ' ;  
	}
		else
	{
		TmpTDAttr=TmpTDAttr+' height=' +'"'+ this.Height + '" valign="top" ' ;
	}

	 
	TmpTDCSS=' ';

	 
	TmpCoreTableCSS=' style="background-color: '+this.BgColor+'; color:'+this.FontColor+'; ';
	TmpCoreTableCSS=TmpCoreTableCSS+' cursor : '+this.Cursor+'; ';

	if (this.BorderLeft){TmpCoreTableCSS=TmpCoreTableCSS+' border-left-width: '+this.BorderWidth+'px; border-left-style:'+this.Border+'; border-left-color:'+this.BorderColor+'; ';}
	if (this.BorderRight){TmpCoreTableCSS=TmpCoreTableCSS+' border-right-width: '+this.BorderWidth+'px; border-right-style:'+this.Border+'; border-right-color:'+this.BorderColor+'; ';}
	if (this.BorderTop){TmpCoreTableCSS=TmpCoreTableCSS+' border-top-width: '+this.BorderWidth+'px; border-top-style:'+this.Border+'; border-top-color:'+this.BorderColor+'; ';}
	if (this.BorderBottom){TmpCoreTableCSS=TmpCoreTableCSS+' border-bottom-width: '+this.BorderWidth+'px; border-bottom-style:'+this.Border+'; border-bottom-color:'+this.BorderColor+'; ';}
	TmpCoreTableCSS=TmpCoreTableCSS+'" ';

	 
	if (this.BgImgPos=='stretch'){
		TmpCoreCentreTDStyle='style="';
	} 
		else
	{
	  TmpCoreCentreTDStyle='style="background-image: url('+this.BgImage+'); background-position: '+this.BgImgPos+'; background-repeat: '+this.BgImgRep+'; ';
	}
	TmpCoreCentreTDStyle=TmpCoreCentreTDStyle+'text-decoration: '+this.FontDecoration+'; font-family: '+this.FontFamily+'; font-size: '+this.FontSize+'px; font-style: '+this.FontStyle+'; font-weight: '+this.FontWeight+'; ';
  TmpCoreCentreTDStyle=TmpCoreCentreTDStyle+'padding-left: '+this.PaddingLeft+'px; padding-top: '+this.PaddingTop+'px; padding-right: '+this.PaddingRight+'px; padding-bottom: '+this.PaddingBottom+'px;  "';

	
	 
	if (((this.RightIconIsIndicator) && (!this.Group)) || (!this.RightIcon)) {
		TmpRimgVis='visibility : hidden; ';
	} else {TmpRimgVis='';}

	if (((this.LeftIconIsIndicator) && (!this.Group)) || (!this.LeftIcon)){
		TmpLimgVis='visibility : hidden; ';
	} else {TmpLimgVis='';}
	
	if ((this.LeftIcon > '')||(this.LeftIcon_o > '')||(this.LeftIcon_c > '')) {
		TmpLeftIconSource='<img id="'+this.id+'_left_Icon_img"  border="0" src="'+this.LeftIcon+'" style="'+TmpLimgVis+' vertical-align: middle; position: absolute; margin-left: '+this.LeftIconOffsetX+'px; margin-top: '+this.LeftIconOffsetY+'px;">';  
	} else {TmpLeftIconSource='';}

	if ((this.RightIcon > '')||(this.RightIcon_o > '')||(this.RightIcon_c > '')){
		TmpRightIconSource='<img id="'+this.id+'_right_Icon_img"  border="0" src="'+this.RightIcon+'" style="'+TmpRimgVis+' vertical-align: middle; position: absolute; margin-left: '+this.RightIconOffsetX+'px; margin-top: '+this.RightIconOffsetY+'px;">';  
	} else {TmpRightIconSource='';}


	 
	TmpLeftBgSource='';
	TmpRightBgSource='';
	LeftBgImgVis='';
	RightBgImgVis='';

  if ((this.LeftPartBgImage > '')||(this.LeftPartBgImage_o > '')||(this.LeftPartBgImage_c > ''))
	{
	  if ((this.LeftPartBgImage >'')&&(this.OwnerGroup.IsMainGroup==1)) {LeftBgImgVis='visible';}else {LeftBgImgVis='hidden';};
  	TmpLeftBgSource='<img style="visibility: '+LeftBgImgVis+'; display:block;" id="'+this.id+'_left_bg_img" border="0" align="'+this.LeftPartBgImgPos+'" vspace="0" hspace="0" src="'+this.LeftPartBgImage+'">';
	}
            
  if ((this.RightPartBgImage > '')||(this.RightPartBgImage_o > '')||(this.RightPartBgImage_c > ''))
	{
  	if ((this.RightPartBgImage>'')&&(this.OwnerGroup.IsMainGroup==1)){RightBgImgVis='visible';}	else {RightBgImgVis='hidden';};
  	TmpRightBgSource='<img style="visibility: '+RightBgImgVis+';  display:block;" id="'+this.id+'_right_bg_img" border="0" align="'+this.RightPartBgImgPos+'" vspace="0" hspace="0"  src="'+this.RightPartBgImage+'">';
	}


	 
	ItemCore='<table '+TmpCoreTableCSS+' id="'+this.id+'_core_table" cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">'; 
	ItemCore=ItemCore+'<tr>'; 
  ItemCore=ItemCore+'<td width="0" valign="middle">'+TmpLeftIconSource+'</td><td width="0" align="right" valign="'+this.LeftPartBgImgPos+'" >'+TmpLeftBgSource+'</td>';  
	ItemCore=ItemCore+'<td id="'+this.id+'_core_table_td" '+TmpCoreCentreTDStyle+' width="100%" align="'+this.TextAlign+'">' + this.Text + '</td>';  
	ItemCore=ItemCore+'<td width="0" align="left" valign="'+this.RightPartBgImgPos+'">'+TmpRightBgSource+'</td><td width="0" valign="middle">'+TmpRightIconSource+'</td>';  
	ItemCore=ItemCore+'</tr>'; 
	ItemCore=ItemCore+'</table>'; 


   
  if (Layout=='H') {  
    TmpStr='<TD '+TmpTDAttr+' '+TmpTDCSS+' id="'+this.id+'" onmouseover="fd1MenuItemHandler.DoOnMouseOver(this.id)" onmouseout="fd1MenuItemHandler.DoOnMouseOut(this.id)" onmousemove="fd1MenuItemHandler.DoOnMouseMove(this.id)" onmousedown="fd1MenuItemHandler.DoOnMouseDown(this.id)" onmouseup="fd1MenuItemHandler.DoOnMouseUp(this.id)" onclick="fd1MenuItemHandler.Navigate(this.id)">';
    TmpStr=TmpStr+ItemCore;
		TmpStr=TmpStr+'</TD>';

		 
		if (this.LastItem==false){
			if (this.SeparatorSize > 0){
				TmpStr=TmpStr+'<TD width="'+(this.OwnerGroup.ItemsSpacing /2) +'"></TD>';
				TmpStr=TmpStr+'<TD bgcolor="'+this.SeparatorColor+'" width="'+this.SeparatorSize+'"></TD>';				
				TmpStr=TmpStr+'<TD width="'+(this.OwnerGroup.ItemsSpacing/2)+'"></TD>';
			}
				else
			{
				if (this.OwnerGroup.ItemsSpacing>0){
					TmpStr=TmpStr+'<TD width="'+this.OwnerGroup.ItemsSpacing+'"></TD>';
				}
			}
		}
  }
    else  
  {  
		TmpStr='<TR valign="top"><TD '+TmpTDAttr+' '+TmpTDCSS+' id="'+this.id+'" onmouseover="fd1MenuItemHandler.DoOnMouseOver(this.id)" onmouseout="fd1MenuItemHandler.DoOnMouseOut(this.id)" onmousemove="fd1MenuItemHandler.DoOnMouseMove(this.id)" onmousedown="fd1MenuItemHandler.DoOnMouseDown(this.id)" onmouseup="fd1MenuItemHandler.DoOnMouseUp(this.id)" onclick="fd1MenuItemHandler.Navigate(this.id)">';
		
		TmpStr=TmpStr+ItemCore;
		TmpStr=TmpStr+'</TD></TR>';
		 
		if (this.LastItem==false){
			TmpHRAttr='';
			if (this.SeparatorSize > 0){
				TmpHRAttr='<div style="margin-top: 0px; margin-bottom: 0px; color: '+this.SeparatorColor+'; background-color: '+this.SeparatorColor+'; border-width: 0px; height: '+this.SeparatorSize+'px;"><hr noshade style="display: none;"></div>';
			}
			TmpStr=TmpStr+'<TR valign="middle"><TD height="'+this.OwnerGroup.ItemsSpacing+'">'+TmpHRAttr+'</TD></TR>';
		}
  }
  return(TmpStr); 
};


 
 
 
fd1MenuItem.prototype.AddGroup= function AddGroup(SubGroup){
	this.Group=SubGroup;
	SubGroup.RefererItem=this;
};


 
 
 
 
 
 
 
fd1MenuItem.prototype.SetItemState= function SetItemState(State){

	if (this.LastItemState==State)
	{
		return;
	}
		else
	{
		this.LastItemState=State;
	}

	if (this.IsPreset){
		State=this.PresetState;
	}

	objCoreTable=document.getElementById(this.id+'_core_table');	
	objCoreTableTD=document.getElementById(this.id+'_core_table_td');	
	objLeftBgImg=document.getElementById(this.id+'_left_bg_img');
	objRightBgImg=document.getElementById(this.id+'_right_bg_img');
	objLeftIcon=document.getElementById(this.id+'_left_Icon_img');	
	objRightIcon=document.getElementById(this.id+'_right_Icon_img');	

	switch (State){
		case 0:{ 

			if (objCoreTableTD){
				objCoreTableTD.innerHTML = this.Text;
			}

			if (objCoreTable){ 
				 
				objCoreTable.style.backgroundColor=this.BgColor;	
				objCoreTable.bgColor=this.BgColor;	

				 
				if (this.BorderLeft){
					objCoreTable.style.borderLeftWidth=this.BorderWidth;
				} else {objCoreTable.style.borderLeftWidth=0;} 

				if (this.BorderRight){
					objCoreTable.style.borderRightWidth=this.BorderWidth;
				} else {objCoreTable.style.borderRightWidth=0;}
			
				if (this.BorderTop){
					objCoreTable.style.borderTopWidth=this.BorderWidth;					
				} else {objCoreTable.style.borderTopWidth=0;}
			
				if (this.BorderBottom){
					objCoreTable.style.borderBottomWidth=this.BorderWidth;					
				} else {objCoreTable.style.borderBottomWidth=0;}

				objCoreTable.style.borderStyle=this.Border;
				objCoreTable.style.borderColor=this.BorderColor;
			}

			if (objCoreTableTD){ 
				 
				objCoreTableTD.style.color=this.FontColor;
				objCoreTableTD.style.fontFamily=this.FontFamily;
				objCoreTableTD.style.fontSize=this.FontSize;
				objCoreTableTD.style.textDecoration=this.FontDecoration;
				objCoreTableTD.style.fontWeight=this.FontWeight;
				objCoreTableTD.style.fontStyle=this.FontStyle;
				 
				objCoreTableTD.style.paddingLeft=this.PaddingLeft;
				objCoreTableTD.style.paddingRight=this.PaddingRight;
				objCoreTableTD.style.paddingTop=this.PaddingTop;
				objCoreTableTD.style.paddingBottom=this.PaddingBottom;
				 
				if (this.BgImage>''){
					objCoreTableTD.style.backgroundImage='url('+this.Preload_BgImage.src+')';
					objCoreTableTD.style.backgroundPosition=this.BgImgPos;
					objCoreTableTD.style.backgroundRepeat=this.BgImgRep;
				}
					else
				{
					objCoreTableTD.style.backgroundImage='none';
				}

			}


			if (objLeftBgImg){ 
				if (this.LeftPartBgImage>''){
					objLeftBgImg.src=this.Preload_BgImageLeft.src;
					objLeftBgImg.style.visibility='visible';
					objLeftBgImg.style.display='block';
				} 
					else 
				{
					objLeftBgImg.style.visibility='hidden';
				}
			}


			if (objRightBgImg){ 
				if (this.RightPartBgImage>''){
					objRightBgImg.src=this.Preload_BgImageRight.src;
					objRightBgImg.style.visibility='visible';
					objRightBgImg.style.display='block';
				} 
					else 
				{
					objRightBgImg.style.visibility='hidden';
				}
			}


			if (objRightIcon){  
				if (this.RightIcon>''){
					objRightIcon.src=this.Preload_RightIcon.src;
					if ((this.RightIconIsIndicator) && (!this.Group)){
						objRightIcon.style.visibility='hidden';
					} 
						else
					{
						objRightIcon.style.visibility='visible';
						objRightIcon.style.display='block';
					}
				} 
					else {objRightIcon.style.visibility='hidden';
				}

				objRightIcon.style.marginLeft=this.RightIconOffsetX;
				objRightIcon.style.marginTop=this.RightIconOffsetY;
			}


			if (objLeftIcon){  
				if (this.LeftIcon > ''){
					objLeftIcon.src=this.Preload_LeftIcon.src;
					if ((this.LeftIconIsIndicator) && (!this.Group)){
						
					} 
						else
					{
						objLeftIcon.style.visibility='visible';
						objLeftIcon.style.display='block';
					}
				} else {objLeftIcon.style.visibility='hidden';
							}
				
				objLeftIcon.style.marginLeft=this.LeftIconOffsetX;
				objLeftIcon.style.marginTop=this.LeftIconOffsetY;
			}

			eval(this.OnLeaveJS); 
			break;		
		}




		case 1:{ 

			if ((objCoreTableTD)&&(this.Text_o>'')){
				objCoreTableTD.innerHTML = this.Text_o;
			}

			if (objCoreTable != null)  
			{
				 
				if (this.BgColor_o){
					objCoreTable.style.backgroundColor=this.BgColor_o;	
					objCoreTable.bgColor=this.BgColor_o;	
				}

				 
				if (this.BorderWidth_o!=null){
					if (this.BorderLeft){
						objCoreTable.style.borderLeftWidth=this.BorderWidth_o;
						if (this.Border_o>'')	{objCoreTable.style.borderLeftStyle=this.Border_o;}
					} 

					if (this.BorderRight){
						objCoreTable.style.borderRightWidth=this.BorderWidth_o;
						if (this.Border_o>'')	{objCoreTable.style.borderRightStyle=this.Border_o;}
					}
				
					if (this.BorderTop){
						objCoreTable.style.borderTopWidth=this.BorderWidth_o;					
						if (this.Border_o>'')	{objCoreTable.style.borderTopStyle=this.Border_o;}
					}
				
					if (this.BorderBottom){
						objCoreTable.style.borderBottomWidth=this.BorderWidth_o;					
						if (this.Border_o>'')	{objCoreTable.style.borderBottomStyle=this.Border_o;}
					}
				}

				if (this.BorderColor_o>''){objCoreTable.style.borderColor=this.BorderColor_o};
			}

			if (objCoreTableTD){ 
				 
				if (this.FontColor_o){objCoreTableTD.style.color=this.FontColor_o;}
				if (this.FontFamily_o){objCoreTableTD.style.fontFamily=this.FontFamily_o;}
				if (this.FontSize_o){objCoreTableTD.style.fontSize=this.FontSize_o;}
				if (this.FontDecoration_o){objCoreTableTD.style.textDecoration=this.FontDecoration_o;}
				if (this.FontWeight_o){objCoreTableTD.style.fontWeight=this.FontWeight_o;}
				if (this.FontStyle_o){objCoreTableTD.style.fontStyle=this.FontStyle_o;}
				 
				if (this.PaddingLeft_o!=null){objCoreTableTD.style.paddingLeft=this.PaddingLeft_o};
				if (this.PaddingRight_o!=null){objCoreTableTD.style.paddingRight=this.PaddingRight_o;}
				if (this.PaddingTop_o!=null){objCoreTableTD.style.paddingTop=this.PaddingTop_o;}
				if (this.PaddingBottom_o!=null){objCoreTableTD.style.paddingBottom=this.PaddingBottom_o;}
				 
				if (this.BgImage_o>''){
					objCoreTableTD.style.backgroundImage='url('+this.Preload_BgImage_o.src+')';
					objCoreTableTD.style.backgroundPosition=this.BgImgPos_o||this.BgImgPos;
					objCoreTableTD.style.backgroundRepeat=this.BgImgRep_o||this.BgImgRep;
				}
			}

			if (objLeftBgImg){ 
				if (this.LeftPartBgImage_o>''){
					objLeftBgImg.src=this.Preload_BgImageLeft_o.src;
					objLeftBgImg.style.visibility='visible';
					objLeftBgImg.style.display='block';
				} 
					else 
				{
					 
				}
			}


			if (objRightBgImg){ 
				if (this.RightPartBgImage_o>''){
					objRightBgImg.src=this.Preload_BgImageRight_o.src;
					objRightBgImg.style.visibility='visible';
					objRightBgImg.style.display='block';
				} 
					else 
				{
					 
				}
			}


			if (objRightIcon){  
				if (this.RightIcon_o > ''){
					objRightIcon.src=this.Preload_RightIcon_o.src;
					if ((this.RightIconIsIndicator) && (!this.Group)){
						objRightIcon.style.visibility='hidden';
					} 
						else
					{
						objRightIcon.style.visibility='visible';
						objRightIcon.style.display='block';
					}
				}
				if (this.RightIconOffsetX_o){objRightIcon.style.marginLeft=this.RightIconOffsetX_o};
				if (this.RightIconOffsetY_o){objRightIcon.style.marginTop=this.RightIconOffsetY_o};
			}

			if (objLeftIcon){  
				if (this.LeftIcon_o > ''){
					objLeftIcon.src=this.Preload_LeftIcon_o.src;
					if ((this.LeftIconIsIndicator) && (!this.Group)){
						objLeftIcon.style.visibility='hidden';
					} 
						else
					{
						objLeftIcon.style.visibility='visible';
						objLeftIcon.style.display='block';			
					}
				}
				if (this.LeftIconOffsetX_o){objLeftIcon.style.marginLeft=this.LeftIconOffsetX_o;}
				if (this.LeftIconOffsetY_o){objLeftIcon.style.marginTop=this.LeftIconOffsetY_o};
			}

			eval(this.OnOverJS); 
			break;
		}



		case 2:{ 
			if ((objCoreTableTD)&&(this.Text_c>'')){
				objCoreTableTD.innerHTML = this.Text_c;
			}

			if (objCoreTable != null)  
			{
				 
				if (this.BgColor_c){
					objCoreTable.style.backgroundColor=this.BgColor_c;	
					objCoreTable.style.bgColor=this.BgColor_c;	
				}

				 
				if (this.BorderWidth_c!=null)
				{
					if (this.BorderLeft){
						objCoreTable.style.borderLeftWidth=this.BorderWidth_c;
						if (this.Border_c>'')	{objCoreTable.style.borderLeftStyle=this.Border_c;}
					} 

					if (this.BorderRight){
						objCoreTable.style.borderRightWidth=this.BorderWidth_c;
						if (this.Border_c>'')	{objCoreTable.style.borderRightStyle=this.Border_c;}
					}
				
					if (this.BorderTop){
						objCoreTable.style.borderTopWidth=this.BorderWidth_c;					
						if (this.Border_c>'')	{objCoreTable.style.borderTopStyle=this.Border_c;}
					}
				
					if (this.BorderBottom){
						objCoreTable.style.borderBottomWidth=this.BorderWidth_c;					
						if (this.Border_c>'')	{objCoreTable.style.borderBottomStyle=this.Border_c;}
					}
				}

				if (this.BorderColor_c>''){objCoreTable.style.borderColor=this.BorderColor_c};
			}
		}


		if (objCoreTableTD){ 
			 
			if (this.FontColor_c){objCoreTableTD.style.color=this.FontColor_c;}
			if (this.FontFamily_c){objCoreTableTD.style.fontFamily=this.FontFamily_c;}
			if (this.FontSize_c){objCoreTableTD.style.fontSize=this.FontSize_c;}
			if (this.FontDecoration_c){objCoreTableTD.style.textDecoration=this.FontDecoration_c;}
			if (this.FontWeight_c){objCoreTableTD.style.fontWeight=this.FontWeight_c;}
			if (this.FontStyle_c){objCoreTableTD.style.fontStyle=this.FontStyle_c;}
			 
			if (this.BgImage_c>''){
				objCoreTableTD.style.backgroundImage='url('+this.Preload_BgImage_c.src+')';
				objCoreTableTD.style.backgroundPosition=this.BgImgPos_c||this.BgImgPos;
				objCoreTableTD.style.backgroundRepeat=this.BgImgRep_c||this.BgImgRep;
			}
		}


		if (objLeftBgImg){ 
			if (this.LeftPartBgImage_c>''){
				objLeftBgImg.src=this.Preload_BgImageLeft_c.src;
				objLeftBgImg.style.visibility='visible';
				objLeftBgImg.style.display='block';
			} 
				else 
			{
				 
			}
		}


		if (objRightBgImg){ 
			if (this.RightPartBgImage_c>''){
				objRightBgImg.src=this.Preload_BgImageRight_c.src;
				objRightBgImg.style.visibility='visible';
				objRightBgImg.style.display='block';
			} 
				else 
			{
				 
			}
		}


		if (objRightIcon){  
			if (this.RightIcon_c > ''){
				objRightIcon.src=this.Preload_RightIcon_c.src;
				if ((this.RightIconIsIndicator) && (!this.Group)){
					objRightIcon.style.visibility='hidden';
				} 
					else
				{
					objRightIcon.style.visibility='visible';
					objRightIcon.style.display='block';
				}
			}
			if (this.RightIconOffsetX_c){objRightIcon.style.marginLeft=this.RightIconOffsetX_c};
			if (this.RightIconOffsetY_c){objRightIcon.style.marginTop=this.RightIconOffsetY_c};
		}

		if (objLeftIcon){  
			if (this.LeftIcon_c > ''){
				objLeftIcon.src=this.Preload_LeftIcon_c.src;
				if ((this.LeftIconIsIndicator) && (!this.Group)){
					objLeftIcon.style.visibility='hidden';
				} 
					else
				{
					objLeftIcon.style.visibility='visible';					
					objLeftIcon.style.display='block';
				}
			}
			if (this.LeftIconOffsetX_c){objLeftIcon.style.marginLeft=this.LeftIconOffsetX_c;}
			if (this.LeftIconOffsetY_c){objLeftIcon.style.marginTop=this.LeftIconOffsetY_c};
		}
		break;
	}  
};
var fd1_MainGroupItemsGeneralStyle = new fd1MenuItem();
fd1_MainGroupItemsGeneralStyle.Text_o='';
fd1_MainGroupItemsGeneralStyle.Text_c='';
fd1_MainGroupItemsGeneralStyle.TextAlign='left';
fd1_MainGroupItemsGeneralStyle.URL='';
fd1_MainGroupItemsGeneralStyle.URLTarget='';
fd1_MainGroupItemsGeneralStyle.Hint='';
fd1_MainGroupItemsGeneralStyle.OnLeaveJS='';
fd1_MainGroupItemsGeneralStyle.OnOverJS='';
fd1_MainGroupItemsGeneralStyle.OnClickJS='';
fd1_MainGroupItemsGeneralStyle.Height=24;
fd1_MainGroupItemsGeneralStyle.Width=110;
fd1_MainGroupItemsGeneralStyle.Cursor='default';
fd1_MainGroupItemsGeneralStyle.PaddingLeft=8;
fd1_MainGroupItemsGeneralStyle.PaddingLeft_o=null;
fd1_MainGroupItemsGeneralStyle.PaddingTop=2;
fd1_MainGroupItemsGeneralStyle.PaddingTop_o=null;
fd1_MainGroupItemsGeneralStyle.PaddingRight=8;
fd1_MainGroupItemsGeneralStyle.PaddingRight_o=null;
fd1_MainGroupItemsGeneralStyle.PaddingBottom=0;
fd1_MainGroupItemsGeneralStyle.PaddingBottom_o=null;
fd1_MainGroupItemsGeneralStyle.BgColor='';
fd1_MainGroupItemsGeneralStyle.BgColor_o='';
fd1_MainGroupItemsGeneralStyle.BgColor_c='';
fd1_MainGroupItemsGeneralStyle.BgImage='fd1_images/red-bar.gif';
fd1_MainGroupItemsGeneralStyle.BgImage_o='fd1_images/red-bar-o.gif';
fd1_MainGroupItemsGeneralStyle.BgImage_c='';
fd1_MainGroupItemsGeneralStyle.BgImgRep='repeat-x';
fd1_MainGroupItemsGeneralStyle.BgImgRep_o='repeat-x';
fd1_MainGroupItemsGeneralStyle.BgImgRep_c='';
fd1_MainGroupItemsGeneralStyle.BgImgPos='top left';
fd1_MainGroupItemsGeneralStyle.BgImgPos_o='';
fd1_MainGroupItemsGeneralStyle.BgImgPos_c='';
fd1_MainGroupItemsGeneralStyle.LeftPartBgImage='';
fd1_MainGroupItemsGeneralStyle.LeftPartBgImage_o='';
fd1_MainGroupItemsGeneralStyle.LeftPartBgImage_c='';
fd1_MainGroupItemsGeneralStyle.LeftPartBgImgPos='top';
fd1_MainGroupItemsGeneralStyle.RightPartBgImage='';
fd1_MainGroupItemsGeneralStyle.RightPartBgImage_o='';
fd1_MainGroupItemsGeneralStyle.RightPartBgImage_c='';
fd1_MainGroupItemsGeneralStyle.RightPartBgImgPos='top';
fd1_MainGroupItemsGeneralStyle.FontColor='#FFFFFF';
fd1_MainGroupItemsGeneralStyle.FontColor_o='#FFFFFF';
fd1_MainGroupItemsGeneralStyle.FontColor_c='';
fd1_MainGroupItemsGeneralStyle.FontFamily='Tahoma';
fd1_MainGroupItemsGeneralStyle.FontFamily_o='';
fd1_MainGroupItemsGeneralStyle.FontFamily_c='';
fd1_MainGroupItemsGeneralStyle.FontSize=11;
fd1_MainGroupItemsGeneralStyle.FontSize_o=null;
fd1_MainGroupItemsGeneralStyle.FontSize_c=null;
fd1_MainGroupItemsGeneralStyle.FontDecoration='none';
fd1_MainGroupItemsGeneralStyle.FontDecoration_o='';
fd1_MainGroupItemsGeneralStyle.FontDecoration_c='';
fd1_MainGroupItemsGeneralStyle.FontWeight='normal';
fd1_MainGroupItemsGeneralStyle.FontWeight_o='';
fd1_MainGroupItemsGeneralStyle.FontWeight_c='';
fd1_MainGroupItemsGeneralStyle.FontStyle='normal';
fd1_MainGroupItemsGeneralStyle.FontStyle_o='';
fd1_MainGroupItemsGeneralStyle.FontStyle_c='';
fd1_MainGroupItemsGeneralStyle.BorderWidth=0;
fd1_MainGroupItemsGeneralStyle.BorderWidth_o=null;
fd1_MainGroupItemsGeneralStyle.BorderWidth_c=null;
fd1_MainGroupItemsGeneralStyle.BorderColor='#000000';
fd1_MainGroupItemsGeneralStyle.BorderColor_o='';
fd1_MainGroupItemsGeneralStyle.BorderColor_c='';
fd1_MainGroupItemsGeneralStyle.Border='none';
fd1_MainGroupItemsGeneralStyle.Border_o='';
fd1_MainGroupItemsGeneralStyle.Border_c='';
fd1_MainGroupItemsGeneralStyle.BorderLeft=true;
fd1_MainGroupItemsGeneralStyle.BorderRight=true;
fd1_MainGroupItemsGeneralStyle.BorderTop=true;
fd1_MainGroupItemsGeneralStyle.BorderBottom=true;
fd1_MainGroupItemsGeneralStyle.SeparatorColor='#414141';
fd1_MainGroupItemsGeneralStyle.SeparatorSize=0;
fd1_MainGroupItemsGeneralStyle.LeftIcon='';
fd1_MainGroupItemsGeneralStyle.LeftIcon_o='';
fd1_MainGroupItemsGeneralStyle.LeftIcon_c='';
fd1_MainGroupItemsGeneralStyle.LeftIconOffsetX=0;
fd1_MainGroupItemsGeneralStyle.LeftIconOffsetX_o=null;
fd1_MainGroupItemsGeneralStyle.LeftIconOffsetX_c=null;
fd1_MainGroupItemsGeneralStyle.LeftIconOffsetY=0;
fd1_MainGroupItemsGeneralStyle.LeftIconOffsetY_o=null;
fd1_MainGroupItemsGeneralStyle.LeftIconOffsetY_c=null;
fd1_MainGroupItemsGeneralStyle.LeftIconIsIndicator=false;
fd1_MainGroupItemsGeneralStyle.RightIcon='';
fd1_MainGroupItemsGeneralStyle.RightIcon_o='';
fd1_MainGroupItemsGeneralStyle.RightIcon_c='';
fd1_MainGroupItemsGeneralStyle.RightIconOffsetX=0;
fd1_MainGroupItemsGeneralStyle.RightIconOffsetX_o=null;
fd1_MainGroupItemsGeneralStyle.RightIconOffsetX_c=null;
fd1_MainGroupItemsGeneralStyle.RightIconOffsetY=0;
fd1_MainGroupItemsGeneralStyle.RightIconOffsetY_o=null;
fd1_MainGroupItemsGeneralStyle.RightIconOffsetY_c=null;
fd1_MainGroupItemsGeneralStyle.RightIconIsIndicator=true;

 
var fd1_GroupItemsGeneralStyle = new fd1MenuItem();
fd1_GroupItemsGeneralStyle.Text_o='';
fd1_GroupItemsGeneralStyle.Text_c='';
fd1_GroupItemsGeneralStyle.TextAlign='left';
fd1_GroupItemsGeneralStyle.URL='';
fd1_GroupItemsGeneralStyle.URLTarget='';
fd1_GroupItemsGeneralStyle.Hint='';
fd1_GroupItemsGeneralStyle.OnLeaveJS='';
fd1_GroupItemsGeneralStyle.OnOverJS='';
fd1_GroupItemsGeneralStyle.OnClickJS='';
fd1_GroupItemsGeneralStyle.Height=20;
fd1_GroupItemsGeneralStyle.Width=150;
fd1_GroupItemsGeneralStyle.Cursor='default';
fd1_GroupItemsGeneralStyle.PaddingLeft=30;
fd1_GroupItemsGeneralStyle.PaddingLeft_o=null;
fd1_GroupItemsGeneralStyle.PaddingTop=5;
fd1_GroupItemsGeneralStyle.PaddingTop_o=null;
fd1_GroupItemsGeneralStyle.PaddingRight=5;
fd1_GroupItemsGeneralStyle.PaddingRight_o=null;
fd1_GroupItemsGeneralStyle.PaddingBottom=5;
fd1_GroupItemsGeneralStyle.PaddingBottom_o=null;
fd1_GroupItemsGeneralStyle.BgColor='';
fd1_GroupItemsGeneralStyle.BgColor_o='#880000';
fd1_GroupItemsGeneralStyle.BgColor_c='';
fd1_GroupItemsGeneralStyle.BgImage='';
fd1_GroupItemsGeneralStyle.BgImage_o='';
fd1_GroupItemsGeneralStyle.BgImage_c='';
fd1_GroupItemsGeneralStyle.BgImgRep='repeat';
fd1_GroupItemsGeneralStyle.BgImgRep_o='';
fd1_GroupItemsGeneralStyle.BgImgRep_c='';
fd1_GroupItemsGeneralStyle.BgImgPos='top left';
fd1_GroupItemsGeneralStyle.BgImgPos_o='';
fd1_GroupItemsGeneralStyle.BgImgPos_c='';
fd1_GroupItemsGeneralStyle.LeftPartBgImage='';
fd1_GroupItemsGeneralStyle.LeftPartBgImage_o='';
fd1_GroupItemsGeneralStyle.LeftPartBgImage_c='';
fd1_GroupItemsGeneralStyle.LeftPartBgImgPos='top';
fd1_GroupItemsGeneralStyle.RightPartBgImage='';
fd1_GroupItemsGeneralStyle.RightPartBgImage_o='';
fd1_GroupItemsGeneralStyle.RightPartBgImage_c='';
fd1_GroupItemsGeneralStyle.RightPartBgImgPos='top';
fd1_GroupItemsGeneralStyle.FontColor='#A80000';
fd1_GroupItemsGeneralStyle.FontColor_o='#FFFFFF';
fd1_GroupItemsGeneralStyle.FontColor_c='';
fd1_GroupItemsGeneralStyle.FontFamily='Tahoma';
fd1_GroupItemsGeneralStyle.FontFamily_o='';
fd1_GroupItemsGeneralStyle.FontFamily_c='';
fd1_GroupItemsGeneralStyle.FontSize=11;
fd1_GroupItemsGeneralStyle.FontSize_o=null;
fd1_GroupItemsGeneralStyle.FontSize_c=null;
fd1_GroupItemsGeneralStyle.FontDecoration='none';
fd1_GroupItemsGeneralStyle.FontDecoration_o='';
fd1_GroupItemsGeneralStyle.FontDecoration_c='';
fd1_GroupItemsGeneralStyle.FontWeight='bold';
fd1_GroupItemsGeneralStyle.FontWeight_o='';
fd1_GroupItemsGeneralStyle.FontWeight_c='';
fd1_GroupItemsGeneralStyle.FontStyle='normal';
fd1_GroupItemsGeneralStyle.FontStyle_o='';
fd1_GroupItemsGeneralStyle.FontStyle_c='';
fd1_GroupItemsGeneralStyle.BorderWidth=1;
fd1_GroupItemsGeneralStyle.BorderWidth_o=null;
fd1_GroupItemsGeneralStyle.BorderWidth_c=null;
fd1_GroupItemsGeneralStyle.BorderColor='#000000';
fd1_GroupItemsGeneralStyle.BorderColor_o='';
fd1_GroupItemsGeneralStyle.BorderColor_c='';
fd1_GroupItemsGeneralStyle.Border='none';
fd1_GroupItemsGeneralStyle.Border_o='';
fd1_GroupItemsGeneralStyle.Border_c='';
fd1_GroupItemsGeneralStyle.BorderLeft=true;
fd1_GroupItemsGeneralStyle.BorderRight=true;
fd1_GroupItemsGeneralStyle.BorderTop=true;
fd1_GroupItemsGeneralStyle.BorderBottom=true;
fd1_GroupItemsGeneralStyle.SeparatorColor='#000000';
fd1_GroupItemsGeneralStyle.SeparatorSize=0;
fd1_GroupItemsGeneralStyle.LeftIcon='fd1_images/small-red-glasy-bullet.gif';
fd1_GroupItemsGeneralStyle.LeftIcon_o='';
fd1_GroupItemsGeneralStyle.LeftIcon_c='';
fd1_GroupItemsGeneralStyle.LeftIconOffsetX=8;
fd1_GroupItemsGeneralStyle.LeftIconOffsetX_o=null;
fd1_GroupItemsGeneralStyle.LeftIconOffsetX_c=null;
fd1_GroupItemsGeneralStyle.LeftIconOffsetY=-4;
fd1_GroupItemsGeneralStyle.LeftIconOffsetY_o=null;
fd1_GroupItemsGeneralStyle.LeftIconOffsetY_c=null;
fd1_GroupItemsGeneralStyle.LeftIconIsIndicator=false;
fd1_GroupItemsGeneralStyle.RightIcon='fd1_images/arr_black_right.gif';
fd1_GroupItemsGeneralStyle.RightIcon_o='fd1_images/arr_white_right.gif';
fd1_GroupItemsGeneralStyle.RightIcon_c='';
fd1_GroupItemsGeneralStyle.RightIconOffsetX=-6;
fd1_GroupItemsGeneralStyle.RightIconOffsetX_o=null;
fd1_GroupItemsGeneralStyle.RightIconOffsetX_c=null;
fd1_GroupItemsGeneralStyle.RightIconOffsetY=-2;
fd1_GroupItemsGeneralStyle.RightIconOffsetY_o=null;
fd1_GroupItemsGeneralStyle.RightIconOffsetY_c=null;
fd1_GroupItemsGeneralStyle.RightIconIsIndicator=true;

 
var fd1_GroupStyle = new fd1MenuGroup();
fd1_GroupStyle.Width=150;
fd1_GroupStyle.MenuGroupAlign=0;
fd1_GroupStyle.Opacity=100;
fd1_GroupStyle.ShowDropDownControl=false;
fd1_GroupStyle.InitDropdownState=1;
fd1_GroupStyle.ItemsPadding_L=2;
fd1_GroupStyle.ItemsPadding_R=2;
fd1_GroupStyle.ItemsPadding_T=2;
fd1_GroupStyle.ItemsPadding_B=2;
fd1_GroupStyle.ItemsSpacing=3;
fd1_GroupStyle.BgColor='#F7E7D6';
fd1_GroupStyle.BgImage='fd1_images/simple-background-color-red.gif';
fd1_GroupStyle.BgImgPos='top left';
fd1_GroupStyle.BgImgRep='repeat-y';
fd1_GroupStyle.Border='solid';
fd1_GroupStyle.BorderWidth=1;
fd1_GroupStyle.BorderColor='#D50000';
fd1_GroupStyle.HeaderText='';
fd1_GroupStyle.HeaderTextAlign='center';
fd1_GroupStyle.HeaderTextOffsetX=0;
fd1_GroupStyle.HeaderTextOffsetY=3;
fd1_GroupStyle.HeaderHeight=0;
fd1_GroupStyle.HeaderBgColor='';
fd1_GroupStyle.HeaderIconOffsetX=3;
fd1_GroupStyle.HeaderIconOffsetY=3;
fd1_GroupStyle.HeaderBgImgRep='repeat';
fd1_GroupStyle.HeaderBgImgPos='top left';
fd1_GroupStyle.FontFamily='Verdana, Geneva, Arial, Helvetica, sans-serif';
fd1_GroupStyle.FontColor='#004080';
fd1_GroupStyle.FontSize=11;
fd1_GroupStyle.FontDecoration='none';
fd1_GroupStyle.FontWeight='bold';
fd1_GroupStyle.FontStyle='normal';
fd1_GroupStyle.DropdownImageExpand='';
fd1_GroupStyle.DropdownImageCollapse='';
fd1_GroupStyle.OnGroupShowJS='';
fd1_GroupStyle.OnGroupHideJS='';
fd1_GroupStyle.AnimationType=100;
fd1_GroupStyle.AnimationTimeout=0;

 
var fd1_mg_ID1 = new fd1MenuGroup(0,10,'H');
fd1_mg_ID1.id='fd1_mg_ID1';
fd1_mg_ID1.IsMainGroup=1;
fd1_mg_ID1.BgColor='';
fd1_mg_ID1.Width=200;
fd1_mg_ID1.Opacity=100;
fd1_mg_ID1.ShowDropDownControl=false;
fd1_mg_ID1.InitDropdownState=1;
fd1_mg_ID1.ItemsPadding_L=0;
fd1_mg_ID1.ItemsPadding_R=0;
fd1_mg_ID1.ItemsPadding_T=0;
fd1_mg_ID1.ItemsPadding_B=0;
fd1_mg_ID1.ItemsSpacing=0;
fd1_mg_ID1.Embedding='relative';
fd1_mg_ID1.z=1000;
fd1_mg_ID1.BgImgPos='top left';
fd1_mg_ID1.BgImgRep='repeat';
fd1_mg_ID1.Border='none';
fd1_mg_ID1.BorderWidth=0;
fd1_mg_ID1.BorderColor='#808080';
fd1_mg_ID1.HeaderText='';
fd1_mg_ID1.HeaderTextAlign='center';
fd1_mg_ID1.HeaderTextOffsetX=0;
fd1_mg_ID1.HeaderTextOffsetY=4;
fd1_mg_ID1.HeaderHeight=0;
fd1_mg_ID1.HeaderBgColor='';
fd1_mg_ID1.HeaderIconOffsetX=3;
fd1_mg_ID1.HeaderIconOffsetY=3;
fd1_mg_ID1.HeaderBgImgRep='repeat-x';
fd1_mg_ID1.HeaderBgImgPos='top left';
fd1_mg_ID1.DropdownImageExpand='';
fd1_mg_ID1.DropdownImageCollapse='';
fd1_mg_ID1.FontFamily='Verdana, Geneva, Arial, Helvetica, sans-serif';
fd1_mg_ID1.FontColor='#004080';
fd1_mg_ID1.FontSize=11;
fd1_mg_ID1.FontDecoration='none';
fd1_mg_ID1.FontWeight='bolder';
fd1_mg_ID1.FontStyle='normal';

 
var fd1_i_ID5 = new fd1MenuItem('Home');
fd1_i_ID5.id='fd1_i_ID5';
fd1_i_ID5.Assign(fd1_MainGroupItemsGeneralStyle);  
fd1_i_ID5.Text_o='';
fd1_i_ID5.Text_c='';
fd1_i_ID5.TextAlign='center';
fd1_i_ID5.URL='index.html';
fd1_i_ID5.URLTarget='_top';
fd1_i_ID5.Hint='';
fd1_i_ID5.FontWeight='bold';
fd1_mg_ID1.AddItem(fd1_i_ID5); 

 
var fd1_i_ID17 = new fd1MenuItem('Flame Platoon Tankers');
fd1_i_ID17.id='fd1_i_ID17';
fd1_i_ID17.Assign(fd1_MainGroupItemsGeneralStyle);  
fd1_i_ID17.Text_o='';
fd1_i_ID17.Text_c='';
fd1_i_ID17.TextAlign='center';
fd1_i_ID17.URL='book.html';
fd1_i_ID17.Hint='';
fd1_i_ID17.Width=147;
fd1_i_ID17.FontWeight='bold';
fd1_mg_ID1.AddItem(fd1_i_ID17); 

 
var fd1_i_ID18 = new fd1MenuItem('Site Map');
fd1_i_ID18.id='fd1_i_ID18';
fd1_i_ID18.Assign(fd1_MainGroupItemsGeneralStyle);  
fd1_i_ID18.Text_o='';
fd1_i_ID18.Text_c='';
fd1_i_ID18.TextAlign='center';
fd1_i_ID18.URL='site.html';
fd1_i_ID18.URLTarget='_top';
fd1_i_ID18.Hint='';
fd1_i_ID18.Width=142;
fd1_i_ID18.FontWeight='bold';
fd1_mg_ID1.AddItem(fd1_i_ID18); 

 
var fd1_i_ID19 = new fd1MenuItem('Flame Dragons Briefs');
fd1_i_ID19.id='fd1_i_ID19';
fd1_i_ID19.Assign(fd1_MainGroupItemsGeneralStyle);  
fd1_i_ID19.Text_o='';
fd1_i_ID19.Text_c='';
fd1_i_ID19.TextAlign='center';
fd1_i_ID19.URL='briefs.html';
fd1_i_ID19.URLTarget='_top';
fd1_i_ID19.Hint='';
fd1_i_ID19.Width=136;
fd1_i_ID19.FontWeight='bold';
fd1_mg_ID1.AddItem(fd1_i_ID19); 

 
var fd1_i_ID24 = new fd1MenuItem('Sherman Flame Tank');
fd1_i_ID24.id='fd1_i_ID24';
fd1_i_ID24.Assign(fd1_MainGroupItemsGeneralStyle);  
fd1_i_ID24.Text_o='';
fd1_i_ID24.Text_c='';
fd1_i_ID24.URL='ShermanFlameTank.html';
fd1_i_ID24.Hint='';
fd1_i_ID24.Width=153;
fd1_i_ID24.FontWeight='bold';
fd1_mg_ID1.AddItem(fd1_i_ID24);
fd1_mg_ID1.Visibility='visible';
document.write('<div style="position:absolute; z-index:1000;" align="left">');
document.write(fd1_mg_ID1.ToStr());  
document.write('</div>');
