//set global variables
var rolltimeout = setTimeout('donothing();', 500);

//path of the images directory 
var imgpath = '../images/';

//constant definetion
//position of the first column
columnALeft = 0;
columnATop = 77;
columnSpacing = 0;
//column width
columnAWidth = 183;
columnBWidth = 183;
columnCWidth = 200;
columnDWidth = 180;
//height of a single menu item
menuItemHeight = 22;
menuItemNumber = 6;
tmot = null;
ma = "0";
mb = "";
mc = "";
md = "";

var clmAbg;
var clmAhltbg;
var mnuhltbg;
function donothing() {
}

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_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_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 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 loadimages(){
	MM_preloadImages(
		imgpath+'titleOn.jpg',
		imgpath+'Accreditation.jpg',
		imgpath+'ISU-N1.jpg',
		imgpath+'ISU-N2.jpg',
		imgpath+'mnu_off.gif',
		imgpath+'mnu_on.gif.jpg',
		imgpath+'arrow_on.gif',
		imgpath+'006633.gif',
		imgpath+'006699.gif',
		imgpath+'990066.gif',
		imgpath+'996600.gif',
		imgpath+'999900.gif',
		imgpath+'E88007.gif',
		imgpath+'ffffcc.gif',
		imgpath+'ffffff.gif',
		imgpath+'clear.gif');
}

function sethilit() {
	mnu_colors = new Array();
	for (i=0; i < j_mnu.length; i++) {
		mnu_colors[i] = new Image();
		mnu_colors[i].src = imgpath+eval('j_mnu[' + i + '].color')+".gif";
	}
	
	clmAbg = new Image();
	clmAhltbg = new Image();
	mnuhltbg = new Image();
	arrowon = new Image();
	arrowoff = new Image();
	clmAbg.src = imgpath +clmAbgcolor+".gif";
	clmAhltbg.src = imgpath+clmAhltbgcolor+'.gif';
	mnuhltbg.src = imgpath+mnuhltbgcolor+'.gif';
	arrowon.src = imgpath+'arrow_on.gif';
	arrowoff.src = imgpath+'clear.gif';
}
        
//cross-browser code
function cb_getElement(elemID) {
	if (document.layers != null) 
		return eval('document.layers["' + elemID + '"]');
	else if (document.all != null)
		return eval('document.all.' + elemID + '');
	else return document.getElementById(elemID);
}
function cb_getElementStyle(elemID) {
	if (document.layers != null)
		return eval('document.layers["' + elemID + '"]');
	else if (document.all != null) {
		if (eval('document.all.' + elemID))
			return eval('document.all.' + elemID + '.style');
		else return null;
	}
 	else {
		if (document.getElementById(elemID))
			return document.getElementById(elemID).style;
		else return null;
	}
}
function cb_getImage(elemID,imgID) {
	if (document.layers != null) {
		if (elemID == null) return eval('document.images["' + imgID + '"]');
		else
			return eval('document.layers["' + elemID + '"].document.images["' + imgID + '"]');
	}
	else
		return eval('document.images["' + imgID + '"]');
} 
function cb_getElementHeight(elemID) {
	if (document.layers != null) 
	        return eval('document.layers[' + elemID + '].clip.height');
	else if (document.all != null)
	     return eval(elemID + ".offsetHeight");
	else {
            obj = document.getElementById(elemID);
            return parseInt(document.defaultView.getComputedStyle(obj, "").getPropertyValue("height"));
	}
}
function cb_setElementHeight(elemID, newHeight) {
	if (document.layers != null) 
	    document.layers[elemID].clip.height = newHeight;
	else if (document.all != null)
            eval(elemID + ".style.pixelHeight=" + newHeight);
        else 
            document.getElementById(elemID).style.height = newHeight + "px";
}
function hidecolumn (clm) {
	cb_getElementStyle(clm+'x').visibility = "hidden";	
	cb_getElementStyle(clm+'y').visibility = "hidden";	
	cb_getElementStyle(clm+'z').visibility = "hidden";	
}
function showcolumn (clm) {
	cb_getElementStyle(clm+'x').visibility = "visible";	
	cb_getElementStyle(clm+'y').visibility = "visible";	
	cb_getElementStyle(clm+'z').visibility = "visible";	
}
 
//parse mouseover values to determine current and parent menus
function mousetickle (clm,row) {
	clearTimeout(rolltimeout);
	
	windowStats();
	if (clm=="a") {
		ma = row;
		mb = "";
		mc = "";
		md = "";
		mnuon(clm,row);
	}
	
	if (clm=="b") {
		mb = row;
		mc = "";
		md = "";
		mnuon(clm,row);
	}
	
	if (clm=="c") {
		mc = row;
		md = "";
		mnuon(clm,row);
	}
	
	if (clm=="d") {
		md = row;
		mnuon(clm,row);
	}
	
	if (ma != "-1" && mb != "-1" && mc != "-1" && md != "-1") {
	//menu column b
	
		if (clm == "a") {
			hidecolumn('b');
			hidecolumn('c');
			hidecolumn('d');
	
			if (eval('window.j_mnua' + ma) != null) {
				tp = ma * menuItemHeight;
				bt = tp +  (eval('j_mnua' + ma +'.length')*menuItemHeight) + 1;
				mnu = "j_mnua" + ma;
				
				hider();
							
				writer ('b',mnu);
				move('b', columnALeft + columnAWidth + columnSpacing, columnATop)
				clipper ('b',mnu);
				x = ma+mb
			}
		}
	//menu column c
	
	if (clm == "b") {
		hidecolumn('c');
		hidecolumn('d');
	
		if (eval('window.j_mnua' + ma + 'b' + mb) != null) {
			tp = (ma + mb) * menuItemHeight;
			bt = tp +  (eval('j_mnua' + ma + 'b' + mb + '.length')*menuItemHeight) + 1;
			mnu = "j_mnua" + ma + "b" + mb;
	
			writer ('c',mnu);
			move('c', columnALeft + columnAWidth + columnBWidth + 1*columnSpacing, columnATop)
			clipper ('c',mnu);
			x = ma+mb+mc
		}
	}
	//menu column d
	if (clm == "c") {
		hidecolumn('d');
	
		if (eval('window.j_mnua' + ma + 'b' + mb + 'c' + mc) != null) {
			tp = (ma + mb + mc) * menuItemHeight;
			bt = tp +  (eval('j_mnua' + ma + 'b' + mb + 'c' + mc + '.length')*menuItemHeight) + 1;
			mnu = "j_mnua" + ma + "b" + mb + "c" + mc;
			
			writer ('d',mnu);
			move('d', columnALeft + columnAWidth + columnBWidth + columnCWidth + 1*columnSpacing, columnATop)
			clipper ('d',mnu);
			x = ma+mb+mc+md
		}
	}
}
}
//write menu items in relevent 'x','y' and 'z' layer
function writer (clm,mnu) {
	clmwidth = eval('column'+clm.toUpperCase()+'Width');
	txtx = "";
	txty = "";
	txtz = "";
	txtx += '<TABLE cellSpacing=0 cellPadding=0 width="'+ clmwidth +'" border=0><TBODY>'
	txty += '<table cellpadding="0" cellspacing="0" border="0" width="'+ clmwidth +'"><TBODY>';
	txtz += '<TABLE cellSpacing=0 cellPadding=0 width="'+ clmwidth +'" border=0><TBODY>';
	for (i=0; i < eval(mnu + '.length')||i<menuItemNumber; i++) {
		if (i<eval(mnu + '.length')){
			txtx += '<TR><TD>';
			txtx += '<A onMouseOver="mousetickle(\''+clm+'\','+i+');" onMouseOut="mouseuntickle(\''+clm+'\','+i+');"';
			txtx += ' href="javascript:javascript:link(\''+clm+'\','+i+');">';
			txtx += '<IMG height="'+menuItemHeight+'" src="'+imgpath+'clear.gif" width="'+clmwidth+'" border=0>';
			txtx += '</A>';
			txtx += '</TD></TR>';
		}else{
			txtx += '<TR><TD onMouseOver="clearTimeout(rolltimeout);" onMouseOut="mouseuntickle(\''+clm+'\','+i+');">';
			txtx += '<IMG height="'+menuItemHeight+'" src="'+imgpath+'clear.gif" width="'+clmwidth+'" border=0>';
			txtx += '</TD></TR>';
		}
		if (i<eval(mnu + '.length')){
			if (clm!='a'){
				txty += '<tr height="'+menuItemHeight+'"><td height="'+menuItemHeight+'" width="5">&nbsp;</td>';
				txty += '<td height="'+menuItemHeight+'" valign="middle" align="left" >';
	
				if (clm=='b')
					txty += '<font style="'+menuFont+' color:#ffffff" id="span'+clm+i+'">';
				else
					txty += '<font style="'+menuFont+' color:#555555" id="span'+clm+i+'">';
				txty += eval(mnu +'[' + i + '].nme');
				txty += '</font></td>';
	
				txty += '<td valign=middle align=right>';
				if (eval(mnu +'[' + i + '].url.charAt(0)') == "*") {
					txty += '<img src="'+imgpath+'clear.gif" border="0" name="arrow'+clm+i+'">';
				}
				txty += '</td></tr>';
			}else{
				txty += '<tr height="'+menuItemHeight+'"><td height="'+menuItemHeight+'" width="5">&nbsp;</td><td height="'+menuItemHeight+'" valign="middle" align="right">';
	
				txty += '<font style="'+menuFont+' color:#555555" id="span'+clm+i+'">';
				txty += eval(mnu +'[' + i + '].nme');
				txty += '</font></td>';
	
				txty += '<td valign=middle align=right width="15">';
				if (eval(mnu +'[' + i + '].url.charAt(0)') == "*") {
					txty += '<img src="'+imgpath+clmAbgcolor+'.gif" width="9" height="9" border="0" name="subdot'+clm+i+'">';
				}
				txty += '</td></tr>';
			}
		}else{
				txty += '<tr height="'+menuItemHeight+'">';
				txty += '<td height="'+menuItemHeight+'" colspan="3">&nbsp;</td></tr>';
		}
		txtz += '<TR height="'+menuItemHeight+'">';
		if (clm=='a')
			txtz += '<TD height="'+(menuItemHeight)+'" valign=top width="'+(clmwidth)+'"><img src="'+imgpath+clmAbgcolor+'.gif" height="'+(menuItemHeight)+'" width="'+(clmwidth)+'" name="'+clm+i+'"></TD>';
		else if (clm=='b') {
			var color = '';
			if (ma != "-1"){
				color = eval('j_mnu[' + ma + '].color');
			}
			else
				color = clmAbgcolor;
			txtz += '<TD height="'+(menuItemHeight)+'" valign=top width="'+(clmwidth)+'"><img src="'+imgpath+color+'.gif" height="'+(menuItemHeight)+'" width="'+(clmwidth)+'" name="'+clm+i+'"></TD>';
			//txtz += '<TD height="'+(menuItemHeight)+'" valign=top width="'+(clmwidth)+'" bgcolor="#'+color+'" name="'+clm+i+'"> </TD>';
		}
		else
			txtz += '<TD height="'+(menuItemHeight)+'" valign=top width="'+(clmwidth)+'"><img src="'+imgpath+mnuhltbgcolor+'.gif" height="'+(menuItemHeight)+'" width="'+(clmwidth)+'" name="'+clm+i+'"></TD>';
			
		txtz += '</TR>';
	}
	txtx += "</TBODY></TABLE>";
	txty += "</TBODY></table>";
	txtz += "</TBODY></TABLE>";
	
	if (document.layers != null) {
		lyr = document.layers[clm+'z'].document;
		lyr.open();
		lyr.write(txtz);
		lyr.close();

		lyr = document.layers[clm+'y'].document;
		lyr.open();
		lyr.write(txty);
		lyr.close();

		var lyr = document.layers[clm+'x'].document;
		lyr.open();
		lyr.write(txtx);
		lyr.close();
	} else {
		cb_getElement(clm+'z').innerHTML = txtz;
		cb_getElement(clm+'y').innerHTML = txty;
		cb_getElement(clm+'x').innerHTML = txtx;
	}
}

//clip generic menus at top and bottom to display relevent portion, and set visibility to visible
function clipper (lyr,mnu) {
	clmwidth = eval('column'+lyr.toUpperCase()+'Width');
	if (document.layers != null) {
		cb_getElementStyle(lyr + 'x').clip.top = 0;
		cb_getElementStyle(lyr + 'x').clip.bottom = (menuItemHeight*menuItemNumber);
		cb_getElementStyle(lyr + 'y').clip.top = 0;
		cb_getElementStyle(lyr + 'y').clip.bottom = (menuItemHeight*menuItemNumber);
		cb_getElementStyle(lyr + 'z').clip.top = 0;
		cb_getElementStyle(lyr + 'z').clip.bottom = (menuItemHeight*menuItemNumber);
	 } else  {
		cb_getElementStyle(lyr + 'x').clip = 'rect(0px '+clmwidth+' px '+ (menuItemHeight*menuItemNumber) +'px 0px)';
		cb_getElementStyle(lyr + 'y').clip = 'rect(0px '+clmwidth+' px '+ (menuItemHeight*menuItemNumber) +'px 0px)';
		cb_getElementStyle(lyr + 'z').clip = 'rect(0px '+clmwidth+' px '+ (menuItemHeight*menuItemNumber) +'px 0px)';
	} 
	showcolumn(lyr);
}

function move (lyr,left,top) {
	cb_getElementStyle(lyr + 'x').left = left;
	cb_getElementStyle(lyr + 'x').top = top;
	cb_getElementStyle(lyr + 'y').left = left;
	cb_getElementStyle(lyr + 'y').top = top;
	cb_getElementStyle(lyr + 'z').left = left;
	cb_getElementStyle(lyr + 'z').top = top;
}

function setImage(lyr,imgID,imgSrc) {
	var img;
	if (document.layers != null) {		
		img = eval("document.layers['"+lyr+"'].document.images['"+imgID+"']");
	} else {		
		img = eval("document.images['"+imgID+"']");
	}
	if (img!=null)
		img.src = imgSrc.src;
}

function setFontColor(lyr,spanID,color) {
	var span; 
	if (document.layers != null) {		
		span = eval("document.layers['"+lyr+"'].document.all."+spanID+"");
	} 
	else if (document.all !=null){		
		span = eval("document.all."+spanID+"");
	} else
                span = document.getElementById(spanID);
	if (span!=null)
		span.style.color = color;
}
//rollover images
function mnuon(clm,row) {

		var mnu;
		var span;
		var img;
		if (clm=='a')
			mnu = j_mnu;
		else if (clm=='b')
			mnu = eval('j_mnua'+ma);
		else if (clm=='c')
			mnu = eval('j_mnua'+ma+'b'+mb);
		else
			mnu = eval('j_mnua'+ma+'b'+mb+'c'+mc);
		
		if (clm=='a'){
			//clear and set the color square, and background color
			for (i=0;i<j_mnu.length;i++){
				setImage('ay','subdota'+i,clmAbg);
			}
			//hilight bgcolor for selected item
			setImage('ay','subdota'+row,eval("mnu_colors["+ma+"]"));
//			setImage('az','a'+row,clmAbg);
		} else if (clm=='b') {
			for (i=0;i<mnu.length;i++){
				setImage('by','arrow'+clm+i,arrowoff);
				setImage('bz','b'+i,eval("mnu_colors["+ma+"]"));
			}
			//turn on arrow
			setImage('by','arrow'+clm+row,arrowon);
			setImage('bz','b'+row,mnuhltbg);
		}
		//clear forground color for the text;
		for (i=0;i<mnu.length;i++){
			if (clm=='b')
				setFontColor(clm+'y','span'+clm+i,'ffffff');
			else
				setFontColor(clm+'y','span'+clm+i,'555555');
		}
	
		//set font color for the selected item
		if (clm=='b')
			setFontColor(clm+'y','span'+clm+row,'555555');
		else
			setFontColor(clm+'y','span'+clm+row,eval('j_mnu[' + ma + '].color'));
}

//rolloff images
function mnuoff() {
	for (i=0;i<j_mnu.length;i++){
		setImage('ay','subdota'+i,clmAbg);
		setFontColor('ay','spana'+i,'555555');
//		setImage('az','a'+i,clmAbg);
	}
}

//receive mouseoff, set timeout call to hideMenu
function mouseuntickle(clm,row) {
	rolltimeout = setTimeout('hideMenu();', 1000);
}

//hide all menus except for initial 'a-level' menu
function hideMenu() {
	unhider();		
	hidecolumn('b');
	hidecolumn('c');
	hidecolumn('d');
	mnuoff();
}
      	
//hide page content for pages containing forms
      	
function hider() {
	if (cb_getElement("content") != null) {
			cb_getElementStyle("content").visibility = "hidden";
	}
}

//reveal page content for pages containing forms
function unhider() {
	if (cb_getElement("content") != null) {
		cb_getElementStyle("content").visibility = "visible";
	}
}

//setting up initial 'a-level' menu
function opener() {
	if (window.j_mnu) {
	
		clearTimeout(tmot);
	
		bt = (j_mnu.length*20) + 81;
		mnu = "j_mnu";

//		writer('a',mnu);
//		move('a',columnALeft,columnATop);
		clipper ('a',j_mnu);
		
		writer('b',mnu);
		writer('c',mnu);
		writer('d',mnu);
	} else {
		tmot = setTimeout ("opener", 500);
	}
	sethilit();
}

//receive mouseclick and navigate to new url
function link(clm,row) {
	url = "j_mnu";
	
	if (clm == "a") {
	url += "[" + row + "]";
	}
	
	if (clm == "b") {
	url += "a" + ma + "[" + (row) + "]";
	}
	
	if (clm == "c") {
	url += "a" + ma + "b" + mb + "[" + (row) + "]";
	}
	
	if (clm == "d") {
	url += "a" + ma + "b" + mb + "c" + mc + "[" + (row) + "]";
	}

	url1 = eval(url+'.url');
        if (url1.charAt(0) == "*")
            url1 = url1.substring(1,url1.length);

        if (url1.charAt(0) == "#") {
		
		popurl = url1;
				
		newnavwindow(popurl.substring(1, popurl.length));
		
         } else {
		document.location.href =  url1;
	 }
}
//function for popping up new windows from navbar
var newnavwin = null;
function newnavwindow(URL) {
	if (newnavwin != null)
	{
	 	if (newnavwin.closed == false)
		{
			newnavwin.focus();
		}
	}
	newnavwin = window.open(URL, "newwindow", "width=640,height=480,scrollbars=yes,menubar=yes,directories=yes,location=yes,toolbar=yes,resizable=yes");
}

//function to measure window dimension status
function windowStats() {
	if (navigator.appName == "Netscape") {
		wHeight = window.innerHeight;
		pPos = pageYOffset;
	} else {
		wHeight = document.body.clientHeight;
		pPos = document.body.scrollTop;
	}
}

function isInteger(inputVal) {
	inputStr = inputVal.toString()
	for (i=0; i < inputStr.length; i++) {
		var oneChar = inputStr.charAt(i)
		if (i==0 && oneChar == "-") {
			continue
		}
		if (oneChar < "0" || oneChar > "9") {
			return false
		}
	}
	return true
}

function writedivs(){
	MSIE = navigator.appName == "Microsoft Internet Explorer";

//        document.write('<DIV id=ax></DIV><DIV id=bx></DIV><DIV id=cx></DIV><DIV id=dx></DIV><DIV id=ay></DIV><DIV id=ay2></DIV><DIV id=by></DIV><DIV id=cy></DIV><DIV id=dy></DIV><DIV id=az></DIV>');
	writeclma();
    document.write('<DIV id=bx></DIV><DIV id=cx></DIV><DIV id=dx></DIV><DIV id=by></DIV><DIV id=cy></DIV><DIV id=dy></DIV>');
	
    if (MSIE){
            document.write('<DIV id=bz STYLE="filter:alpha(Opacity=80);"></DIV><DIV id=cz STYLE="filter:alpha(Opacity=85);"></DIV><DIV id=dz STYLE="filter:alpha(Opacity=80);"></DIV>');
    }else{
            document.write("<DIV id=bz></DIV><DIV id=cz></DIV><DIV id=dz></DIV>");
	}
	sethilit();
}

function writeclma(){
	clmwidth = columnAWidth;
	txtx = "";
	txty = "";
	txtz = "";
	txtx += '<TABLE cellSpacing=0 cellPadding=0 width="'+ clmwidth +'" border=0><TBODY>'
	txty += '<table cellpadding="0" cellspacing="0" border="0" width="'+ clmwidth +'"><TBODY>';
	txtz += '<TABLE cellSpacing=0 cellPadding=0 width="'+ clmwidth +'" border=0><TBODY>';
	for (i=0; i < j_mnu.length||i<menuItemNumber; i++) {
		if (i < j_mnu.length){
			txtx += '<TR><TD>';
			txtx += '<A onMouseOver="mousetickle(\'a\','+i+');" onMouseOut="mouseuntickle(\'a\','+i+');"';
			txtx += ' href="javascript:javascript:link(\'a\','+i+');">';
			txtx += '<IMG height="'+menuItemHeight+'" src="'+imgpath+'clear.gif" width="'+clmwidth+'" border=0>';
			txtx += '</A>';
			txtx += '</TD></TR>';
		}else{
			txtx += '<TR><TD onMouseOver="clearTimeout(rolltimeout);" onMouseOut="mouseuntickle(\'a\','+i+');">';
			txtx += '<IMG height="'+menuItemHeight+'" src="'+imgpath+'clear.gif" width="'+clmwidth+'" border=0>';
			txtx += '</TD></TR>';
		}
		if (i < j_mnu.length){
			txty += '<tr height="'+menuItemHeight+'"><td height="'+menuItemHeight+'" width="5">&nbsp;</td><td height="'+menuItemHeight+'" valign="middle" align="right">';

			txty += '<font style="'+menuFont+' color:#555555" id="spana'+i+'">';
			txty += eval('j_mnu[' + i + '].nme');
			txty += '</font></td>';

			txty += '<td valign=middle align=right width="15">';
			if (eval('j_mnu[' + i + '].url.charAt(0)') == "*") {
				txty += '<img src="'+imgpath+clmAbgcolor+'.gif" width="9" height="9" border="0" name="subdota'+i+'">';
			}
			txty += '</td></tr>';
		}else{
				txty += '<tr height="'+menuItemHeight+'">';
				txty += '<td height="'+menuItemHeight+'" colspan="3">&nbsp;</td></tr>';
		}
		txtz += '<TR height="'+menuItemHeight+'">';
		txtz += '<TD height="'+(menuItemHeight)+'" valign=top width="'+(clmwidth)+'"><img src="'+imgpath+clmAbgcolor+'.gif" height="'+(menuItemHeight)+'" width="'+(clmwidth)+'" name="a'+i+'"></TD>';
		txtz += '</TR>';
	}
	txtx += "</TBODY></TABLE>";
	txty += "</TBODY></table>";
	txtz += "</TBODY></TABLE>";
	
 	document.write('<DIV STYLE="position:absolute; top:'+columnATop+'px; left:'+columnALeft+'px;" id=ax>'+txtx+'</DIV>');
 	document.write('<DIV STYLE="position:absolute; top:'+columnATop+'px; left:'+columnALeft+'px;" id=ay>'+txty+'</DIV>');
 	document.write('<DIV STYLE="position:absolute; top:'+columnATop+'px; left:'+columnALeft+'px;" id=az>'+txtz+'</DIV>');
	
}

//
//function writedummyclma(){
//	txty = '<table cellpadding="0" cellspacing="0" border="0" width="183" bgcolor="#FDEED1"><TBODY>';
//	for (i=0; i < j_mnu.length||i<menuItemNumber; i++) {
//		txty += '<tr height="'+menuItemHeight+'"><td height="'+menuItemHeight+'" width="5">&nbsp;</td><td height="'+menuItemHeight+'" valign="middle" align="right">';
//
//		txty += '<font style="'+menuFont+' color:#555555">';
//		txty += eval('j_mnu[' + i + '].nme');
//		txty += '</font></td>';
//
//		txty += '<td valign=middle align=right width="15">';
//		txty += '<img src="'+imgpath+'clear.gif" width="9" height="9" border="0">';
//		txty += '</td></tr>';
//	}
//	txty += "</TBODY></table>";
//	document.write(txty);
//}
