function VER5_Check() {
var b = navigator.appName;
if (b == "Netscape") this.b = "NS";
else if (b == "Microsoft Internet Explorer") this.b = "IE";
this.v = parseInt(navigator.appVersion);
this.IE5 = (navigator.userAgent.indexOf('MSIE 5') > 0);
this.IE6 = (navigator.userAgent.indexOf('MSIE 6') > 0);
this.NS6 = (this.b == "NS" && this.v == 5);
this.NS4 = (this.b == "NS" && this.v < 5);
this.VER5 = (this.IE5 || this.IE6 || this.NS6);

}
is = new VER5_Check();
var winstat ="VER5="+is.VER5+",IE5="+is.IE5+",IE6="+is.IE6+",NS6="+is.NS6+",NS4="+is.NS4
//default settings
var navtop = 0  	//top of nav button   !!!!!!!!!!!!!!!!!
fn = "Arial"        //menu font
fs = 12              //font size
bg = "#DAD9D9"      //backcolor
fg = "#000000"      //text color
hl = "#EBEBEB"      //highlight color
ht = "#FFFFFF"      //highlight text colour
bc = "#8B2942"      //border color
mh = 20             //height of each menu item
mg = 16             //not sure
mw = 100            //width of menu
theleft=0           //menu left position - increments with each menu item column
thetop=140         //menu top position. If at top, this will equal 0
maintextcolor="#FFFFFF"
rollovercolor="#FFFFFF"
var TopOfPage = 0;
var mleft = 0
var mright = 0
var menucounter=0
var i=1;
var menudef;
var ws="";
var WriteTopComplete=false;
var WriteMainComplete=false;
var str=""
var currBtn = "";
function resumeNext(){return true;}
function WriteMain() {
	self.onerror = resumeNext; //ignore errors
	if (mainLoaded) {
		if (is.VER5) {
			var pm = this
			var d = pm.document
			var body = d.getElementsByTagName("BODY")[0]
			for (cc=1;cc<=menucounter;cc++){
				if (menudef[cc].numsubs	!= 0){
					var menudiv = d.createElement('DIV');
					menudiv.setAttribute('id','menu'+cc);
					menudiv.style.backgroundColor= menudef[cc].colour_back
					menudiv.style.position="absolute";
					menudiv.style.top= menudef[cc].topy
					if (menudef[cc].width<menudef[cc].buttonwidth) {
						ws='yes'
						menudiv.style.width= menudef[cc].buttonwidth
					} else {
						menudiv.style.width= menudef[cc].width
					}
					menudiv.style.left= menudef[cc].leftx-2
					//ws=ws+'bw='+menudef[cc].buttonwidth+',w='+menudef[cc].width+',l='+menudef[cc].leftx
					//window.status=ws
					ml = menudiv.style.left.substring(0,menudiv.style.left.indexOf("px"))*1	
					mw = menudiv.style.width.substring(0,menudiv.style.width.indexOf("px"))*1
					mr = (ml*1)+(mw*1)
					if (mr>page_width){
						menudiv.style.left = ml-(mr-page_width)
						var newml = ml-(mr-page_width)
					}
					//ws='ml='+ml+',mw='+mw+',mr='+mr+',p_w='+page_width+',cc='+cc
					//window.status=ws
					//if (menudiv.style.width)
					menudiv.style.margin = 0
					menudiv.style.borderLeft= 'solid '+menudef[cc].border+' 1px'
					menudiv.style.borderRight= 'solid '+menudef[cc].border+' 1px'	
					menudiv.style.borderBottom = 'solid '+menudef[cc].border+' 1px'
					menudiv.style.visibility="hidden";
					if (is.NS6) {
						eval("menudiv.onmouseout = function (e) {HideSubMenu(e,"+cc+")}")			
					} else if (is.IE6 || is.IE5 ) {
						eval("menudiv.onmouseout = function () {HideSubMenu(this.event,"+cc+")}")		
					}
					for (ss=1;ss<=menudef[cc].numsubs;ss++) {
						var itemdiv = d.createElement('DIV');
						itemdiv.setAttribute('id','submenu'+cc+ss);
						itemdiv.style.fontFamily = menudef[cc].font
						itemdiv.style.fontSize = menudef[cc].fontsize					
						itemdiv.style.color = menudef[cc].colour_text
						if (ss!=1) {
							itemdiv.style.borderTop= 'dotted #999999 1px'
						} else {
							//itemdiv.style.borderTop = 'solid '+menudef[cc].border+' 1px'
						}
						if(ss==menudef[cc].numsubs){
							itemdiv.style.borderBottom = 'solid '+menudef[cc].border+' 1px'
						}
						//itemdiv.style.borderLeft= 'solid '+menudef[cc].border+' 1px'
						//itemdiv.style.borderRight= 'solid '+menudef[cc].border+' 1px'						
						if (is.IE6) itemdiv.style.cursor="pointer"
						itemdiv.style.height = menudef[cc].height
						itemdiv.style.maxHeight = menudef[cc].height
						itemdiv.style.margin = 0
						if(is.IE5||is.IE6){
							itemdiv.style.padding = 3
                        } else {
							itemdiv.style.paddingLeft = 3
							itemdiv.style.paddingTop = 1
							itemdiv.style.paddingBottom = 1
							itemdiv.style.lineHeight = 2
                        }
						mlink = menudef[cc][ss].substring(menudef[cc][ss].indexOf("||")+2)
						if (is.NS6) {
							itemdiv.setAttribute('onMouseOver',"itemMouseOver('"+cc+"','"+ss+"')");
							itemdiv.setAttribute("onMouseOut","itemMouseOut('"+cc+"','"+ss+"')");	
							itemdiv.setAttribute("onMouseDown","this.location.href = '"+mlink+"'");	
						} else if (is.IE6 || is.IE5 ) {
							eval("itemdiv.onmouseover = function () {itemMouseOver('"+cc+"','"+ss+"')}")
							eval("itemdiv.onmouseout = function () {itemMouseOut('"+cc+"','"+ss+"')}")				
							eval("itemdiv.onmousedown = function () {itemMouseClick('"+cc+"','"+mlink+"')}")				
							//eval("itemdiv.onmousedown = function () {this.location.href = '"+mlink+"'}")			
						}
						mtext = menudef[cc][ss].substring(0,menudef[cc][ss].indexOf("||"))		
						var newtext = d.createTextNode(mtext)
						itemdiv.appendChild(newtext)
						menudiv.appendChild(itemdiv)
					}
					//ws=ws+' cc='+cc
					//window.status=ws
					if (is.NS6) {
						menudiv.style.height = (menudef[cc].numsubs*menudef[cc].height)+(menudef[cc].numsubs*3)
					} else if (is.IE6 || is.IE5 ) {
						menudiv.style.height = menudef[cc].numsubs*menudef[cc].height
					}
					body.appendChild(menudiv)
				}
			}		
		} else {
			//alert("main - NS4")
		}
        WriteMainComplete=true;
		//var TPid = setInterval("setTopOfPage()",500)         
	} else {
		// try again later
		var TId = setTimeout('WriteMain()',200)
	}
	self.onerror = null; // cancel error handling
}
function setTopOfPage() {
	if (is.IE6 || is.IE5 ) {
		TopOfPage=this.document.body.scrollTop
	}
	if (is.NS6) {
		TopOfPage=this.window.pageYOffset
	}	
}
function WriteTop() {
alert("Write Top")
	if(WriteTopComplete!=true){
		self.onerror = resumeNext; //ignore errors
		if (is.NS6){
			page_height = window.innerHeight;
			page_width = window.innerWidth-20;
		}else if (is.IE6 || is.IE5 ) {
			page_height = document.body.clientHeight;
			page_width = document.body.clientWidth-20;
		}
		
		if (is.IE6 || is.NS6 || is.IE5) {
			BuildMenuArray() 
			var d = document
			var body = d.getElementsByTagName("BODY")[0]

			for (cc=1;cc<=menucounter;cc++){
				if (navtop==""){navtop = (page_height-menudef[cc].buttonheight)}
				var navdiv = d.createElement('DIV');
				navdiv.setAttribute('id','nav'+cc);
				navdiv.style.position="absolute";
				navdiv.style.backgroundColor=menudef[cc].colour_back;
				navdiv.style.height= menudef[cc].height;
				navdiv.style.width=menudef[cc].buttonwidth;
				navdiv.style.top=navtop;
				navdiv.style.left=(menudef[cc].leftx);	
				navdiv.style.zIndex=100
				if (is.NS6) {
					navdiv.setAttribute('onMouseOver','ShowMenu('+cc+')');
					navdiv.setAttribute('onMouseOut','HideMenu(event,'+cc+')');			
				} else if (is.IE6 || is.IE5 ) {
					eval("navdiv.onmouseover = function () {ShowMenu("+cc+")}")
					eval("navdiv.onmouseout = function () {HideMenu(event,"+cc+")}")
					eval("navdiv.onclick = function () {ButtonDown("+cc+")}")			
				}			
				if (menudef[cc].graphicStatic=="") {
	 				if (menudef[cc].border!='') {
						navdiv.style.borderLeft= 'solid '+menudef[cc].border+' 1px'
						navdiv.style.borderBottom= 'solid '+menudef[cc].border+' 1px'
						navdiv.style.borderTop= 'solid '+menudef[cc].border+' 1px'	
						if (cc==menucounter){navdiv.style.borderRight= 'solid '+menudef[cc].border+' 1px'}						
						if (is.IE6 || is.IE5 ) {navdiv.style.top=navtop;}else{navdiv.style.top=navtop-2;}
					}
					navdiv.style.fontFamily = menudef[cc].font
					navdiv.style.fontSize = menudef[cc].fontsize					
					navdiv.style.color = menudef[cc].colour_text	
					navdiv.style.textAlign='center';
					var nava = d.createElement('A');
					nava.setAttribute('href',menudef[cc].pagelink);
					nava.style.textDecoration='none';

					var newtext = d.createTextNode(menudef[cc].name)		
					nava.appendChild(newtext)
					navdiv.appendChild(nava)			
				} else {
					var nava = d.createElement('A');
					nava.setAttribute('href',menudef[cc].pagelink);
					nava.style.textDecoration='none';
					var navimg = d.createElement('IMG');
					navimg.setAttribute('src',menudef[cc].graphicStatic);
					navimg.setAttribute('name','navimg'+cc)
					navimg.setAttribute('border',0)
					nava.appendChild(navimg)
					navdiv.appendChild(nava)
				}
				body.appendChild(navdiv)
				str+="\n"+navdiv.id
	                        //alert(navdiv.id)
			}
		} else {WriteTopNS4()}
		WriteTopComplete=true;
		//WriteMain();
		//alert(str)
		self.onerror = null; // cancel error handling
	}
}
function WriteTopNS4() {
		BuildMenuArray()
		var page_height = window.innerHeight;
		var page_width = window.innerWidth;		
		var menuwidth=0;
		var menuheight=0;
		var menuleft=0;
		var x = document.layers.NS4MenuLayer; 
		var ns4menutext = '';
		for (cc=1;cc<=menucounter;cc++){ 
			menuwidth=menuwidth+(menudef[cc].buttonwidth*1)
			if (cc==1) {
				menuheight=menudef[cc].height;
				menuleft=menuleft+(menudef[cc].leftx*1)
			}
		}
		ns4menutext=ns4menutext+'<TABLE WIDTH="'+(menuwidth+menuleft)+'" height="'+menuheight+'" cellpadding="0" cellspacing="0" border="0" style="border-collapse: collapse" bordercolor="#111111">'
		ns4menutext=ns4menutext+"<TR>"
		ns4menutext=ns4menutext+"<TD width="+menuwidth+" bgcolor=#FFFFFF>"
		for (cc=1;cc<=menucounter;cc++){ 
			strOnclick = "" //!!!!!!!!!!!!!!!should be bgimage
			if (strOnclick!="") { strOnclick = " onclick=\"bgimage.src='"+menudef[cc].graphicBackground+"';\"" }
			strNNmo = " onmouseover=\"ShowMenu("+cc+")\" onmouseout=\"HideMenu('',"+cc+")\""
			strHref = 'href="'+menudef[cc].pagelink+'"'
			if (menudef[cc].graphicStatic=="") {
				strButton = menudef[cc].name;
			} else {
				strButton = '<img name="navbtn'+cc+'" src="'+menudef[cc].graphicStatic+'" width="'+menudef[cc].buttonwidth+'" height="'+menudef[cc].height+'" border=0>'
			}
			ns4menutext=ns4menutext+"<a "+strHref+strOnclick+strNNmo+">"+strButton+"</a>";
			//ns4menutext=ns4menutext+'<img src="images/invisible.gif" width="1" height="'+menudef[cc].height+'" border=0>'
		}
		ns4menutext=ns4menutext+"</TD>"
		ns4menutext=ns4menutext+'<td width="82"><img border="0" src="images/end_button.gif" width="82" height="20"></td>'
                ns4menutext=ns4menutext+"</TR></TABLE>"
		//prompt('',ns4menutext)
		with (x.document){
			//open()
			write(ns4menutext)
			close()
		}
                xtemp=((page_height-menuheight)-4)
                //window.status='ph='+page_height+',mh='+menuheight+',xpos='+xtemp
		x.moveTo(menuleft,(page_height-menuheight)-0)  //!!!!!!!
}
function ShowMenu(menunum) {
self.onerror = resumeNext; //ignore errors
	if (is.VER5) {
		if (is.IE6 || is.IE5 ) {
			TopOfPage=this.document.body.scrollTop
		}
		if (is.NS6) {
			TopOfPage=this.window.pageYOffset
		}	
		//if (menunum!=7) { //JLL only - left nav
			if (menudef[menunum].graphicStatic=="") {
				document.getElementById('nav'+menunum).style.backgroundColor = menudef[menunum].highlight
			} else {
			
				if (menudef[menunum].graphicMouseover!=""){
					obj = document.getElementById('nav'+menunum).childNodes[0].childNodes[0]
					obj.src = menudef[menunum].graphicMouseover
					//window.status=obj.name
				}	
			}
		//}
		if (menudef[menunum].numsubs!=0){
				if (is.VER5) {
					var pm = parent.main
					var d = pm.document
					var m = d.getElementById('menu'+menunum)
					m.style.top=TopOfPage;
					m.style.visibility="visible";
				}
		}		
	} else {
		if (menudef[menunum].graphicStatic=="") {
			//ns4 - no image
		} else {
			x = eval("document.layers.NS4MenuLayer.document.images.navbtn"+menunum)
			x.src=menudef[menunum].graphicMouseover
		}
	}
self.onerror = null; // cancel error handling
}

function HideMenu(evt,menunum) {
self.onerror = resumeNext; //ignore errors
	if (is.VER5) {

			if (menudef[menunum].graphicStatic=="") {
				document.getElementById('nav'+menunum).style.backgroundColor = menudef[menunum].colour_back
			} else {
				if (menudef[menunum].graphicMouseover!=""){
					if (menunum!=currBtn) {
						obj = document.getElementById('nav'+menunum).childNodes[0].childNodes[0]
						obj.src = menudef[menunum].graphicStatic
					}
				}
			}
		
			if (menudef[menunum].numsubs!=0){
				if (is.VER5) {
					var pm = parent.main
					var d = pm.document
					var m = d.getElementById('menu'+menunum)
					var n = document.getElementById('nav'+menunum)
					mleft = n.style.left.substring(0,m.style.left.length-2)*1
					mwidth = n.style.width.substring(0,n.style.width.length-2)*1
					mright=(mleft+mwidth)
					if (is.NS6){
						//window.status=('mnum='+menunum+',evt.pageX='+evt.pageX+',evt.pageY='+evt.pageY+',yoff='+window.pageXOffset+',mleft='+mleft+',m.style.left='+m.style.left)
						//window.status=('evt.pageX='+evt.pageX+',evt.pageY='+evt.pageY+',menu_top+2='+(menu_top+2)+',mleft='+mleft+',mright='+mright)
						if (evt.pageX<=mleft||evt.pageX>=mright){m.style.visibility="hidden";}
						if (evt.pageY<(navtop+2)){m.style.visibility="hidden";}
					}else{
						//window.status=('evt.x='+evt.x+',evt.y='+evt.y+',mleft='+mleft+',mright='+mright)
						if ((evt.x<=mleft||evt.x>=mright)&&evt.x>-1){m.style.visibility="hidden";}
						if (evt.y<(navtop+2)){m.style.visibility="hidden";}
						
					}	
				}
			}	
	} else {
		if (menudef[menunum].graphicStatic=="") {
			//ns4 - no image
		} else {
			//ns4 - image
			x = eval("document.layers.NS4MenuLayer.document.images.navbtn"+menunum)
			x.src=menudef[menunum].graphicStatic
		}	
	}
self.onerror = null; // cancel error handling
}

function ShowSubMenu(){
// won't be needed
}
function HideSubMenu(evt,menunum){
self.onerror = resumeNext; //ignore errors
	if (is.VER5) {
		if (is.IE6 || is.IE5 ) {
			TopOfPage=this.document.body.scrollTop
		}
		if (is.NS6) {
			TopOfPage=this.window.pageYOffset
		}		
		var pm = parent.main
		var d = pm.document
		var m = d.getElementById('menu'+menunum)

		mleft = m.style.left.substring(0,m.style.left.length-2)*1
		mwidth = m.style.width.substring(0,m.style.width.length-2)*1
		mright=(mleft+mwidth)
		mheight = (m.style.height.substring(0,m.style.height.length-2)*1)+TopOfPage
		mtop = menudef[menunum].topy+TopOfPage
		//window.status=('evt.x='+evt.x+',evt.y='+evt.y+',mleft='+mleft+',mright='+mright)
		if (is.NS6){
			//window.status="mheight="+mheight+",mtop="+mtop+",evt.pageY="+evt.pageY
			if (evt.pageX<=mleft||evt.pageX>=mright){m.style.visibility="hidden";}
			if (evt.pageY<mtop||evt.pageY>=mheight){m.style.visibility="hidden";}
		}else{
			//window.status="mheight="+mheight+",mtop="+mtop+",evt.y="+evt.y
			if ((evt.x<=mleft||evt.x>=mright)&&evt.x>-1){m.style.visibility="hidden";}
			if ((evt.y+TopOfPage)<mtop||(evt.y+TopOfPage)>=mheight){m.style.visibility="hidden";}	
		}
	}
self.onerror = null; // cancel error handling	
}
function ButtonDown(menunum) {
	currBtn = menunum;
	if (menudef[menunum].graphicMousedown!=""){
			allButtonsOff()
			obj = document.getElementById('nav'+menunum).childNodes[0].childNodes[0]
			obj.src = menudef[menunum].graphicMousedown
	}
}
function allButtonsOff() {
	for (cc=1;cc<=menucounter;cc++){
		obj = document.getElementById('nav'+cc).childNodes[0].childNodes[0]
		obj.src = menudef[cc].graphicStatic
	}
}
function itemMouseClick(menunum,mlink){
	currBtn = menunum;
	if (menudef[menunum].graphicMousedown!=""){
		allButtonsOff()
		obj = document.getElementById('nav'+menunum).childNodes[0].childNodes[0]
		obj.src = menudef[menunum].graphicMousedown
		//window.status=obj.name
	}
	this.location.href = mlink
}
function itemMouseOut(menunum,submenunum){
	var pt = parent.main
	var d = pt.document
	var m = d.getElementById('submenu'+menunum+submenunum)
	m.style.backgroundColor= menudef[menunum].colour_back
}
function itemMouseOver(menunum,submenunum){
	var pt = parent.main
	var d = pt.document
	var m = d.getElementById('submenu'+menunum+submenunum)
	m.style.backgroundColor= menudef[menunum].highlight
}
function dimension (name_str, n0, n1, n2, n3){
   var numDimens = dimension.arguments.length - 1;
   var code = name_str + " = new Array();";
   eval (code);

   for (var i = 1; i <= n0; i++) // first index is 1
   {
      var newName = name_str + "[" + i + "]";      
      if (numDimens > 1)
      {
         code = "dimension ('" + newName + "'";
         for (var j = 2; j <= numDimens; j++)
            code += ", " + dimension.arguments[j];
         code += ");";
         eval (code);
      }
   }  
} 
function main(AbsMenuDisplayName,AbsMenuLeftPos, AbsSubMenuWidth, AbsSubMenuHeight, AbsMenuColour, AbsTextColour, AbsMenuFont, AbsMenuFontSize, AbsHighlightColour, AbsMenuBorder, AbsMenuYPosition, AbsMenuGraphicStatic, AbsMenuGraphicMouseOver, AbsMenuGraphicDown, AbsMenuGraphicBackground, AbsMenuGraphicWidth, AbsMenuGraphicHeight, AbsMenuPageLink){
	  this.id = i
	  this.name = AbsMenuDisplayName
	  if(this.name == '') this.name = ''
	  this.leftx = AbsMenuLeftPos
	  if(this.leftx == '[') this.leftx = theleft
	  this.width = AbsSubMenuWidth*1
	  if(this.width == '') this.width = mw
	  this.height = AbsSubMenuHeight
	  if(this.height == '') this.height = mh	  
	  this.colour_back = AbsMenuColour
	  if(this.colour_back == '') this.colour_back = bc
	  this.colour_text = AbsTextColour
	  if(this.colour_text == '') this.colour_text = maintextcolor
	  this.font = AbsMenuFont

	  if(this.font == '') this.font = fn
	  this.fontsize = AbsMenuFontSize
	  if(this.fontsize == '') this.fontsize = fs
	  this.highlight = AbsHighlightColour
	  if(this.highlight == '') this.highlight = hl
	  this.border = AbsMenuBorder
	  if(this.border == '') this.border = bc
	  this.topy = AbsMenuYPosition*1
	  if(this.topy == '') this.topy = thetop
	  this.graphicStatic = AbsMenuGraphicStatic
	  if(this.graphicStatic == '') this.graphicStatic = ''
	  this.graphicMouseover = AbsMenuGraphicMouseOver
	  if(this.graphicMouseover == '') this.graphicMouseover = ''	  
	  this.graphicMousedown = AbsMenuGraphicDown
	  if(this.graphicMousedown == '') this.graphicMousedown = ''	  
	  this.graphicBackground = AbsMenuGraphicBackground
	  if(this.graphicBackground == '') this.graphicBackground = ''	  
	  this.buttonwidth = AbsMenuGraphicWidth*1  // !!!!!!!!!!!need to add this to the .max navigation entity
	  if(this.buttonwidth == '') this.buttonwidth = ''	 
	  this.buttonheight = AbsMenuGraphicHeight  // !!!!!!!!!!!need to add this to the .max navigation entity
	  if(this.buttonheight == '') this.buttonheight = ''	 	  	  
	  this.pagelink = AbsMenuPageLink  
	  if(this.pagelink == '') this.pagelink = ''	  
}


function showMenu(a,b,c){
if (!mainloaded || typeof(this.bodyLoaded) == "undefined" ) return;
showHide(a,b,c);

}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_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=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function getUrl(url)
{
	// alert("Hello Mac user - going to " + url);
	//top.frames["main"].location.href = url;
	location.href = url;
	return false;
}

function WriteMain() { mainloaded=true; return true; }
function WriteTop() { return true; }

function handleError() {
	return true;
}

function invertPannel(panel)
{

//Invert Arrow & Div
if(document.getElementById(panel + "_arrow").src == "http://[#request.server_name]/library/133180/publish/Asset/332840_arrow_up.gif")
{
	document.getElementById(panel + "_arrow").src = "http://[#request.server_name]/library/133180/publish/Asset/332839_arrow_down.gif";
	document.getElementById("div_" + panel).style.visibility == 'hidden'
	document.getElementById("div_" + panel).style.display = 'none';
} else {
	document.getElementById(panel + "_arrow").src = "http://[#request.server_name]/library/133180/publish/Asset/332840_arrow_up.gif";
	document.getElementById("div_" + panel).style.visibility == 'visible'
	document.getElementById("div_" + panel).style.display = 'block';
}

}

