
/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for menu "About APS"
var menu1=new Array()
menu1[0]='<a href="/about/CompanyOverview.htm">Overview</a>'
menu1[1]='<a href="/about/CompanyHistory.htm">History</a>'
menu1[2]='<a href="/about/ProgramResults.htm">Program Results</a>'
menu1[3]='<a href="/about/APSAwards.htm">Awards</a>'
menu1[4]='<a href="/about/APSLeadership.htm">Leadership Team</a>'

//Contents for menu "Newsroom"
var menu2=new Array()
// menu2[0]='<a href="/about/APSLeadership.htm">Executive Bios</a>'
menu2[0]='<a href="/newsroom/NewsReleases.htm">News Releases</a>'
menu2[1]='<a href="/newsroom/InTheNews.htm">In The News</a>'
menu2[2]='<a href="/newsroom/Events.htm">Events</a>'
menu2[3]='<a href="/newsroom/MediaContactInformation.htm">Media Contacts</a>'
		
//Contents for menu "Healthcare Solutions"		
var menu3=new Array()
menu3[0]='<a href="/publicprograms/PublicPrograms.htm">Government Agencies</a>'
menu3[1]='<a href="/employers/Employers.htm">Employers</a>'
menu3[2]='<a href="/tafthartley/TaftHartley.htm">Labor and Trust</a>'
		
//Contents for menu "Careers"
var menu4=new Array()
menu4[0]='<a href="/careers/benefits.htm">Benefits</a>'
menu4[1]='<a href="https://careers.apshealthcare.com/external.htm">Current Job Openings</a>'


//Contents for menu "Contact Us"
var menu5=new Array()
menu5[0]='<a href="/contact_us/GeneralContact.htm">Contact Us</a>'
menu5[1]='<a href="/contact_us/InvestorRelations.htm">Investor Relations</a>'
menu5[2]='<a href="/contact_us/MediaContact.htm">Media Inquiries</a>'
menu5[3]='<a href="/contact_us/GenProvContact.htm">Provider Relations</a>'
menu5[4]='<a href="/contact_us/Sales_MarketingContact.htm">Sales Contacts</a>'

//Contents for menu "Providers"
var menu6=new Array()
menu6[0]='<a href="/provider/ProviderHome.htm">Provider Online Services</a>'
menu6[1]='<a href="/provider/Provider_Claim.htm">Provider Claims</a>'
menu6[2]='<a href="/provider/Provider_Relations_Contacts.htm">Provider Relations Contacts</a>'
menu6[3]='<a href="/provider/Provider_Tools_Edu_Materials.htm">Tools and Materials</a>'

//Contents for menu "Members"
var menu7=new Array()
menu7[0]='<a href="/member/MemberHome.htm">Member Online Services</a>'
menu7[1]='<a href="/member/Member_HelpLink.htm">APS HelpLink</a>'
menu7[3]='<a href="/member/Member_Knowledgebase.htm">Knowledgebase</a>'
menu7[4]='<a href="/member/Member_Materials.htm">Member Materials</a>'
menu7[5]='<a href="/member/OPL.htm">Online Provider Locator</a>'

		
var menuwidth='180px' //default menu width
var menubgcolor='#fff'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

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(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="-500px"
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")
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){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
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 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))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

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




// this is the code used by the random image tag in the body of the page
var max = 20; //total number of images
var rnd_no = Math.floor(Math.random()*20);


var nifty_little_window = null;

function gateKeeper() {
nifty_little_window = window.open('gatekeep.html', 'theKeeper',
'width=350,height=200,resizable=1');
}


function NewWindow(mypage,myname,w,h,scroll){
var win= null;
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
settings='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',toolbar=no,location=no,status=no,menubar=no,resizable=no,dependent=no'
win=window.open(mypage,myname,settings)
if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}


function switch_page () {
var sel = document.menuform.elements[0].selectedIndex
if (sel > 0) {
location= document.menuform.elements[0].options[sel].value
	  }
}
   
function switch_page_employers () {
var sel = document.menuform.EmployersProgramName.selectedIndex
if (sel > 0) {
location= document.menuform.EmployersProgramName.options[sel].value
	  }
}

function switch_page_healthplans () {
var sel = document.menuform.HealthplansProgramName.selectedIndex
if (sel > 0) {
location= document.menuform.HealthplansProgramName.options[sel].value
	  }
}


function switch_page_publicprograms () {
var sel = document.menuform.PublicprogramsProgramName.selectedIndex
if (sel > 0) {
location= document.menuform.PublicprogramsProgramName.options[sel].value
	  }
}


function switch_page_tafthartley () {
var sel = document.menuform.TafthartleyProgramName.selectedIndex
if (sel > 0) {
location= document.menuform.TafthartleyProgramName.options[sel].value
	  }
}


function Login(){
var done=0;
var username=document.menuform.username.value;
username=username.toLowerCase();
if (username=="chclaims") { window.open (href="http://healtheweb-test.apshealthcare.com/login.aspx?GNo=CH000001"); done=1; }
if (username=="advocate") { window.location="/employers/advocate/advocate.htm"; done=1; }
if (username=="ride") { window.location="/employers/harley_davidson/harley_davidson.htm"; done=1; }
if (username=="som2002") { window.location="/employers/maryland/Maryland.htm"; done=1; }
if (username=="statesc") { window.location="/employers/south_carolina/State_Of_South_Carolina.htm"; done=1; }
if (username=="jps") { window.location="/employers/jps/jps.htm"; done=1; }
if (username=="drivers") { window.location="/employers/drivers/drivers.htm"; done=1; }
if (username=="unicare") { window.location="/employers/unicare/unicare.htm"; done=1; }
if (username=="uchs") { window.location="/employers/uchs/uchs.htm"; done=1; }
if (username=="usfhp") { window.location="/employers/usfhp/usfhp.htm"; done=1; }
if (username=="wihealth") { window.location="/employers/whf/whf.htm"; done=1; }
if (username=="wtwt") { window.location="/employers/wtwt/wtwt.htm"; done=1; }
if (username=="gencable") { window.location="/subdomains/generalcable/gencable.htm"; done=1; }
if (username=="milco") { window.location="/subdomains/milwaukeecounty/milco.htm"; done=1; }
if (username=="447pipetrades") { window.location="/subdomains/447PT/447PipeTrades.htm"; done=1; }
if (username=="pipetrades") { window.location="/subdomains/447PT/447PipeTrades.htm"; done=1; }
if (username=="livewell") { window.location="/subdomains/ufcw227/ufcw227.htm"; done=1; }
if (done==0) { alert("Invalid login!"); }
} 

   