	// Cool CSS Menu- By JavaScriptKit.com (http://www.javascriptkit.com)
	// For this and over 400+ free scripts, visit JavaScript Kit- http://www.javascriptkit.com/
	// Fading routine based on Dynamic Drive script: http://www.dynamicdrive.com/dynamicindex4/highlightgrad.htm
	// This notice must stay intact for use
	
	var baseopacity=0
	
	function showtext(thetext){
		if (!document.getElementById)
			return
		if(document.getElementById("tabledescription")!=null) {
			textcontainerobj=document.getElementById("tabledescription")
			browserdetect=textcontainerobj.filters? "ie" : typeof textcontainerobj.style.MozOpacity=="string"? "mozilla" : ""
			instantset(baseopacity)
			document.getElementById("tabledescription").innerHTML=thetext
			highlighting=setInterval("gradualfade(textcontainerobj)",50)
		}
	}
	
	
	function hidetext(){
		cleartimer()
		instantset(baseopacity)
	}
	
	function instantset(degree){
		if (browserdetect=="mozilla")
			textcontainerobj.style.MozOpacity=degree/100
		else if (browserdetect=="ie")
			textcontainerobj.filters.alpha.opacity=degree
		else if (document.getElementById && baseopacity==0)
			document.getElementById("tabledescription").innerHTML=""
	}
	
	function cleartimer(){
		if (window.highlighting) clearInterval(highlighting)
	}
	
	function gradualfade(cur2){
		if (browserdetect=="mozilla" && cur2.style.MozOpacity<1)
			cur2.style.MozOpacity=Math.min(parseFloat(cur2.style.MozOpacity)+1, 0.99)
		else if (browserdetect=="ie" && cur2.filters.alpha.opacity<100)
			cur2.filters.alpha.opacity+=100
		else if (window.highlighting)
			clearInterval(highlighting)
	}

	var previd = '';
	
	function clickBg( id ) {
		document.getElementById(id).style.backgroundColor = '#DBE9F1';
		if (previd!=id) {
			if (previd != '') {
				document.getElementById(previd).style.backgroundColor = '';
			}
			previd = id;
		}
	}
	
	function showtextLogin( strText, divID ) {
		if(document.getElementById(divID)!= null){
			document.getElementById(divID).innerHTML=strText;
		}
	}



	function getFundsList () {
		strFundsList = '<option value="">---------------------</option><option value="">Open-End Funds</option><option value="">---------------------</option><option value="11" >Royce 100 Fund</option><option value="597" >Royce Asia-Pacific Select Fund</option><option value="12" >Royce Discovery Fund</option><option value="16" >Royce Dividend Value Fund</option><option value="181" >Royce European Smaller Cos. Fund</option><option value="18" >Royce Financial Services Fund</option><option value="581" >Royce Focus Value Fund</option><option value="7" >Royce Global Select Fund</option><option value="180" >Royce Global Value Fund</option><option value="4" >Royce Heritage Fund</option><option value="562" >Royce International Smaller Cos. Fund</option><option value="14" >Royce Low-Priced Stock Fund</option><option value="13" >Royce Micro-Cap Fund</option><option value="620" >Royce Mid-Cap Fund</option><option value="2" >Royce Opportunity Fund</option><option value="586" >Royce Partners Fund</option><option value="1" >Royce Pennsylvania Mutual Fund</option><option value="8" >Royce Premier Fund</option><option value="5" >Royce Select Fund I</option><option value="6" >Royce Select Fund II</option><option value="209" >Royce SMid-Cap Select Fund</option><option value="208" >Royce SMid-Cap Value Fund</option><option value="3" >Royce Special Equity Fund</option><!-- <option value="17" >Royce Technology Value Fund</option> --><option value="15" >Royce Total Return Fund</option><option value="9" >Royce Value Fund</option><option value="10" >Royce Value Plus Fund</option><option value="">---------------------</option><option value="">Annuity</option><option value="">---------------------</option><option value="59">Royce Capital Fund - Micro-Cap Portfolio</option><option value="58">Royce Capital Fund - Small-Cap Portfolio</option><option value="">---------------------</option><option value="">Closed-End Funds</option><option value="">---------------------</option><option value="21">Royce Focus Trust</option><option value="20">Royce Micro-Cap Trust</option><option value="19">Royce Value Trust</option>';
		return strFundsList;
	}
	
	function _fundSubmitCompare() {
		var x_1 = document.getElementById('fund_1');
		var x_2 = document.getElementById('fund_2');
		var x_3 = document.getElementById('fund_3');
		var x_4 = document.getElementById('fund_4');
		var query_string = '?';
		var str_funds = '';
		if ( (x_1.value != '') || (x_2.value != '') || (x_3.value != '') || (x_4.value != '') ) {
			if (x_1.value != '') {
				str_funds = str_funds + 'fund1=' + x_1.value + '&';
			}
			if (x_2.value != '') {
				str_funds = str_funds + 'fund2=' + x_2.value + '&';
			}
			if (x_3.value != '') {
				str_funds = str_funds + 'fund3=' + x_3.value + '&';
			}
			if (x_4.value != '') {
				str_funds = str_funds + 'fund4=' + x_4.value + '&';
			}
			window.location = '/Tools/Comparefunds/' + query_string + str_funds;
			
		}
		else  {
			alert('Please select at least one fund to compare.');
			return false;
		}
	}
	
	/* Variables for Randomizer*/
	var mytitle=new Array();
	var myimages=new Array();
	var imagelinks=new Array();
	var imagetexts=new Array();
	
	/* Variables for Picture Slide Show*/
	var pictureslides = new Array();
	var pictureslidesalt = new Array();
	var pictureslidestext = new Array();
	var pictureslideslink = new Array();
	
	function random_imglink(){
		var ry=Math.floor(Math.random()*myimages.length)
		if (ry==0) {
			ry=1;
		}
		document.write('<div class="block-header">' + mytitle[ry] + '</div><a href='+'"'+imagelinks[ry]+'"'+'><img src="'+myimages[ry]+'" border=0></a><ul class="subnav-liststyle"><li>'+ imagetexts[ry]+'</li></ul>');
		
	}
	
 