self.name="parentWindow";



function openPopup(url) {

	var availScreenHeight = screen.height; // Height in pixels of users monitor screen

	var PopupWindowHeight; // Height of popup window

	if (availScreenHeight > 600)

	{

		PopupWindowHeight = 600;

	}

	else

	{

		PopupWindowHeight = 480;

	}

	PopupShowWindow = window.open(url, "PopupShowWin","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,width=640,height=" + PopupWindowHeight);

	if (PopupShowWindow.opener == null)

	{

		PopupShowWindow.opener = window;

		PopupShowWindow.opener.name = "parentWindow"; // Used for TARGET

	}

} // End openPopup







function BrowserVerChecker() {var BrowserName = navigator.appName;if (BrowserName=="Netscape")this.BrowserName = "NS";else if (BrowserName=="Microsoft Internet Explorer") this.BrowserName = "IE";else this.BrowserName = BrowserName;this.BrowserVersion = navigator.appVersion;this.Version = parseInt(this.BrowserVersion);this.NS = (this.BrowserName=="NS" && this.Version>=4);this.NS4 = (this.BrowserName=="NS" && this.Version==4);this.NS5 = (this.BrowserName=="NS" && this.Version==5);this.IE3 = (this.BrowserName=="IE" && this.Version<=3);this.IE = (this.BrowserName=="IE" && this.Version>=4);this.IE4 = (this.BrowserVersion.indexOf('MSIE 4')>0);this.IE5 = (this.BrowserVersion.indexOf('MSIE 5')>0);this.IE6 = (this.BrowserVersion.indexOf('MSIE 6')>0);this.IE7 = (this.BrowserVersion.indexOf('MSIE 7')>0);this.IE8 = (this.BrowserVersion.indexOf('MSIE 8')>0);}Check = new BrowserVerChecker();







function ItemList(x,y,width,itemH) {this.name = "ItemList"+(ItemList.count++);this.textStyle = "ItemList";this.obj = this.name;this.classID = 'divInit';eval(this.obj + "=this");this.x = x;this.y = y;this.w = width;this.itemH = itemH;this.h = -1;this.borderSize = 0;this.itemSpacing = 1;this.visibility = 'inherit';this.color = new Object();this.color.selectedCell = '#7795e3';this.color.bgNormal = '#FFFFFF';this.color.bgSelected = '#EDEDED';this.color.bgRollover = '#EDEDED';this.color.borderColor = '#F0F0F0';this.color.bg = '#F0F0F0';this.items = new Array();this.selectedIndex = null;this.rolloveract = false;this.menulist = null;this.selected = false;this.add = ItemListAddItem;this.build = ItemListBuild;this.activate = ItemListActivate;this.over = ItemListOver;this.out = ItemListOut;this.down = ItemListDown;this.select = ItemListSelect;this.deselect = ItemListDeselect;this.onSelect = new Function('');this.onRollOver = new Function('');this.onRollOut = new Function('');this.image = new Object();this.useTheseImages = ItemListImages;this.setBarDim = ItemListSetBarDim;this.div = '';this.show = ItemListShow;this.hide = ItemListHide;this.hasImage = false;this.ImageAlign = "right";}







function MakeObj(lyr,nest,frame){

	if (Check.NS){

		if (Check.NS4){

			if (!frame)

				this.css = (nest)? eval("document."+nest+".document."+lyr) : document.layers[lyr];

			else

				this.css = (nest)? eval("parent."+frame+".document."+nest+".document."+lyr) : parent.fraes[frame].document.layers[lyr];

				this.elm = this.event = this.css;

				this.doc = this.css.document;

				this.x = this.css.left;

				this.y = this.css.top;

				this.w = this.css.clip.width;

				this.h = this.css.clip.height;

		}

		if (Check.NS5){

			this.elm = this.event = (frame)? parent.frames[frame].document.getElementById(lyr) :document.getElementById(lyr);

			this.css = this.elm.style;this.doc = (frame)? parent.frames[frame].document : document;

			this.x = this.css.left;

			this.y = this.css.top;

			this.w = this.css.width;

			this.h = this.css.height;

		}

	}

	else if (Check.IE) {

		this.elm = this.event = (frame)? parent.frames[frame].document.all[lyr] : document.all[lyr];

		this.css = (frame)? parent.frames[frame].document.all[lyr].style : document.all[lyr].style;

		this.doc = (frame)? parent.frames[frame].document : document;

		this.x = this.elm.offsetLeft;

		this.y = this.elm.offsetTop;

		this.w = (Check.IE4)? this.css.pixelWidth : this.elm.offsetWidth;

		this.h = (Check.IE4)? this.css.pixelHeight : this.elm.offsetHeight;

	}

	this.id = lyr;this.obj = lyr + "MakeObj";

	eval(this.obj + "=this");

	this.hide = LyrHide;

	this.show = LyrShow;

	this.moveTo = LyrMoveTo;

	this.write = LyrWrite;

	this.setbg = LyrSetbg;

} // End MakeObj







function LyrMoveTo(x,y) {

	if (x!=null) {

		this.x = x;

		if (Check.NS)

			this.css.left = this.x;

		else

			this.css.pixelLeft = this.x;

	}

	if (y!=null){

		this.y = y;

		if (Check.NS)

			this.css.top = this.y;

		else

			this.css.pixelTop = this.y;

	}

} // End LyrMoveTo







function LyrWrite(html) {

	if (Check.NS4) {

		this.doc.open();

		this.doc.write(html);

		this.doc.close();

	}

	else if(Check.NS5){

		this.event.innerHTML = html;

	}

	else if(Check.IE){

		this.event.innerHTML = html;

	}

} // End LyrWrite





function LyrShow()

{

	this.css.visibility = (Check.NS4)? "show" : "visible";

}







function LyrHide()

{

	this.css.visibility = (Check.NS4)? "hide" : "hidden";

}







function LyrSetbg(color)

{

	if (Check.NS4)

	{

		this.css.bgColor = color;

	}

	if (Check.NS5)

	{

		this.css.backgroundColor = color;

	}

	else

	{

		this.css.backgroundColor = color;

	}

}







function ItemListSetBarDim()

{

	this.w = 0;

	this.barDim = arguments;

	for (var aa=0;aa<arguments.length;aa++)

	{

		var spacing = (arguments[aa+1]) ?this.itemSpacing :0;

		this.w += arguments[aa] + spacing;

	}

}







function ItemListImages(image0,image1,width,height)

{

	this.image.image0 = new Image();

	this.image.image0.src = image0;

	this.image.image1 = new Image();

	this.image.image1.src = image1;

	this.image.w = width;

	this.image.h = height;

}







function ItemListAddItem() {

	var i = this.items.length;this.items[i] = new Object();

	var itemS = this.items[i];

	itemS.textValue = arguments[0];

	itemS.value = arguments[1];

	if(arguments[2]) itemS.h = arguments[2];

	itemS.textNormal = (this.ImageAlign == 'left')? '<table border="0" cellpadding="0" cellspacing="0"><tr><td width="'+this.image.w+'" height="'+this.itemH+'" align="left" valign="top" nowrap>&nbsp;</td><td><div class="'+this.textStyle+'TextNormal">'+arguments[0]+'</div></td></tr></table>' : '<div class="'+this.textStyle+'TextNormal">'+arguments[0]+'</div>';

	itemS.textSelected = (this.ImageAlign == 'left')? '<table border="0" cellpadding="0" cellspacing="0"><tr><td width="'+this.image.w+'" height="'+this.itemH+'" align="left" valign="top" nowrap>&nbsp;</td><td><div class="'+this.textStyle+'TextSelected">'+arguments[0]+'</div></td></tr></table>' : '<div class="'+this.textStyle+'TextSelected">'+arguments[0]+'</div>';

	if(typeof(itemS.h) == "undefined") 

	itemS.h = this.itemH;

	itemS.x = (this.barDim)? (this.items[i-1])? this.items[i-1].x + (this.barDim[i-1] + this.itemSpacing): i * this.barDim[i]:0;

	itemS.y = (this.barDim)? 0:(this.items[i-1])? this.items[i-1].y+ this.itemSpacing + this.items[i-1].h: i * this.itemH + i * this.itemSpacing;itemS.w = (this.barDim)? this.barDim[i]:this.w;

	itemS.selected = false;

	itemS.hasChild = false;

	itemS.child = null;

} // End ItemListAddItem







function ItemListBuild() {

	for (var i=0;i<this.items.length;i++) {

		(this.barDim)? this.h = this.itemH : this.h += (this.items[i+1])? this.items[i].h+this.itemSpacing : this.items[i].h;

		this.divInternal += (Check.NS4)?'<LAYER NAME="'+this.name+'Item'+i+'" WIDTH="'+this.items[i].w+'" HEIGHT="'+this.items[i].h+'" top="'+this.items[i].y+'" left="'+this.items[i].x+'" clip="'+this.items[i].w+','+this.items[i].h+'" '+((!this.image.out)?'BGCOLOR="'+this.color.bgNormal+'"':'BACKGROUND="'+this.image.out.src+'"')+' VISIBILITY="inherit">'+this.items[i].textNormal+'</LAYER>\n':'<DIV ID="'+this.name+'Item'+i+'" STYLE="position:absolute; width:'+this.items[i].w+'; height:'+this.items[i].h+'; top:'+this.items[i].y+'; left:'+this.items[i].x+'; clip:rect(0,'+this.items[i].w+','+this.items[i].h+',0); '+((!this.image.out)?'background-color:'+this.color.bgNormal+';':'background-image:url('+this.image.out.src+');')+' visibility:inherit;">'+this.items[i].textNormal+'</DIV>\n';if (this.items[i].hasChild || this.image.InactiveImg)

		{

		var ImageX;

		if(this.items[i].hasChild){

			if(this.ImageAlign == "right")

				ImageX = this.items[i].x + this.items[i].w-this.image.w;

			}

		//this.divInternal += (Check.NS4)?'<LAYER NAME="'+this.name+'ImgLyr'+i+'" WIDTH="'+((this.items[i].hasChild)? this.image.w:this.image.w1)+'" height="'+((this.items[i].hasChild)? this.image.h:this.image.h1)+'" top="'+this.items[i].y+'" left="'+ImageX+'" clip="'+((this.items[i].hasChild)? this.image.w:this.image.w1)+','+((this.items[i].hasChild)? this.image.h:this.image.h1)+'" VISIBILITY="inherit">\n':'<DIV ID="'+this.name+'ImgLyr'+i+'" STYLE="position:absolute; width:'+((this.items[i].hasChild)? this.image.w:this.image.w1)+'; height:'+((this.items[i].hasChild)? this.image.h:this.image.h1)+'; clip:rect(0,'+((this.items[i].hasChild)? this.image.w:this.image.w1)+','+((this.items[i].hasChild)? this.image.h:this.image.h1)+',0); top:'+this.items[i].y+'; left:'+ImageX+'; visibility:inherit;">\n';this.divInternal += '<img name="'+(this.name+'Img'+i)+'" src="'+((this.items[i].hasChild)? this.image.image0.src: this.image.InactiveImg.src)+'" width="'+((this.items[i].hasChild)? this.image.w:this.image.w1)+'" height="'+((this.items[i].hasChild)? this.image.h:this.image.h1)+'" border="0" alt="" hspace="0" vspace="0" align="'+((this.ImageAlign == "left")?'left':'right')+'">\n';this.divInternal += (Check.NS4)?'</LAYER>\n':'</DIV>\n';}this.divInternal += (Check.NS4)?'<LAYER NAME="'+this.name+'ItemCover'+i+'" WIDTH="'+this.items[i].w+'" HEIGHT="'+this.items[i].h+'" left="'+this.items[i].x+'" top="'+this.items[i].y+'" clip="'+this.items[i].w+','+this.items[i].h+'" VISIBILITY="inherit"></LAYER>\n':'<DIV ID="'+this.name+'ItemCover'+i+'" STYLE="position:absolute; width:'+this.items[i].w+'; height:'+this.items[i].h+'; clip:rect(0,'+this.items[i].w+','+this.items[i].h+',0); left:'+this.items[i].x+'; top:'+this.items[i].y+'; display:inline; visibility:inherit;">'+((Check.IE5||Check.IE6||Check.IE7||Check.IE8)?'<img src="../images/blank.gif" width="'+this.items[i].w+'" height="'+this.items[i].h+'" border="0" alt="">':'')+'</DIV>\n';}if(Check.NS4){if(this.borderSize>0) this.div += '<LAYER NAME="'+this.name+'Border" WIDTH="'+(this.w+2*this.borderSize)+'" HEIGHT="'+(this.h+2*this.borderSize)+'" clip="'+(this.w+2*this.borderSize)+','+(this.h+2*this.borderSize)+'" left="'+this.x+'" top="'+this.y+'" BGCOLOR="'+this.color.borderColor+'" VISIBILITY="hide">\n';this.div += '<LAYER NAME="'+this.name+'" WIDTH="'+this.w+'" HEIGHT="'+this.h+'" clip="'+this.w+','+this.h+'" left="'+((this.borderSize>0)?this.borderSize:this.x)+'" top="'+((this.borderSize>0)?this.borderSize:this.y)+'" BGCOLOR="'+this.color.bg+'" VISIBILITY="'+((this.borderSize>0)? 'inherit':'hide')+'">'+this.divInternal+'</LAYER>\n';if(this.borderSize>0) this.div += '</LAYER>\n';}else{if(this.borderSize>0)this.div += '<DIV ID="'+this.name+'Border" STYLE="position:absolute; width:'+(this.w+2*this.borderSize)+'; height:'+(this.h+2*this.borderSize)+'; clip:rect(0,'+(this.w+2*this.borderSize)+','+(this.h+2*this.borderSize)+',0); left:'+this.x+'; top:'+this.y+'; background-color:'+this.color.borderColor+'; visibility:hidden;">\n';this.div += '<DIV ID="'+this.name+'" STYLE="position:absolute; width:'+this.w+'; height:'+this.h+'; clip:rect(0,'+this.w+','+this.h+',0); left:'+((this.borderSize>0)?this.borderSize:this.x)+'; top:'+((this.borderSize>0)?this.borderSize:this.y)+'; background-color:'+this.color.bg+'; visibility:'+((this.borderSize>0)? 'inherit':'hidden')+';">'+this.divInternal+'</DIV>\n';if(this.borderSize>0)this.div += '</DIV>\n';

		//this.divInternal += (Check.NS4)?'<LAYER NAME="'+this.name+'ImgLyr'+i+'" WIDTH="'+((this.items[i].hasChild)? this.image.w:this.image.w1)+'" height="'+((this.items[i].hasChild)? this.image.h:this.image.h1)+'" top="'+this.items[i].y+'" left="'+ImageX+'" clip="'+((this.items[i].hasChild)? this.image.w:this.image.w1)+','+((this.items[i].hasChild)? this.image.h:this.image.h1)+'" VISIBILITY="inherit">\n':'<DIV ID="'+this.name+'ImgLyr'+i+'" STYLE="position:absolute; width:'+((this.items[i].hasChild)? this.image.w:this.image.w1)+'; height:'+((this.items[i].hasChild)? this.image.h:this.image.h1)+'; clip:rect(0,'+((this.items[i].hasChild)? this.image.w:this.image.w1)+','+((this.items[i].hasChild)? this.image.h:this.image.h1)+',0); top:'+this.items[i].y+'; left:'+ImageX+'; visibility:inherit;">\n';this.divInternal += '<img name="'+(this.name+'Img'+i)+'" src="'+((this.items[i].hasChild)? this.image.image0.src: this.image.InactiveImg.src)+'" width="'+((this.items[i].hasChild)? this.image.w:this.image.w1)+'" height="'+((this.items[i].hasChild)? this.image.h:this.image.h1)+'" border="0" alt="" hspace="0" vspace="0" align="'+((this.ImageAlign == "left")?'left':'right')+'">\n';this.divInternal += (Check.NS4)?'</LAYER>\n':'</DIV>\n';}this.divInternal += (Check.NS4)?'<LAYER NAME="'+this.name+'ItemCover'+i+'" WIDTH="'+this.items[i].w+'" HEIGHT="'+this.items[i].h+'" left="'+this.items[i].x+'" top="'+this.items[i].y+'" clip="'+this.items[i].w+','+this.items[i].h+'" VISIBILITY="inherit"></LAYER>\n':'<DIV ID="'+this.name+'ItemCover'+i+'" STYLE="position:absolute; width:'+this.items[i].w+'; height:'+this.items[i].h+'; clip:rect(0,'+this.items[i].w+','+this.items[i].h+',0); left:'+this.items[i].x+'; top:'+this.items[i].y+'; display:inline; visibility:inherit;">'+((Check.IE5||Check.IE6||Check.IE7||Check.IE8)?'&nbsp;':'')+'</DIV>\n';}if(Check.NS4){if(this.borderSize>0) this.div += '<LAYER NAME="'+this.name+'Border" WIDTH="'+(this.w+2*this.borderSize)+'" HEIGHT="'+(this.h+2*this.borderSize)+'" clip="'+(this.w+2*this.borderSize)+','+(this.h+2*this.borderSize)+'" left="'+this.x+'" top="'+this.y+'" BGCOLOR="'+this.color.borderColor+'" VISIBILITY="hide">\n';this.div += '<LAYER NAME="'+this.name+'" WIDTH="'+this.w+'" HEIGHT="'+this.h+'" clip="'+this.w+','+this.h+'" left="'+((this.borderSize>0)?this.borderSize:this.x)+'" top="'+((this.borderSize>0)?this.borderSize:this.y)+'" BGCOLOR="'+this.color.bg+'" VISIBILITY="'+((this.borderSize>0)? 'inherit':'hide')+'">'+this.divInternal+'</LAYER>\n';if(this.borderSize>0) this.div += '</LAYER>\n';}else{if(this.borderSize>0)this.div += '<DIV ID="'+this.name+'Border" STYLE="position:absolute; width:'+(this.w+2*this.borderSize)+'; height:'+(this.h+2*this.borderSize)+'; clip:rect(0,'+(this.w+2*this.borderSize)+','+(this.h+2*this.borderSize)+',0); left:'+this.x+'; top:'+this.y+'; background-color:'+this.color.borderColor+'; visibility:hidden;">\n';this.div += '<DIV ID="'+this.name+'" STYLE="position:absolute; width:'+this.w+'; height:'+this.h+'; clip:rect(0,'+this.w+','+this.h+',0); left:'+((this.borderSize>0)?this.borderSize:this.x)+'; top:'+((this.borderSize>0)?this.borderSize:this.y)+'; background-color:'+this.color.bg+'; visibility:'+((this.borderSize>0)? 'inherit':'hidden')+';">'+this.divInternal+'</DIV>\n';if(this.borderSize>0)this.div += '</DIV>\n';

		this.divInternal += (Check.NS4)?'<LAYER NAME="'+this.name+'ImgLyr'+i+'" WIDTH="'+((this.items[i].hasChild)? this.image.w:this.image.w1)+'" height="'+((this.items[i].hasChild)? this.image.h:this.image.h1)+'" top="'+this.items[i].y+'" left="'+ImageX+'" clip="'+((this.items[i].hasChild)? this.image.w:this.image.w1)+','+((this.items[i].hasChild)? this.image.h:this.image.h1)+'" VISIBILITY="inherit">\n':'<DIV ID="'+this.name+'ImgLyr'+i+'" STYLE="position:absolute; width:'+((this.items[i].hasChild)? this.image.w:this.image.w1)+'; height:'+((this.items[i].hasChild)? this.image.h:this.image.h1)+'; clip:rect(0,'+((this.items[i].hasChild)? this.image.w:this.image.w1)+','+((this.items[i].hasChild)? this.image.h:this.image.h1)+',0); top:'+this.items[i].y+'; left:'+ImageX+'; visibility:inherit;">\n';this.divInternal += '<img name="'+(this.name+'Img'+i)+'" src="'+((this.items[i].hasChild)? this.image.image0.src: this.image.InactiveImg.src)+'" width="'+((this.items[i].hasChild)? this.image.w:this.image.w1)+'" height="'+((this.items[i].hasChild)? this.image.h:this.image.h1)+'" border="0" alt="" hspace="0" vspace="0" align="'+((this.ImageAlign == "left")?'left':'right')+'">\n';this.divInternal += (Check.NS4)?'</LAYER>\n':'</DIV>\n';}this.divInternal += (Check.NS4)?'<LAYER NAME="'+this.name+'ItemCover'+i+'" WIDTH="'+this.items[i].w+'" HEIGHT="'+this.items[i].h+'" left="'+this.items[i].x+'" top="'+this.items[i].y+'" clip="'+this.items[i].w+','+this.items[i].h+'" VISIBILITY="inherit"></LAYER>\n':'<DIV ID="'+this.name+'ItemCover'+i+'" STYLE="position:absolute; width:'+this.items[i].w+'; height:'+this.items[i].h+'; clip:rect(0,'+this.items[i].w+','+this.items[i].h+',0); left:'+this.items[i].x+'; top:'+this.items[i].y+'; display:inline; visibility:inherit;">'+((Check.IE5||Check.IE6||Check.IE7||Check.IE8)?'<img src="./images/blank.gif" width="'+this.items[i].w+'" height="'+this.items[i].h+'" border="0" alt="">&nbsp;':'')+'</DIV>\n';}if(Check.NS4){if(this.borderSize>0) this.div += '<LAYER NAME="'+this.name+'Border" WIDTH="'+(this.w+2*this.borderSize)+'" HEIGHT="'+(this.h+2*this.borderSize)+'" clip="'+(this.w+2*this.borderSize)+','+(this.h+2*this.borderSize)+'" left="'+this.x+'" top="'+this.y+'" BGCOLOR="'+this.color.borderColor+'" VISIBILITY="hide">\n';this.div += '<LAYER NAME="'+this.name+'" WIDTH="'+this.w+'" HEIGHT="'+this.h+'" clip="'+this.w+','+this.h+'" left="'+((this.borderSize>0)?this.borderSize:this.x)+'" top="'+((this.borderSize>0)?this.borderSize:this.y)+'" BGCOLOR="'+this.color.bg+'" VISIBILITY="'+((this.borderSize>0)? 'inherit':'hide')+'">'+this.divInternal+'</LAYER>\n';if(this.borderSize>0) this.div += '</LAYER>\n';}else{if(this.borderSize>0)this.div += '<DIV ID="'+this.name+'Border" STYLE="position:absolute; width:'+(this.w+2*this.borderSize)+'; height:'+(this.h+2*this.borderSize)+'; clip:rect(0,'+(this.w+2*this.borderSize)+','+(this.h+2*this.borderSize)+',0); left:'+this.x+'; top:'+this.y+'; background-color:'+this.color.borderColor+'; visibility:hidden;">\n';this.div += '<DIV ID="'+this.name+'" STYLE="position:absolute; width:'+this.w+'; height:'+this.h+'; clip:rect(0,'+this.w+','+this.h+',0); left:'+((this.borderSize>0)?this.borderSize:this.x)+'; top:'+((this.borderSize>0)?this.borderSize:this.y)+'; background-color:'+this.color.bg+'; visibility:'+((this.borderSize>0)? 'inherit':'hidden')+';">'+this.divInternal+'</DIV>\n';if(this.borderSize>0)this.div += '</DIV>\n';

	}

} // End ItemListBuild







function ItemListActivate(nest,frame)

{

	var nestingvaltop = (nest)? nest:"";

	if(this.borderSize>0)

		nestingvaltop += this.name+'Border';

	var nestingval = (nest)? nest+".document."+this.name:(this.borderSize>0)? this.name+'Border.document.'+this.name:this.name;

	var frameRef = (frame)? frame:null;

	this.frameRef = frameRef;

	this.maxwidth = (Check.NS)? window.innerWidth+window.pageXOffset : document.body.offsetWidth+document.body.scrollLeft-20;

	this.maxheight = (Check.NS)? window.innerHeight+window.pageYOffset : document.body.offsetHeight+document.body.scrollTop-20;

	for (var i=0;i<this.items.length;i++)

	{

		this.items[i].lyr = new MakeObj(this.name+'Item'+i,nestingval,frameRef);

		this.items[i].lyrc = new MakeObj(this.name+'ItemCover'+i,nestingval,frameRef);

		if (this.items[i].hasChild || this.image.InactiveImg)

		{

			this.items[i].imagelyr = new MakeObj(this.name+'ImgLyr'+i,nestingval,frameRef);

		}

		if (Check.NS4)

			this.items[i].lyrc.event.captureEvents(Event.CLICK);

		this.items[i].lyrc.event.onmouseover = new Function(this.obj+'.over('+i+'); return false;');

		this.items[i].lyrc.event.onmouseout = new Function(this.obj+'.out('+i+'); return false;');

		this.items[i].lyrc.event.itemlist = this.obj;

		this.items[i].lyrc.event.itemindex = i;

		this.items[i].lyrc.event.onclick = new Function(this.obj+'.down('+i+'); return false;');

	}

	if(this.borderSize>0)

		this.border = new MakeObj(this.name+'Border',nest,frameRef);

	this.lyr = new MakeObj(this.name,nestingvaltop,frameRef);

	this.lyr.css.visibility = this.visibility;

	if(this.borderSize>0)

		this.border.css.visibility = this.visibility;

} // End ItemListActivate







function ItemListOver(i)

{

	if (!this.items[i].selected)

	{

		if(!this.image.over)

			this.items[i].lyr.setbg(this.color.bgRollover);

	}

	if (this.rolloveract && i!=this.selectedIndex)

	{

		if (this.menulist != null)

			this.menulist.hideMenu(i);

		this.deselect(this.selectedIndex);

		if (this.items[i].hasChild)

			this.select(i);

	}

	this.onRollOver();

} // End ItemListOver









function ItemListOut(i)

{

	if (!this.items[i].selected)

	{

		this.items[i].lyr.setbg(this.color.bgNormal);

	}

	this.onRollOut();

} // End ItemListOut









function ItemListDown(i,ci)

{

	if (!this.items[i].selected)

	{

		if (!this.multiSelect && this.selectedIndex!=null)

			this.deselect(this.selectedIndex);

		this.select(i,ci);

	}

} // End ItemListDown







function ItemListSelect(index,cellIndex) {

	if (this.items[index]!=null) {

		this.selectedIndex = index;

		this.cellIndex = cellIndex;

		this.HttpVal = this.items[index].HttpVal;

		if (this.items[index].hasChild) 

			this.items[index].imagelyr.doc.images[this.name+'Img'+index].src = this.image.image1.src;

		else if(this.image.InactiveImg) 

			this.items[index].imagelyr.doc.images[this.name+'Img'+index].src = this.image.activeImg.src;

		if(!this.image.over)

		{

			this.items[index].lyr.setbg(this.color.bgSelected);

		}

		else

		{

			this.items[index].lyr.setbgImg(this.image.over.src)

		}

		this.items[index].lyr.write(this.items[index].textSelected);

		this.items[index].selected = true;

		this.onSelect(index,cellIndex);

	}

} // End ItemListSelect







function ItemListDeselect(index)

{

	if (this.items[index]!=null)

	{

		if (this.items[index].selected)

		{

			if (this.items[index].hasChild)

				this.items[index].imagelyr.doc.images[this.name+'Img'+index].src = this.image.image0.src;

			else if(this.image.InactiveImg)

				this.items[index].imagelyr.doc.images[this.name+'Img'+index].src = this.image.InactiveImg.src;

			if(!this.image.out)

			{

				this.items[index].lyr.setbg(this.color.bgNormal);

			}

			else

			{

				this.items[index].lyr.setbgImg(this.image.out.src);

			}

			this.items[index].lyr.write(this.items[index].textNormal);

			this.items[index].selected = false;

			this.cellIndex = null;

			this.selectedIndex = null;

		}

	}

} // End ItemListDeselect







function ItemListShow()

{

	if(this.borderSize>0)

		this.border.show();

	this.lyr.show();

} // End ItemListShow







function ItemListHide()

{

	if(this.borderSize>0)

		this.border.hide();

	this.lyr.hide();

} // End ItemListHide







function ItemListRedirect(i,ci) 

{

	if(!this.items[i].hasChild){}

} // End ItemListRedirect



ItemList.count = 0;







function Menu()

{

	this.name = "Menu"+(Menu.count++);

	this.obj = this.name + "MenuObject";

	eval(this.obj + "=this");

	if (arguments.length==4)

	{

		this.isChild = false;

		this.x = arguments[0];

		this.y = arguments[1];

		this.w = arguments[2];

		this.itemH = arguments[3];

		this.offsetX = 0;

		this.offsetY = 0;

		this.textStyle = 'Itemlist';

		this.borderSize = 0;

		this.rolloveract = true;

	}

	else {

		this.isChild = true;

		this.parent = arguments[0];

		this.testIndex = arguments[1];

		var index = arguments[1];

		this.parent.listobj.items[index].hasChild = true;

		this.parent.listobj.items[index].child = this;

		this.textStyle = this.parent.textStyle;

		this.offsetX = this.parent.offsetX;

		this.offsetY = this.parent.offsetY;

		this.borderSize = this.parent.borderSize;

		this.rolloveract = this.parent.rolloveract;

		this.x = this.parent.x + this.parent.w;

		this.y = this.parent.listobj.items[index].y + this.parent.y;

		this.w = (arguments.length==3)? arguments[2] : this.parent.w;

		this.itemH = this.parent.itemH;

		this.childShown = null;

	}

	this.visibility = 'inherit';

	this.zIndex = null;

	this.listobj = new ItemList(this.offsetX,this.offsetY,this.w,this.itemH);

	this.listobj.visibility = 'inherit';

	this.listobj.allowDeselect = true;

	this.listobj.rolloveract = this.rolloveract;

	this.listobj.menulist = this;

	this.listobj.textStyle = this.textStyle;

	if (this.isChild)

	{

		this.listobj.image = this.parent.listobj.image;

		this.listobj.color = new Object();

		this.listobj.color.bgNormal = '#EDEDED';

		this.listobj.color.bgSelected = '#FFFFFF';

		this.listobj.color.bgRollover = '#FFFFFF';

		this.listobj.color.borderColor = '#FFFFFF';

		this.listobj.color.bg = '#FFFFFF';

		this.listobj.itemSpacing = this.parent.listobj.itemSpacing;

	}

	this.divChildren = '';

	this.setParentProperties = MenuSetParentProperties;

	this.build = MenuBuild;

	this.activate = MenuActivate;

	this.showMenu = MenuShowMenu;

	this.hideMenu = MenuHideMenu;

	this.show = MenuShow;

	this.hide = MenuHide;

	this.hideAll = MenuHideAll;

	this.setTextStyle = MenuSetTextStyle;

	this.select = MenuSelect;

	if (this.isChild)

		this.onSelect = this.parent.onSelect;

	else

		this.onSelect = MenuRedirect;

} // End Menu







function MenuSetParentProperties(color,bgColor)

{

	this.listobj.color.bg = this.listobj.color.borderColor = color;

	this.listobj.lyr.setbg(color);

	if(this.listobj.borderSize>0)

		this.listobj.border.setbg(color);

	for (var i=0;i<this.listobj.items.length;i++)

	{

		this.listobj.items[i].lyr.setbg(bgColor);

	}

} // End MenuSetParentProperties







function MenuSetTextStyle(classID)

{

	this.textStyle = classID;

	this.listobj.textStyle = this.textStyle;

} // End MenuSetTextStyle







function MenuBuild(write)

{

	this.listobj.borderSize = this.borderSize;

	this.listobj.rolloveract = this.rolloveract;

	this.listobj.build();

	for (var i=0;i<this.listobj.items.length;i++)

	{

		if (this.listobj.items[i].hasChild)

		{

			this.listobj.items[i].child.build();	

		}

	}

	this.div = this.listobj.div + '\n' + this.divChildren;

	if (this.isChild)

	{

		this.parent.divChildren += this.div;

	}

} // End MenuBuild







function MenuActivate(nest,frame) 

{ 

	var nestingvaltop = (nest)? nest:"";

	var nestingval = (nest)? nest+".document."+this.name:this.name;

	var frameRef = (frame)? frame:null;

	this.listobj.activate(nestingvaltop,frameRef);

	this.listobj.onSelect = new Function(this.obj+'.select(); return false;');

	if(this.parent != null)

	{

		if (this.parent.listobj.barDim)

		{

			this.x = this.parent.listobj.items[this.testIndex].x + this.parent.x + this.offsetX;

			this.y = this.parent.listobj.items[this.testIndex].y + this.itemH + this.parent.y + this.offsetY;

		}

		else

		{

			this.x = this.parent.x + this.parent.w + this.offsetX;

			this.y = this.parent.listobj.items[this.testIndex].y + this.parent.y + this.offsetY;

		}

		if(this.x + this.w > this.maxwidth)

		{

			if(this.parent!=null)

			{

				if(this.parent.listobj.barDim)

				{

					this.x = this.parent.listobj.items[this.testIndex].x;

				}

				else

				{

					this.x = this.parent.x-this.w;

				}

			}

		}

	}

	if(this.borderSize >0)

	{

		this.listobj.border.moveTo(this.x,this.y);

		this.listobj.border.css.visibility = (this.isChild)?'hidden':this.visibility;

	}

	this.listobj.border.moveTo(this.x+this.borderSize,this.y+this.borderSize);

	this.listobj.lyr.css.visibility = (this.isChild)?'hidden':this.visibility;

	for (var i=0;i<this.listobj.items.length;i++) 

	{

		if (this.listobj.items[i].hasChild)

		{

			this.listobj.items[i].child.activate(nest,frame);

		}

	}

} // End MenuActivate







function MenuSelect() 

{

	var i = this.listobj.selectedIndex;

	if (this.childShown==i)

	{

		this.hideMenu(this.childShown);

	}

	else 

	{

		if (this.childShown!=null)

			this.hideMenu(this.childShown);

		if (this.listobj.items[i].hasChild)

			this.showMenu(i);

		if (!this.listobj.items[i].hasChild || this.subOnSelect)

			this.onSelect(i);

	}

} // End MenuSelect







function MenuHideMenu()

{

	var i = this.childShown;

	if (i!=null && this.listobj.items[i]!=null)

	{

		this.childShown = null;

		this.listobj.items[i].child.listobj.lyr.hide();

		if(this.borderSize >0) this.listobj.items[i].child.listobj.border.hide();

		this.listobj.items[i].child.hideMenu();

		if (this.listobj.items[i].child.listobj.selectedIndex!=null)

		{

			this.listobj.items[i].child.listobj.deselect(this.listobj.items[i].child.listobj.selectedIndex);

		}

	}

} // End MenuHideMenu







function MenuShowMenu(i)

{

	this.listobj.items[i].child.listobj.lyr.show();

	if(this.borderSize >0)

		this.listobj.items[i].child.listobj.border.show();

	this.childShown = i;

} // End MenuShowMenu







function MenuHideAll()

{

	if(!this.hasChild)

	{

		if (this.isChild)

		{

			this.listobj.lyr.hide();

			if(this.borderSize >0)

				this.listobj.border.hide();

		}

		this.listobj.deselect(this.listobj.selectedIndex);

		if (this.parent!=null)

		{

			this.parent.childShown = null;

			this.parent.hideAll();

			if (this.parent.listobj.selectedIndex!=null)

			{

				this.parent.listobj.deselect(this.parent.listobj.selectedIndex);

			}

		}

	}

} // End MenuHideAll







function MenuHide()

{

	this.hideMenu();

	this.listobj.deselect(this.listobj.selectedIndex);

	this.lyr.hide();

	if(this.borderSize >0)

		this.border.hide();

	this.visible = false;

} // End MenuHide







function MenuShow()

{

	this.lyr.css.visibility = 'inherit';

	if(this.borderSize >0)

		this.border.hide();

	this.visible = true;

} // End MenuShow









function MenuRedirect(i) 

{ 

	var urlString1 = "http:";

	var urlString2 = "http:";

	var urlString3 = "http:";

	var urlString4 = "http:";

	var urlString5 = "http:"; 

	var urlString6 = "http:";

	var urlString7 = "http:";

	var urlString8 = "http:";

	var urlString9 = "http:";

	var urlString10 = "http:";

	var urlString11 = "http:";



	if (this.listobj.items[i].value == urlString1.toString())

		openPopup(this.listobj.items[i].value);

	else if (this.listobj.items[i].value == urlString2.toString())

		window.open(this.listobj.items[i].value);

	else if (this.listobj.items[i].value == urlString3.toString())

		openPopup(this.listobj.items[i].value);

	else if (this.listobj.items[i].value == urlString4.toString())

		openPopup(this.listobj.items[i].value);

	else if (this.listobj.items[i].value == urlString5.toString())

		openPopup(this.listobj.items[i].value);

	else if (this.listobj.items[i].value == urlString6.toString())

		openPopup(this.listobj.items[i].value);

	else if (this.listobj.items[i].value == urlString7.toString())

		openPopup(this.listobj.items[i].value);

	else if (this.listobj.items[i].value == urlString8.toString())

		openPopup(this.listobj.items[i].value);

	else if (this.listobj.items[i].value == urlString9.toString())

		openPopup(this.listobj.items[i].value);

	else if (this.listobj.items[i].value == urlString10.toString())

		openPopup(this.listobj.items[i].value);

	else if (this.listobj.items[i].value == urlString11.toString())

		openPopup(this.listobj.items[i].value);

	else

		document.location = this.listobj.items[i].value;

	this.hideAll();

}



Menu.count = 0;
