var d = new Date(); var imageLoad = true; var symbolList = new Array(); var obj = null; var i=0; var timeList = new Array(); function SetTimePeriod(period){ if (!period) period = currPeriod_tmp; currPeriod = parseInt(period); var now = new Date(); now.setMonth(now.getMonth() + 1); SetCookie('mq_currPeriod', currPeriod, now,'/'); LoadChart(); SetTabChart(); } function SetSymbol(symbol){ if (!symbol) symbol = currSymbol_tmp; currSymbol = ""+symbol; var now = new Date(); now.setMonth(now.getMonth() + 1); SetCookie('mq_currSymbol', currSymbol, now,'/'); LoadChart(); SetTabChart(); } function LoadChart(){ var obj = document.getElementById('chart'); if (obj){ imageLoad = true; obj.style.visibility = 'hidden'; var d = new Date(); obj.src = 'http://www.nwbroker.ru/charts/'+currSymbol+currPeriod+'_190x150x4.gif?' + d.getMilliseconds(); } } function CompleteLoadChart(){ if (imageLoad){ var obj = document.getElementById('chart'); if (obj) obj.style.visibility = 'visible'; imageLoad = false; } } function SetTabChart(){ __TabProcess('symbolListItem_',currSymbol,symbolList); __TabProcess('timeListItem_',currPeriod,timeList); } function SetClassName(id,name){ if (obj = document.getElementById(id)) obj.className = name; } function __TabProcess(id,current,list){ SetClassName(id+current,'room_atab_right'); SetClassName('dot_'+id+current,'room_atab_pright'); for (i=0;i "); document.write(" #charts img { display:block; } "); document.write(" #ch_charts {position:absolute;margin-top:-197;margin-left:55;} "); document.write(" #ch_t1 {position:relative;z-index:+2;} "); document.write(" .room_tab_right a {color:black;font-size:7pt;} "); document.write(" .room_tab_right a:hover {color:black;} "); document.write(" .room_atab_right a {color:red;font-size:7pt;} "); document.write(" .room_atab_right a:hover {color:red;} "); document.write(" .charts_menu_table td {padding: 2 4 5 0;} "); document.write(" .room_hcell {font-size:7pt;color:white;} "); document.write(" .room_text {font-size:7pt;} "); document.write(" .room_tab_bottom {border-right:1px solid #555555;} "); document.write(" .room_atab_bottom {border-right:1px solid #555555;} "); document.write(" .room_tab_bottom a {color:white;} "); document.write(" .room_tab_bottom a:hover {color:white;} "); document.write(" .room_atab_bottom {color:white;} "); document.write(" "); document.write(" "); document.write(" "); document.write(" "); document.write(" "); document.write("
EURUSDGBPUSDUSDCHFUSDJPY
W1D1H1M15
"); //document.write(" "); document.write(" "); document.write(" var currPeriod = 10080; "); document.write(" var currSymbol = 'eurusd'; "); document.write(" var currPeriod_tmp = 10080; "); document.write(" var currSymbol_tmp = 'eurusd'; "); document.write(" symbolList[i++]='eurusd'; symbolList[i++]='gbpusd'; symbolList[i++]='usdchf'; symbolList[i++]='usdjpy'; "); document.write(" timeList[i++]='10080'; timeList[i++]='1440'; timeList[i++]='60'; timeList[i++]='15'; "); document.write(" SetSymbol('eurusd'); "); document.write(" chts = document.getElementById(\"ch\"); "); document.write(" ");