I own a copy of socialengine. what i need is a simple script done that checks to see if the browser is iphone or android based. if it is it should load the mobile version of the template. socialengine uses smarty template engine and each page gets a .tpl file