function openWrestlerWin( url ) {
  window.open( url, "wrestler_stats", "height=550,width=475,resizable=no,status=no,toolbar=no,menubar=no,location=no" ).focus();
  }

function openWin( url ) {
  window.open( url, "generic", "height=550,width=550,resizable=yes,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes" ).focus();
  }
  
function imageSwap( imgName, imgTo ) {
  document[imgName].src = imgTo;
  }

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 clearhidemenu() {
  if ( typeof delayhide != "undefined" )
    clearTimeout( delayhide );
  }

function populatemenu( what ) {
  if ( ie4 || ns6 )
    dropmenuobj.innerHTML = what.join("");
  }

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 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;
    }
  return edgeoffset;
  }

function iecompattest() {
  return ( document.compatMode && document.compatMode != "BackCompat" ) ? document.documentElement : document.body;
  }

function showhide( obj, e, visible, hidden, menuwidth ) {
  if ( ie4 || ns6 )
    dropmenuobj.style.left = dropmenuobj.style.top = -500;

  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 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;
  }

// put this in the page itself

// at the beginning of the page

/***********************************************
* 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 1
/*
var menu1=new Array()
menu1[0]='<a href="about.aspx">Overview</a>'
menu1[1]='<a href="mission.aspx">Mission</a>'
menu1[2]='<a href="services.aspx">Broker Services</a>'
menu1[3]='<a href="career.aspx">Career</a>'
menu1[4]='<a href="contact.aspx">Staff Directory</a>'
menu1[5]='<a href="directions.aspx">Directions</a>'
menu1[6]='<a href="askaquestion.aspx">Feedback</a>'
menu1[7]='<a href="experts.aspx">Experts Corner</a>'


//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="news.aspx">Quick Flash News</a>'
menu2[1]='<a href="ceschedule.aspx">Events Calendar</a>'

//Contents for menu 3
var menu3=new Array()
menu3[0]='<a href="RG_NJSG.aspx">NJ SG Reference Guide</a>'
menu3[1]='<a href="BrokerCompensation.aspx">Broker Compensation</a>'
menu3[2]='<a href="Forms.aspx">Forms & Summaries</a>'
menu3[3]='<a href="KnowledgeBase.aspx">Articles & Publications</a>'
menu3[4]='<a href="FAQ.aspx">FAQs</a>'
menu3[5]='<a href="ce.aspx">Continuing Education</a>'
menu3[6]='<a href="IndustryLinks.aspx">Industry Links</a>'
menu3[7]='<a href="SubmissionDeadlines.aspx">Submission Deadlines</a>'
menu3[8]='<a href="SearchResults.aspx">Site Search</a>'

//Contents for menu 4
var menu4=new Array()
menu4[0]='<a href="Carrier_ref.aspx?id=1">Aetna</a>'
menu4[1]='<a href="Carrier_ref.aspx?id=8">AIG American General</a>'
menu4[2]='<a href="Carrier_ref.aspx?id=2">AmeriHealth</a>'
menu4[3]='<a href="Carrier_ref.aspx?id=3">CIGNA HealthCare</a>'
menu4[4]='<a href="SmallGroup.aspx">GHI</a>'
menu4[5]='<a href="Carrier_ref.aspx?id=4">Guardian / Health Net</a>'
menu4[6]='<a href="Carrier_ref.aspx?id=5">Horizon BCBSNJ</a>'
menu4[7]='<a href="SmallGroup.aspx">Horizon Healthcare of NY</a>'
menu4[8]='<a href="Carrier_ref.aspx?id=6">Oxford Health Plans</a>'
menu4[9]='<a href="Carrier_ref.aspx?id=9">Principal Financial Group</a>'
menu4[11]='<a href="Carrier_ref.aspx?id=7">WellChoice</a>'

//Contents for menu 5, and so on
var menu5=new Array()
menu5[0]='<a href="SmallGroup.aspx">Small Group</a>'
menu5[1]='<a href="MiddleMarket.aspx">Middle Market (51+)</a>'
menu5[2]='<a href="Ancillary.aspx">Ancillary</a>'
menu5[3]='<a href="Individual.aspx">Individual</a>'



		
var menuwidth='165px' //default menu width
var menubgcolor= "#d3d3d3" //"#263347"  //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>')

// at the end of the page
if ( hidemenu_onclick == "yes" ) document.onclick = hidemenu;
*/

// typical usage of the menu system
// <img src="images/about.gif" id="Banner1_mnuAbout" onmouseover="dropdownmenu(this, event, menu1, '150px')" onclick="return clickreturnvalue()" onmouseout="delayhidemenu()" width="66" border="0" />