var anime_text = " INDRAFOOD ... giving you the best of Indonesian Delight";
var scrollpos  = 1;

function home_menu_highlight(sender)
{
   eval(sender+".style.cursor = 'HAND'") 
   eval(sender+".style.color  = 'YELLOW'")

   switch (sender)
   {   case "indra_products" : { lyr_img_menu.style.visibility = 'visible'; 
                               img_menu.src = 'images/gbr_pojok_our_products.gif';
							 } break;
	   case "indra_history"     : { lyr_img_menu.style.visibility = 'visible';
	                           img_menu.src = 'images/gbr_pojok_our_history.gif';
							 } break;					 
	   case "worldwide"  : { lyr_img_menu.style.visibility = 'visible';
	                           img_menu.src = 'images/gbr_pojok_worldwide_shipping.gif';
							 } break;					 
	   case "contact_us"  : { lyr_img_menu.style.visibility = 'visible';
	                           img_menu.src = 'images/gbr_pojok_contact_us.gif';
							 } break;					 
	   case "indra_location" : { lyr_mainwindow2.style.visibility = 'visible';
							  } break;					 
   }	 
}

function home_menu_unhighlight(sender)
{
   eval(sender+".style.color          = 'WHITE'")
   lyr_img_menu.style.visibility      = 'hidden';
   lyr_mainwindow2.style.visibility = 'hidden';
}

function home_menu_click(sender)
{
   switch (sender)
   {   case "indra_products"   : { window.location.href='products_deepfried_shrimp.htm'; 
							   } break;
       case "indra_history"       : { window.location.href='indra_history.htm'; 
							   } break;
       case "worldwide" : { window.location.href='indra_worldwide.htm'; 
							   } break;
       case "contact_us"     : { window.location.href='mailto:marketing@indrafood.com'; 
							   } break;
       case "products_deepfried_shrimp" : { window.location.href='products_deepfried_shrimp.htm'; 
							   } break;
       case "products_deepfried_squid" : { window.location.href='products_deepfried_squid.htm'; 
							   } break;
       case "products_chilli" : { window.location.href='products_chilli.htm'; 
							   } break;
       case "products_balado" : { window.location.href='products_balado.htm'; 
							   } break;
       case "products_garlic" : { window.location.href='products_garlic.htm'; 
							   } break;
       case "indra_home" : { window.location.href='main.htm'; 
							   } break;
       case "" : { window.location.href='.htm'; 
							   } break;
       case "" : { window.location.href='.htm'; 
							   } break;
       case "" : { window.location.href='.htm'; 
							   } break;
       
   }	 
}

function home_click(sender)
{
   window.location.href='main.htm';
}

function anime_status()
{
    window.status=anime_text.substring(scrollpos,anime_text.length)+anime_text.substring(1,scrollpos);
    scrollpos = (scrollpos - 1) % anime_text.length + 2;  
	window.setTimeout("anime_status()",100); 
}


anime_text = anime_text + '                   ' + anime_text + '                   '

window.setTimeout("anime_status()",100);

