var menu1=new Array();menu1[0]='<a href="/doc/index.html" target="help_window">Help Home</a>';menu1[1]='<a href="/doc/index.html?page=html%2Fquickstart.html" target="help_window">Quick Start</a>';menu1[2]='<a href="/doc/index.html?page=html%2Findicators_api.html" target="help_window">Technical Indicators</a>';menu1[3]='<a href="/doc/index.html?page=html%2Fprogrammers_guide.html" target="help_window">Programmer\'s Guide</a>';menu1[4]='<a href="/doc/index.html?page=html%2Fapi_reference.html" target="help_window">Trading API Reference</a>';menu1[5]='<a href="/doc/index.html?page=html%2Fprogramming_language.html" target="help_window">Tradery Language</a>';menu1[6]='<a href="/doc/index.html?page=html%2Fwebapi_overview.html" target="help_window">Tradery Web API</a>';var menu2=new Array();menu2[0]="<a href='#' onclick=\"setRange( '1 week', 'now' )\">Past week</a>";menu2[1]="<a href='#' onclick=\"setRange( '2 weeks', 'now' )\">Past 2 weeks</a>";menu2[2]="<a href='#' onclick=\"setRange( '1 month', 'now' )\">Past month</a>";menu2[3]="<a href='#' onclick=\"setRange( '3 months', 'now' )\">Past 3 months</a>";menu2[4]="<a href='#' onclick=\"setRange( '6 months', 'now' )\">Past 6 months</a>";menu2[5]="<a href='#' onclick=\"setRange( '1 year', 'now' )\">Past year</a>";menu2[6]="<a href='#' onclick=\"setRange( '2 years', 'now' )\">Past 2 years</a>";menu2[7]="<a href='#' onclick=\"setRange( '5 years', 'now' )\">Past 5 years</a>";menu2[9]="<a style='font-weight:bold;color:green' href='/doc/index.html?page=html%2Fdate_ranges.html' target='help_windw'>Help on ranges</a>";var menuwidth="200px";var menubgcolor="lightyellow";var disappeardelay=150;var hidemenu_onclick="yes";var ie4=document.all;var ns6=document.getElementById&&!document.all;if(ie4||ns6){document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+";background-color:"+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')}function getposOffset(d,c){var b=(c=="left")?d.offsetLeft:d.offsetTop;var a=d.offsetParent;while(a!=null){b=(c=="left")?b+a.offsetLeft:b+a.offsetTop;a=a.offsetParent}return b}function showhide(d,c,f,b,a){if(ie4||ns6){dropmenuobj.style.left=dropmenuobj.style.top="-500px"}if(a!=""){dropmenuobj.widthobj=dropmenuobj.style;dropmenuobj.widthobj.width=a}if(c.type=="click"&&d.visibility==b||c.type=="mouseover"){d.visibility=f}else{if(c.type=="click"){d.visibility=b}}}function iecompattest(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}function clearbrowseredge(e,c){var b=0;if(c=="rightedge"){var d=ie4&&!window.opera?iecompattest().scrollLeft+iecompattest().clientWidth-15:window.pageXOffset+window.innerWidth-15;dropmenuobj.contentmeasure=dropmenuobj.offsetWidth;if(d-dropmenuobj.x<dropmenuobj.contentmeasure){b=dropmenuobj.contentmeasure-e.offsetWidth}}else{var a=ie4&&!window.opera?iecompattest().scrollTop:window.pageYOffset;var d=ie4&&!window.opera?iecompattest().scrollTop+iecompattest().clientHeight-15:window.pageYOffset+window.innerHeight-18;dropmenuobj.contentmeasure=dropmenuobj.offsetHeight;if(d-dropmenuobj.y<dropmenuobj.contentmeasure){b=dropmenuobj.contentmeasure+e.offsetHeight;if((dropmenuobj.y-a)<dropmenuobj.contentmeasure){b=dropmenuobj.y+e.offsetHeight-a}}}return b}function populatemenu(a){if(ie4||ns6){dropmenuobj.innerHTML=a.join("")}}function dropdownmenu(c,b,d,a){if(window.event){event.cancelBubble=true}else{if(b.stopPropagation){b.stopPropagation()}}clearhidemenu();dropmenuobj=document.getElementById?document.getElementById("dropmenudiv"):dropmenudiv;populatemenu(d);if(ie4||ns6){showhide(dropmenuobj.style,b,"visible","hidden",a);dropmenuobj.x=getposOffset(c,"left");dropmenuobj.y=getposOffset(c,"top");dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(c,"rightedge")+"px";dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(c,"bottomedge")+c.offsetHeight+"px"}return clickreturnvalue()}function clickreturnvalue(){if(ie4||ns6){return false}else{return true}}function contains_ns6(d,c){while(c.parentNode){if((c=c.parentNode)==d){return true}}return false}function dynamichide(a){if(ie4&&!dropmenuobj.contains(a.toElement)){delayhidemenu()}else{if(ns6&&a.currentTarget!=a.relatedTarget&&!contains_ns6(a.currentTarget,a.relatedTarget)){delayhidemenu()}}}function hidemenu(a){if(typeof dropmenuobj!="undefined"){if(ie4||ns6){dropmenuobj.style.visibility="hidden"}}}function delayhidemenu(){if(ie4||ns6){delayhide=setTimeout("hidemenu()",disappeardelay)}}function clearhidemenu(){if(typeof delayhide!="undefined"){clearTimeout(delayhide)}}if(hidemenu_onclick=="yes"){document.onclick=hidemenu};
