var pre_img=new Array();
var pre_img_alt=new Array();
var img=new Array("home.jpg", "services.jpg", "portfolio.jpg", "faq.jpg", "career.jpg", "about.jpg", "contact.jpg");
var img_alt=new Array("home_alt.jpg", "services_alt.jpg", "portfolio_alt.jpg", "faq_alt.jpg", "career_alt.jpg", "about_alt.jpg", "contact_alt.jpg");
function get_value(id)
{
        return document.getElementById(id).value;
}
function putValue(myId,myValue)
{
        document.getElementById(myId).value = myValue ;
}
function get_content(id)
{
        return document.getElementById(id).innerHTML;
}
function put_content(id, val)
{
        document.getElementById(id).innerHTML=val;
}
function show_content(id)
{
        document.getElementById(id).style.display ="block";
}
function hide_content(id)
{
        document.getElementById(id).style.display ="none";
}
function content_status(id)
{
	return document.getElementById(id).style.display;
}
function putImage(myId,myValue)
{
        document.getElementById(myId).src = myValue ;
}
function preload_image(image_arr, arr)
{
	for(var i=0; i<arr.length; i++)
	{
		image_arr[i]=new Image();
		image_arr[i].src="http://www.becomeexpert.org/images/" + arr[i];
	}
}
preload_image(pre_img, img);
preload_image(pre_img_alt, img_alt);
function change_image(no)
{
        
		for(var i=0; i<7; i++)
        {
                
				j="menu" + i;				
                if(i==no)
				{
						putImage(j, pre_img_alt[i].src);
				}
				else
				{
					putImage(j, pre_img[i].src);
				}
        }

}
