
	<!------ OAS SETUP begin ------>
	
	//configuration
	OAS_sitepage = 'www.morningstar.com/quicktake/stockcharts';
	ad_userType = Get_Cookie('PSI')
	if (ad_userType == "S")
		OAS_listpos = 'Top,Top1,Top2,TopRight,Bottom,Left1,Left3,Position1,Position2,Position3,Position4,Right,x05';
	else	
		OAS_listpos = 'TopLeft,Top1,Top2,TopRight,Bottom,Left1,Left3,Position1,Position2,Position3,Position4,Right,x05,x07,x30';
	OAS_query = 'section=Charts&ticker=' + security + '&country=USA&searchword=';
	
	OAS_url ='http://ads.morningstar.com/RealMedia/ads/';
	//end of configuration
	OAS_version = 10;
	OAS_rn = '001234567890'; OAS_rns = '1234567890';
	OAS_rn = new String (Math.random()); OAS_rns = OAS_rn.substring (2, 11);
	
	function OAS_NORMAL(pos) { 
		document.write('<A HREF="' + OAS_url + 'click_nx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + '" TARGET=_top>');
		document.write('<IMG SRC="' + OAS_url + 'adstream_nx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + '" BORDER=0></A>');
	}
	
	OAS_version = 11;
	if ((navigator.userAgent.indexOf('Mozilla/3') != -1) || (navigator.userAgent.indexOf('Mozilla/4.0 WebTV') != -1))
	OAS_version = 10;
	if (OAS_version >= 11)
	document.write('<SCR'+ 'IPT LANGUAGE=JavaScript1.1 SRC="' + OAS_url + 'adstream_mjx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '?' + OAS_query + '"><\/SCRIPT>');
	 
	 document.write('');
	
	function OAS_AD(pos) {
		if (OAS_version >= 11)
		OAS_RICH(pos);
		else
		OAS_NORMAL(pos);
	}
	
	// this function gets the cookie, if it exists
	function Get_Cookie( name ) {
		
		var start = document.cookie.indexOf( name + "=" );
		var len = start + name.length + 1;
		if ( ( !start ) &&
		( name != document.cookie.substring( 0, name.length ) ) )
		{
		return null;
		}
		if ( start == -1 ) return null;
		var end = document.cookie.indexOf( ";", len );
		if ( end == -1 ) end = document.cookie.length;
		return unescape( document.cookie.substring( len, end ) );
	}
				
	
	<!------ OAS SETUP end ------>
