// Drop v5.1 (Strict) by MaxxBlade www.maxxblade.co.uk
function setPop(q){
	clearTimeout(gr);
	if(fo != q){ hideDrop(); } 
	fo = q;
	drop[0][fo].className="dropbuttonhover";
	if(hov||isopen){
		for(x=1;x<3;x++){
			with(drop[x][fo].style){
				left=(((drop[0][fo].offsetParent.offsetLeft+drop[0][fo].offsetLeft)+(((drop[0][fo].offsetLeft+drop[1][fo].clientWidth)<document.documentElement.clientWidth)?0:drop[0][fo].clientWidth-(drop[1][fo].clientWidth+3)))+((x-1)*3))+"px";
				top=(drop[0][fo].offsetParent.offsetTop+drop[0][fo].clientHeight)+"px";
				visibility='visible';
			}
		}
		isopen=true;
	}else{
		hov=true; gr=setTimeout('setPop('+q+')',100);
	}
}
function clearPop(){ hov=false;clearTimeout(gr);gr=setTimeout("closePop()",500); }
function closePop(){ if(!hov) hideDrop(); }
function hideDrop(){ isopen=false;drop[1][fo].style.visibility="hidden";drop[2][fo].style.visibility="hidden";drop[0][fo].className="dropbutton"; }
var gr,fo=1,isopen=false,hov=false,drop=new Array();drop[0]=new Array();drop[1]=new Array();drop[2]=new Array();
document.write('<div class="dropitem" style="position:absolute;visibility:hidden" id="test">T</div><div class="dropbar">');
for(n=0;n<t.length;n++){
	document.write('<div onmouseover="JavaScript:setPop('+n+');" onmouseout="JavaScript:clearPop();" id="mainbut'+n+'" class="dropbutton">'+((t[n].length>1)?t[n][0]:'<a href="'+f[n][0]+'">'+t[n][0]+'</a>')+'</div>');
	drop[0][n]=document.getElementById('mainbut'+n);
}
document.write('<div style="clear:both" id="droppos"></div></div>');
maxdrop=parseInt((((window.opera)?window.innerHeight:document.documentElement.clientHeight)-(document.getElementById('droppos').offsetTop+document.getElementById('droppos').offsetParent.offsetTop))/(document.getElementById('test').clientHeight+2));
for(n=0;n<t.length;n++){
	document.write('<div id="pop'+n+'" onmouseover="JavaScript:hov=true;" onmouseout="JavaScript:clearPop();" class="dropmenu"><table cellspacing="0" cellpadding="0" border="0"><tr><td>');
	dropcols=parseInt((t[n].length/maxdrop)+1);
	for(z=0;z<dropcols;z++){
		starty=(z*maxdrop)+1;endy=starty+maxdrop;endy=(endy>t[n].length)?t[n].length:endy;
		for(q=starty;q<endy;q++){
			document.write('<a href="'+(((f[n][q].indexOf('http://')==-1)&&(f[n][q].indexOf('mailto')==-1))?drophome+'/'+(((usedeffol)&&(f[n][q].indexOf(".")==-1))?f[n][0]+'/':'')+f[n][q]:f[n][q])+'" class="dropitem">&#149; '+t[n][q]+'</a>');
		}
		document.write(((z<dropcols-1)?'</td><td style="vertical-align:top">':''));
	}
	document.write('</td></tr></table></div>');drop[1][n]=document.getElementById('pop'+n);document.write('<div id="shad'+n+'" class="dropshadow" style="height:'+drop[1][n].clientHeight+'px;width:'+drop[1][n].clientWidth+'px;">.</div>');drop[2][n]=document.getElementById('shad'+n);
}