var bIE,bNN6,bOP,bNN6i;
var bIE=bNN6=bOP=bNN6i=0;
if (window.opera){bOP=1;} 
if (window.sidebar){bNN6=1;}
if (document.getElementById&&!bOP&&!bNN6){bIE=1;} 
if (bNN6 && navigator.userAgent.indexOf("6.0")!=-1||navigator.userAgent.indexOf("6.01")!=-1) {bNN6i=1;}

function dropit(num){
		pict=document.images['p'+num];
if (bIE) {
		menuha=document.getElementById('dropmenu'+num);
		clearTimeout(menuha.hidelink);
		menuha.style.top =parseInt(parseInt(hpic(pict))-1)+'px';
		menuha.style.left=parseInt(parseInt(wpic(pict))+parseInt(pict.width)-1)+'px';
                menuha.firstChild.style.filter='alpha(opacity=100)';
		menuha.firstChild.opacity=100;
		menuha.style.visibility="visible";
}
if (bNN6i) {
		oneNN = document.getElementById('dropmenu'+num);
		if (window.menuha&&menuha.id!=oneNN.id)
		{menuha.style.visibility="hidden";}
		menuha=oneNN;
		menuha.style.top =parseInt(parseInt(hpic(pict))-1)+'px';
		menuha.style.left=parseInt(parseInt(wpic(pict))+parseInt(pict.width)-1)+'px';
		menuha.style.visibility="visible";
}
if (bNN6) {
		menuha = document.getElementById('dropmenu'+num);
		clearTimeout(menuha.hidelink);
		menuha.style.MozOpacity=1;
		menuha.style.top =parseInt(parseInt(hpic(pict))-1)+'px';
		menuha.style.left=parseInt(parseInt(wpic(pict))+parseInt(pict.width)-1)+'px';
		menuha.style.visibility="visible";
}
if(bOP){
		menu = document.getElementById('dropmenu'+num);
		if (window.menuha&&menuha.id!=menu.id)
		{menuha.style.visibility="hidden";}
		menuha=menu;
		menuha.style.top =parseInt(parseInt(hpic(pict))+1)+'px';
		menuha.style.left=parseInt(parseInt(wpic(pict))+parseInt(document.images['p'+num].width)+1)+'px';
		menuha.style.visibility="visible";}}


function InIeMozNn(num){
		pict=document.images['p'+num];
if (bIE) {
		menuha=document.getElementById('dropmenu'+num);
		clearTimeout(menuha.hidelink);
                menuha.firstChild.style.filter='alpha(opacity=100)';
		menuha.firstChild.opacity=100;
		menuha.style.visibility="visible";
}
if (bNN6) {
		menuha = document.getElementById('dropmenu'+num);
		clearTimeout(menuha.hidelink);
		menuha.style.MozOpacity=1;
		menuha.style.visibility="visible";}}

function OutIeMozNn(num){
if (bIE){
		 menuha=document.getElementById('dropmenu'+num);
             	 menuha.firstChild.opacity=menuha.firstChild.opacity>20?parseFloat
                 (parseFloat(menuha.firstChild.opacity)-10):0;
		 menuha.firstChild.style.filter='alpha(opacity='+menuha.firstChild.opacity+')';
		 if (menuha.firstChild.opacity>0){
		 menuha.hidelink=setTimeout("OutIeMozNn("+num+")",0);}
		 else{
		 menuha.style.visibility='hidden';}
}
if (bNN6&&!bNN6i){
		menuha=document.getElementById('dropmenu'+num);
		menuha.style.MozOpacity=parseFloat(parseFloat(menuha.style.MozOpacity)-parseFloat(0.1))
		if (parseFloat(menuha.style.MozOpacity)>0){
		menuha.hidelink=setTimeout("OutIeMozNn("+num+")",5); }
		else{
		menuha.style.visibility='hidden';}
}
}


function OutBrON(){
if(bOP){menuha.style.visibility="hidden";}
if(bNN6i){menuha.style.visibility="hidden";}
}
function hpic(pic){return (pic.offsetParent)?pic.offsetTop+hpic(pic.offsetParent):0;}
function wpic(pic){return (pic.offsetParent)?pic.offsetLeft+wpic(pic.offsetParent):0;}
nereidFadeObjects = new Object();
nereidFadeTimers = new Object();
