<!--
var timeout         = 100;
var closetimer	    = 0;
var ddmenuitem      = 0;

// open hidden layer
function mopen(id)
{	
	// cancel close timer
	mcancelclosetime();

	// close old layer
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';

	// get new layer and show it
	ddmenuitem = document.getElementById(id);
	ddmenuitem.style.visibility = 'visible';
}
// close showed layer
function mclose()
{
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
}

// go close timer
function mclosetime()
{
	closetimer = window.setTimeout(mclose, timeout);
}

// cancel close timer
function mcancelclosetime()
{
	if(closetimer)
	{
		window.clearTimeout(closetimer);
		closetimer = null;
	}
}

// close layer when click-out
document.onclick = mclose; 
// -->

document.write('<!--[if IE 6]> ');
document.write('<style>');
document.write('.logintop{padding-bottom:0px;}');
document.write('.triangle{top:-2px;}');
document.write('.on_tab1,.on_tab2,.on_tab3,.on_tab4,.on_tab5,.on_tab6{top:-3px;}');
document.write('</style>');
document.write('<![endif]--> ');

document.write('<div class="tabholder">');

// FOR TWO LINES OF TEXT WITHIN TABS, USE "twolines" CLASS (EX: class="tab1 left twolines")
// CHANGE UL CLASS TO MATCH NUMBER OF TABS (EX: For four tabs, use class="tabs4")

document.write('<div style="float:left;">');
document.write('<ul id="sddm" class="tabs5"> ');
document.write('<li><a href="/employer/index.html" class="left">Home</a> ');
document.write('</li> ');
document.write('<li><a href="/employer/groupplans.html">Group Plans</a> ');
document.write('</li> ');
document.write('<li><a href="/employer/resources/index.html">Resources</a> ');
document.write('</li> ');
document.write('<li><a href="/employer/employerforms.html">Forms</a> ');
document.write('</li> ');
document.write('<li><a href="/employer/contact_us.html" class="right">Contact Us</a> ');
document.write('</ul> ');
document.write('</div>');
document.write('<div class="logintop">');
// insert alert below
document.write('<!--<b>News Alert:</b> Swine flu hits<br>midwest. <a href="#">See full report</a>-->');

// end alert message
document.write('<div class="panel_button" style="display: visible;"><a href="/employer/login.html" />Log In</a></div></div>');
document.write('<div style="clear:both"></div>');
document.write('</div>');

//Code for glossary and external link popups
var cX = 0; var cY = 0; var rX = 0; var rY = 0;
function UpdateCursorPosition(e){cX = e.pageX; cY = e.pageY;}
function UpdateCursorPositionDocAll(e){
    if (!e){
        var e = window.event;
    }
    cX = e.clientX; cY = e.clientY;
}

if(document.all) { document.onmousemove = UpdateCursorPositionDocAll; }
else { document.onmousemove = UpdateCursorPosition; }

function AssignPosition(d) {

    if(self.pageYOffset) {
        rX = self.pageXOffset;
        rY = self.pageYOffset;
    }
    else if(document.documentElement && document.documentElement.scrollTop) {
        rX = document.documentElement.scrollLeft;
        rY = document.documentElement.scrollTop;
    }
    else if(document.body) {
        rX = document.body.scrollLeft;
        rY = document.body.scrollTop;
    }
    if(document.all) {
cX += rX;
cY = cY+rY+10;
    }
    d.style.left = (cX-155) + "px";
    d.style.top = (cY+15) + "px";
}

function toggleDiv(id,flagit) {
    if (flagit=="1"){
        if (document.layers){
            document.layers[''+id+''].visibility = "show";document.layers[''+id+''].display="block";AssignPosition(document.layers[''+id+'']);
        }else if (document.all){
            document.all[''+id+''].style.visibility = "visible";document.all[''+id+''].style.display="block";AssignPosition(document.all[''+id+'']);
        }else if (document.getElementById){
            document.getElementById(''+id+'').style.visibility = "visible";document.getElementById(''+id+'').style.display="block";AssignPosition(document.getElementById(''+id+''));
        }
    }else{
        if (flagit=="0"){
            if (document.layers){
                document.layers[''+id+''].visibility = "hide";document.layers[''+id+''].display="none";
            }else if (document.all){
                document.all[''+id+''].style.visibility = "hidden";document.all[''+id+''].style.display="none";
            }else if (document.getElementById){
                document.getElementById(''+id+'').style.visibility = "hidden";document.getElementById(''+id+'').style.display="none";
            }
        }
    }
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

