function domenu(){
	listMenu = new FSMenu('listMenu',true,'visibility','visible','hidden');
	
	listMenu.showDelay = 0;
	listMenu.switchDelay = 75;
	listMenu.hideDelay = 250;
	listMenu.cssLitClass = 'highlighted';
	//listMenu.showOnClick = 1;
	listMenu.animations[listMenu.animations.length]=animFade;
	listMenu.animations[listMenu.animations.length]=animClipDown;
	listMenu.animSpeed=50;
	
	arrow=null;

	if(document.createElement && document.documentElement){

// following code block used to create image arrow icon
//		arrow=document.createElement('img');
//		with(arrow){
//			src='images/bulletNav.gif';
		//	style.borderWidth='0';
		//	width='15';
		//	height='15';
//		}
		
		//arrow.className='sub';
	}
	
	addEvent(window,'load',new Function('listMenu.activateMenu("navbar",arrow)'));
}


function animClipDown(ref, counter){
	var cP=Math.pow(Math.sin(Math.PI*counter/200),0.75);
	ref.style.clip=(counter==100 ?((window.opera || navigator.userAgent.indexOf('KHTML') > -1)?'':'rect(auto, auto, auto, auto)'):'rect(0, '+ref.offsetWidth+'px, '+(ref.offsetHeight*cP)+'px, 0)');
}

function animFade(ref,counter){
	var f=ref.filters,done=(counter==100);
	
	if(f){
		if(!done && ref.style.filter.indexOf("alpha")==-1){
			ref.style.filter+=' alpha(opacity='+counter+')';
		}else if(f.length && f.alpha){
			with(f.alpha){
				if(done){
					enabled=false;
				}else{
					opacity=counter;enabled=true;
				}
			}
		}
	}else{
		ref.style.opacity=ref.style.MozOpacity=counter/100.1;
	}
}
