vbsi2gsn=xppr('../../images/buttons/btsi2gs_0.png');
vbsi2gso=xppr('../../images/buttons/btsi2gs_1.png');
vbsi2gsc=xppr('../../images/buttons/btsi2gs_2.png');
vb3i2gsn=xppr('../../images/buttons/bt3i2gs_0.png');
vb3i2gso=xppr('../../images/buttons/bt3i2gs_1.png');
vb3i2gsc=xppr('../../images/buttons/bt3i2gs_2.png');
vbri2gsn=xppr('../../images/buttons/btri2gs_0.png');
vbri2gso=xppr('../../images/buttons/btri2gs_1.png');
vbri2gsc=xppr('../../images/buttons/btri2gs_2.png');
vb6i2gsn=xppr('../../images/buttons/bt6i2gs_0.png');
vb6i2gso=xppr('../../images/buttons/bt6i2gs_1.png');
vb6i2gsc=xppr('../../images/buttons/bt6i2gs_2.png');
vb2i2gsn=xppr('../../images/buttons/bt2i2gs_0.png');
vb2i2gso=xppr('../../images/buttons/bt2i2gs_1.png');
vb2i2gsc=xppr('../../images/buttons/bt2i2gs_2.png');
var arrowChar='&raquo;';
var btIdPref="vb",pressedItem=-1;  // 12/1/09: pressedItem was "2i2gs" (Changed by GST)

function xppr(im) {
	var i=new Image;
	i.src=vbImgPath+"bt"+im;
	return i;
}
function xpe(id) {
	x=id.substring(0,id.length-1);
	xe=id.substring(id.length-1,id.length);
	
	if(pressedItem==x&&(xe=="n"||xe=="o")) {
		return;
	}
	if(xe=="c") {
		if(pressedItem!=-1) {
			document[btIdPref+pressedItem].src=eval(btIdPref+pressedItem+"n"+".src");
		}
		pressedItem=x;
	}
	if(document[btIdPref+x]) {
		document[btIdPref+x].src=eval(btIdPref+id+".src");
	}
}

var hideTimeout=300;
var menuContId="xpMenuCont";
var ulIdPref="vbUL_";
var imgIdPref="xpi_";

function xpinit() {
	I=document.getElementById;
	jj=lll=window.ji&&I;
	j1=jj&&document.readyState;
	jI=document.all&&document.all.item&&!jj;
	ll1=document.layers;
	lli=I&&navigator.appName=="Netscape";
	document.write("<div id=\""+menuContId+"\" ></div>");
	var ULs=document.getElementsByTagName("UL");
	for(var i=0,cnt=ULs.length; i<cnt; i++) {
		if(ULs[i].id&&ULs[i].id.substring(0,ulIdPref.length)==ulIdPref&&!(ULs[i].parentNode&&ULs[i].parentNode.parentNode&&ULs[i].parentNode.parentNode.id.substring(0,ulIdPref.length)==ulIdPref)) {
			var A=document.getElementById(ULs[i].id+"a");
			if(A) {
				A.style.display="none";
			}
			l11(ULs[i],0,0);
		}
	}
}

xpinit();

function llj(o) {
	var w=jj&&!j1?o.style.pixelWidth:ll1?o.clip.width:o.offsetWidth;
	var h=jj&&!j1?o.style.pixelHeight:ll1?o.clip.height:o.offsetHeight;
	return {x:w,y:h};
}

function xpClientSize() {
	var x=0,y=0,w=0,h=0,doc=document,win=window;
	var cond=(!doc.compatMode||doc.compatMode=="CSS1Compat")&&doc.documentElement;
	if(cond&&doc.documentElement.clientHeight) {
		h=doc.documentElement.clientHeight;
	}
	else if(doc.body&&doc.body.clientHeight) {
		h=doc.body.clientHeight;
	}
	else if(xpDef(win.innerWidth,win.innerHeight,doc.width)) {
		h=win.innerHeight;
		if(doc.width>win.innerWidth) {
			h-=16;
		}
	}
	if(cond&&doc.documentElement.clientWidth) {
		w=doc.documentElement.clientWidth;
	}
	else if(doc.body&&doc.body.clientWidth) {
		w=doc.body.clientWidth;
	}
	else if(xDef(win.innerWidth,win.innerHeight,doc.height)) {
		w=win.innerWidth;
		if(doc.height>win.innerHeight) {
			w-=16;
		}
	}
	if(win.document.documentElement&&win.document.documentElement.scrollLeft) {
		x=win.document.documentElement.scrollLeft;
	}
	else if(win.document.body&&xpDef(win.document.body.scrollLeft)) {
		x=win.document.body.scrollLeft;
	}
	if(win.document.documentElement&&win.document.documentElement.scrollTop) {
		y=win.document.documentElement.scrollTop;
	}
	else if(win.document.body&&xpDef(win.document.body.scrollTop)) {
		y=win.document.body.scrollTop;
	}
	return {x:x,y:y,w:w,h:h};
}

function xpDef() {
	for(var i=0; i<arguments.length; ++i) {
		if(typeof arguments[i]=="undefined") {
			return false;
		}
	}
	return true;
}

function xppos(obj) {
	var l=0,t=0;
	while(obj) {
		l+=obj.offsetLeft;
		t+=obj.offsetTop;
		obj=obj.offsetParent;
	}
	if(document.body) {
		with(document) {
			if(body.leftMargin) {
				l-=body.leftMargin;
			}
			if(body.topMargin) {
				t-=body.topMargin;
			}
		}
	}
	return {x:l,y:t};
}

function l11(ulParent,iParent,level) {
	var menuCont=document.getElementById(menuContId);
	var l1i=document.createElement("div");
	menuCont.appendChild(l1i);
	var l1j=document.createElement("table");
	l1i.appendChild(l1j);
	l1i.id=ulParent.id+"tbl";
	l1i.className=ulParent.className;
	l1i.style.position="absolute";
	l1i.iParent=iParent;
	l1i.level=level;
	l1i.style.zIndex=9+l1i.level;
	l1j.cellSpacing=0;
	l1i.onmouseover=function() {
		xpsmover(this);
	};
	l1i.onmouseout=function() {
		xpsmout(this);
	};

	l1i.l1I=function() {
		for(var j=0; j<this.childNodes[0].rows.length;j++) {
			p=this.childNodes[0].rows[j];
			if(p.tagName=="TR") {
				p.className=p.className.replace("over","");
				if(p.className.indexOf("popup")<0) {
					p.clrOverImg();
				}
			}
		}
	};
	l1i.smShown=0;
	for(var i=0,cntLI=ulParent.childNodes.length; i<cntLI; i++) {
		var l1l=ulParent.childNodes[i];
		if(l1l.tagName=="LI") {
			var jl=l1j.insertRow(-1);
			jl.menu=l1i;
			jl.setPopup=function() {
				this.className+=" popup";
			};
			jl.clrPopup=function() {
				this.className=this.className.replace("popup","");
				if(this.className.indexOf("over")<0) {
					this.clrOverImg();
				}
			};
			jl.clrOverImg=function() {
				if(this.Img) {
					this.Img.style.display="inline";
				}
				if(this.ImgOver) {
					this.ImgOver.style.display="none";
				}
				if(this.ImgArrow) {
					this.ImgArrow.style.display="inline";
				}
				if(this.ImgArrowOver) {
					this.ImgArrowOver.style.display="none";
				}
			};
			jl.className=l1l.className;

			var InnerAnchor=0;
			jl.Img=null;
			jl.ImgOver=null;
			var InnerUl=0;
			jl.ImgArrow=null;
			jl.ImgArrowOver=null;
			for(var j=0; j<l1l.childNodes.length;j++) {
				if(l1l.childNodes[j].tagName=="A") {
				InnerAnchor=l1l.childNodes[j];
			}

			else if(l1l.childNodes[j].tagName=="IMG") {
				if(!InnerAnchor) {
					if(!jl.Img) {
						jl.Img=l1l.childNodes[j];
					}
					else {
						jl.ImgOver=l1l.childNodes[j];
					}
				}
				else {
					if(!jl.ImgArrow) {
						jl.ImgArrow=l1l.childNodes[j];
					}
					else {
						jl.ImgArrowOver=l1l.childNodes[j];
					}
				}
			}
			else if(l1l.childNodes[j].tagName=="UL") {
				InnerUl=l1l.childNodes[j];
			}
		}
		if(InnerAnchor||InnerUl||jl.ImgArrow) {
			var llI=jl.insertCell(-1);
			var ij=jl.insertCell(-1);
			var iI=jl.insertCell(-1);
			llI.style.borderRightWidth="0px";
			ij.style.borderRightWidth="0px";
			ij.style.borderLeftWidth="0px";
			iI.style.borderLeftWidth="0px";
			llI.style.paddingRight="4px";
			ij.style.paddingRight="4px";
			ij.style.paddingLeft="4px";
			iI.style.paddingLeft="4px";
			if(jl.Img) {
				llI.appendChild(jl.Img);
			}
			else {
				llI.innerHTML="&nbsp;";
			}
			if(jl.ImgOver) {
				jl.ImgOver.style.display="none";
				llI.appendChild(jl.ImgOver);
			}
			if(InnerAnchor) {
				var newText=document.createElement("SPAN");
				newText.innerHTML=InnerAnchor.innerHTML;
				if(InnerAnchor.href.indexOf(".pdf")>=0&&document.all) {
					ij.appendChild(newText);
				}
				else {
					ij.appendChild(InnerAnchor);
					InnerAnchor.onclick=function() {
						return false;
					};
				}
				jl.linkHref=InnerAnchor.href;
				jl.linkTarget=InnerAnchor.target;
				jl.onclick=function() {
					if(this.linkHref) {
						open(this.linkHref,this.linkTarget?this.linkTarget:"_self");
					}
				};
			}
			else {
				ij.innerHTML="&nbsp;";
			}
			jl.onmouseover=function() {
				this.menu.l1I();
				this.className+=" over";
				if(this.ImgOver) {
					this.Img.style.display="none";
					this.ImgOver.style.display="inline";
				}
				if(this.ImgArrowOver) {
					this.ImgArrow.style.display="none";
					this.ImgArrowOver.style.display="inline";
				}
				if(this.smPopupId) {
					lj(this.smPopupId,1,this);
				}
				else if(this.menu.smShown) {
					l1(this.menu.smShown);
				}
			};
			jl.onmouseout=function() {
				this.menu.l1I();
			};
			if(InnerUl) {
				iI.className="arrow";
				if(jl.ImgArrow) {
					iI.appendChild(jl.ImgArrow);
					if(jl.ImgArrowOver) {
						jl.ImgArrowOver.style.display="none";
						iI.appendChild(jl.ImgArrowOver);
					}
				}
				else {
					if(typeof arrowChar!="undefined"&&arrowChar) {
						iI.appendChild(document.createElement("a"));
						iI.lastChild.innerHTML=arrowChar;
					}
					else {
						iI.innerHTML="&nbsp;";
					}
				}
				jl.smPopupId=l11(InnerUl,jl,level+1);
			}
			else {
				iI.innerHTML="&nbsp;";
			}
		}
		else {
			var oTD=jl.insertCell(-1);
			oTD.colSpan=3;
			oTD.innerHTML="<div></div>";
		}
	}
}
return l1i.id;
}


function xpshow(ind,isVertical,iParent) {
	lj(ulIdPref+ind+"tbl",isVertical,iParent);
}

function lj(lI,isVertical,iParent) {
	var menu=document.getElementById(lI);
	if(!menu) {
		return;
	}
	if(menu.style.visibility=="visible") {
		xpStopTimeOut(menu);
		return;
	}

	if(iParent&&iParent.menu&&iParent.menu.smShown) {
		xphide(iParent.menu.smShown.id);
	}
	if(!menu.level&&ll!=menu) {
		xphide(ll.id);
	}
	if(!menu.level) {
		xobtn=lI.replace(ulIdPref,"").replace("tbl","");
	}
	var parentObj;
	if(iParent.tagName=="A") {
		parentObj=iParent.parentNode;
	}
	else {
		parentObj=iParent;
	}
	var pos=xppos(parentObj);
	var size=llj(parentObj);
	menu.goMenuX=1;
	menu.goMenuDx=1;
	if(menu.level>0) {
		menu.goMenuX=menu.iParent.menu.goMenuX;
		menu.goMenuDx=menu.iParent.menu.goMenuDx;
	}
	menu.style.overflow="visible";
	menu.style.height="auto";
	menu.style.width="auto";
	menu.style.left="0px";
	menu.style.top="0px";
	var parentAbs=xppos(menu);
	var i=xpClientSize();
	var j=llj(menu);
	var li=Il(i.y,i.h,pos.y,size.y,j.y,menu.goMenuDx,isVertical);
	menu.goMenuDx=li.align;
	if(jj&&!menu.OrigWidth) {
		menu.OrigWidth=menu.clientWidth;
	}
	if(li.size<j.y) {
		menu.style.overflow="auto";
		if(jI) {
			menu.style.overflowX="visible";
		}
		if(jI) {
			menu.style.width=menu.offsetWidth+17+"px";
		}
		else if(lli) {
			menu.style.magrinRight=20;
		}
		menu.style.height=li.size+"px";
		menu.scrollTop=0;
		menu.scrollLeft=0;
		if(jj) {
			menu.style.width=menu.OrigWidth+"px";
		}
	}
	else {
	}
	menu.style.top=li.xy-parentAbs.y+"px";
	j=llj(menu);
	li=Il(i.x,i.w,pos.x,size.x,j.x,menu.goMenuX,!isVertical);
	menu.goMenuX=li.align;
	if(li.size<j.x) {
		if(menu.goMenuX>0) {
			li.xy-=(j.x-li.size);
		}
	}
	menu.style.left=li.xy-parentAbs.x+"px";
	menu.style.visibility="visible";
	if(!menu.level) {
		ll=menu;
	}
	else {
		iParent.menu.smShown=menu;
		iParent.setPopup();
	}
}

function Il(Ii,I1,il,i1,size,align,Ij) {
	var xy=il;
	var II=size;
	var ii=align;
	var lIl=5;
	if(align==0&&!Ij) {
		align=1;
	}
	if(!Ij) {
		if(ii>=0&&il+i1+size>I1+Ii-lIl||ii<0&&il-size<lIl) {
			if(il-Ii>I1+Ii-(il+i1)) {
				ii=-1;
			}
			else {
				ii=1;
			}
		}
		if(ii>=0) {
			xy=il+i1;
			if(I1+Ii-lIl-xy<II) {
				II=I1+Ii-lIl-xy;
			}
		}
		else {
			xy=il-II;
			if(xy-Ii<lIl) {
				xy=lIl+Ii;
				II=il-lIl-Ii;
			}
		}
	}
	else {
		if(II>I1-2*lIl) {
		xy=lIl+Ii;
		II=I1-2*lIl;
	}
	else {
		xy=il+i1/2-II/2+ii*(II/2-i1/2);
		if(xy<lIl+Ii) {
			ii=1;
			xy=lIl+Ii;
		}
		if(xy+size>I1+Ii-lIl) {
			ii=-1;
			xy-=xy+II-(I1+Ii-lIl);
		}
	}
}
return {xy:xy,size:II,align:ii};
}

function xphide(menuId) {
var menu=document.getElementById(menuId);
if(!menu) {
return;
}
if(menu.style.visibility=="visible") {
if(menu.smShown) {
xphide(menu.smShown.id);
}
menu.l1I();
menu.style.visibility="hidden";
if(menu.level==0) {
xpe(xobtn+"n");
}
menu.smShown=0;
if(menu.iParent) {
menu.iParent.clrPopup();
}
if(menu.hideTimer) {
clearTimeout(menu.hideTimer);
menu.hideTimer=null;
}
}
}
function xpsmout(sender) {
if(!sender) {
return;
}
l1(ll);
}
function xpsmover(menu) {
if(!menu) {
return;
}
xpStopTimeOut(menu);
}
function xpStopTimeOut(menu) {
for(var o=menu;
o;
o=o.iParent?o.iParent.menu:0) {
if(o.hideTimer) {
o.hideTimer=clearTimeout(o.hideTimer);
}
}
}
function l1(menu) {
for(var o=menu;
o;
o=o.smShown) {
var code="xphide(\""+o.id+"\");";
if(!o.hideTimer&&o.id) {
o.hideTimer=setTimeout(code,hideTimeout);
}
}
}
var ll=0;
var xobtn=null;
