I have seen a few functions that allow one to attach classes/ID's to menu items; unfortunately, none of them apply to my use case. What I want to do is assign a class/ID to any menu item based on the content type of the linked item.
For example, I have a content type called "Internal" which is only displayed if the viewer is within the accepted IP range (my way of having intranet pages without having a separate site). I want to style these links differently.
On the same lines, I would like to be able to style external links in the menu as well.
Note, I am aware of the Menu Attributes module (http://drupal.org/project/menu_attributes), which does allow me to assign my own ID's to the menu items, but I want something automated as I have well over 100 content editors on the site. Something like this would ideally be an automated process.