// Predeclare Images

        if (document.images)
        {
                home = new Image();
                home.src = "../assets/nav/home.gif";
                home_on = new Image();
                home_on.src = "../assets/nav/home-on.gif";
			   
			    about = new Image();
                about.src = "../assets/nav/about.gif";
                about_on = new Image();
                about_on.src = "../assets/nav/about-on.gif";
				
				team = new Image();
                team.src = "../assets/nav/team.gif";
                team_on = new Image();
                team_on.src = "../assets/nav/team-on.gif";
				
				portfolio = new Image();
                portfolio.src = "../assets/nav/portfolio.gif";
                portfolio_on = new Image();
                portfolio_on.src = "../assets/nav/portfolio-on.gif";
				
				news = new Image();
                news.src = "../assets/nav/news.gif";
                news_on = new Image();
                news_on.src = "../assets/nav/news-on.gif";
				
				invest = new Image();
                invest.src = "../assets/nav/invest.gif";
                invest_on = new Image();
                invest_on.src = "../assets/nav/invest-on.gif";
				
				contact = new Image();
                contact.src = "../assets/nav/contact.gif";
                contact_on = new Image();
                contact_on.src = "../assets/nav/contact-on.gif";
	
            }
			


//  Function for Image On or Off

function change(img,act)
{ if (document.images) 
  { if (act=="on")  
    { document [img].src = eval(img+'_on.src'); 
     } 
    else
    { document [img].src = eval(img+'.src');} 
  } 
}



