
		var stayFolded=false;
		var slidingMenus = 5;

		/************************************************************************************
		Browsercheck
		************************************************************************************/
		function lib_bwcheck() { //Browsercheck (needed)
			this.ver = navigator.appVersion;
			this.agent = navigator.userAgent;
			this.dom = document.getElementById ? 1 : 0;
			this.opera5 = (navigator.userAgent.indexOf("Opera") > -1 && document.getElementById) ? 1 : 0;
			this.ie5 = (this.ver.indexOf("MSIE 5") > -1 && this.dom && !this.opera5) ? 1 : 0;
			this.ie6 = (this.ver.indexOf("MSIE 6") > -1 && this.dom && !this.opera5) ? 1 : 0;
			this.ie7 = (this.ver.indexOf("MSIE 7") > -1 && this.dom && !this.opera5) ? 1 : 0;
			this.ie4 = (document.all && !this.dom && !this.opera5) ? 1 : 0;
			this.ie = this.ie4 || this.ie5 || this.ie6 || this.ie7;
			this.mac = this.agent.indexOf("Mac") > -1;
			this.ns6 = (this.dom && parseInt(this.ver) >= 5) ? 1 : 0;
			this.ns4 = (document.layers && !this.dom) ? 1 : 0;
			this.bw = (this.ie7 || this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5);
			return this;
		}
		var bw = new lib_bwcheck();


		/***************************************************************************
		You shouldn't have to change anything below this
		****************************************************************************/
		//sliding navigation
		if(document.layers)
		//NS4 resize fix...
		{
			scrX= innerWidth;
			scrY= innerHeight;
			onresize= function(){if(scrX!= innerWidth || scrY!= innerHeight){history.go(0)} }
		}

		//sliding navigation
		if(navigator.userAgent.indexOf('Opera')>-1 && document.getElementById)
		//Opera 5 resize fix.
		{
			scrX= innerWidth;
			scrY= innerHeight;
			document.onmousemove= function(){
				if(scrX<innerWidth-10 || scrY<innerHeight-10 || scrX>innerWidth+10 || scrY>innerHeight+10){
					scrX = innerWidth;
					scrY = innerHeight;
					foldInit();
				}
			};
		}

		/************************************************************************************
		Making cross-browser objects for sliding navigation
		************************************************************************************/
		function makeMenu(obj,nest)
		{
			nest=(!nest) ? "":'document.'+nest+'.';
		   	this.css= bw.dom ? document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+"document.layers." +obj):0;
			this.elm= bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0;
			this.ref= bw.dom || bw.ie4? document:bw.ns4?eval(nest+"document.layers." +obj+".document"):0;
			this.x= bw.ns4?this.css.left:bw.opera5?this.css.pixelLeft:this.elm.offsetLeft;
			this.y= bw.ns4?this.css.top:bw.opera5?this.css.pixelTop:this.elm.offsetTop;
			this.height= bw.ns4?this.ref.height:bw.opera5?this.css.pixelHeight:this.elm.offsetHeight;
			this.hideIt= sliding_hideIt;
			this.showIt= sliding_showIt;
			this.moveIt= sliding_moveIt;
			this.vis=sliding_vis;
			this.status= 0;
			return this;
		}

		// A unit of measure that will be added when setting the position of a layer.
		var px = bw.ns4||window.opera?"":"px";

		function sliding_showIt()
		{
			this.css.visibility="visible";
			this.status=1;
		}
		function sliding_hideIt()
		{
			this.css.visibility="hidden";
			this.status=0;
		}
		function sliding_vis()
		{
			if(this.css.visibility=="hidden" || this.css.visibility=="hide")
				return true;
		}
		function sliding_moveIt(x,y)
		{
			this.x=x;
			this.y=y;
			/*this.css.left=this.x+px;*/
			this.css.top=this.y+px;
			
			
			var test = document.getElementById("LeftButtonAdv").style;
				test.top = (this.y + 50) + 'px';
			
			
		}
		
		
		/************************************************************************************
		Initiating the page. Just add to the arrays here to get more menu items
		and add divs in the page for sliding nav and unscroll.
		************************************************************************************/
		var SlidingTempOnload = null;
		if (window.onload && window.onload != null){
			SlidingTempOnload = window.onload;
		}
		function initsliding()
		{
			if(SlidingTempOnload != null){
				SlidingTempOnload();
			}
			oTop=new Array()
			for(t=0;t<=slidingMenus;t++)
			{
				toplayer = t + 1;
				oTop[t]=new makeMenu('divTop'+toplayer,'divCont');
			}
		    oSub=new Array()
			for(s=0;s<=slidingMenus;s++)
			{
				sublayer = s + 1;
				oSub[s]=new makeMenu('divSub'+sublayer,'divCont.document.divTop'+sublayer);
			}
		    for(i=0;i<oSub.length;i++)
			{
				oSub[i].hideIt();
			}
		    for(i=1;i<oTop.length;i++)
			{
				oTop[i].moveIt(0,oTop[i-1].y+oTop[i-1].height);
			}
			if(bw.dom){
				document.getElementById("divCont").style.visibility="visible";
			}
			else if(bw.ie4){
				document.all[divCont].style.visibility="visible";
			}
			else {
				document.layers.divCont.visibility="visible";
			}
			ExpandCallerTopDiv();
			return true;
		}

		/************************************************************************************
		This is the function that changes the sub menus to folded or unfolded state on sliding navigation.
		************************************************************************************/
		function menu(num)
		{
			if(bw.bw)
			{
		    	if(!stayFolded)
				{
		        	for(i=0;i<oSub.length;i++)
					{
		            	if(i!=num)
							oSub[i].hideIt();
		           	}
		           	for(i=1;i<oTop.length;i++)
					{
		           		oTop[i].moveIt(0,oTop[i-1].y+oTop[i-1].height);
						


						
		           	}
		        }
		        oSub[num].vis()?oSub[num].showIt():oSub[num].hideIt();
		        for(i=1;i<oTop.length;i++)
				{
		        	if(!oSub[i-1].vis())
						oTop[i].moveIt(0,oTop[i-1].y+oTop[i-1].height+oSub[i-1].height);
		            else
						oTop[i].moveIt(0,oTop[i-1].y+oTop[i-1].height);
		         }
			}
		}
		/**************************************************************************************
		Mouseover functions
		***************************************************************************************/
		function Sliding_swapImgRestore()
		{ //v3.0
		  	var i,x,a=document.Sliding_sr;
		  	for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)
				x.src=x.oSrc;
		}
		function Sliding_preloadImages()
		{ //v3.0
		  	var d=document;
		  	if(d.images)
		  	{
		  		if(!d.Sliding_p)
					d.Sliding_p=new Array();
		    	var i,j=d.Sliding_p.length,a=Sliding_preloadImages.arguments;
				for(i=0; i<a.length; i++)
		    		if (a[i].indexOf("#")!=0)
					{
						d.Sliding_p[j]=new Image;
						d.Sliding_p[j++].src=a[i];
					}
			}
		}
		function Sliding_findObj(n, d)
		{ //v4.01
		  	var p,i,x;
		  	if(!d)
		  		d=document;
			if((p=n.indexOf("?"))>0&&parent.frames.length)
			{
		    	d=parent.frames[n.substring(p+1)].document;
				n=n.substring(0,p);
			}
		  	if(!(x=d[n])&&d.all)
				x=d.all[n];
			for (i=0;!x&&i<d.forms.length;i++)
				x=d.forms[i][n];
		  	for(i=0;!x&&d.layers&&i<d.layers.length;i++)
				x=Sliding_findObj(n,d.layers[i].document);
		  	if(!x && d.getElementById)
				x=d.getElementById(n);
			return x;
		}
		function Sliding_swapImage()
		{ //v3.0
			var i,j=0,x,a=Sliding_swapImage.arguments;
			document.Sliding_sr=new Array;
			for(i=0;i<(a.length-2);i+=3)
		   		if ((x=Sliding_findObj(a[i]))!=null)
				{
					document.Sliding_sr[j++]=x;
					if(!x.oSrc)
						x.oSrc=x.src;
					x.src=a[i+2];
				}
		}
		//Initiating the menus onload, if it's a 4.x+ browser.
		if(bw.bw)
			onload = initsliding;
