
	// browser DOM check
var theBrowserInfo = new Object();

function ClientSniffer()
{
	theBrowserInfo.ua = navigator.userAgent.toLowerCase();
	theBrowserInfo.major = parseInt(navigator.appVersion, 10);
	theBrowserInfo.minor = parseFloat("."+navigator.appVersion.split('.')[1].split(" ")[0]);
	theBrowserInfo.spoofer = (theBrowserInfo.ua.indexOf('spoofer') != -1);
	theBrowserInfo.compatible = (theBrowserInfo.ua.indexOf('compatible') != -1);

	theBrowserInfo.firefox = (theBrowserInfo.ua.indexOf("firefox") != -1);
	theBrowserInfo.moz = (theBrowserInfo.ua.indexOf('mozilla')!=-1);
	theBrowserInfo.ie = (theBrowserInfo.ua.indexOf("msie") != -1);
	theBrowserInfo.ns = (theBrowserInfo.ua.indexOf("netscape") != -1);
	theBrowserInfo.opera = (theBrowserInfo.ua.indexOf("opera") != -1);
	theBrowserInfo.safari = (theBrowserInfo.ua.indexOf("safari") != -1);
	theBrowserInfo.webtv = (theBrowserInfo.ua.indexOf("webtv") != -1);
//====================== misc OS & platform ====================================
	theBrowserInfo.win = (theBrowserInfo.ua.indexOf("win") != -1);
	theBrowserInfo.mac = (theBrowserInfo.ua.indexOf("mac") != -1);

	theBrowserInfo.bit16 = (theBrowserInfo.ua.indexOf("16bit") != -1);
	theBrowserInfo.win95 = ((theBrowserInfo.ua.indexOf("win95")!=-1) ||
							(theBrowserInfo.ua.indexOf("windows 95")!=-1));
	theBrowserInfo.win98 = ((theBrowserInfo.ua.indexOf("win98")!=-1) ||
							(theBrowserInfo.ua.indexOf("windows 98")!=-1));
	theBrowserInfo.winnt = ((theBrowserInfo.ua.indexOf("winnt")!=-1) ||
							(theBrowserInfo.ua.indexOf("windows nt")!=-1));
//====================== DOM ====================================
	theBrowserInfo.DOMtest =	!(!(document.getElementById));
//====================== Final Flag ====================================
	theBrowserInfo.DOM = theBrowserInfo.DOMtest;
}

	// sniff the browser for DOM and JavaScript support
var scspi_use_fallback_html;

ClientSniffer();
if(theBrowserInfo.DOM){
	scspi_use_fallback_html = false;
		// debug the dumb site
	if(window && window.location && window.location.search){
		if(window.location.search.slice(1) == 'dumb'){
			scspi_use_fallback_html = true;
		}
	}
}else{
	scspi_use_fallback_html = true;
}

//====================== DOM ====================================

function include_once(theFilename){
	document.write('<script type="text/javascript" src="'+theFilename+'"></script>\r');
}

if(scspi_use_fallback_html === false){
  
	document.write('\r<link href="_css/scspi_debug.css" rel="stylesheet" type="text/css" media="screen">\r');
	document.write('<link href="_css/scspi_dyn.css" rel="stylesheet" type="text/css" media="screen">\r');
	document.write('<link href="_css/scspi_dyn_search.css" rel="stylesheet" type="text/css" media="screen">\r');

	include_once('_scripts/scspi_fastinit.js');

		// must load jQuery before prototype to preserve $
	include_once('_scripts/jquery/jquery.js');
	include_once('_scripts/jquery/custom.js');
	include_once('_scripts/easySlider1.7.js');
	include_once('_scripts/js.js');

	include_once('_scripts/prototype/dist/prototype.js');

	include_once('_scripts/scriptaculous-js/src/scriptaculous.js');
	include_once('_scripts/xslt/c.sarissa.js');

	include_once('_scripts/scspi_js_lib.js');
	include_once('_scripts/scspi_defs.js');
	include_once('_scripts/scspi_key_issues_arrays.js');
	include_once('_scripts/scspi_linkables.js');

	document.write('<!--[if lt IE 7]>\r');
	include_once('_scripts/scspi_menu_dropdown.js');
	document.write('<![endif]-->\r');

	include_once('_scripts/scspi_dyn_content.js');
	include_once('_scripts/scspi_dyn_content_bio_media_footer_nav.js');
	include_once('_scripts/scspi_dyn_content_footer_nav.js');
	include_once('_scripts/scspi_dyn_content_media.js');
	include_once('_scripts/scspi_dyn_content_media_affiliates.js');
	include_once('_scripts/scspi_dyn_content_people.js');
	include_once('_scripts/scspi_dyn_content_people_categories.js');
	include_once('_scripts/scspi_dyn_content_quote.js');
	include_once('_scripts/scspi_dyn_content_search_affiliates.js');
	include_once('_scripts/scspi_dyn_content_search_affiliates_footer_nav.js');
	include_once('_scripts/scspi_dyn_content_search_media.js');
	include_once('_scripts/scspi_dyn_content_search_media_footer_nav.js');
	include_once('_scripts/scspi_dyn_content_search_media_footer_nav_policy.js');
	include_once('_scripts/scspi_dyn_content_search_media_footer_nav_research.js');
	include_once('_scripts/scspi_dyn_content_search_media_footer_nav_journalism.js');
	include_once('_scripts/scspi_dyn_content_search_media_footer_nav_working_papers.js');
	include_once('_scripts/scspi_dyn_content_search.js');
	include_once('_scripts/scspi_affiliate_bio_clean_page.js');
	include_once('_scripts/scspi_affiliate_bio.js');
	include_once('_scripts/scspi_media_catalog_clean_page.js');
	include_once('_scripts/scspi_media_catalog.js');
	include_once('_scripts/scspi_XML_parse_data_to_object.js');
	include_once('_scripts/scspi_XML_post.js');
	include_once('_scripts/scspi_XML_query_objects.js');
	include_once('_scripts/scspi_XML_data_get.js');
	include_once('_scripts/scspi_XSLT.js');

	include_once('_scripts/scspi.js');
}

