/*AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)*/
var menu1=new Array()
menu1[0]='<a href="/AST/" class="topbar">Alaska State Troopers</a>'
menu1[1]='<a href="/AWT/" class="topbar">Alaska Wildlife Troopers</a>'
menu1[2]='<a href="/Fire/" class="topbar">Fire and Life Safety</a>'
menu1[3]='<a href="/APSC/" class="topbar">Alaska Police Standards Council</a>'
menu1[4]='<a href="/AFSC/" class="topbar">Alaska Fire Standards Council</a>'
menu1[5]='<a href="/ABC/" class="topbar">Alcoholic Beverage Control Board</a>'
menu1[6]='<a href="/Comm/" class="topbar">Office of the Commissioner</a>'
menu1[7]='<a href="/CDVSA/" class="topbar">Council on Domestic Violence and Sexual Assault</a>'
menu1[8]='<a href="/Statewide/default.aspx" class="topbar">Statewide Services</a>'
menu1[9]='<a href="/admin/" class="topbar">Administrative Services</a>'
var menu2=new Array()
menu2[0]='<a href="/sorweb/sorweb.aspx" class="topbar">Sex Offender/Child Kidnapper Registry</a>'
menu2[1]='<a href="/Statewide/background/" class="topbar">Background Checks</a>'
menu2[2]='<a href="/Statewide/permitslicensing/concealedhandguns.aspx" class="topbar">Handgun Permits</a>'
menu2[3]='<a href="/AST/abi/missingpersons.aspx" class="topbar">Missing Persons</a>'
var ASTDiv=new Array()
ASTDiv[0]='<a href="/AST/recruit/" class="topbar">Recruitment</a>'
ASTDiv[1]='<a href="/PIO/" class="topbar">Public Information Office</a>'
ASTDiv[2]='<a href="/AST/academy/" class="topbar">Public Safety Academy</a>'
ASTDiv[3]='<a href="/AST/abi/" class="topbar">Bureau of Investigation</a>'
ASTDiv[4]='<a href="/AST/abade/" class="topbar">Bureau of Alcohol and Drug Enforcement</a>'
ASTDiv[5]='<a href="/AST/detachments.aspx" class="topbar">Detachments/Posts</a>'
ASTDiv[6]='<a href="/AST/contacts.aspx" class="topbar">Contact Information</a>'
var ASTOther=new Array()
ASTOther[0]='<a href="/sorweb/sorweb.aspx" class="topbar">Sex Offender/Child Kidnapper Registry</a>'
ASTOther[1]='<a href="/AST/vpso/" class="topbar">Village Public Safety Office Program</a>'
ASTOther[2]='<a href="/AST/abi/bulletin.aspx" class="topbar">Active Missing Persons Bulletins</a>'
ASTOther[3]='<a href="/AST/crimeprevention/" class="topbar">Crime Prevention</a>'
ASTOther[4]='<a href="/AST/safetybear.aspx" class="topbar">Safety Bear</a>'
ASTOther[5]='<a href="/AST/history.aspx" class="topbar">Trooper History</a>'
ASTOther[6]='<a href="http://www.alaskatroopermuseum.com" target="_blank" class="topbar">Trooper Hats and Patches</a>'
var CrimeLab=new Array()
CrimeLab[0]='<a href="/CrimeLab/services/administration.aspx" class="topbar">Admin Services</a>'
CrimeLab[1]='<a href="/CrimeLab/services/bioscreening.aspx" class="topbar">Biological Screening</a>'
CrimeLab[2]='<a href="/CrimeLab/services/controlledsubstances.aspx" class="topbar">Controlled Substances</a>'
CrimeLab[4]='<a href="/CrimeLab/services/DNA.aspx" class="topbar">DNA/CODIS</a>'
CrimeLab[6]='<a href="/CrimeLab/services/evidence.aspx" class="topbar">Evidence</a>'
CrimeLab[7]='<a href="/CrimeLab/services/firearms.aspx" class="topbar">Firearms/Toolmarks</a>'
CrimeLab[8]='<a href="/CrimeLab/services/toxicology.aspx" class="topbar">Forensic Toxicology</a>'
CrimeLab[9]='<a href="/CrimeLab/services/latentprints.aspx" class="topbar">Latent Print</a>'
CrimeLab[10]='<a href="/CrimeLab/services/impressions.aspx" class="topbar">Shoe & Tire Impressions</a>'
CrimeLab[11]='<a href="/CrimeLab/services/traceanalysis.aspx" class="topbar">Trace Evidence</a>'
var menuwidth='250px'
var menubgcolor='#ffe787'
var disappeardelay=50
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>')
document.write('<div id="dropmenudiv2" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')
function getposOffset(what,offsettype){var totaloffset=(offsettype=="left")?what.offsetLeft:what.offsetTop;var parentEl=what.offsetParent;while(parentEl!=null){totaloffset=(offsettype=="left")?totaloffset+parentEl.offsetLeft:totaloffset+parentEl.offsetTop;parentEl=parentEl.offsetParent;}
return totaloffset;}
function showhide(obj,e,visible,hidden,menuwidth){if(ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-400px"
if(menuwidth!=""){dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth}
if(e.type=="click"&&obj.visibility==hidden||e.type=="mouseover")
obj.visibility=visible
else if(e.type=="click"||e.type=="mouseout")
obj.visibility=hidden}
function iecompattest(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}
function clearbrowseredge(obj,whichedge){var edgeoffset=0
if(whichedge=="rightedge"){var windowedge=ie4&&!window.opera?iecompattest().scrollLeft+iecompattest().clientWidth-15:window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if(windowedge-dropmenuobj.x<dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth}
else{var topedge=ie4&&!window.opera?iecompattest().scrollTop:window.pageYOffset
var windowedge=ie4&&!window.opera?iecompattest().scrollTop+iecompattest().clientHeight-15:window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if(windowedge-dropmenuobj.y<dropmenuobj.contentmeasure){edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge}}
return edgeoffset}
function populatemenu(what){if(ie4||ns6)
dropmenuobj.innerHTML=what.join("")}
function dropdownmenu(obj,e,menucontents,menuwidth){if(window.event)event.cancelBubble=true
else if(e.stopPropagation)e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById?document.getElementById("dropmenudiv"):dropmenudiv
populatemenu(menucontents)
if(ie4||ns6){showhide(dropmenuobj.style,e,"visible","hidden",menuwidth)
dropmenuobj.x=getposOffset(obj,"left")
dropmenuobj.y=getposOffset(obj,"top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj,"rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj,"bottomedge")+obj.offsetHeight+"px"}
return clickreturnvalue()}
function dropdownmenu2(obj,e,menucontents,menuwidth){if(window.event)event.cancelBubble=true
else if(e.stopPropagation)e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById?document.getElementById("dropmenudiv2"):dropmenudiv
populatemenu(menucontents)
if(ie4||ns6){showhide(dropmenuobj.style,e,"visible","hidden",menuwidth)
dropmenuobj.x=getposOffset(obj,"left")
dropmenuobj.y=getposOffset(obj,"top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj,"rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj,"bottomedge")+obj.offsetHeight+"px"}
return clickreturnvalue()}
function clickreturnvalue(){if(ie4||ns6)return false
else return true}
function contains_ns6(a,b){while(b.parentNode)
if((b=b.parentNode)==a)
return true;return false;}
function dynamichide(e){if(ie4&&!dropmenuobj.contains(e.toElement))
hidemenu()
else if(ns6&&e.currentTarget!=e.relatedTarget&&!contains_ns6(e.currentTarget,e.relatedTarget))
hidemenu()}
function hidemenu(e){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