var IndicesChartBaseURL = "http://www.cnportfolio.idmanagedsolutions.com/charts/quotechart/quote.chart?";
var IDINDEXNOTATIONS = new Object();
var IndexPrices = new Array();
IDINDEXNOTATIONS['SP500'] = 4359526;
IndexPrices['SP500'] = 'Last Quote: 1,388.28
-9.40 as of 5.9.2008';
IDINDEXNOTATIONS['DJIA'] = 324977;
IndexPrices['DJIA'] = 'Last Quote: 12,745.88
-120.90 as of 5.9.2008';
IDINDEXNOTATIONS['NASDAQ'] = 324985;
IndexPrices['NASDAQ'] = 'Last Quote: 2,445.52
-5.72 as of 5.9.2008';
IDINDEXNOTATIONS['RUSSELL2000'] = 8941836;
IndexPrices['RUSSELL2000'] = 'Last Quote: 720.05
0.50 as of 5.9.2008';
var CurrentIndexChart = "SP500";
var CurrentTimeSpan = "1D";
var TempChart;
function ChangeIDMSIndicesChart(changeTo){
CurrentIndexChart = changeTo;
document.getElementById('IndicesChart_NotationSelector_SP500').className='';
document.getElementById('IndicesChart_NotationSelector_DJIA').className='';
document.getElementById('IndicesChart_NotationSelector_NASDAQ').className='';
document.getElementById('IndicesChart_NotationSelector_RUSSELL2000').className='';
var NewNotation = IDINDEXNOTATIONS[changeTo];
TempChart = new Image();
TempChart.src = IndicesChartBaseURL+'ID_NOTATION='+NewNotation+'&TIME_SPAN='+CurrentTimeSpan+'&WIDTH=225&HEIGHT=145';
TempChart.onLoad = setTimeout("LoadChart()",100);
document.getElementById('IDMS_Index_Quote').innerHTML = IndexPrices[changeTo];
//document.getElementById('IDMS_IndicesChart').src = TempChart.src;
//document.getElementById('IDMS_IndicesChart').src = IndicesChartBaseURL+'ID_NOTATION='+NewNotation+'&TIME_SPAN='+CurrentTimeSpan+'&WIDTH=225&HEIGHT=145';
document.getElementById('IndicesChart_NotationSelector_'+changeTo).className='active';
// document.getElementById('IndicesChart_Time_'+CurrentTimeSpan).className='';
// document.getElementById('IndicesChart_Time_1D').className='chart_controls_selected';
page.reloadAssets();page.trackComponents("US Equities",CurrentIndexChart,CurrentTimeSpan);
}
function LoadChart(){
// alert('loaded');
document.getElementById('IDMS_IndicesChart').src = TempChart.src;
}
function ChangeIDMSIndicesChartTimeSpan(changeTo){
document.getElementById('IndicesChart_Time_'+CurrentTimeSpan).className='';
CurrentTimeSpan = changeTo;
document.getElementById('IndicesChart_Time_'+changeTo).className='chart_controls_selected';
var NewNotation = IDINDEXNOTATIONS[CurrentIndexChart];
TempChart = new Image();
TempChart.src = IndicesChartBaseURL+'ID_NOTATION='+NewNotation+'&TIME_SPAN='+changeTo + '&WIDTH=225&HEIGHT=145';
TempChart.onLoad = setTimeout("LoadChart()",100);
//document.getElementById('IDMS_IndicesChart').src = IndicesChartBaseURL+'ID_NOTATION='+NewNotation+'&TIME_SPAN='+changeTo + '&WIDTH=225&HEIGHT=145';
page.reloadAssets();page.trackComponents("US Equities",CurrentIndexChart,CurrentTimeSpan);
}
document.writeln(' ');
document.writeln('
| 1-Day | '); document.writeln('1-Mo | '); document.writeln('3-Mo | '); document.writeln('6-Mo | '); document.writeln('1-Yr | '); document.writeln('5-Yr | '); document.writeln('