var baserefNav = "http://gisweb.vwd.com/mel/eyecatcher/";

var navImg = new Array();
navImg['dax'] = "img/dax2.gif"
navImg['tecdax'] = "img/tecdax2.gif"
navImg['estoxx'] = "img/estoxx2.gif"
navImg['eurusd'] = "img/eurusd2.gif"

var chartImg = new Array();
chartImg['dax_day'] = "http://gisweb.vwd.com/mel/1466/chartNG.gfn?chartType=0&overTime=3&eyecatcher=1&subProperty=11&height=92&width=170&time=0&instrumentId=159096&art=&kunde=XC0953&urlp1=XC0953&RZKZ=XC&RZBK=0953"
chartImg['tecdax_day'] = "http://gisweb.vwd.com/mel/1466/chartNG.gfn?chartType=0&overTime=3&eyecatcher=1&subProperty=11&height=92&width=170&time=0&instrumentId=158375&art=&kunde=XC0953&urlp1=XC0953&RZKZ=XC&RZBK=0953"
chartImg['estoxx_day'] = "http://gisweb.vwd.com/mel/1466/chartNG.gfn?chartType=0&overTime=3&eyecatcher=1&subProperty=11&height=92&width=170&time=0&instrumentId=159194&art=&kunde=XC0953&urlp1=XC0953&RZKZ=XC&RZBK=0953"
chartImg['eurusd_day'] = "http://gisweb.vwd.com/mel/1466/chartNG.gfn?chartType=0&overTime=3&eyecatcher=1&subProperty=11&height=92&width=170&time=0&instrumentId=2079559&art=&kunde=XC0953&urlp1=XC0953&RZKZ=XC&RZBK=0953"

var chartLink = new Array();
chartLink['dax'] = "http://www.boerse.vr-networld.de/frames/frame.html?bankid=0953&home=www.rb-os.de&blz=75062026&gbr=XC&firma=Raiffeisenbank_Oberpfalz_Sued_eG&ind=&gadt=eyes&typ=eyes&i=159096&wkn=DAX.ETR"
chartLink['tecdax'] = "http://www.boerse.vr-networld.de/frames/frame.html?bankid=0953&home=www.rb-os.de&blz=75062026&gbr=XC&firma=Raiffeisenbank_Oberpfalz_Sued_eG&ind=&gadt=eyes&typ=eyes&i=158375&wkn=TDXP.ETR"
chartLink['estoxx'] = "http://www.boerse.vr-networld.de/frames/frame.html?bankid=0953&home=www.rb-os.de&blz=75062026&gbr=XC&firma=Raiffeisenbank_Oberpfalz_Sued_eG&ind=&gadt=eyes&typ=eyes&i=159194&wkn=SX5E.DJX"
chartLink['eurusd'] = "http://www.boerse.vr-networld.de/frames/frame.html?bankid=0953&home=www.rb-os.de&blz=75062026&gbr=XC&firma=Raiffeisenbank_Oberpfalz_Sued_eG&ind=&gadt=eyes&typ=eyes&i=2079559&wkn=DUSDEUR.TGT"

var cur_chart = "dax";
var cur_mode = "day";

function switch_to_dax()
{
  cur_chart = "dax";
  switch_chart();
}

function switch_to_tecdax()
{
  cur_chart = "tecdax";
  switch_chart();
}

function switch_to_estoxx()
{
  cur_chart = "estoxx";
  switch_chart();
}

function switch_to_eurusd()
{
  cur_chart = "eurusd";
  switch_chart();
}

function switch_chart()
{
  document.mf_nav.src = baserefNav+navImg[cur_chart];
  document.getElementById("mf_link").href = chartLink[cur_chart];
  document.mf_chart.src = chartImg[cur_chart + '_' + cur_mode];
  return;
}

var chart_map =	('<map name="mf_nav_bar"><area alt="Chart des DAX-Performance-Index. " href="#" shape="rect" coords="0,1,40,16" onmouseover="switch_to_dax();return true" onMouseOut="window.status = \'\'; return true">'+
                 '<area alt="Chart des TecDAX-Performance-Index. " href="#" shape="rect" coords="42,1,83,16" onmouseover="switch_to_tecdax(); return true" onMouseOut="window.status = \'\'; return true">'+
                 '<area alt="Chart des Euro Stoxx 50-Index. " href="#" shape="rect" coords="85,1,126,16" onmouseover="switch_to_estoxx(); return true;" onMouseOut="window.status = \'\'; return true">'+
                 '<area alt="Chart des Euro / US-Dollar Kurses. " href="#" shape="rect" coords="128,1,170,16" onmouseover="switch_to_eurusd(); return true;" onMouseOut="window.status = \'\'; return true"></map>');

