// JavaScript Document
/***********************************************
* Pop-it menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var defaultMenuWidth="50px"; //set default menu width.

var linkset=new Array();
//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT
linkset[0]='<b>&nbsp;PURCHASE LICENSE >Select State</b>';
linkset[0]+='<br>';
linkset[0]+='<a href="http://www.admin.adfg.state.ak.us/license/" target ="_blank"   >AK</a>'
linkset[0]+='<a href="http://www.outdooralabama.com/licenses/" target ="_blank">AL</a>&nbsp;'
linkset[0]+='<a href="http://www.gf.state.az.us/" target ="_blank">AR</a>&nbsp;'
linkset[0]+='<a href="http://www.arkansasstripers.com/arkansas-hunting-fishing-license.htm" target ="_blank">AZ</a>'
linkset[0]+='<a href="http://www.dfg.ca.gov/licensing/fishing/sportfishing.html" target ="_blank">CA</a>'
linkset[0]+='<a href="http://wildlife.state.co.us/Fishing/" target ="_blank">CO</a>'
linkset[0]+='<a href="https://ct.outdoorcentral.net/InternetSales/" target ="_blank">CT</a>'
linkset[0]+='<a href="https://egov.dnrec.state.de.us/egovpublic/dnrec/disp?doc=LoginScreen&deptPath=public&op=showDefault&dept=5" target ="_blank">DE</a>'
linkset[0]+='<a href="http://myfwc.com/license/" target ="_blank">FL</a>'
linkset[0]+='<a href="http://www.georgiawildlife.com/recreationallicenses_services.aspx" target ="_blank">GA</a>'
linkset[0]+="<br>"
linkset[0]+='<a href="http://hawaii.gov/dlnr/dar/licenses.htm" target ="_blank">HI&nbsp;</a>'
linkset[0]+='<a href="http://www.iowadnr.gov/fish/index.html/" target ="_blank">IA</a>'
linkset[0]+='<a href="https://id.outdoorcentral.us/" target ="_blank">ID&nbsp;</a>'
linkset[0]+='<a href="https://www1.wildlifelicense.com/il/start.php" target ="_blank">IL&nbsp;</a>'
linkset[0]+='<a href="http://www.in.gov/dnr/parklake/" target ="_blank">IN&nbsp;</a>'
linkset[0]+='<a href="https://www3.wildlifelicense.com/ks/index_hf.php" target ="_blank">KS&nbsp;</a>'
linkset[0]+='<a href="https://fw.ky.gov/license/olpsintro.aspx" target ="_blank">KY</a>'
linkset[0]+='<a href="http://www.wlf.louisiana.gov/" target ="_blank">LA</a>'
linkset[0]+='<a href="http://www.sport.state.ma.us/" target ="_blank">MA</a><a href="http://www.dnr.state.md.us/service/" target ="_blank">MD</a>'
linkset[0]+="<br>"
linkset[0]+='<a href="https://www5.informe.org/online/moses/" target ="_blank">ME</a>'
linkset[0]+='<a href="http://www.mdnr-elicense.com/welcome.asp" target ="_blank">MI</a><a href="http://www.dnr.state.mn.us/licenses/fishing/index.html?type=fishing" target ="_blank">MN</a>'
linkset[0]+='<a href="http://mdc.mo.gov/regs/permits.htm" target ="_blank">MO</a>'
linkset[0]+='<a href="http://home.mdwfp.com/" target ="_blank">MS</a><a href="http://mt.gov/tourism/fishhunt.asp" target ="_blank">MT</a>'
linkset[0]+='<a href="http://www.ncwildlife.org/" target ="_blank">NC</a><a href="https://secure.apps.state.nd.us/gnf/onlineservices/lic/public/online/main.htm" target ="_blank">ND</a>'
linkset[0]+='<a href="http://www.ngpc.state.ne.us/admin/newpermits.asp" target ="_blank">NE</a><a href="http://wildlife.state.nh.us/Licensing/licenses.htm" target ="_blank">NH</a>'
linkset[0]+="<br>"
linkset[0]+='<a href="http://www.state.nj.us/dep/fgw/" target ="_blank">NJ</a>'
linkset[0]+='<a href="http://www.wildlife.state.nm.us/" target ="_blank">NM</a>'
linkset[0]+='<a href="http://www.ndowlicensing.com/" target ="_blank">NV</a><a href="http://www.dec.ny.gov/permits/365.html" target ="_blank">NY</a>'
linkset[0]+='<a href="https://www.greatlodge.com/oh/license/welcome" target ="_blank">OH</a><a href="https://www.wildlifedepartment.com/onlinesales/onlinesalesintro.asp" target ="_blank">OK</a>'
linkset[0]+='<a href="http://www.dfw.state.or.us/" target ="_blank">OR</a><a href="http://www.fish.state.pa.us/flagent.htm" target ="_blank">PA</a>'
linkset[0]+='<a href="http://www.dem.ri.gov/programs/bpoladm/manserv/hfb/" target ="_blank">RI</a>&nbsp;<a href="http://www.dnr.sc.gov/" target ="_blank">SC</a>'
linkset[0]+="<br>"
linkset[0]+='<a href="http://www.sdgfp.info/" target ="_blank">SD</a><a href="http://www.state.tn.us/twra/" target ="_blank">TN</a>'
linkset[0]+='<a href="http://www.tpwd.state.tx.us/publications/annual/" target ="_blank">TX</a><a href="http://wildlife.utah.gov/" target ="_blank">UT</a><a href="http://www.dgif.state.va.us/" target ="_blank">VA</a>'
linkset[0]+='<a href="http://www.vtfishandwildlife.com/" target ="_blank">VT</a><a href="https://fishhunt.dfw.wa.gov/" target ="_blank">WA</a>'
linkset[0]+='<a href="http://www.dnr.state.wi.us/org/caer/cs/licenses.htm" target ="_blank">WI</a><a href="http://www.wvdnr.gov/" target ="_blank">WV</a><a href="http://gf.state.wy.us/" target ="_blank">WY</a>'


linkset[1]='<b>&nbsp;DNR NEWS >Select State</b>';
linkset[1]+='<br>';
linkset[1]+='<a href="http://www.state.ak.us/local/akpages/FISH.GAME/adfghome.htm" target ="_blank">AK</a>'
linkset[1]+='<a href="http://www.dcnr.state.al.us/agfd/" target ="_blank">AL</a>&nbsp;'
linkset[1]+='<a href="http://www.agfc.state.ar.us" target ="_blank">AR</a>&nbsp;'
linkset[1]+='<a href="http://www.gf.state.az.us/frames/index.html" target ="_blank">AZ</a>'
linkset[1]+='<a href="http://www.dfg.ca.gov/" target ="_blank">CA</a>'
linkset[1]+='<a href="http://www.dnr.state.co.us" target ="_blank">CO</a>'
linkset[1]+='<a href="http://dep.state.ct.us/index.htm" target ="_blank">CT</a>'
linkset[1]+='<a href="http://www.dnrec.delaware.gov/Pages/default.aspx" target ="_blank">DE</a>'
linkset[1]+='<a href="http://www.myfwc.com/" target ="_blank">FL</a>'
linkset[1]+='<a href="http://www.dnr.state.ga.us/dnr/wild/" target ="_blank">GA</a>'
linkset[1]+="<br>"
linkset[1]+='<a href="http://hawaii.gov/dlnr/" target ="_blank">HI&nbsp;</a>'
linkset[1]+='<a href="http://www.iowadnr.com/" target ="_blank">IA</a>'
linkset[1]+='<a href="http://www2.state.id.us/fishgame/fishgame.html" target ="_blank">ID&nbsp;</a>'
linkset[1]+='<a href="http://dnr.state.il.us/" target ="_blank">IL&nbsp;</a>'
linkset[1]+='<a href="http://www.state.in.us/dnr/" target ="_blank">IN&nbsp;</a>'
linkset[1]+='<a href="http://www.kdwp.state.ks.us/main.html" target ="_blank">KS&nbsp;</a>'
linkset[1]+='<a href="http://www.kdfwr.state.ky.us/" target ="_blank">KY</a>'
linkset[1]+='<a href="http://www.wlf.state.la.us/apps/netgear/page1.asp" target ="_blank">LA</a>'
linkset[1]+='<a href="http://www.mass.gov/dfwele/" target ="_blank">MA</a><a href="http://www.dnr.state.md.us/index.html" target ="_blank">MD</a>'
linkset[1]+="<br>"
linkset[1]+='<a href="http://www.state.me.us/ifw/homepage.htm" target ="_blank">ME</a>'
linkset[1]+='<a href="http://www.michigan.gov/dnr/" target ="_blank">MI</a><a href="http://www.dnr.state.mn.us/" target ="_blank">MN</a>'
linkset[1]+='<a href="http://www.dnr.mo.gov/" target ="_blank">MO</a>'
linkset[1]+='<a href="http://www.mdwfp.com/" target ="_blank">MS</a><a href="http://www.fwp.state.mt.us/" target ="_blank">MT</a>'
linkset[1]+='<a href="http://www.enr.state.nc.us/" target ="_blank">NC</a><a href="http://gf.nd.gov/" target ="_blank">ND</a>'
linkset[1]+='<a href="http://www.ngpc.state.ne.us" target ="_blank">NE</a><a href="http://www.wildlife.state.nh.us/" target ="_blank">NH</a>'
linkset[1]+="<br>"
linkset[1]+='<a href="http://www.state.nj.us/dep/fgw/index.htm" target ="_blank">NJ</a>'
linkset[1]+='<a href="http://www.wildlife.state.nm.us/" target ="_blank">NM</a>'
linkset[1]+='<a href="http://www.ndow.org/" target ="_blank">NV</a><a href="http://www.dec.state.ny.us/website/dfwmr/index.html" target ="_blank">NY</a>'
linkset[1]+='<a href="http://www.dnr.state.oh.us/wildlife/default.htm" target ="_blank">OH</a><a href="http://www.state.ok.us/~odwc/" target ="_blank">OK</a>'
linkset[1]+='<a href="http://www.dfw.state.or.us/" target ="_blank">OR</a><a href="http://www.fish.state.pa.us/mpag1.htm" target ="_blank">PA</a>'
linkset[1]+='<a href="http://www.state.ri.us/dem/" target ="_blank">RI</a>&nbsp;<a href="http://www.dnr.state.sc.us/index.html" target ="_blank">SC</a>'
linkset[1]+="<br>"
linkset[1]+='<a href="http://www.state.sd.us/gfp/" target ="_blank">SD</a><a href="http://state.tn.us/twra/" target ="_blank">TN</a>'
linkset[1]+='<a href="http://www.tpwd.state.tx.us/" target ="_blank">TX</a><a href="http://www.nr.utah.gov" target ="_blank">UT</a><a href="http://www.dgif.state.va.us/" target ="_blank">VA</a>'
linkset[1]+='<a href="http://www.anr.state.vt.us/index.htm" target ="_blank">VT</a><a href="http://wdfw.wa.gov/" target ="_blank">WA</a>'
linkset[1]+='<a href="http://www.dnr.state.wi.us/NaturalResources.html" target ="_blank">WI</a><a href="http://www.wvdnr.gov/" target ="_blank">WV</a><a href="http://gf.state.wy.us/" target ="_blank">WY</a>'



////No need to edit beyond here

var ie5=document.all && !window.opera
var ns6=document.getElementById

if (ie5||ns6)
document.write('<div id="popitmenu" onMouseover="clearhidemenu();" onMouseout="dynamichide(event)"></div>')

function iecompattest(){
return (document.compatMode && document.compatMode.indexOf("CSS")!=-1)? document.documentElement : document.body
}

function showmenu(e, which, optWidth,sx){

if (!document.all&&!document.getElementById)
return
clearhidemenu()
menuobj=ie5? document.all.popitmenu : document.getElementById("popitmenu")
menuobj.innerHTML=which
menuobj.style.width=optWidth
menuobj.contentwidth=menuobj.offsetWidth
menuobj.contentheight=menuobj.offsetHeight
eventX=ie5? event.clientX : e.clientX
eventY=ie5? event.clientY : e.clientY

//Find out how close the mouse is to the corner of the window
var rightedge=ie5? iecompattest().clientWidth-eventX : window.innerWidth-eventX
var bottomedge=ie5? iecompattest().clientHeight-eventY : window.innerHeight-eventY

if(sx == '1')
{
eventY=eventY+10;
eventX=eventX-20;
//Find out how close the mouse is to the corner of the window
var rightedge=ie5? iecompattest().clientWidth-eventX : window.innerWidth-eventX
var bottomedge=ie5? iecompattest().clientHeight-eventY : window.innerHeight-eventY
//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<menuobj.contentwidth)
//move the horizontal position of the menu to the left by it's width
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX-menuobj.contentwidth+"px" : window.pageXOffset+eventX-menuobj.contentwidth+"px"
else
//position the horizontal position of the menu where the mouse was clicked
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX+"px" : window.pageXOffset+eventX+"px"
//same concept with the vertical position
if (bottomedge<menuobj.contentheight)
menuobj.style.top=ie5? iecompattest().scrollTop+eventY-menuobj.contentheight+"px" : window.pageYOffset+eventY-menuobj.contentheight+"px"
else
menuobj.style.top=ie5? iecompattest().scrollTop+event.clientY+"px" : window.pageYOffset+eventY+"px"
}
else
{
eventY=83;
eventX=sx;


//if the horizontal distance isn't enough to accomodate the width of the context menu
menuobj.style.left =eventX +"px";
menuobj.style.top =eventY +"px";


}
menuobj.style.visibility="visible"
return false
}

function contains_ns6(a, b) {
//Determines if 1 element in contained in another- by Brainjar.com
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function hidemenu(){
if (window.menuobj)
menuobj.style.visibility="hidden"
}

function dynamichide(e){
if (ie5&&!menuobj.contains(e.toElement))
hidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
hidemenu()
}

function delayhidemenu(){
delayhide=setTimeout("hidemenu()",50)
}

function clearhidemenu(){
if (window.delayhide)
clearTimeout(delayhide)
}



