if (document.images) {
   
     button1 = new Image
     button2 = new Image
	 
	 button3 = new Image
     button4 = new Image
	 
	 button5 = new Image
     button6 = new Image
	 
	 button7 = new Image
     button8 = new Image
	 
	 button9 = new Image
     button10 = new Image
	 
	 button11 = new Image
     button12 = new Image
	 
	 button13 = new Image
     button14 = new Image
	 
	 button15 = new Image
     button16 = new Image
	 
	 button17 = new Image
     button18 = new Image
	 
	 button19 = new Image
     button20 = new Image
	 
	 button21 = new Image
     button22 = new Image
	 
	 button23 = new Image
     button24 = new Image
	 
	 button25 = new Image
     button26 = new Image
	 
	 button27 = new Image
     button28 = new Image
	 
	 button29 = new Image
     button30 = new Image
	 
	 button31 = new Image
     button32 = new Image
	 
	 	 
     button1.src = 'images/login.jpg'
     button2.src = 'images/login-hvr.jpg'
	 
	 button3.src = 'images/blog.png'
     button4.src = 'images/blog-hvr.png'
	 
	 button5.src = 'images/contact.png'
     button6.src = 'images/contact-hvr.png'
	 
	 button7.src = 'images/resource.png'
     button8.src = 'images/resource-hvr.png'
	 
	 button9.src = 'images/get-quote.jpg'
     button10.src = 'images/get-quote-hvr.jpg'
	 
	 button11.src = 'images/calendar.jpg'
     button12.src = 'images/calendar-hvr.jpg'
	 
	 button13.src = 'images/investment.jpg'
     button14.src = 'images/investment-hvr.jpg'
	 
	 button15.src = 'images/forum1.jpg'
     button16.src = 'images/forum1-hvr.jpg'
	 
	 button17.src = 'images/train-vid.jpg'
     button18.src = 'images/train-vid-hvr.jpg'
	 
	 button19.src = 'images/classified.jpg'
     button20.src = 'images/classified-hvr.jpg'
	 
	 button21.src = 'images/ezine.jpg'
     button22.src = 'images/ezine-hvr.jpg'
	 
	 button23.src = 'images/hr.jpg'
     button24.src = 'images/hr-hvr.jpg'
	 
	 button25.src = 'images/medical.jpg'
     button26.src = 'images/medical-hvr.jpg'
	 
	 button27.src = 'images/suggestion.jpg'
     button28.src = 'images/suggestion-hvr.jpg'
	 
	 button29.src = 'images/team.jpg'
     button30.src = 'images/team-hvr.jpg'
	 
	 button31.src = 'images/logout.jpg'
     button32.src = 'images/logout-hvr.jpg'
}



var menu=function(){
	var t=15,z=50,s=6,a;
	function dd(n){this.n=n; this.h=[]; this.c=[]}
	dd.prototype.init=function(p,c){
		a=c; var w=document.getElementById(p), s=w.getElementsByTagName('ul'), l=s.length, i=0;
		for(i;i<l;i++){
			var h=s[i].parentNode; this.h[i]=h; this.c[i]=s[i];
			h.onmouseover=new Function(this.n+'.st('+i+',true)');
			h.onmouseout=new Function(this.n+'.st('+i+')');
		}
	}
	dd.prototype.st=function(x,f){
		var c=this.c[x], h=this.h[x], p=h.getElementsByTagName('a')[0];
		clearInterval(c.t); c.style.overflow='hidden';
		if(f){
			p.className+=' '+a;
			if(!c.mh){c.style.display='block'; c.style.height=''; c.mh=c.offsetHeight; c.style.height=0}
			if(c.mh==c.offsetHeight){c.style.overflow='visible'}
			else{c.style.zIndex=z; z++; c.t=setInterval(function(){sl(c,1)},t)}
		}else{p.className=p.className.replace(a,''); c.t=setInterval(function(){sl(c,-1)},t)}
	}
	function sl(c,f){
		var h=c.offsetHeight;
		if((h<=0&&f!=1)||(h>=c.mh&&f==1)){
			if(f==1){c.style.filter=''; c.style.opacity=1; c.style.overflow='visible'}
			clearInterval(c.t); return
		}
		var d=(f==1)?Math.ceil((c.mh-h)/s):Math.ceil(h/s), o=h/c.mh;
		c.style.opacity=o; c.style.filter='alpha(opacity='+(o*100)+')';
		c.style.height=h+(d*f)+'px'
	}
	return{dd:dd}
}();
