If it is similar to Canada (I assume it is the same Thai rules) you can get a visa through Thai embassy for 2 months up to 6 months, although multiple entry you might need a border run after 2 months. People here are saying extend 30 days, anyway do this before you travel.