var ipath = "/images/";

home = new Image (95, 37);
home_on = new Image (95, 37);
home.src = ipath + "home.png";
home_on.src = ipath + "home_on.png";

products = new Image (95, 37);
products_on = new Image (95, 37);
products.src = ipath + "products.png";
products_on.src = ipath + "products_on.png";

company = new Image (95, 37);
company_on = new Image (95, 37);
company.src = ipath + "company.png";
company_on.src = ipath + "company_on.png";

faq = new Image (95, 37);
faq_on = new Image (95, 37);
faq.src = ipath + "faq.png";
faq_on.src = ipath + "faq_on.png";

purchase = new Image (95, 37);
purchase_on = new Image (95, 37);
purchase.src = ipath + "purchase.png";
purchase_on.src = ipath + "purchase_on.png";

opportunity = new Image (95, 37);
opportunity_on = new Image (95, 37);
opportunity.src = ipath + "opportunity.png";
opportunity_on.src = ipath + "opportunity_on.png";

contactus = new Image (95, 37);
contactus_on = new Image (95, 37);
contactus.src = ipath + "contactus.png";
contactus_on.src = ipath + "contactus_on.png";

moreinfo = new Image (132, 50);
moreinfo_on = new Image (132, 50);
moreinfo.src = ipath + "moreinfo.png";
moreinfo_on.src = ipath + "moreinfo_on.png";

pImmunocal = new Image (132, 50);
pImmunocal_on = new Image (132, 50);
pImmunocal.src = ipath + "pImmunocal.png";
pImmunocal_on.src = ipath + "pImmunocal_on.png";

ImmunotecOpportunity = new Image (132, 50);
ImmunotecOpportunity_on = new Image (132, 50);
ImmunotecOpportunity.src = ipath + "ImmunotecOpportunity.png";
ImmunotecOpportunity_on.src = ipath + "ImmunotecOpportunity_on.png";

function button_on (imgName) {
	if (document.images) {
 		buttonOn = eval (imgName + "_on.src");
		document [imgName].src = buttonOn;
 	}
}
 
function button_off (imgName ) {
	if (document.images) {
		buttonOff = eval ( imgName + ".src" );
	    document [imgName].src = buttonOff;
 	}
}

function addBookmark(title, url) {
	if (window.sidebar) { // firefox
		window.sidebar.addPanel(title, url,"");
	} 
	else if( document.all ) { //MSIE
		window.external.AddFavorite( url, title);
	}
	else {
		alert("Sorry, your browser doesn't support this");
	}
}

function right(e) {
	var msg = "Copyright © 2009 Optimum Immune Health. All Rights Reserved.";
	if (navigator.appName == 'Netscape' && e.which == 3) {
		alert(msg); 
		return false;
	}
	else if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
		alert(msg); 
		return false;
	}
	return true;
}

function smTo(subject, body) {
	locationstring = 'mai' + 'lto:' + '?' + 'sub' + 'ject' + '=' + escape(subject) + '&' + 'bo' + 'd' + 'y' + '=' + escape(body);
	window.location.replace(locationstring);
}

function fix_addr(){ 
	var fix1,fix2,fix3,fix4;
	fix1 = "<a href=";
	fix1 += '"mai';
	fix1 += 'lto:';
	fix2 = '';
 	fix2 += 'a';
 	fix2 += 'i';
 	fix2 += 'l';
 	fix2 += 'e';
 	fix2 += 'e';
 	fix2 += 'n';
 	fix2 += '.';
 	fix2 += 'r';
 	fix2 += 'o';
 	fix2 += 's';
 	fix2 += 'e';
 	fix2 += 'm';
 	fix2 += 'a';
 	fix2 += 'r';
 	fix2 += 'y';
 	fix2 += '@';
 	fix2 += 'O';
 	fix2 += 'p';
 	fix2 += 't';
 	fix2 += 'i';
 	fix2 += 'm';
 	fix2 += 'u';
 	fix2 += 'm';
 	fix2 += 'I';
 	fix2 += 'm';
 	fix2 += 'm';
 	fix2 += 'u';
 	fix2 += 'n';
 	fix2 += 'e';
 	fix2 += 'H';
 	fix2 += 'e';
 	fix2 += 'a';
 	fix2 += 'l';
 	fix2 += 't';
 	fix2 += 'h';
 	fix2 += '.';
 	fix2 += 'c';
 	fix2 += 'o';
 	fix2 += 'm';
	fix3 = '';
	fix3 += '">';
 	fix3 += 'a';
 	fix3 += 'i';
 	fix3 += 'l';
 	fix3 += 'e';
 	fix3 += 'e';
 	fix3 += 'n';
 	fix3 += '.';
 	fix3 += 'r';
 	fix3 += 'o';
 	fix3 += 's';
 	fix3 += 'e';
 	fix3 += 'm';
 	fix3 += 'a';
 	fix3 += 'r';
 	fix3 += 'y';
 	fix3 += '@';
 	fix3 += 'O';
 	fix3 += 'p';
 	fix3 += 't';
 	fix3 += 'i';
 	fix3 += 'm';
 	fix3 += 'u';
 	fix3 += 'm';
 	fix3 += 'I';
 	fix3 += 'm';
 	fix3 += 'm';
 	fix3 += 'u';
 	fix3 += 'n';
 	fix3 += 'e';
 	fix3 += 'H';
 	fix3 += 'e';
 	fix3 += 'a';
 	fix3 += 'l';
 	fix3 += 't';
 	fix3 += 'h';
 	fix3 += '.';
 	fix3 += 'c';
 	fix3 += 'o';
 	fix3 += 'm';
	fix4 = '</a>';
	document.write(fix1+fix2+fix3+fix4);
}
