<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->







var DDSPEED = 10;
var DDTIMER = 15;

// main function to handle the mouse events //
function ddMenu(id,d){
  var h = document.getElementById(id + '-ddheader');
  var c = document.getElementById(id + '-ddcontent');
  clearInterval(c.timer);
  if(d == 1){
    clearTimeout(h.timer);
    if(c.maxh && c.maxh <= c.offsetHeight){return}
    else if(!c.maxh){
      c.style.display = 'block';
      c.style.height = 'auto';
      c.maxh = c.offsetHeight;
      c.style.height = '0px';
    }
    c.timer = setInterval(function(){ddSlide(c,1)},DDTIMER);
  }else{
    h.timer = setTimeout(function(){ddCollapse(c)},50);
  }
}

// collapse the menu //
function ddCollapse(c){
  c.timer = setInterval(function(){ddSlide(c,-1)},DDTIMER);
}

// cancel the collapse if a user rolls over the dropdown //
function cancelHide(id){
  var h = document.getElementById(id + '-ddheader');
  var c = document.getElementById(id + '-ddcontent');
  clearTimeout(h.timer);
  clearInterval(c.timer);
  if(c.offsetHeight < c.maxh){
    c.timer = setInterval(function(){ddSlide(c,1)},DDTIMER);
  }
}

// incrementally expand/contract the dropdown and change the opacity //
function ddSlide(c,d){
  var currh = c.offsetHeight;
  var dist;
  if(d == 1){
    dist = (Math.round((c.maxh - currh) / DDSPEED));
  }else{
    dist = (Math.round(currh / DDSPEED));
  }
  if(dist <= 1 && d == 1){
    dist = 1;
  }
  c.style.height = currh + (dist * d) + 'px';
  c.style.opacity = currh / c.maxh;
  c.style.filter = 'alpha(opacity=' + (currh * 100 / c.maxh) + ')';
  if((currh < 2 && d != 1) || (currh > (c.maxh - 2) && d == 1)){
    clearInterval(c.timer);
  }
}



<!--
var timeout         = 500;
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; 
// -->



<!--
		
			var calview1  = new Image()
			calview1.src = "../../images/view1.gif"
			var calview2 = new Image()
			calview2.src = "../../images/view_over1.gif"
		
			var formview1  = new Image()
			formview1.src = "../../images/view1.gif"
			var formview2 = new Image()
			formview2.src = "../../images/view_over1.gif"
			
			var pubview1  = new Image()
			pubview1.src = "../../images/view1.gif"
			var pubview2 = new Image()
			pubview2.src = "../../images/view_over1.gif"
			
			var taxorgview1  = new Image()
			taxorgview1.src = "../../images/view1.gif"
			var taxorgview2 = new Image()
			taxorgview2.src = "../../images/view_over1.gif"
			
			var taxguide1  = new Image()
			taxguide1.src = "../../images/view1.gif"
			var taxguide2 = new Image()
			taxguide2.src = "../../images/view_over1.gif"
			
			var rri1 = new Image()
			rri1.src = "../../images/individual.gif"
			var rri2 = new Image()
			rri2.src = "../../images/individual_over.gif"
			
			var rrb1 = new Image()
			rrb1.src = "../../images/business.gif"
			var rrb2 = new Image()
			rrb2.src = "../../images/business_over.gif"
			
			function act(imgName) {
				if (document.images)        
				document[imgName].src =eval(imgName+'2.src') 
			}
			
			function inact(imgName) {
				if (document.images)
				document[imgName].src = eval(imgName + '1.src')
			}
			
			function LaunchOrganizer(){
			var taxOrg = window.open("http://www.execusite.com/tax_organizer.pdf",'orgWin','width=600,height=480,top=10,left=10,scrollbars=yes,resizable=yes');
			}
			
		//-->
		
		var winXPos = 0;
var winYPos = 0;

function openWin(theValue){

		var newWin = window.open("http://www.irs.gov/pub/irs-pdf/"+ theValue +".pdf", 'newWin','width=300,height=375,top=10,left=10,scrollbars=yes,resizable=yes');

}

	function checkValues(){
	var counter = 0;
	var tooManyAlert = false;
	for(var i = 0;i<document.download_menu.pdf_files.length;i++){
		if(document.download_menu.pdf_files.options[i].selected == true){
		counter = counter + 1;
		}
	}
	if (counter > 5){
	tooManyAlert = true;
	}
	
	
	if(tooManyAlert == false){
		for(var i = 0;i<document.download_menu.pdf_files.length;i++){
			if(document.download_menu.pdf_files.options[i].selected == true){
			openWin(document.download_menu.pdf_files.options[i].value);
			}
		}
	}
	else { alert("Too many windows open, please only choose 5 or less at one time");}
	
	}
	
	
var menu=function(){
	var t=15,z=50,s=6,a;
	function dd(n){this.n=n; this.h=[]; this.c=[]}
	dd.prototype.init=function(p,c){
		a=c; var w=document.getElementById(p), s=w.getElementsByTagName('ul'), l=s.length, i=0;
		for(i;i<l;i++){
			var h=s[i].parentNode; this.h[i]=h; this.c[i]=s[i];
			h.onmouseover=new Function(this.n+'.st('+i+',true)');
			h.onmouseout=new Function(this.n+'.st('+i+')');
		}
	}
	dd.prototype.st=function(x,f){
		var c=this.c[x], h=this.h[x], p=h.getElementsByTagName('a')[0];
		clearInterval(c.t); c.style.overflow='hidden';
		if(f){
			p.className+=' '+a;
			if(!c.mh){c.style.display='block'; c.style.height=''; c.mh=c.offsetHeight; c.style.height=0}
			if(c.mh==c.offsetHeight){c.style.overflow='visible'}
			else{c.style.zIndex=z; z++; c.t=setInterval(function(){sl(c,1)},t)}
		}else{p.className=p.className.replace(a,''); c.t=setInterval(function(){sl(c,-1)},t)}
	}
	function sl(c,f){
		var h=c.offsetHeight;
		if((h<=0&&f!=1)||(h>=c.mh&&f==1)){
			if(f==1){c.style.filter=''; c.style.opacity=1; c.style.overflow='visible'}
			clearInterval(c.t); return
		}
		var d=(f==1)?Math.ceil((c.mh-h)/s):Math.ceil(h/s), o=h/c.mh;
		c.style.opacity=o; c.style.filter='alpha(opacity='+(o*100)+')';
		c.style.height=h+(d*f)+'px'
	}
	return{dd:dd}
}();







var counter = 0;
function updateURL(URL){
window.status = URL;
return true;
}
function getCurrentLink(URL){
var theLink = eval(URL);
var period = ".";

if (URL.indexOf(period) == -1){
alert("This link is not a valid link");
}
else{
var openTheWindow = window.open(eval(URL), "linksWindow" + counter,"toolbar=1,location=1,directories=0,status=yes,menubar=yes,resizable=1,scrollbars=yes,height=300,width=500");
//updateURL(URL);

if (counter == 0){
	if (navigator.appName == "Netscape"){
	//openTheWindow.alert("\n\nA Friendly Reminder:\n******************************************\nAfter testing these links you may want to close the windows \nbefore testing other links, to avoid opening too many windows\n\n(Note* This message will only appear on the first link tested)");
	}
}
counter ++;

}
//return false;
}

var linkCounter = 0;
var period = ".";


function openLink1(){
var thisLink1 = "http://www.irs.gov";


if (thisLink1.indexOf(period) == -1){
alert("'" + thisLink1 + "'" + " is not a valid link");
}
else{
var openThisWindow1 = window.open(thisLink1, "linksWindow1", "toolbar=1,location=1,directories=0,status=yes,menubar=yes,resizable=1,scrollbars=yes,height=300,width=500");
}

if (openThisWindow1){

	if (linkCounter == 0){
		if (navigator.appName == "Netscape"){
		//openThisWindow1.alert("\n\nA Friendly Reminder:\n**********************************************************\nAfter following these links you may want to close the windows \nbefore following other links, to avoid opening too many windows\n\n(Note* This message will only appear on the first\nfollowed link each time the Links Page is loaded.)");
		}
	}
	linkCounter ++;

	if (navigator.appName == "Netscape"){
	openThisWindow1.focus();
	}
}

var thisFocus = "document.links[0].URL";
return (eval(thisFocus));

}


function openLink2(){
var thisLink2 = "http://www.ssa.gov/employer/esohome.htm";


if (thisLink2.indexOf(period) == -1){
alert("'" + thisLink2 + "'" + " is not a valid link");
}
else{
var openThisWindow2 = window.open(thisLink2, "linksWindow2", "toolbar=1,location=1,directories=0,status=yes,menubar=yes,resizable=1,scrollbars=yes,height=300,width=500");
}

if (openThisWindow2){

	if (linkCounter == 0){
		if (navigator.appName == "Netscape"){
		//openThisWindow2.alert("\n\nA Friendly Reminder:\n**********************************************************\nAfter following these links you may want to close the windows \nbefore following other links, to avoid opening too many windows\n\n(Note* This message will only appear on the first\nfollowed link each time the Links Page is loaded.)");
		}
	}
	linkCounter ++;

	if (navigator.appName == "Netscape"){
	openThisWindow2.focus();
	}
}

var thisFocus = "document.links[0].URL";
return (eval(thisFocus));


}
function openLink3(){
var thisLink3 = "http://www.ftb.ca.gov";


if (thisLink3.indexOf(period) == -1){
alert("'" + thisLink3 + "'" + " is not a valid link");
}
else{
var openThisWindow3 = window.open(thisLink3, "linksWindow3", "toolbar=1,location=1,directories=0,status=yes,menubar=yes,resizable=1,scrollbars=yes,height=300,width=500");
}

if (openThisWindow3){

	if (linkCounter == 0){
		if (navigator.appName == "Netscape"){
		//openThisWindow3.alert("\n\nA Friendly Reminder:\n**********************************************************\nAfter following these links you may want to close the windows \nbefore following other links, to avoid opening too many windows\n\n(Note* This message will only appear on the first\nfollowed link each time the Links Page is loaded.)");
		}
	}
	linkCounter ++;

	if (navigator.appName == "Netscape"){
	openThisWindow3.focus();
	}
}

var thisFocus = "document.links[0].URL";
return (eval(thisFocus));


}

function openLink4(){
var thisLink4 = "http://www.boe.ca.gov/";


if (thisLink4.indexOf(period) == -1){
alert("'" + thisLink4 + "'" + " is not a valid link");
}
else{
var openThisWindow4 = window.open(thisLink4, "linksWindow4", "toolbar=1,location=1,directories=0,status=yes,menubar=yes,resizable=1,scrollbars=yes,height=300,width=500");
}

if (openThisWindow4){

	if (linkCounter == 0){
		if (navigator.appName == "Netscape"){
		//openThisWindow4.alert("\n\nA Friendly Reminder:\n**********************************************************\nAfter following these links you may want to close the windows \nbefore following other links, to avoid opening too many windows\n\n(Note* This message will only appear on the first\nfollowed link each time the Links Page is loaded.)");
		}
	}
	linkCounter ++;

	if (navigator.appName == "Netscape"){
	openThisWindow4.focus();
	}
}

var thisFocus = "document.links[0].URL";
return (eval(thisFocus));


}

function openLink5(){
var thisLink5 = "http://www.ss.ca.gov/";


if (thisLink5.indexOf(period) == -1){
alert("'" + thisLink5 + "'" + " is not a valid link");
}
else{
var openThisWindow5 = window.open(thisLink5, "linksWindow5", "toolbar=1,location=1,directories=0,status=yes,menubar=yes,resizable=1,scrollbars=yes,height=300,width=500");
}

if (openThisWindow5){

	if (linkCounter == 0){
		if (navigator.appName == "Netscape"){
		//openThisWindow5.alert("\n\nA Friendly Reminder:\n**********************************************************\nAfter following these links you may want to close the windows \nbefore following other links, to avoid opening too many windows\n\n(Note* This message will only appear on the first\nfollowed link each time the Links Page is loaded.)");
		}
	}
	linkCounter ++;

	if (navigator.appName == "Netscape"){
	openThisWindow5.focus();
	}
}

var thisFocus = "document.links[0].URL";
return (eval(thisFocus));


}




