<!--

if (document.images) {
	var nav_reorderA = new Image()
	nav_reorderA.src = "images/nav_reorder_off.gif"
	var nav_reorderZ = new Image()
	nav_reorderZ.src = "images/nav_reorder_on.gif"		

	var nav_homeA = new Image()
	nav_homeA.src = "images/nav_home_off.gif"
	var nav_homeZ = new Image()
	nav_homeZ.src = "images/nav_home_on.gif"		

	var nav_productA = new Image()
	nav_productA.src = "images/nav_product_off.gif"
	var nav_productZ = new Image()
	nav_productZ.src = "images/nav_product_on.gif"		

	var nav_ingredientsA = new Image()
	nav_ingredientsA.src = "images/nav_ingredients_off.gif"
	var nav_ingredientsZ = new Image()
	nav_ingredientsZ.src = "images/nav_ingredients_on.gif"		

	var nav_faqsA = new Image()
	nav_faqsA.src = "images/nav_faqs_off.gif"
	var nav_faqsZ = new Image()
	nav_faqsZ.src = "images/nav_faqs_on.gif"		

	var nav_serviceA = new Image()
	nav_serviceA.src = "images/nav_service_off.gif"
	var nav_serviceZ = new Image()
	nav_serviceZ.src = "images/nav_service_on.gif"		

	var nav_contactA = new Image()
	nav_contactA.src = "images/nav_contact_off.gif"
	var nav_contactZ = new Image()
	nav_contactZ.src = "images/nav_contact_on.gif"		

	var nav_aboutA = new Image()
	nav_aboutA.src = "images/nav_about_off.gif"
	var nav_aboutZ = new Image()
	nav_aboutZ.src = "images/nav_about_on.gif"		

}

function act(imgName) {
	if (document.images)
	document[imgName].src = eval(imgName + 'Z.src')
}

function inact(imgName) {
	if (document.images)
	document[imgName].src = eval(imgName + 'A.src')
}

function autotab(original,destination){
	if (original.getAttribute&&original.value.length==original.getAttribute("maxlength")) destination.focus();
}


function popup(url) {
var msgWindow=open(url,'viewclip','toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=600,height=400');
msgWindow.opener = this.window;
}	

function CreateBookmarkLink() {

 title = "Memacin"; 
 url = "http://www.memacin.com";

	if (window.sidebar) { // Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url,"");
	} else if( window.external ) { // IE Favorite
		window.external.AddFavorite( url, title); }
	else if(window.opera && window.print) { // Opera Hotlist
		return true; }
 }

function toggleLayer( whichLayer )
{
  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( whichLayer );
  else if( document.all ) // this is the way old msie versions work
	elem = document.all[whichLayer];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[whichLayer];
  vis = elem.style;
  // if the style.display value is blank we try to figure it out here
  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
    vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
  	vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}

// -->
