/* Platform detection, reroute to appropriate size form boxes */

var isPC = false;
var isIE = false;
var isLATERAPP = false;

// testing
if ((navigator.platform.indexOf("Win32") != -1) || (navigator.platform.indexOf("Win16") != -1))
	isPC = true;	
if (navigator.appName.indexOf("Microsoft") != -1)
	isIE = true;	
if (parseFloat(navigator.appVersion) >= 5.0)
	isLATERAPP = true;
// -->
if (isIE) {
	document.write('&nbsp; | &nbsp;<b>Search:</b> &nbsp; <input type="text" size="16" name="NS-query" class="subNav" /> &nbsp; <input type="image" src="http://www.csmonitor.com/images/search_go.gif" border="0" /></td></form></tr><tr><td width="760" height="3" colspan="23"><img src="/images/s.gif" width="760" height="3" alt="" border="0" /></td></tr>');
	//document.write('this is ie');
} else if (!(isIE) && (isLATERAPP)) {
	document.write('&nbsp; | &nbsp;<b>Search:</b> &nbsp; <input type="text" size="14" name="NS-query" class="subNav" /> &nbsp; <input type="image" src="http://www.csmonitor.com/images/search_go.gif" border="0" /></td></form></tr><tr><td width="760" height="3" colspan="23"><img src="/images/s.gif" width="760" height="3" alt="" border="0" /></td></tr>');
	// document.write('this is new nn');
} else {
	document.write('&nbsp; | &nbsp;<b>Search:</b> &nbsp; <input type="text" size="10" name="NS-query" class="subNav" /> &nbsp; <input type="image" src="http://www.csmonitor.com/images/search_go.gif" border="0" align="absmiddle" /></td></form></tr><tr><td width="760" height="10" colspan="23"><img src="/images/s.gif" width="760" height="10" alt="" border="0" /></td></tr>');
	// document.write('this is old nn');
}

