// MGTEK Browser Help V1.2
// Copyright (C) 2003-2008 MGTEK. All rights reserved.

gS=top.gS?top.gS:top.gS=new oS()
gB=top.gB?top.gB:top.gB=new oB()
gI=top.gI?top.gI:top.gI=new oI()
gL=top.gL?top.gL:top.gL=new oL()
gBB=top.gBB?top.gBB:top.gBB=new oBB()
function oS(){this.STO=false
this.AST=false}
function oB(){this.I=false
this.IE4=false
this.IME=false
this.IS=false
this.I=0
this.G=0
this.O=0
this.S=0
this.IC=0
var agent=navigator.userAgent.toLowerCase()
if(agent.indexOf("icab")>=0){var pos=agent.indexOf("icab ")
if(pos>0)this.IC=parseFloat(agent.substr(pos+5))}
else if(agent.indexOf("safari")>=0){this.IS=true
var pos=agent.indexOf("safari/")
if(pos>0)this.S=parseFloat(agent.substr(pos+7))}
else if(agent.indexOf("konqueror")>=0){}
else if(agent.indexOf("opera")>=0){var pos=agent.indexOf("opera ")
if(pos>0)this.O=parseFloat(agent.substr(pos+6))}
else if(agent.indexOf("gecko")>=0){this.G=6}
else if(navigator.appName=="Microsoft Internet Explorer"){this.I=true
this.IME=agent.indexOf("mac")>=0
var pos=agent.indexOf("msie ")
if(pos>0){this.I=parseFloat(agent.substring(pos+5,pos+8))
if(this.I<5)this.IE4=true}}}
function oI(){this.i=new Object()
this.A=function(src){if(!this.i[src]){var image=new Image()
image.src=src
this.i[src]=image}}}
function oL(){this.TW=null
this.SW=220
this.c=null
this.p=new Array()
this.OP=function(topWindow){this.TW=topWindow
topWindow.onbeforeprint=this.OP}
this.OP=function(){}
this.OKE=function(evt){switch(evt.keyCode){case 9:
/*
case 49:
case 50:
case 51:
*/
return true
default:
return false}}
this.OK=function(evt){switch(evt.keyCode){case 9:
this.GC().focus()
break
/*
case 49:
OTV()
break
case 50:
OIC()
break
case 51:
OFC()
break
*/}}
this.A=function(pane){var index=this.p.length
this.p[index]=pane}
this.S=function(name){var pane=this.F(name)
if(this.c==pane)return
if(this.c)this.c.H()
this.c=pane
if(pane){pane.S()
gL.ST(pane.N)}}
this.F=function(id){var length=this.p.length
for(var i=0;i<length;i++){var pane=this.p[i]
if(pane.Id==id)return pane}
return null}
this.GT=function(){return this.TW?this.TW.frames[0].document:null}
this.GP=function(){return this.TW?this.TW.frames[1].frames[0].document:null}
this.GF=function(){return this.TW?this.TW.frames[1].frames[1].document:null}
this.GC=function(){return this.TW?this.TW.frames[2]:null}
this.CS=function(){var splitter=GEI(this.TW.document,"splitter")
this.SW=parseInt(splitter.cols)
splitter.cols="0,*"}
this.RS=function(){var splitter=GEI(this.TW.document,"splitter")
var width=parseInt(splitter.cols)
if(width==0)splitter.cols=this.SW+",*"}
this.N=function(url){var frame=this.GC()
if(frame)frame.location.href=url}
this.ST=function(text){var doc=this.GP()
var label=GEI(doc,"label")
if(label)label.innerHTML=text}
this.SCT=function(){if(!(top.gT&&top.gT.IR)){setTimeout("gL.SCT()",100)
return}
var frame=gL.GC()
var meta=GEN(frame.document,"tocinfo")
if(meta)top.gT.S(meta.content)}}
function oBB(){this.b=new Array()
this.A=function(type,button){switch(type){case 0:
var doc=gL.GT()
var bar=GEI(doc,"toolbar")
break
case 1:
var doc=gL.GP()
var bar=GEI(doc,"panebar")
break}
var td=AC(doc,bar.rows[0])
if(button){td.innerHTML=button.H()
button.E=GEI(doc,button.Id)
if(gB.IS){button.E.setAttribute("ButtonId",this.b.length)}
else{button.E.ButtonId=this.b.length}
this.b[this.b.length]=button}
else{td.style.width="100%"
td.innerHTML="&nbsp;"}}
this.F=function(id){var length=this.b.length
for(var i=0;i<length;i++){var button=this.b[i]
if(button.Id==id)return button}
return null}
this.U=function(buttons){for(var i=0;i<buttons.length;i++){var button=gBB.F(buttons[i]+"Button")
if(button)button.SS(4)}}}
function Button(id,name,fun,image,type){this.Id=id
this.N=name
this.F=fun
this.I=image
this.T=type>=0?g_ButtonMode+type:type
this.IH=false
this.ID=false
this.IP=false
this.H=function(){var html=""
html+="<TABLE id='"+this.Id+"' class='button0' border='0' cellspacing='0' cellpadding='0' t='"+this.N+"' onmouseover='OBO(this)' onmouseout='OBT(this)' onmousedown='OBD(this)' onclick='OBC(this)'>"
html+="<TR>"
switch(this.T){case-1:
html+="<TD><IMG src='"+g_ImageFolder+"/"+this.I+"' border='0' hspace='5' alt='"+this.N+"'></TD>"
break
case 0:
html+="<TD><IMG src='"+g_ImageFolder+"/"+this.I+"' border='0' hspace='2' alt='"+this.N+"'></TD>"
html+="<TD>"+this.N+"&nbsp;</TD>"
break
case 1:
html+="<TD align='center'><IMG src='"+g_ImageFolder+"/"+this.I+"' border='0' alt='"+this.N+"'>"+(gB.IME?" ":"")+"</TD>"
break
case 2:
var imgs=new Array("l0","l1","l2","l3","m0","m1","m2","m3","r0","r1","r2","r3")
for(var i in imgs)gI.A(g_ImageFolder+"/hpbtn"+imgs[i]+".gif")
html+="<TD><IMG src='hpbtnl0.gif' border='0'>"+(gB.IME?" ":"")+"</TD>"
html+="<TD background='hpbtnm0.gif'><IMG src='"+g_ImageFolder+"/"+this.I+"' border='0'>"+(gB.IME?" ":"")+"</TD>"
html+="<TD background='hpbtnm0.gif'>&nbsp;&nbsp;"+this.N+"</TD>"
html+="<TD><IMG src='hpbtnr0.gif' border='0'>"+(gB.IME?" ":"")+"</TD>"
break
case 3:
for(var i=0;i<=3;i++)gI.A((g_ImageFolder+"/"+this.I).replace(/[0-3]\.gif$/,i+".gif"))
html+="<TD><IMG src='"+g_ImageFolder+"/"+this.I+"' border='0' alt='"+this.N+"'>"+(gB.IME?" ":"")+"</TD>"
break}
html+="</TR>"
html+="</TABLE>"
return html}
this.SS=function(command){switch(command){case 0:
this.IH=false
this.ID=false
break
case 1:
this.IH=true
break
case 2:
this.ID=true
break
case 3:
this.IP=true
break
case 4:
this.IP=false
this.ID=false
break}
var state=(this.ID||this.IP)?(this.IH?3:2):(this.IH?1:0)
var e=this.E
switch(this.T){case 0:
case 1:
e.className="button"+state
break
case 2:
GFC(e.rows[0].cells[0]).src=g_ImageFolder+"/hpbtnl"+state+".gif"
e.rows[0].cells[1].style.backgroundImage="url("+g_ImageFolder+"/hpbtnm"+state+".gif)"
e.rows[0].cells[2].style.backgroundImage="url("+g_ImageFolder+"/hpbtnm"+state+".gif)"
GFC(e.rows[0].cells[3]).src=g_ImageFolder+"/hpbtnr"+state+".gif"
break
case 3:
var img=GFC(e.rows[0].cells[0])
img.src=img.src.replace(/[0-3]\.gif$/,state+".gif")
break}}}
function Pane(id,name,file){this.Id=id
this.N=name
this.F=file
this.IL=false
this.IV=false
this.S=function(){if(this.IV)return
if(!this.IL)this.L()
this.SV(true)}
this.H=function(){if(!this.IV)return
this.SV(false)}
this.L=function(){var doc=gL.GF()
if(gB.I){var html="<IFRAME id='"+this.Id+"' src='"+this.F+"' style='left:0px;top:0px;width:100%;height:100%;position:absolute' frameborder='no' application='yes'></IFRAME>"
doc.body.insertAdjacentHTML("beforeEnd",html)}
else{var frame=doc.createElement("IFRAME")
frame.id=this.Id
frame.src=this.F
frame.style.left=0
frame.style.top=0
frame.style.width="100%"
frame.style.height="100%"
frame.style.position="absolute"
frame.frameBorder="no"
doc.body.appendChild(frame)}
this.IL=true}
this.SV=function(iv){var doc=gL.GF()
var frame=GEI(doc,this.Id)
if(iv){frame.style.zIndex=1
frame.style.visibility="visible"
if(frame.focus)frame.focus()
if(frame.contentWindow&&frame.contentWindow.ActivatePane)frame.contentWindow.ActivatePane()}
else{frame.style.visibility="hidden"
frame.style.zIndex=0}
this.IV=iv}}
function LD(id){var filename="data/"+id+".html"
if(gB.I){var html="<IFRAME id='"+id+"' src='"+filename+"' style='left:0px;top:0px;width:0px;height:0px;position:absolute' frameborder='1' application='yes'></IFRAME>"
document.body.insertAdjacentHTML("beforeEnd",html)}
else{var frame=document.createElement("IFRAME")
frame.id=id
frame.src=filename
frame.style.left=0
frame.style.top=0
frame.style.width=0
frame.style.height=0
frame.style.position="absolute"
frame.frameBorder="no"
document.body.appendChild(frame)}}
function SA()
{if(window.showModalDialog){var features="dialogWidth:420px;dialogHeight:135px;center:yes;help:no;scroll:no;status:no"
window.open("http://www.timemeter.com","_blank",features)}
else{var features="width=420,height=100,location=no,menubar=no,resizeable=no,scrollbars=no,status=no,titlebar=no,toolbar=no"
window.open("http://www.timemeter.com","_blank",features)}}
function CK(k,text){if(text.length>k.length)text=text.substring(0,k.length)
if(k<text)return-1
if(k>text)return+1
return 0}
function OBO(e){if(window.event&&e.contains(window.event.fromElement))return
gBB.b[e.ButtonId].SS(1)}
function OBT(e){if(window.event&&e.contains(window.event.toElement))return
gBB.b[e.ButtonId].SS(0)}
function OBD(e){gBB.b[e.ButtonId].SS(2)}
function OBC(e){gBB.b[e.ButtonId].F()}
function OTV(){OPC("toc",new Array("idx","fts"),true,true)}
function OIC(){OPC("idx",new Array("toc","fts"),true)}
function OFC(){OPC("fts",new Array("toc","idx"),true)}
function OPWC(){SA()}
function OSC(){gBB.F("syncButton").SS(4)
OPC("toc",new Array("idx","fts"),false)
gL.SCT()}
function OHC(){gBB.U(new Array("toc","idx","fts"))
gL.CS()}
function OPC(name,buttons,toggle){var button=gBB.F(name+"Button")
if(button.IP){if(toggle){button.SS(4)
gL.CS()}}
else{button.SS(3)
gBB.U(buttons)
gL.RS()
gL.S(name+"Pane")}}
function OnLoadTopic(){if(window.parent==window.self){var table=GEI(document,"header")
if(!table)return
var td=AC(document,table.rows[0])
td.style.width="100%"
td.innerHTML="&nbsp;"
var td=AC(document,table.rows[0])
var href="../?sync&page="+window.location.href
td.innerHTML="<A href='"+href+"'><IMG src='../"+g_ImageFolder+"/hpframe.gif' border='0' hspace='5' alt='"+L_ShowTopicInFrame+"'></A>"}
else{if(gS.STO||gS.AST){gS.STO=false
gL.SCT()}}}
function GEI(doc,id){return typeof(doc.getElementById)!="undefined"?doc.getElementById(id):doc.all(id)}
function GEN(doc,name){return typeof(doc.getElementsByName)!="undefined"?doc.getElementsByName(name)[0]:doc.all(name)}
function GPN(e){return typeof(e.parentNode)!="undefined"?e.parentNode:e.parentElement}
function GCN(e){return typeof(e.childNodes)!="undefined"?e.childNodes:e.children}
function GFC(e){return typeof(e.firstChild)!="undefined"?e.firstChild:e.children(0)}
function GLC(e){return typeof(e.lastChild)!="undefined"?e.lastChild:e.children(e.children.length-1)}
function GPS(e){if(typeof(e.previousSibling)!="undefined"){return e.previousSibling}
else{var c=e.parentElement.children
for(var i=0;i<c.length;i++){if(c(i)==e){if(i-1<0)return null
return c(i-1)}}
return null}}
function GNS(e){if(typeof(e.nextSibling)!="undefined"){return e.nextSibling}
else{var c=e.parentElement.children
for(var i=0;i<c.length;i++){if(c(i)==e){if(i+1>=c.length)return null
return c(i+1)}}
return null}}
function GCT(e,name,index){if(gB.I){return e.children.tags(name)(index)}
else{e=e.firstChild
while(true){while(e&&e.tagName !=name)
e=e.nextSibling
if(!e||index<=0)break
e=e.nextSibling
index--}
return e}}
function GIT(e){if(typeof(e.innerText)!="undefined"){return e.innerText}
else{var text=""
var node=e.firstChild
while(node){if(node.nodeType==3)text+=node.nodeValue
if(node.hasChildNodes())text+=GIT(node)
node=node.nextSibling}
return text}}
function CT(e,child){if(typeof(e.contains)!="undefined"){return e.contains(child)}
else{while(child){if(child==e)return true
child=child.parentNode}
return false}}
function CE(evt){if(gB.I){evt.returnValue=false}
else{evt.preventDefault()}}
function AC(doc,e){if(gB.IME){var td=doc.createElement("TD")
e.appendChild(td)
return td}
else{return e.insertCell(-1)}}

