//-----------------------------------------------------------------------
//- Created by the Agama Web Menus - generator  ver 2.14
//- Copyright MP Software (c)2008
//- Can I use this script? See http://www.agama-menu.com
//-----------------------------------------------------------------------

//Global Misc Object
var menu_slimMiscFunc = {
	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,
	
	//sniff the browser type 
	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;
	},
	
	//safe get object in nn4
	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;
	},

	//get true element height 
	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;
		} 
	},
	
	//get true element width
	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;
		}
	},
	
	//get true element left position
	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;
		}
	},

	
	//get true element top position
	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;
		}
	}
};

menu_slimMiscFunc.InitVars();

//--------------------------------------------------------
//class menuGrouphandler
//--------------------------------------------------------
var menu_slimMenuGroupHandler = {
	//---private vars
	MenuTimeout : 500,	
	ObjectsCount : 0,//counter of submenus
  ObjectsArray : Array(), //all submenus storage
	idCounter : 0, //submenus internal unique counter
	idPrefix  : "menu_group_",//submenus name prefix
	TimerCloseAllGroupID : 0, //timer id for clean all submenus
	TimerAnimateID : 0, //timer id animation
	TmpGroupToShow	: '', //temp storage of just animated submenu
	LC : '2909192231',//license code

  
 
	GetId:function() { //return self id
							return this.idPrefix + this.idCounter++; 
						}, 
	
	FindGroup:function(id){ //return the submenu by the id
              for (i=1; i<= this.ObjectsCount; i++){
                if (this.ObjectsArray[i].id==id) {
		              return(this.ObjectsArray[i]);
		 					  }
				      }
            },
							 
	DoOnMouseOver:function(id){//submenu mouse over event
									window.clearTimeout(this.TimerCloseAllGroupID); 
									//repair visual state of items when mouse over the same item but another item sumbenu is shown   
									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){ //submenu mouse out event
										window.clearTimeout(this.TimerCloseAllGroupID);  
                    
											this.TimerCloseAllGroupID = window.setTimeout("menu_slimMenuGroupHandler.CloseAllGroup()", menu_slimMenuGroupHandler.MenuTimeout); 
                    
									},

  DoOnMouseMove:function(id){return},
	DoOnMouseDown:function(id){return},
	DoOnMouseUp:function(id){return},

	FlipDropDown:function(id){ //flip the submenu dropdown state
										gr=this.FindGroup(id.substring(8));
										if (gr){
											gr.FlipDropDown();
										}
									},

  CloseGroup:function(id){//close submenu
                
									gr=this.FindGroup(id);
									if (gr!=null){
										gr.CloseGroupRecurse();
									}
                
             },

  CloseAllGroup:function(){//close all submenus
												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(){ //appear submenu
													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(){//appear submenu with using animation - multiple called by timer
                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) && (!menu_slimMiscFunc.ie)){//non IE browsers does not support filter animation 
											gr.AnimationType=100;
										}

                    switch (gr.AnimationType){
      							  // browser independency animation -->
										  case 0:{//simple show - all browser compatible
												  obj.style.visibility='visible';
													objt.style.visibility='visible';

													//show orphans elements
												  for (this.i=1; this.i<= gr.Count; this.i++){ 
														gr.Items[this.i].ShowOrphans();
													}

													//call custom JS code
													if (gr.OnGroupShowJS!=''){
														eval(gr.OnGroupShowJS);
													}

													return;
											}//end case 0

										  case 100:{//fade in - all browser compatible
											 		
														if (gr.AnimationControlValue==20){
															//show orphans elements once on start of animation
													  	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 );
													
											       //calculate next time	
													   gr.AnimationControlValue=gr.AnimationControlValue+(gr.AnimationStep);
														 this.TimerAnimateID = window.setTimeout("menu_slimMenuGroupHandler.DoAnimation()",gr.AnimationTimeout * (gr.AnimationTo/(gr.Opacity/2)));
														 return;	
												   } 

													 //call custom JS code
													 if (gr.OnGroupShowJS!=''){
														 eval(gr.OnGroupShowJS);
													 }

												   return;
										  }//end case 100
									  }//end switch
									 
									  //IE5+ animations

										//show orphans elements
									  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();//gr.AnimationType;
											obj.style.visibility='visible'; //allways show
											objt.style.visibility='visible';
									    obj.filters.revealTrans.play();
									  } 
											else
									  { obj.style.visibility='visible';}

										//call custom JS code
										if (gr.OnGroupShowJS!=''){
											eval(gr.OnGroupShowJS);
										} 
								 } 
						  } 
            }

}; //end class menu_slimMenuGroupHandler

	

//------------------------------------------------------------
//class menuItemhandler
//------------------------------------------------------------
var menu_slimMenuItemHandler = {
    ObjectsCount : 0,//items counter
    ObjectsArray : Array(), //array of all items
		idCounter : 0,
		idPrefix  : "menu_item_",

		GetId     : function() { //return self id 
									return this.idPrefix + this.idCounter++; 
								},
	
		FindItem  : function(id) {//find item by id in array
                  for (i=1; i<= this.ObjectsCount; i++){
                    if (this.ObjectsArray[i].id==id) {
	                    return(this.ObjectsArray[i]);
	                  }
                  }
                },

    FindItemByGroup: function(GroupID){//find item which is parent of specified submenu
                       for (i=1; i<= this.ObjectsCount; i++){
                         if (this.ObjectsArray[i].Group.id==GroupID) {
                           return(this.ObjectsArray[i]);
                         }
                       }
                     },

		DoOnMouseOver :  function(id){//item on mouse over event
                       mi=this.FindItem(id);
											 mi.SetItemState(1);
                       
												//reset state of each items
                       for (i=1; i<= mi.OwnerGroup.Count; i++){
													if (mi.OwnerGroup.Items[i]!=mi){
														mi.OwnerGroup.Items[i].SetItemState(0);
													} 
											 }

                       if (mi.Group != null){
			 	  					     //close all groups recursively
                         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')){
												       menu_slimMenuGroupHandler.CloseGroup(obj.id);
                             }
                           }
                         }
												 
												 //finish prev animation
												 menu_slimMenuGroupHandler.ShowWithTargetOpacity();
												 //Show new group 
												 
												 	 mi.Group.ShowGroup();//show new submenu
												 
           				     }
                     },

			DoOnMouseMove: function(id) {},             
			DoOnMouseOut : function (id) {},
			DoOnMouseDown: function(id){
												mi=this.FindItem(id);
												mi.SetItemState(2);//activate click state
										 },

			DoOnMouseUp: function(id){
										 mi=this.FindItem(id);
										 mi.SetItemState(1);//back to over state
						  		 },

			Navigate: function(id){ //navigation
									
									mi=this.FindItem(id);
									eval(mi.OnClickJS);//user custom JS command when item is clicked
									if (mi.URL>''){
									if (mi.URLTarget==''){self.location.href= mi.URL} else //self frame
										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
														{//new window
															window.open(mi.URL,mi.URLTarget);
														}
												}
									}	
								}


    }; //end class menuhandler

	
	

//--------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------
// class menu_slimMenuGroupAncestor 
//--------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------

//--------------------------------------------------------------------------------------
// menu_slimMenuGroupAncestor - Constructor
//--------------------------------------------------------------------------------------
function menu_slimMenuGroupAncestor () {
	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;  //TODO
	this.ShadowColor='#999999';//TODO
	this.ShadowTransparency=50;//TODO
  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; //animation speed 
	this.AnimationType=100; //animation type: 0=no animation, 100=fade (browser indenpedent), 1..99 IE animation type
	this.ShowDropDownControl=false;
	this.InitDropdownState=1;
	this.DropdownImageExpand='';
	this.DropdownImageCollapse='';
}
	

//--------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------
// Class MenuGroup
//--------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------

//--------------------------------------------------------------------------------------
// MenuGroup will inherite from menu_slimMenuGroupAncestor;	
//--------------------------------------------------------------------------------------
menu_slimMenuGroup.prototype = new menu_slimMenuGroupAncestor;	

//--------------------------------------------------------------------------------------
// MenuGroup - constructor
//--------------------------------------------------------------------------------------
function menu_slimMenuGroup(ShiftX,ShiftY,Lay) {
	this.Layout= Lay || 'V'; //V=vertical, H=horizontal
	this.x=ShiftX || 0;
	this.y=ShiftY || 0;
	//------------------------------------------
	//internal vars, Do not touch this values! -->
  //------------------------------------------
	this.Tmp1=0;//temp var
	this.AnimationStep=4; //animation increment (granularity) - subjective determined
	this.AnimationFrom=0; //start of animation -  typically 1
	this.AnimationTo=100; //end of animation - typically 100 but fade animation will stop with opacity value
	this.AnimationControlValue=20;//animation temp value, do not touch it!
	this.TmpMainDivStyle='';//retezec stylu Divu
	this.TargetPosX=this.x; // menu x position
	this.TargetPosY=this.y; //menu y position
	this.DefaultTop=0;
	this.DefaultLeft=0;
	this.Count=0;
	this.IsMainGroup=0;
	this.Items  = [];
	this.id     = menu_slimMenuGroupHandler.GetId();
	this.RefererItem = null;
	this.Preload_DropdownImageExpand=new Image();
	this.Preload_DropdownImageCollapse=new Image();
	menu_slimMenuGroupHandler.ObjectsCount=menu_slimMenuGroupHandler.ObjectsCount+1;
	menu_slimMenuGroupHandler.ObjectsArray[menu_slimMenuGroupHandler.ObjectsCount]=this;
}

//--------------------------------------------------------------------------------------
// Copy values from another menu group
//--------------------------------------------------------------------------------------
menu_slimMenuGroup.prototype.Assign=function Assign(Source)
{
	this.Width= 						Source.Width;
	this.Height=						Source.Height;
	this.Opacity=						Source.Opacity;
	this.Embedding=					Source.Embedding;
	this.Drifting=					Source.Drifting;
	this.OnGroupShowJS=			Source.OnGroupShowJS;
	this.OnGroupHideJS=			Source.OnGroupHideJS;
  this.BgColor=						Source.BgColor;
	this.BgImage=						Source.BgImage;
	this.BgImgPos=					Source.BgImgPos;
	this.BgImgRep=					Source.BgImgRep;
	this.Border=						Source.Border;
	this.BorderWidth=				Source.BorderWidth;
	this.BorderColor=				Source.BorderColor;
	this.ShadowWidth=				Source.ShadowWidth;
	this.ShadowColor=				Source.ShadowColor;
	this.ShadowTransparency=Source.ShadowTransparency;
  this.ItemsSpacing=			Source.ItemsSpacing;
	this.ItemsPadding_L=		Source.ItemsPadding_L;
	this.ItemsPadding_R=		Source.ItemsPadding_R;
	this.ItemsPadding_T=		Source.ItemsPadding_T;
	this.ItemsPadding_B=		Source.ItemsPadding_B;
	this.HeaderText=				Source.HeaderText;
	this.HeaderTextAlign=		Source.HeaderTextAlign;
	this.HeaderTextOffsetX=	Source.HeaderTextOffsetX;
	this.HeaderTextOffsetY=	Source.HeaderTextOffsetY;
	this.HeaderHeight=			Source.HeaderHeight;
	this.HeaderBgColor=			Source.HeaderBgColor;
	this.HeaderIcon=				Source.HeaderIcon;
	this.HeaderIconOffsetX=	Source.HeaderIconOffsetX;
	this.HeaderIconOffsetY=	Source.HeaderIconOffsetY;
	this.HeaderBgImage=			Source.HeaderBgImage;
	this.HeaderBgImgPos=		Source.HeaderBgImgPos;
	this.HeaderBgImgRep=		Source.HeaderBgImgRep;
	this.FontFamily=				Source.FontFamily;
	this.FontColor=					Source.FontColor;
	this.FontSize=					Source.FontSize;
	this.FontDecoration=		Source.FontDecoration;
	this.FontWeight=				Source.FontWeight;
	this.FontStyle=					Source.FontStyle;
	this.MenuGroupAlign=		Source.MenuGroupAlign;
	this.z=									Source.z;
	this.Visibility=				Source.Visibility;
	this.AnimationTimeout=	Source.AnimationTimeout;
	this.AnimationType=			Source.AnimationType;
	this.ShowDropDownControl=Source.ShowDropDownControl;
	this.InitDropdownState=Source.InitDropdownState;
	this.DropdownImageExpand=Source.DropdownImageExpand;
	this.DropdownImageCollapse=Source.DropdownImageCollapse;
	this.MenuAlign=Source.MenuAlign;
};

//--------------------------------------------------------------------------------------
// Method PreloadImages
//--------------------------------------------------------------------------------------
menu_slimMenuGroup.prototype.PreloadImages= function PreloadImages() {
	this.Preload_DropdownImageExpand.src=this.DropdownImageExpand;
	this.Preload_DropdownImageCollapse.src=this.DropdownImageCollapse;
};

//--------------------------------------------------------------------------------------
// Method AddItem
//--------------------------------------------------------------------------------------
menu_slimMenuGroup.prototype.AddItem= function AddItem(Item) {
  this.Count++;
  this.Items[this.Count]=Item;
  Item.OwnerGroup=this;
};


//--------------------------------------------------------------------------------------
// Method ExpandDropDown
//--------------------------------------------------------------------------------------
menu_slimMenuGroup.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);
			}
		}
	} 
};


//--------------------------------------------------------------------------------------
// Method ExpandDropDown
//--------------------------------------------------------------------------------------
menu_slimMenuGroup.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;
			}
		}
	}
};


//--------------------------------------------------------------------------------------
// Method CollapseDropDown
//--------------------------------------------------------------------------------------
menu_slimMenuGroup.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==''))
		{ //Hide body
			bodydiv.style.display='none';
			bodydiv.style.visibility='hidden';
			if(dropimg){
				dropimg.src=this.Preload_DropdownImageExpand.src;
			}
		}
	}
};


//--------------------------------------------------------------------------------------
// Method FlipDropDown
//--------------------------------------------------------------------------------------
menu_slimMenuGroup.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==''))
		{ //Hide body
			bodydiv.style.display='none';
			bodydiv.style.visibility='hidden';
			if(dropimg){
				dropimg.src=this.Preload_DropdownImageExpand.src;
			}
		}
			else
		{ //Show
			bodydiv.style.display='block';
			bodydiv.style.visibility='visible';
			if(dropimg){
				dropimg.src=this.Preload_DropdownImageCollapse.src;
			}
		}
	}
};



//--------------------------------------------------------------------------------------
// Method ToStr
//--------------------------------------------------------------------------------------
menu_slimMenuGroup.prototype.ToStr= function ToStr(){
	//preload images
	this.PreloadImages();

  //calculate group subelements Width and Height
	//we must calculate the width of group in dependence of menu items width when the menu has horizontal layout
	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" && menu_slimMiscFunc.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; 
	}

	//concate main DIV styles string --->	
	SetPosition=true;
	if (this.Embedding=='default'){this.Embedding='absolute'; SetPosition=false}
	if (this.IsMainGroup==0){this.Embedding='absolute'}

  //positioning -->
	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+'; '; //visibility
  this.TmpMainDivStyle=this.TmpMainDivStyle+'width: '+MainDivWidth+'px; ';//width
  this.TmpMainDivStyle=this.TmpMainDivStyle+'border-width: '+this.BorderWidth+'px; border-style: '+this.Border+'; border-color: '+this.BorderColor+'; '; //border
	this.TmpMainDivStyle=this.TmpMainDivStyle+'background-color: '+this.BgColor+'; ';//bck color
	this.TmpMainDivStyle=this.TmpMainDivStyle+'background-image: url('+this.BgImage+'); background-position: '+this.BgImgPos+'; background-repeat: '+this.BgImgRep+'; '; //bck image
	if (this.Opacity<100){this.TmpMainDivStyle=this.TmpMainDivStyle+'filter:alpha(opacity='+this.Opacity+'); -moz-opacity:'+this.Opacity+'; opacity:'+(this.Opacity/100)+'; '}; //final opacity
   
	//concate header styles string
	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+'; ';

	//concate subheader styles string
	this.TmpSubHedStyle='position: relative; left: '+this.HeaderTextOffsetX+'px; top: '+this.HeaderTextOffsetY+'px; '; //pozicovani textu subheader
	this.TmpSubHedStyle=this.TmpSubHedStyle+'font-family: '+this.FontFamily+' ; font-style: '+this.FontStyle+'; font-size: '+this.FontSize+'px; font-weight: '+this.FontWeight+'; '; //parametry fontu
	this.TmpSubHedStyle=this.TmpSubHedStyle+'color: '+this.FontColor+' ; text-decoration: '+this.FontDecoration+'; ';//parametry fontu

  //concate cover of table
  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; ';//padding

  //concate table atributes string
	this.TableAttr='width="'+TableWidth+'" cellpadding="0" cellspacing="0" border="0"'; 

	//build string of dropdown images
	if(this.ShowDropDownControl)
	{
	  this.TmpDropDown='<img onclick="menu_slimMenuGroupHandler.FlipDropDown(this.id);" id="dropimg_'+this.id+'" hspace="5" src="';
		if (this.InitDropdownState==1){
			this.TmpDropDown=this.TmpDropDown+this.Preload_DropdownImageCollapse.src;//image for collapse state
		}	else{
			this.TmpDropDown=this.TmpDropDown+this.Preload_DropdownImageExpand.src;//image for expanded
			this.TmpTableCover=this.TmpTableCover+' visibility: hidden; display: none; ';
		}
		this.TmpDropDown=this.TmpDropDown+'" >';
	}
		else {
			this.TmpDropDown=(this.HeaderText)?'&nbsp;':'';
	}

	//concate main DIV of menu group
	TmpStr='<DIV style="'+this.TmpMainDivStyle+'" id="'+this.id+'" onmousedown="menu_slimMenuGroupHandler.DoOnMouseDown(this.id)" onmouseup="menu_slimMenuGroupHandler.DoOnMouseUp(this.id)" onmouseover="menu_slimMenuGroupHandler.DoOnMouseOver(this.id)" onmouseout="menu_slimMenuGroupHandler.DoOnMouseOut()">';

	//build header icon
  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+'">'; //ikona headeru, lezi mimo header! 
  };

  //concate header string
  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>'; //header+subheader+dropdown images

	//concate item table div cover
  TmpStr=TmpStr+'<div id="'+this.id+'_itemtablecover" style="'+this.TmpTableCover+'">'; 
	
	//concate item table
  if (this.Layout=='H') {
    TmpStr=TmpStr+'<TABLE '+this.TableAttr+' id="'+this.id+'_table"><TR>';  
		//TmpEndStr='<TD>x</TD></TR valign="top"></TABLE>';
		TmpEndStr='</TR valign="top"></TABLE>';
  }
    else  
  {
    TmpStr=TmpStr+'<TABLE '+this.TableAttr+' id="'+this.id+'_table">';
		TmpEndStr='</TABLE>';
  }
  

  //each menu item return self code with using method ToStr()
  for (i=1; i<= this.Count; i++){ 
		this.Items[i].LastItem=false;
		if (i==this.Count){
			this.Items[i].LastItem=true;//mark if is last item in group, if is it, the menu separator will not applyed
		}
		TmpStr=TmpStr+this.Items[i].ToStr(this.Layout);
  }	

  //table finish string
  TmpStr=TmpStr+TmpEndStr;

	//cover finish string
  TmpStr=TmpStr+'</div>'; 

	//end of menu group
	TmpStr=TmpStr+'</DIV>';

	//get each submenus code by recurse with using method ToStr()
  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();//print my submenu
		}  
  }	

	//call custom JS code - OnGroupShowJS
	if ((this.OnGroupShowJS!='') && (this.Visibility) && (this.IsMainGroup)){
		eval(this.OnGroupShowJS);
	}

	//return final code
  return(TmpStr);	
};



//--------------------------------------------------------------------------------------
//CloseGroupRecurse
//--------------------------------------------------------------------------------------
menu_slimMenuGroup.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();
    }
  }
};

//--------------------------------------------------------------------------------------
//ShowGroupRecurse
//--------------------------------------------------------------------------------------
menu_slimMenuGroup.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();
    }
  }
};


//--------------------------------------------------------------------------------------
// HideGroup
//--------------------------------------------------------------------------------------
menu_slimMenuGroup.prototype.HideGroup= function HideGroup(){
	//clear animation timeout 
	window.clearTimeout(menu_slimMenuGroupHandler.TimerAnimateID);		
	this.AnimationControlValue=20;
  obj=document.getElementById(this.id);
	objt=document.getElementById(this.id+'_table');

	if (obj!=null)
	{
	  //hide orphans element
		for (this.i=1; this.i<= this.Count; this.i++){ 
  	  this.Items[this.i].HideOrphans();
		}

		if (obj.style.visibility!='hidden')
		{
			//hide table
			objt.style.visibility='hidden';

			//hide group
			obj.style.visibility='hidden';

			//call user custom JS code - OnGroupHideJS
			if (this.OnGroupHideJS!=''){
				eval(this.OnGroupHideJS);
			}
		}
  }




};



//--------------------------------------------------------------------------------------
// ShowGroup
//--------------------------------------------------------------------------------------
menu_slimMenuGroup.prototype.ShowGroup= function ShowGroup(){
	obj=document.getElementById(this.id);
  if (obj!=null){
		
		//calculate X and Y position before appear with using real DOM metrics in dependence MenuGroupAlign value
		switch (this.MenuGroupAlign){
		case 0: {//auto arrange

								if (this.RefererItem.OwnerGroup.Layout=='V'){ //vertical owner group menu
									this.TargetPosX = menu_slimMiscFunc.getElementLeft(this.RefererItem.id) + //owner item position
																		menu_slimMiscFunc.getElementWidth(this.RefererItem.OwnerGroup.id) - //owner group width
																		this.RefererItem.OwnerGroup.ItemsPadding_L+//owner padding left
																		this.x; //horizontal correction shift
									this.TargetPosY = menu_slimMiscFunc.getElementTop(this.RefererItem.id) + //owner item position
																		this.y; //vertical correction shift

								}
								else 
								{ //horizontal owner group menu
									this.TargetPosX = menu_slimMiscFunc.getElementLeft(this.RefererItem.id) + //owner item position
																		this.x; //horizontal correction shift
									
									this.TargetPosY = menu_slimMiscFunc.getElementTop(this.RefererItem.id) + //owner item position									
																		menu_slimMiscFunc.getElementHeight(this.RefererItem.id) + //owner item height
																		this.y ; //vertical correction shift
								}

								break;
						}

		case 1:	{//Right-side Up
								this.TargetPosX = menu_slimMiscFunc.getElementLeft(this.RefererItem.id) + //owner item position
																	menu_slimMiscFunc.getElementWidth(this.RefererItem.OwnerGroup.id) - //owner group width
																	this.RefererItem.OwnerGroup.ItemsPadding_L+//owner padding left
																	this.x; //horizontal correction shift
								this.TargetPosY = menu_slimMiscFunc.getElementTop(this.RefererItem.id) - //owner item position
																	menu_slimMiscFunc.getElementHeight(this.id) + //self height
																	this.y ; //vertical correction shift
								break;
						}

		case 2:	{//Right-side Center
								this.TargetPosX = menu_slimMiscFunc.getElementLeft(this.RefererItem.id) + //owner item position
																	menu_slimMiscFunc.getElementWidth(this.RefererItem.OwnerGroup.id) - //owner group width
																	this.RefererItem.OwnerGroup.ItemsPadding_L+//owner padding left
																	this.x; //horizontal correction shift
								this.TargetPosY = menu_slimMiscFunc.getElementTop(this.RefererItem.id) - //owner item position
																	(menu_slimMiscFunc.getElementHeight(this.id) / 2) + //self half height
																	this.y ; //vertical correction shift
								break;
						}

		case 3:	{//Right-side Down
								this.TargetPosX = menu_slimMiscFunc.getElementLeft(this.RefererItem.id) + //owner item position
																	menu_slimMiscFunc.getElementWidth(this.RefererItem.OwnerGroup.id) - //owner group width
																	this.RefererItem.OwnerGroup.ItemsPadding_L+//owner padding left
																	this.x; //horizontal correction shift
								this.TargetPosY = menu_slimMiscFunc.getElementTop(this.RefererItem.id) + //owner item position
																	this.y; //vertical correction shift
								break;
						}

		case 4:	{//Left-side Up
								this.TargetPosX = menu_slimMiscFunc.getElementLeft(this.RefererItem.id) - //owner item position
																	menu_slimMiscFunc.getElementWidth(this.id) - //self group width
																	this.RefererItem.OwnerGroup.ItemsPadding_L -//owner padding left
																	this.x; //horizontal correction shift
								this.TargetPosY = menu_slimMiscFunc.getElementTop(this.RefererItem.id) - //owner item position
																	menu_slimMiscFunc.getElementHeight(this.id) + //self height
																	this.y ; //vertical correction shift
								break;
						}

		case 5:	{//Left-side Center
								this.TargetPosX = menu_slimMiscFunc.getElementLeft(this.RefererItem.id) - //owner item position
																	menu_slimMiscFunc.getElementWidth(this.id) - //self group width
																	this.RefererItem.OwnerGroup.ItemsPadding_L -//owner padding left
																	this.x; //horizontal correction shift
								this.TargetPosY = menu_slimMiscFunc.getElementTop(this.RefererItem.id) - //owner item position
																	(menu_slimMiscFunc.getElementHeight(this.id) / 2) + //self half height
																	this.y ; //vertical correction shift
								break;
						}

		case 6:	{//Left-side Down
								this.TargetPosX = menu_slimMiscFunc.getElementLeft(this.RefererItem.id) - //owner item position
																	menu_slimMiscFunc.getElementWidth(this.id) - //self group width
																	this.RefererItem.OwnerGroup.ItemsPadding_L -//owner padding left
																	this.x; //horizontal correction shift
								this.TargetPosY = menu_slimMiscFunc.getElementTop(this.RefererItem.id) + //owner item position
																	this.y; //vertical correction shift
								break;
						}

		case 7:	{//Bottom Left
								this.TargetPosX = menu_slimMiscFunc.getElementLeft(this.RefererItem.OwnerGroup.id) + //owner item position
																	this.x; //horizontal correction shift
								this.TargetPosY = menu_slimMiscFunc.getElementTop(this.RefererItem.id) + //owner item position	
																	menu_slimMiscFunc.getElementHeight(this.RefererItem.id) + //owner item height
																	this.y ; //vertical correction shift

								break;
						}
		}

		//set calculated position
		obj.style.left = this.TargetPosX+'px';
		obj.style.top = this.TargetPosY+'px';

    

		if (obj.style.visibility=='hidden'){
      //clear previous timer
    	window.clearTimeout(menu_slimMenuGroupHandler.TimerAnimateID);
			//initial animation value
			this.AnimationControlValue=20; 
			//store the menugroup to will show
			menu_slimMenuGroupHandler.TmpGroupToShow=obj.id;
			//reset menu items to base state
			for (this.i=1; this.i<= this.Count; this.i++){ 
				if (this.Items[this.i].LastItemState==1){
					this.Items[this.i].SetItemState(0);
				}
			}
			//start animation
			menu_slimMenuGroupHandler.TimerAnimateID = window.setTimeout("menu_slimMenuGroupHandler.DoAnimation()",0);
		} 
	}
};



//--------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------
// Class menu_slimMenuItemAncestor - Constructor
//--------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------

//--------------------------------------------------------------------------------------
// menu_slimMenuItemAncestor - Constructor
//--------------------------------------------------------------------------------------
function menu_slimMenuItemAncestor()
{
	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';
};



//--------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------
// Class MenuItem 
//--------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------


//--------------------------------------------------------------------------------------
// MenuItem will inherite from menu_slimMenuItemAncestor
//--------------------------------------------------------------------------------------
menu_slimMenuItem.prototype = new menu_slimMenuItemAncestor;	

//--------------------------------------------------------------------------------------
// MenuItem - Constructor
//--------------------------------------------------------------------------------------
function menu_slimMenuItem(Text) {
	this.Text=Text;	
	//------------------------------------------
	//internal vars. Do not set these values! -->
  //------------------------------------------
	this.id = menu_slimMenuItemHandler.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;
	menu_slimMenuItemHandler.ObjectsCount=menu_slimMenuItemHandler.ObjectsCount+1;
	menu_slimMenuItemHandler.ObjectsArray[menu_slimMenuItemHandler.ObjectsCount]=this;

};	



//--------------------------------------------------------------------------------------
// Copy values from another item
//--------------------------------------------------------------------------------------
menu_slimMenuItem.prototype.Assign=function Assign(Source)
{
	this.URL=									Source.URL;	
	this.URLTarget=						Source.URLTarget;	
	this.Hint=								Source.Hint;	
	this.OnLeaveJS=						Source.OnLeaveJS;	
	this.OnOverJS=						Source.OnOverJS;	
	this.OnClickJS=						Source.OnClickJS;	
	this.TextAlign=						Source.TextAlign;	
	this.TextVAlign=					Source.TextVAlign;	
	this.Cursor=							Source.Cursor;	
	this.PaddingLeft=					Source.PaddingLeft;	
	this.PaddingLeft_o=				Source.PaddingLeft_o;	
	this.PaddingTop=					Source.PaddingTop;	
	this.PaddingTop_o=				Source.PaddingTop_o;	
	this.PaddingRight=				Source.PaddingRight;	
	this.PaddingRight_o=			Source.PaddingRight_o;	
	this.PaddingBottom=				Source.PaddingBottom;	
	this.PaddingBottom_o=			Source.PaddingBottom_o;	
	this.FontColor=						Source.FontColor;	
	this.FontColor_o=					Source.FontColor_o;	
	this.FontColor_c=					Source.FontColor_c;	
	this.FontFamily=					Source.FontFamily;	
	this.FontFamily_o=				Source.FontFamily_o;	
	this.FontFamily_c=				Source.FontFamily_c;	
	this.FontSize=						Source.FontSize;	
	this.FontSize_o=					Source.FontSize_o;	
	this.FontSize_c=					Source.FontSize_c;	
	this.FontDecoration=			Source.FontDecoration;	
	this.FontDecoration_o=		Source.FontDecoration_o;	
	this.FontDecoration_c=		Source.FontDecoration_c;	
	this.FontWeight=					Source.FontWeight;	
	this.FontWeight_o=				Source.FontWeight_o;	
	this.FontWeight_c=				Source.FontWeight_c;	
	this.FontStyle=						Source.FontStyle;	
	this.FontStyle_o=					Source.FontStyle_o;	
	this.FontStyle_c=					Source.FontStyle_c;	
	this.LeftIcon=						Source.LeftIcon;	
	this.LeftIcon_o=					Source.LeftIcon_o;	
	this.LeftIcon_c=					Source.LeftIcon_c;	
	this.LeftIconOffsetX=			Source.LeftIconOffsetX;	
	this.LeftIconOffsetX_o=		Source.LeftIconOffsetX_o;	
	this.LeftIconOffsetX_c=		Source.LeftIconOffsetX_c;	
	this.LeftIconOffsetY=			Source.LeftIconOffsetY;	
	this.LeftIconOffsetY_o=		Source.LeftIconOffsetY_o;	
	this.LeftIconOffsetY_c=		Source.LeftIconOffsetY_c;	
	this.LeftIconIsIndicator=	Source.LeftIconIsIndicator;	
	this.RightIcon=						Source.RightIcon;	
	this.RightIcon_o=					Source.RightIcon_o;	
	this.RightIcon_c=					Source.RightIcon_c;	
	this.RightIconOffsetX=		Source.RightIconOffsetX;	
	this.RightIconOffsetX_o=	Source.RightIconOffsetX_o;	
	this.RightIconOffsetX_c=	Source.RightIconOffsetX_c;	
	this.RightIconOffsetY=		Source.RightIconOffsetY;	
	this.RightIconOffsetY_o=	Source.RightIconOffsetY_o;	
	this.RightIconOffsetY_c=	Source.RightIconOffsetY_c;	
	this.RightIconIsIndicator=Source.RightIconIsIndicator;	
	this.BgColor=							Source.BgColor;	
	this.BgColor_o=						Source.BgColor_o;	
	this.BgColor_c=						Source.BgColor_c;	
	this.BgImage=							Source.BgImage;	
	this.BgImage_o=						Source.BgImage_o;	
	this.BgImage_c=						Source.BgImage_c;	
	this.BgImgPos=						Source.BgImgPos;	
	this.BgImgPos_o=					Source.BgImgPos_o;	
	this.BgImgPos_c=					Source.BgImgPos_c;	
	this.BgImgRep=						Source.BgImgRep;	
	this.BgImgRep_o=					Source.BgImgRep_o;	
	this.BgImgRep_c=					Source.BgImgRep_c;	
	this.LeftPartBgImgPos=		Source.LeftPartBgImgPos;	
	this.LeftPartBgImage=			Source.LeftPartBgImage;	
	this.LeftPartBgImage_o=		Source.LeftPartBgImage_o;	
	this.LeftPartBgImage_c=		Source.LeftPartBgImage_c;	
	this.RightPartBgImgPos=		Source.RightPartBgImgPos;	
	this.RightPartBgImage=		Source.RightPartBgImage;	
	this.RightPartBgImage_o=	Source.RightPartBgImage_o;	
	this.RightPartBgImage_c=	Source.RightPartBgImage_c;	
	this.Border=							Source.Border;	
	this.Border_o=						Source.Border_o;	
	this.Border_c=						Source.Border_c;
	this.BorderWidth=					Source.BorderWidth;	
	this.BorderWidth_o=				Source.BorderWidth_o;	
	this.BorderWidth_c=				Source.BorderWidth_c;	
	this.BorderColor=					Source.BorderColor;	
	this.BorderColor_o=				Source.BorderColor_o;	
	this.BorderColor_c=				Source.BorderColor_c;	
	this.BorderLeft=					Source.BorderLeft;	
	this.BorderRight=					Source.BorderRight;	
	this.BorderTop=						Source.BorderTop;	
	this.BorderBottom=				Source.BorderBottom;	
	this.Height=							Source.Height;	
	this.Width=								Source.Width;	
	this.SeparatorSize=				Source.SeparatorSize;	
	this.SeparatorColor=			Source.SeparatorColor;	
};



//--------------------------------------------------------------------------------------
// Hide orphans images - non IE hack for Mozila, Netscape and other. 
// Owner TD element is hidden but images stay visible :-( 
//--------------------------------------------------------------------------------------
menu_slimMenuItem.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';
	}
}; 

//--------------------------------------------------------------------------------------
// Show orphans images - non IE hack for Mozila, Netscape and other. 
// Owner TD element is hidden but images stay visible :-(
//--------------------------------------------------------------------------------------
menu_slimMenuItem.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';
		}
	}
}; 



//--------------------------------------------------------------------------------------
// PreloadImages
//--------------------------------------------------------------------------------------
menu_slimMenuItem.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;
};



//--------------------------------------------------------------------------------------
//  ToStr
//--------------------------------------------------------------------------------------
menu_slimMenuItem.prototype.ToStr= function ToStr(Layout) {
	var TmpStr=''; //target self source code - source code of single menu item of menu group table
	var TmpTDAttr='';//main TD element attributes 
	var ItemCore='';//core of item - this variable owner the single item table
	var TmpTDCSS=''; //css styles of main TD
	var TmpCoreCentreTDStyle='';//styles of centre TD of single item table
	this.Cursor=((this.URL)&&(this.Cursor=='auto'))?'pointer':this.Cursor;

	//preload images
	this.PreloadImages();

	//--> set main TD attribute values
  if (Layout=='H') {
		TmpTDAttr=TmpTDAttr+' height=' +'"'+ this.Height + '" width="'+this.Width+'" valign="top" ' ; //the Width attribute will set for horizontal menu only
	}
		else
	{
		TmpTDAttr=TmpTDAttr+' height=' +'"'+ this.Height + '" valign="top" ' ;
	}

	//--> set main TD css styles
	TmpTDCSS=' ';

	//--> set Item core table css styles
	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+'" ';

	//-->set style of centre TD of core 
	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;  "';

	
	//prepare icon source code -->
	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;">'; //left icon
	} 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;">'; //right icon
	} else {TmpRightIconSource='';}


	//prepare left and right background image source code
	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+'">';
	}


	//build source code item core -->
	ItemCore='<table '+TmpCoreTableCSS+' id="'+this.id+'_core_table" cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">';//start core table
	ItemCore=ItemCore+'<tr>';//start core TR
  ItemCore=ItemCore+'<td width="0" valign="middle">'+TmpLeftIconSource+'</td><td width="0" align="right" valign="'+this.LeftPartBgImgPos+'" >'+TmpLeftBgSource+'</td>'; //Left background image + Icon
	ItemCore=ItemCore+'<td id="'+this.id+'_core_table_td" '+TmpCoreCentreTDStyle+' width="100%" align="'+this.TextAlign+'">' + this.Text + '</td>'; // centre TD of core - text (main content) + background image
	ItemCore=ItemCore+'<td width="0" align="left" valign="'+this.RightPartBgImgPos+'">'+TmpRightBgSource+'</td><td width="0" valign="middle">'+TmpRightIconSource+'</td>'; //Right backround image + Icon
	ItemCore=ItemCore+'</tr>';//end core TR
	ItemCore=ItemCore+'</table>';//end core table


  //build the target item source code -->
  if (Layout=='H') { //HORIZONTAL MENU KIND
    TmpStr='<TD '+TmpTDAttr+' '+TmpTDCSS+' id="'+this.id+'" onmouseover="menu_slimMenuItemHandler.DoOnMouseOver(this.id)" onmouseout="menu_slimMenuItemHandler.DoOnMouseOut(this.id)" onmousemove="menu_slimMenuItemHandler.DoOnMouseMove(this.id)" onmousedown="menu_slimMenuItemHandler.DoOnMouseDown(this.id)" onmouseup="menu_slimMenuItemHandler.DoOnMouseUp(this.id)" onclick="menu_slimMenuItemHandler.Navigate(this.id)">';
    TmpStr=TmpStr+ItemCore;
		TmpStr=TmpStr+'</TD>';

		// vertical separator and items distance 
		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  
  { //VERTICAL MENU KIND
		TmpStr='<TR valign="top"><TD '+TmpTDAttr+' '+TmpTDCSS+' id="'+this.id+'" onmouseover="menu_slimMenuItemHandler.DoOnMouseOver(this.id)" onmouseout="menu_slimMenuItemHandler.DoOnMouseOut(this.id)" onmousemove="menu_slimMenuItemHandler.DoOnMouseMove(this.id)" onmousedown="menu_slimMenuItemHandler.DoOnMouseDown(this.id)" onmouseup="menu_slimMenuItemHandler.DoOnMouseUp(this.id)" onclick="menu_slimMenuItemHandler.Navigate(this.id)">';
		
		TmpStr=TmpStr+ItemCore;
		TmpStr=TmpStr+'</TD></TR>';
		// horizontal separator and items distance 
		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);//return self source code
};


//--------------------------------------------------------------------------------------
// This method connect the submenu to the parent menu item
//--------------------------------------------------------------------------------------
menu_slimMenuItem.prototype.AddGroup= function AddGroup(SubGroup){
	this.Group=SubGroup;
	SubGroup.RefererItem=this;
};


//--------------------------------------------------------------------------------------
// Redraw item in dependence of state
// This method do change state of item
// state 0 = base
// state 1 = mouse over
// state 2 = mouse click
//--------------------------------------------------------------------------------------
menu_slimMenuItem.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:{//base state --------------------------------------------------

			if (objCoreTableTD){
				objCoreTableTD.innerHTML = this.Text;
			}

			if (objCoreTable){//core table style
				//base background styles
				objCoreTable.style.backgroundColor=this.BgColor;	
				objCoreTable.bgColor=this.BgColor;	

				//border styles
				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){//td table style
				//text and font styles
				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;
				//text padding styles
				objCoreTableTD.style.paddingLeft=this.PaddingLeft;
				objCoreTableTD.style.paddingRight=this.PaddingRight;
				objCoreTableTD.style.paddingTop=this.PaddingTop;
				objCoreTableTD.style.paddingBottom=this.PaddingBottom;
				//center bg image
				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){//left bg image
				if (this.LeftPartBgImage>''){
					objLeftBgImg.src=this.Preload_BgImageLeft.src;
					objLeftBgImg.style.visibility='visible';
					objLeftBgImg.style.display='block';
				} 
					else 
				{
					objLeftBgImg.style.visibility='hidden';
				}
			}


			if (objRightBgImg){//right bg image
				if (this.RightPartBgImage>''){
					objRightBgImg.src=this.Preload_BgImageRight.src;
					objRightBgImg.style.visibility='visible';
					objRightBgImg.style.display='block';
				} 
					else 
				{
					objRightBgImg.style.visibility='hidden';
				}
			}


			if (objRightIcon){ //right icon - element found
				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){ //left icon - element found
				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);//user JS command  when item is leaved
			break;		
		}




		case 1:{//OVER STATE -----------------------------------------

			if ((objCoreTableTD)&&(this.Text_o>'')){
				objCoreTableTD.innerHTML = this.Text_o;
			}

			if (objCoreTable != null) //core table style - element found
			{
				//base background styles
				if (this.BgColor_o){
					objCoreTable.style.backgroundColor=this.BgColor_o;	
					objCoreTable.bgColor=this.BgColor_o;	
				}

				//border styles
				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){//td table style
				//text and font styles
				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;}
				//text padding styles
				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;}
				//center bg image
				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){//left bg image
				if (this.LeftPartBgImage_o>''){
					objLeftBgImg.src=this.Preload_BgImageLeft_o.src;
					objLeftBgImg.style.visibility='visible';
					objLeftBgImg.style.display='block';
				} 
					else 
				{
					//do nothing
				}
			}


			if (objRightBgImg){//right bg image
				if (this.RightPartBgImage_o>''){
					objRightBgImg.src=this.Preload_BgImageRight_o.src;
					objRightBgImg.style.visibility='visible';
					objRightBgImg.style.display='block';
				} 
					else 
				{
					//do nothing
				}
			}


			if (objRightIcon){ //right icon - element found
				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){ //left icon - element found
				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);//user custom JS command when mouse goes over the menu item
			break;
		}



		case 2:{//click state
			if ((objCoreTableTD)&&(this.Text_c>'')){
				objCoreTableTD.innerHTML = this.Text_c;
			}

			if (objCoreTable != null) //core table style - element found
			{
				//base background styles
				if (this.BgColor_c){
					objCoreTable.style.backgroundColor=this.BgColor_c;	
					objCoreTable.style.bgColor=this.BgColor_c;	
				}

				//border styles
				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){//td table style
			//text and font styles
			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;}
			//center bg image
			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){//left bg image
			if (this.LeftPartBgImage_c>''){
				objLeftBgImg.src=this.Preload_BgImageLeft_c.src;
				objLeftBgImg.style.visibility='visible';
				objLeftBgImg.style.display='block';
			} 
				else 
			{
				//do nothing
			}
		}


		if (objRightBgImg){//right bg image
			if (this.RightPartBgImage_c>''){
				objRightBgImg.src=this.Preload_BgImageRight_c.src;
				objRightBgImg.style.visibility='visible';
				objRightBgImg.style.display='block';
			} 
				else 
			{
				//do nothing
			}
		}


		if (objRightIcon){ //right icon - element found
			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){ //left icon - element found
			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;
	} //end switch
};












//Create main menu items style object. All main menu items inherite style from this object
var menu_slim_MainGroupItemsGeneralStyle = new menu_slimMenuItem();
menu_slim_MainGroupItemsGeneralStyle.Text_o='';
menu_slim_MainGroupItemsGeneralStyle.Text_c='';
menu_slim_MainGroupItemsGeneralStyle.TextAlign='left';
menu_slim_MainGroupItemsGeneralStyle.URL='';
menu_slim_MainGroupItemsGeneralStyle.URLTarget='';
menu_slim_MainGroupItemsGeneralStyle.Hint='';
menu_slim_MainGroupItemsGeneralStyle.OnLeaveJS='';
menu_slim_MainGroupItemsGeneralStyle.OnOverJS='';
menu_slim_MainGroupItemsGeneralStyle.OnClickJS='';
menu_slim_MainGroupItemsGeneralStyle.Height=20;
menu_slim_MainGroupItemsGeneralStyle.Width=112.5;
menu_slim_MainGroupItemsGeneralStyle.Cursor='default';
menu_slim_MainGroupItemsGeneralStyle.PaddingLeft=5;
menu_slim_MainGroupItemsGeneralStyle.PaddingLeft_o=null;
menu_slim_MainGroupItemsGeneralStyle.PaddingTop=0;
menu_slim_MainGroupItemsGeneralStyle.PaddingTop_o=null;
menu_slim_MainGroupItemsGeneralStyle.PaddingRight=5;
menu_slim_MainGroupItemsGeneralStyle.PaddingRight_o=null;
menu_slim_MainGroupItemsGeneralStyle.PaddingBottom=0;
menu_slim_MainGroupItemsGeneralStyle.PaddingBottom_o=null;
menu_slim_MainGroupItemsGeneralStyle.BgColor='';
menu_slim_MainGroupItemsGeneralStyle.BgColor_o='';
menu_slim_MainGroupItemsGeneralStyle.BgColor_c='';
menu_slim_MainGroupItemsGeneralStyle.BgImage='';
menu_slim_MainGroupItemsGeneralStyle.BgImage_o='menu_slim_images/fund_red.png';
menu_slim_MainGroupItemsGeneralStyle.BgImage_c='';
menu_slim_MainGroupItemsGeneralStyle.BgImgRep='repeat';
menu_slim_MainGroupItemsGeneralStyle.BgImgRep_o='';
menu_slim_MainGroupItemsGeneralStyle.BgImgRep_c='';
menu_slim_MainGroupItemsGeneralStyle.BgImgPos='top left';
menu_slim_MainGroupItemsGeneralStyle.BgImgPos_o='';
menu_slim_MainGroupItemsGeneralStyle.BgImgPos_c='';
menu_slim_MainGroupItemsGeneralStyle.LeftPartBgImage='';
menu_slim_MainGroupItemsGeneralStyle.LeftPartBgImage_o='';
menu_slim_MainGroupItemsGeneralStyle.LeftPartBgImage_c='';
menu_slim_MainGroupItemsGeneralStyle.LeftPartBgImgPos='top';
menu_slim_MainGroupItemsGeneralStyle.RightPartBgImage='';
menu_slim_MainGroupItemsGeneralStyle.RightPartBgImage_o='';
menu_slim_MainGroupItemsGeneralStyle.RightPartBgImage_c='';
menu_slim_MainGroupItemsGeneralStyle.RightPartBgImgPos='top';
menu_slim_MainGroupItemsGeneralStyle.FontColor='#FFFFFF';
menu_slim_MainGroupItemsGeneralStyle.FontColor_o='#FFFFFF';
menu_slim_MainGroupItemsGeneralStyle.FontColor_c='';
menu_slim_MainGroupItemsGeneralStyle.FontFamily='Times New Roman';
menu_slim_MainGroupItemsGeneralStyle.FontFamily_o='';
menu_slim_MainGroupItemsGeneralStyle.FontFamily_c='';
menu_slim_MainGroupItemsGeneralStyle.FontSize=10;
menu_slim_MainGroupItemsGeneralStyle.FontSize_o=null;
menu_slim_MainGroupItemsGeneralStyle.FontSize_c=null;
menu_slim_MainGroupItemsGeneralStyle.FontDecoration='none';
menu_slim_MainGroupItemsGeneralStyle.FontDecoration_o='';
menu_slim_MainGroupItemsGeneralStyle.FontDecoration_c='';
menu_slim_MainGroupItemsGeneralStyle.FontWeight='bold';
menu_slim_MainGroupItemsGeneralStyle.FontWeight_o='';
menu_slim_MainGroupItemsGeneralStyle.FontWeight_c='';
menu_slim_MainGroupItemsGeneralStyle.FontStyle='normal';
menu_slim_MainGroupItemsGeneralStyle.FontStyle_o='italic';
menu_slim_MainGroupItemsGeneralStyle.FontStyle_c='';
menu_slim_MainGroupItemsGeneralStyle.BorderWidth=1;
menu_slim_MainGroupItemsGeneralStyle.BorderWidth_o=1;
menu_slim_MainGroupItemsGeneralStyle.BorderWidth_c=null;
menu_slim_MainGroupItemsGeneralStyle.BorderColor='#FFFFFF';
menu_slim_MainGroupItemsGeneralStyle.BorderColor_o='#000080';
menu_slim_MainGroupItemsGeneralStyle.BorderColor_c='';
menu_slim_MainGroupItemsGeneralStyle.Border='solid';
menu_slim_MainGroupItemsGeneralStyle.Border_o='solid';
menu_slim_MainGroupItemsGeneralStyle.Border_c='';
menu_slim_MainGroupItemsGeneralStyle.BorderLeft=true;
menu_slim_MainGroupItemsGeneralStyle.BorderRight=true;
menu_slim_MainGroupItemsGeneralStyle.BorderTop=true;
menu_slim_MainGroupItemsGeneralStyle.BorderBottom=true;
menu_slim_MainGroupItemsGeneralStyle.SeparatorColor='#000000';
menu_slim_MainGroupItemsGeneralStyle.SeparatorSize=0;
menu_slim_MainGroupItemsGeneralStyle.LeftIcon='';
menu_slim_MainGroupItemsGeneralStyle.LeftIcon_o='';
menu_slim_MainGroupItemsGeneralStyle.LeftIcon_c='';
menu_slim_MainGroupItemsGeneralStyle.LeftIconOffsetX=0;
menu_slim_MainGroupItemsGeneralStyle.LeftIconOffsetX_o=null;
menu_slim_MainGroupItemsGeneralStyle.LeftIconOffsetX_c=null;
menu_slim_MainGroupItemsGeneralStyle.LeftIconOffsetY=0;
menu_slim_MainGroupItemsGeneralStyle.LeftIconOffsetY_o=null;
menu_slim_MainGroupItemsGeneralStyle.LeftIconOffsetY_c=null;
menu_slim_MainGroupItemsGeneralStyle.LeftIconIsIndicator=false;
menu_slim_MainGroupItemsGeneralStyle.RightIcon='';
menu_slim_MainGroupItemsGeneralStyle.RightIcon_o='';
menu_slim_MainGroupItemsGeneralStyle.RightIcon_c='';
menu_slim_MainGroupItemsGeneralStyle.RightIconOffsetX=-11;
menu_slim_MainGroupItemsGeneralStyle.RightIconOffsetX_o=null;
menu_slim_MainGroupItemsGeneralStyle.RightIconOffsetX_c=null;
menu_slim_MainGroupItemsGeneralStyle.RightIconOffsetY=-5;
menu_slim_MainGroupItemsGeneralStyle.RightIconOffsetY_o=null;
menu_slim_MainGroupItemsGeneralStyle.RightIconOffsetY_c=null;
menu_slim_MainGroupItemsGeneralStyle.RightIconIsIndicator=true;

//Create submenu items style object. All menu items of submenus inherite style from this object
var menu_slim_GroupItemsGeneralStyle = new menu_slimMenuItem();
menu_slim_GroupItemsGeneralStyle.Text_o='';
menu_slim_GroupItemsGeneralStyle.Text_c='';
menu_slim_GroupItemsGeneralStyle.TextAlign='left';
menu_slim_GroupItemsGeneralStyle.URL='';
menu_slim_GroupItemsGeneralStyle.URLTarget='';
menu_slim_GroupItemsGeneralStyle.Hint='';
menu_slim_GroupItemsGeneralStyle.OnLeaveJS='';
menu_slim_GroupItemsGeneralStyle.OnOverJS='';
menu_slim_GroupItemsGeneralStyle.OnClickJS='';
menu_slim_GroupItemsGeneralStyle.Height=20;
menu_slim_GroupItemsGeneralStyle.Width=120;
menu_slim_GroupItemsGeneralStyle.Cursor='default';
menu_slim_GroupItemsGeneralStyle.PaddingLeft=5;
menu_slim_GroupItemsGeneralStyle.PaddingLeft_o=null;
menu_slim_GroupItemsGeneralStyle.PaddingTop=0;
menu_slim_GroupItemsGeneralStyle.PaddingTop_o=null;
menu_slim_GroupItemsGeneralStyle.PaddingRight=5;
menu_slim_GroupItemsGeneralStyle.PaddingRight_o=null;
menu_slim_GroupItemsGeneralStyle.PaddingBottom=0;
menu_slim_GroupItemsGeneralStyle.PaddingBottom_o=null;
menu_slim_GroupItemsGeneralStyle.BgColor='';
menu_slim_GroupItemsGeneralStyle.BgColor_o='#FFFFB0';
menu_slim_GroupItemsGeneralStyle.BgColor_c='#FFFF6A';
menu_slim_GroupItemsGeneralStyle.BgImage='menu_slim_images/fund.png';
menu_slim_GroupItemsGeneralStyle.BgImage_o='';
menu_slim_GroupItemsGeneralStyle.BgImage_c='';
menu_slim_GroupItemsGeneralStyle.BgImgRep='repeat';
menu_slim_GroupItemsGeneralStyle.BgImgRep_o='';
menu_slim_GroupItemsGeneralStyle.BgImgRep_c='';
menu_slim_GroupItemsGeneralStyle.BgImgPos='top left';
menu_slim_GroupItemsGeneralStyle.BgImgPos_o='';
menu_slim_GroupItemsGeneralStyle.BgImgPos_c='';
menu_slim_GroupItemsGeneralStyle.LeftPartBgImage='';
menu_slim_GroupItemsGeneralStyle.LeftPartBgImage_o='';
menu_slim_GroupItemsGeneralStyle.LeftPartBgImage_c='';
menu_slim_GroupItemsGeneralStyle.LeftPartBgImgPos='top';
menu_slim_GroupItemsGeneralStyle.RightPartBgImage='';
menu_slim_GroupItemsGeneralStyle.RightPartBgImage_o='';
menu_slim_GroupItemsGeneralStyle.RightPartBgImage_c='';
menu_slim_GroupItemsGeneralStyle.RightPartBgImgPos='top';
menu_slim_GroupItemsGeneralStyle.FontColor='#FFFFFF';
menu_slim_GroupItemsGeneralStyle.FontColor_o='#FFFFFF';
menu_slim_GroupItemsGeneralStyle.FontColor_c='';
menu_slim_GroupItemsGeneralStyle.FontFamily='Tahoma';
menu_slim_GroupItemsGeneralStyle.FontFamily_o='';
menu_slim_GroupItemsGeneralStyle.FontFamily_c='';
menu_slim_GroupItemsGeneralStyle.FontSize=10;
menu_slim_GroupItemsGeneralStyle.FontSize_o=null;
menu_slim_GroupItemsGeneralStyle.FontSize_c=null;
menu_slim_GroupItemsGeneralStyle.FontDecoration='none';
menu_slim_GroupItemsGeneralStyle.FontDecoration_o='';
menu_slim_GroupItemsGeneralStyle.FontDecoration_c='';
menu_slim_GroupItemsGeneralStyle.FontWeight='bold';
menu_slim_GroupItemsGeneralStyle.FontWeight_o='';
menu_slim_GroupItemsGeneralStyle.FontWeight_c='';
menu_slim_GroupItemsGeneralStyle.FontStyle='normal';
menu_slim_GroupItemsGeneralStyle.FontStyle_o='italic';
menu_slim_GroupItemsGeneralStyle.FontStyle_c='';
menu_slim_GroupItemsGeneralStyle.BorderWidth=0;
menu_slim_GroupItemsGeneralStyle.BorderWidth_o=0;
menu_slim_GroupItemsGeneralStyle.BorderWidth_c=null;
menu_slim_GroupItemsGeneralStyle.BorderColor='#000000';
menu_slim_GroupItemsGeneralStyle.BorderColor_o='#0080FF';
menu_slim_GroupItemsGeneralStyle.BorderColor_c='';
menu_slim_GroupItemsGeneralStyle.Border='none';
menu_slim_GroupItemsGeneralStyle.Border_o='solid';
menu_slim_GroupItemsGeneralStyle.Border_c='';
menu_slim_GroupItemsGeneralStyle.BorderLeft=true;
menu_slim_GroupItemsGeneralStyle.BorderRight=true;
menu_slim_GroupItemsGeneralStyle.BorderTop=true;
menu_slim_GroupItemsGeneralStyle.BorderBottom=true;
menu_slim_GroupItemsGeneralStyle.SeparatorColor='#000000';
menu_slim_GroupItemsGeneralStyle.SeparatorSize=0;
menu_slim_GroupItemsGeneralStyle.LeftIcon='';
menu_slim_GroupItemsGeneralStyle.LeftIcon_o='';
menu_slim_GroupItemsGeneralStyle.LeftIcon_c='';
menu_slim_GroupItemsGeneralStyle.LeftIconOffsetX=0;
menu_slim_GroupItemsGeneralStyle.LeftIconOffsetX_o=null;
menu_slim_GroupItemsGeneralStyle.LeftIconOffsetX_c=null;
menu_slim_GroupItemsGeneralStyle.LeftIconOffsetY=0;
menu_slim_GroupItemsGeneralStyle.LeftIconOffsetY_o=null;
menu_slim_GroupItemsGeneralStyle.LeftIconOffsetY_c=null;
menu_slim_GroupItemsGeneralStyle.LeftIconIsIndicator=false;
menu_slim_GroupItemsGeneralStyle.RightIcon='';
menu_slim_GroupItemsGeneralStyle.RightIcon_o='';
menu_slim_GroupItemsGeneralStyle.RightIcon_c='';
menu_slim_GroupItemsGeneralStyle.RightIconOffsetX=-8;
menu_slim_GroupItemsGeneralStyle.RightIconOffsetX_o=null;
menu_slim_GroupItemsGeneralStyle.RightIconOffsetX_c=null;
menu_slim_GroupItemsGeneralStyle.RightIconOffsetY=-3;
menu_slim_GroupItemsGeneralStyle.RightIconOffsetY_o=null;
menu_slim_GroupItemsGeneralStyle.RightIconOffsetY_c=null;
menu_slim_GroupItemsGeneralStyle.RightIconIsIndicator=true;

//Create submenu items style object - All submenus inherite style from this object
var menu_slim_GroupStyle = new menu_slimMenuGroup();
menu_slim_GroupStyle.Width=100;
menu_slim_GroupStyle.MenuGroupAlign=0;
menu_slim_GroupStyle.Opacity=100;
menu_slim_GroupStyle.ShowDropDownControl=false;
menu_slim_GroupStyle.InitDropdownState=1;
menu_slim_GroupStyle.ItemsPadding_L=2;
menu_slim_GroupStyle.ItemsPadding_R=1;
menu_slim_GroupStyle.ItemsPadding_T=0;
menu_slim_GroupStyle.ItemsPadding_B=1;
menu_slim_GroupStyle.ItemsSpacing=0;
menu_slim_GroupStyle.BgColor='#5799DB';
menu_slim_GroupStyle.BgImgPos='top left';
menu_slim_GroupStyle.BgImgRep='repeat';
menu_slim_GroupStyle.Border='none';
menu_slim_GroupStyle.BorderWidth=3;
menu_slim_GroupStyle.BorderColor='#3B3B3B';
menu_slim_GroupStyle.HeaderText='';
menu_slim_GroupStyle.HeaderTextAlign='center';
menu_slim_GroupStyle.HeaderTextOffsetX=0;
menu_slim_GroupStyle.HeaderTextOffsetY=4;
menu_slim_GroupStyle.HeaderHeight=0;
menu_slim_GroupStyle.HeaderBgColor='';
menu_slim_GroupStyle.HeaderIconOffsetX=3;
menu_slim_GroupStyle.HeaderIconOffsetY=3;
menu_slim_GroupStyle.HeaderBgImgRep='repeat-x';
menu_slim_GroupStyle.HeaderBgImgPos='top left';
menu_slim_GroupStyle.FontFamily='Verdana, Geneva, Arial, Helvetica, sans-serif';
menu_slim_GroupStyle.FontColor='#004080';
menu_slim_GroupStyle.FontSize=11;
menu_slim_GroupStyle.FontDecoration='none';
menu_slim_GroupStyle.FontWeight='bolder';
menu_slim_GroupStyle.FontStyle='normal';
menu_slim_GroupStyle.DropdownImageExpand='';
menu_slim_GroupStyle.DropdownImageCollapse='';
menu_slim_GroupStyle.OnGroupShowJS='';
menu_slim_GroupStyle.OnGroupHideJS='';
menu_slim_GroupStyle.AnimationType=0;
menu_slim_GroupStyle.AnimationTimeout=16;

//Create main menu
var menu_slim_mg_ID1 = new menu_slimMenuGroup(0,0,'H');
menu_slim_mg_ID1.id='menu_slim_mg_ID1';
menu_slim_mg_ID1.IsMainGroup=1;
menu_slim_mg_ID1.BgColor='';
menu_slim_mg_ID1.Width=100;
menu_slim_mg_ID1.Opacity=100;
menu_slim_mg_ID1.ShowDropDownControl=false;
menu_slim_mg_ID1.InitDropdownState=1;
menu_slim_mg_ID1.ItemsPadding_L=1;
menu_slim_mg_ID1.ItemsPadding_R=1;
menu_slim_mg_ID1.ItemsPadding_T=0;
menu_slim_mg_ID1.ItemsPadding_B=1;
menu_slim_mg_ID1.ItemsSpacing=0;
menu_slim_mg_ID1.Embedding='relative';
menu_slim_mg_ID1.z=1000;
menu_slim_mg_ID1.BgImage='menu_slim_images/fund_red.png';
menu_slim_mg_ID1.BgImgPos='top left';
menu_slim_mg_ID1.BgImgRep='repeat';
menu_slim_mg_ID1.Border='none';
menu_slim_mg_ID1.BorderWidth=3;
menu_slim_mg_ID1.BorderColor='#3B3B3B';
menu_slim_mg_ID1.HeaderText='';
menu_slim_mg_ID1.HeaderTextAlign='center';
menu_slim_mg_ID1.HeaderTextOffsetX=0;
menu_slim_mg_ID1.HeaderTextOffsetY=4;
menu_slim_mg_ID1.HeaderHeight=0;
menu_slim_mg_ID1.HeaderBgColor='';
menu_slim_mg_ID1.HeaderIconOffsetX=3;
menu_slim_mg_ID1.HeaderIconOffsetY=3;
menu_slim_mg_ID1.HeaderBgImgRep='repeat-x';
menu_slim_mg_ID1.HeaderBgImgPos='top left';
menu_slim_mg_ID1.DropdownImageExpand='';
menu_slim_mg_ID1.DropdownImageCollapse='';
menu_slim_mg_ID1.FontFamily='Verdana, Geneva, Arial, Helvetica, sans-serif';
menu_slim_mg_ID1.FontColor='#004080';
menu_slim_mg_ID1.FontSize=11;
menu_slim_mg_ID1.FontDecoration='none';
menu_slim_mg_ID1.FontWeight='bolder';
menu_slim_mg_ID1.FontStyle='normal';

//Create new submenu group
var menu_slim_g_ID24 = new menu_slimMenuGroup(-1,1,'V');
menu_slim_g_ID24.id='menu_slim_g_ID24';
menu_slim_g_ID24.Assign(menu_slim_GroupStyle); //assign styles from the general style object

//Create new menu item
var menu_slim_i_ID5 = new menu_slimMenuItem('AEISCAC - DG');
menu_slim_i_ID5.id='menu_slim_i_ID5';
menu_slim_i_ID5.Assign(menu_slim_MainGroupItemsGeneralStyle); //Assign styles from the general style object
menu_slim_i_ID5.Text_o='';
menu_slim_i_ID5.Text_c='';
menu_slim_i_ID5.URL='index.php?opcao=aeiscac_dg';
menu_slim_i_ID5.Hint='';
menu_slim_mg_ID1.AddItem(menu_slim_i_ID5);//Add menu item to the menu group

//Create new menu item
var menu_slim_i_ID17 = new menu_slimMenuItem('Desporto');
menu_slim_i_ID17.id='menu_slim_i_ID17';
menu_slim_i_ID17.Assign(menu_slim_MainGroupItemsGeneralStyle); //Assign styles from the general style object
menu_slim_i_ID17.Text_o='';
menu_slim_i_ID17.Text_c='';
menu_slim_i_ID17.URL='index.php?opcao=desporto';
menu_slim_i_ID17.Hint='';
menu_slim_mg_ID1.AddItem(menu_slim_i_ID17);//Add menu item to the menu group

//Create new menu item
var menu_slim_i_ID18 = new menu_slimMenuItem('Pedagogia');
menu_slim_i_ID18.id='menu_slim_i_ID18';
menu_slim_i_ID18.Assign(menu_slim_MainGroupItemsGeneralStyle); //Assign styles from the general style object
menu_slim_i_ID18.Text_o='';
menu_slim_i_ID18.Text_c='';
menu_slim_i_ID18.URL='index.php?opcao=mrp&mrp=mrp_inicio';
menu_slim_i_ID18.Hint='';
menu_slim_mg_ID1.AddItem(menu_slim_i_ID18);//Add menu item to the menu group

//Create new menu item
var menu_slim_i_ID23 = new menu_slimMenuItem('Novas Tec & Comunic');
menu_slim_i_ID23.id='menu_slim_i_ID23';
menu_slim_i_ID23.Assign(menu_slim_MainGroupItemsGeneralStyle); //Assign styles from the general style object
menu_slim_i_ID23.Text_o='';
menu_slim_i_ID23.Text_c='';
menu_slim_i_ID23.URL='index.php?opcao=novas_tec&nt=nt_inicio';
menu_slim_i_ID23.Hint='';
menu_slim_mg_ID1.AddItem(menu_slim_i_ID23);//Add menu item to the menu group

//Create new menu item
var menu_slim_i_ID22 = new menu_slimMenuItem('Saidas Profissionais');
menu_slim_i_ID22.id='menu_slim_i_ID22';
menu_slim_i_ID22.Assign(menu_slim_MainGroupItemsGeneralStyle); //Assign styles from the general style object
menu_slim_i_ID22.Text_o='';
menu_slim_i_ID22.Text_c='';
menu_slim_i_ID22.URL='index.php?opcao=pedagogia&psp=psp_inicio';
menu_slim_i_ID22.Hint='';
menu_slim_mg_ID1.AddItem(menu_slim_i_ID22);//Add menu item to the menu group

//Create new menu item
var menu_slim_i_ID25 = new menu_slimMenuItem('Recreativa');
menu_slim_i_ID25.id='menu_slim_i_ID25';
menu_slim_i_ID25.Assign(menu_slim_MainGroupItemsGeneralStyle); //Assign styles from the general style object
menu_slim_i_ID25.Text_o='';
menu_slim_i_ID25.Text_c='';
menu_slim_i_ID25.URL='index.php?opcao=recreativa&rec=rec_inicio';
menu_slim_i_ID25.Hint='';
menu_slim_mg_ID1.AddItem(menu_slim_i_ID25);//Add menu item to the menu group

//Create new menu item
var menu_slim_i_ID31 = new menu_slimMenuItem('MAGA e CF');
menu_slim_i_ID31.id='menu_slim_i_ID31';
menu_slim_i_ID31.Assign(menu_slim_MainGroupItemsGeneralStyle); //Assign styles from the general style object
menu_slim_i_ID31.Text_o='';
menu_slim_i_ID31.Text_c='';
menu_slim_i_ID31.URL='index.php?opcao=maga&m_cf=maga_inicio';
menu_slim_i_ID31.Hint='';
menu_slim_mg_ID1.AddItem(menu_slim_i_ID31);//Add menu item to the menu group

//Create new menu item
var menu_slim_i_ID32 = new menu_slimMenuItem('Com. de Praxe');
menu_slim_i_ID32.id='menu_slim_i_ID32';
menu_slim_i_ID32.Assign(menu_slim_MainGroupItemsGeneralStyle); //Assign styles from the general style object
menu_slim_i_ID32.Text_o='';
menu_slim_i_ID32.Text_c='';
menu_slim_i_ID32.URL='index.php?opcao=com_praxe';
menu_slim_i_ID32.Hint='';
menu_slim_mg_ID1.AddItem(menu_slim_i_ID32);//Add menu item to the menu group


menu_slim_mg_ID1.Visibility='visible';
document.write('<div style="position:absolute; z-index:1000;" align="left">');
document.write(menu_slim_mg_ID1.ToStr()); //Print the menu to the document
document.write('</div>');
