Find content type id

In my templates, I want to be able to find the content type id of the item.
Normally, to read a value we use the following code:

$sys.item.getProperty(“rx:browser_title”).String)

I believe there is a similar call to get the content type name or content type id. Does any one knows what is the API call to get the content type name/ id in the templates?

thanks
Manvinder

See http://forum.percussion.com/showthread.php?10610-Getting-contentTypeId-of-included-item-in-AutoIndex&highlight=content+type. Basically, you’ll use

<content node object>.getPrimaryNodeType().getType())