
var offsetxpoint=-60;var offsetypoint=22;var ie=document.all;var ns6=document.getElementById&&!document.all;var enabletip=false;var tip_onmouseout;var tip_width,tip_height;var tip_options;function ietruebody(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}
function ddrivetip(thetext,thecolor,thewidth,theheight,options){if(ns6||ie){tip_onmouseout=this.onmouseout!=hideddrivetip?this.onmouseout:null;this.onmouseout=hideddrivetip;tip_width=thewidth;tip_height=theheight;tip_options=options;var tipobj=document.getElementById("dhtmltooltip");if(!tipobj){document.body.appendChild(tipobj=document.createElement("TABLE"));tipobj.id="dhtmltooltip";var t=tipobj.insertRow(-1).insertCell(-1);tipobj.cellPadding=0;tipobj.cellSpacing=0;tipobj.borders=0;tipobj.style.position="absolute";tipobj.style.zIndex=999;}
var inObj=(tipobj.tagName=="TABLE")?tipobj.rows[0].cells[0]:tipobj;inObj.style.color=(options&&options.color)?options.color:"";inObj.style.border=(options&&options.border)?options.border:"";inObj.style.fontSize=(options&&options.fontSize)?options.fontSize:"";inObj.style.fontStyle=(options&&options.fontStyle)?options.fontStyle:"";inObj.style.fontWeight=(options&&options.fontWeight)?options.fontWeight:"";inObj.style.fontFamily=(options&&options.fontFamily)?options.fontFamily:"";inObj.style.padding=(options&&options.padding)?options.padding+"px":"";inObj.style.whiteSpace=(options&&options.nowrap)?"nowrap":"";inObj.innerHTML=thetext;var imgs=inObj.getElementsByTagName("IMG");if(imgs)for(var i in imgs)if(imgs[i])imgs[i].onload=positiontip;if(typeof thecolor!="undefined"&&thecolor!="")inObj.style.backgroundColor=thecolor;enabletip=true;return false;}}
function positiontip_event(e){if(enabletip){var curX=(ns6)?e.pageX:event.clientX;var curY=(ns6)?e.pageY:event.clientY;document.tip_curX=curX;document.tip_curY=curY;positiontip(curX,curY);}
if(window.coolbar_savedMouseMove)
return window.coolbar_savedMouseMove(e);}
function positiontip(curX,curY){if(!enabletip)return;if(typeof curX!="number")curX=document.tip_curX;if(typeof curY!="number")curY=document.tip_curY;var w=ie&&!window.opera?ietruebody().clientWidth:window.innerWidth-20;var h=ie&&!window.opera?ietruebody().clientHeight:window.innerHeight-20;var rightedge=w-curX-offsetxpoint;var bottomedge=h-curY-offsetypoint;var leftedge=(offsetxpoint<0)?offsetxpoint*(-1):-1000;var tipobj=document.getElementById("dhtmltooltip");if(tipobj){var inObj=(tipobj.tagName=="TABLE")?tipobj.rows[0].cells[0]:tipobj;tipobj.style.width=null;tipobj.style.height=null;if(tip_width){tipobj.style.width=tip_width+"px";}else{var maxWidth=(tip_options)?tip_options.maxWidth:0;if(maxWidth){tipobj.style.width="1px";inObj.noWrap=true;if(inObj.offsetWidth>maxWidth)
tipobj.style.width=maxWidth+"px";inObj.noWrap=false;}}
if(tip_height)tipobj.style.height=tip_height+"px";var left,top;if(rightedge<tipobj.offsetWidth)
left=ie?ietruebody().scrollLeft+curX-tipobj.offsetWidth:window.pageXOffset+curX-tipobj.offsetWidth;else if(curX<leftedge)
left=5;else
left=curX+offsetxpoint;if(bottomedge>=tipobj.offsetHeight&&curY+offsetypoint<h-tipobj.offsetHeight){top=curY+offsetypoint;}else{top=ie?ietruebody().scrollTop+curY-tipobj.offsetHeight-offsetypoint:window.pageYOffset+curY-tipobj.offsetHeight-offsetypoint;if(top<0){top=Math.max(0,Math.min(h-tipobj.offsetHeight,Math.round(curY-tipobj.offsetHeight/2)));if(curX<w/2)left=curX+15;else left=curX-tipobj.offsetWidth-15;}}
if(left||left==0)tipobj.style.left=left+"px";if(top||top==0)tipobj.style.top=top+"px";tipobj.style.visibility="visible";}}
function hideddrivetip(){if(ns6||ie){enabletip=false
var tipobj=document.getElementById("dhtmltooltip");if(tipobj){tipobj.style.visibility="hidden";tipobj.style.left="-1000px";tipobj.style.backgroundColor='';tipobj.style.width='';}}
if(tip_onmouseout)tip_onmouseout();}
if(!document.coolbar_initilized){document.coolbar_initilized=true;window.coolbar_savedMouseMove=document.onmousemove;document.onmousemove=positiontip_event;}
function at_display(x)
{var win=window.open();for(var i in x)win.document.write(i+' = '+x[i]+'<br>');}
var at_timeout=50;function at_show_aux(parent,child)
{var p=document.getElementById(parent);var c=document.getElementById(child);p.className="active";if(c.offsetWidth<=0)
{c.style.position="absolute";c.style.visibility="visible";c.style.display="block";}
var direction=undefined;if(p.parentNode&&p.parentNode["at_position"]=="x")
direction=p.parentNode["at_direction"];var top=(c["at_position"]=="y")?p.offsetHeight:0;var left1=(c["at_position"]=="x")?p.offsetWidth:0;var left2=(c["at_position"]=="x")?-c.offsetWidth:0;var left3=(c["at_position"]=="x")?p.offsetWidth:0;for(;p;p=p.offsetParent)
{if(p.style.position!='absolute')
{left1+=p.offsetLeft;left2+=p.offsetLeft;top+=p.offsetTop;}
left3+=p.offsetLeft;}
if(direction)
{left=(direction=='right')?left1:left2;c['at_direction']=direction;}
else
{left=(left3+c.offsetWidth<document.body.offsetWidth)?left1:left2;c['at_direction']=(left3+c.offsetWidth<document.body.offsetWidth)?'right':'left';}
c.style.position="absolute";c.style.visibility="visible";c.style.display="block";c.style.top=top+'px';c.style.left=left+'px';}
function at_hide_aux(parent,child)
{document.getElementById(parent).className="parent";document.getElementById(child).style.visibility="hidden";document.getElementById(child).style.display="block";}
function at_show(e)
{var p=document.getElementById(this["at_parent"]);var c=document.getElementById(this["at_child"]);at_show_aux(p.id,c.id);clearTimeout(c["at_timeout"]);}
function at_hide()
{var c=document.getElementById(this["at_child"]);c["at_timeout"]=setTimeout("at_hide_aux('"+this["at_parent"]+"', '"+this["at_child"]+"')",at_timeout);}
function at_attach(parent,child,position)
{p=document.getElementById(parent);c=document.getElementById(child);p["at_child"]=c.id;c["at_child"]=c.id;p["at_parent"]=p.id;c["at_parent"]=p.id;c["at_position"]=position;p.onmouseover=at_show;p.onmouseout=at_hide;c.onmouseover=at_show;c.onmouseout=at_hide;}
function InStr(strSearch,charSearchFor)
{for(i=0;i<strSearch.length;i++)
{if(charSearchFor==Mid(strSearch,i,1))
{return i;}}
return-1;}
function dhtmlmenu_build_aux(parent,child,position)
{document.getElementById(parent).className="parent";document.write('<div class="vert_menu" id="'+parent+'_child">');var n=0;for(var i in child)
{if(i=='-')
{document.getElementById(parent).href=child[i];continue;}
if(typeof child[i]=="object")
{document.write('<a class="parent" id="'+parent+'_'+n+'">'+i+'</a>');dhtmlmenu_build_aux(parent+'_'+n,child[i],"x");}
else{if(child[i].substring(0,5)=="event"){moreEvents=true;the_rest=child[i];var all_events="";while(moreEvents){var firstpoint=the_rest.indexOf(':');var secondpoint=the_rest.indexOf(':',firstpoint+1);var thirdpoint=the_rest.indexOf(':',secondpoint+1);the_event=the_rest.substring(firstpoint+1,secondpoint);the_function=the_rest.substring(secondpoint+1,thirdpoint);all_events=all_events+' '+the_event+'="'+the_function+'" ';var the_rest=the_rest.substring(thirdpoint+1)
if(the_rest.substring(0,5)!="event")moreEvents=false;}
ref_point=the_rest.indexOf(':');the_ref=the_rest.substring(ref_point+1);the_thing='<a id="'+parent+'_'+n+'" href="'+the_ref+'" '+all_events+'>'+i+'</a>';document.write(the_thing);}
else document.write('<a id="'+parent+'_'+n+'" href="'+child[i]+'">'+i+'</a>');}
n++;}
document.write('</div>');at_attach(parent,parent+"_child",position);}
function dhtmlmenu_build(menu)
{for(var i in menu)dhtmlmenu_build_aux(i,menu[i],"y");}
