// Drop v4.1.2 by MaxxBlade www.maxxblade.co.uk
var moz=(document.getElementById&&!document.all)?1:0;
function winWid(){ return (moz)?window.innerWidth-10:document.body.clientWidth; }
function winHei(){ return (moz)?window.innerHeight:document.body.clientHeight; }
function setPop(q){
	clearTimeout(gr);
	clearTimeout(popgr);
	if(fo != q){ hideDrop(); }
	fo = q;
	var tpbut=eval(popbut),tpbutw=eval(popbut+"."+theclient+"Width"),tpbuth=eval(popbut+"."+theclient+"Height"),tplayer=eval(poplayer),tlwid=eval(layerwid),tlhei=eval(layerhei),shlayer=eval(popshad);
	if(t[fo].length>1){
		tpbut.className="dropbuttonhover";
		if(hov||isopen){
			var lwidpos=tpbut.offsetLeft+tlwid; tplayer.style.left=(lwidpos<winWid())?tpbut.offsetLeft : tpbut.offsetLeft+tpbutw-tlwid+3; shlayer.style.left=(lwidpos<winWid())?tpbut.offsetLeft+3 : tpbut.offsetLeft+tpbutw-tlwid+6; tplayer.style.top=tpbut.offsetTop+tpbuth; shlayer.style.top=tpbut.offsetTop+tpbuth+3; shlayer.style.width=tlwid; shlayer.style.height=tlhei; tplayer.style.visibility='visible'; shlayer.style.visibility='visible';
		}else{ hov=true; popgr=setTimeout('setPop('+q+')',100); }
	}
}
function clearPop(){ hov=false;clearTimeout(popgr);gr=setTimeout("closePop()",500); }
function closePop(){ if(!hov) hideDrop(); }
function hideDrop(){ isopen=false; with(eval(poplayer+".style")){ visibility="hidden"; } with(eval(popshad+".style")){ visibility="hidden"; } with(eval(popbut)){ className="dropbutton"; } }
var gr, popgr, fo=1, isopen=false; hov=false, maxdrop=parseInt((winHei()-70)/dropfontheight), poplayer="document.getElementById('pop'+fo)", popbut="document.getElementById('mainbut'+fo)", popshad="document.getElementById('shad'+fo)", theclient=(moz)?"offset":"client", layerwid=poplayer+"."+theclient+"Width", layerhei = poplayer+"."+theclient+"Height";
var outhtml='<table border="0" cellpadding="0" cellspacing="0" class="dropbar"><tr>';
for(n=0;n<t.length;n++){ outhtml+='<td onmouseover="JavaScript:setPop('+n+');" onmouseout="JavaScript:clearPop();" id="mainbut'+n+'" style="position:relative" class="dropbutton">'+((t[n].length>1)?t[n][0]:'<a href="'+f[n][0]+'">'+t[n][0]+'</a>')+'</td>'; }
outhtml+='</tr></table>';
for(n=0;n<t.length;n++){
	outhtml+='<div id="pop'+n+'" style="position:absolute;visibility:hidden;z-index:2;" onmouseover="JavaScript:hov=true;" onmouseout="JavaScript:clearPop();"><table cellspacing="0" cellpadding="0"><tr><td class="dropmenu">';
	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++){
			loc = ((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];
			outhtml+='<a href="'+loc+'"><div class="dropitem" onmouseover="JavaScript:this.className=\'dropitemhover\';" onmouseout="JavaScript:this.className=\'dropitem\';">&#149; '+t[n][q]+'</div></a>';
		}
		outhtml+=(z<dropcols-1)?'</td><td class="dropmenu">':'';
	}
	outhtml+='</td></tr></table></div><div id="shad'+n+'" class="dropshadow" style="position:absolute; visibility:hidden; '+((moz)?"-moz-opacity:0.2;":"filter:alpha(opacity=20)")+';">&nbsp;</div>';
}
document.write(outhtml);