// JavaScript Document
//This statement is for the Main Page with mission statment
switch(imgnum) {
	case 0:
		mainindex();
		menubar();
	break;

//This is for having one cell; empty or image with hotspot
	case 1:
		top()
		if (img1 == "*")//write header with no pic
		{
			document.write('<td width=393 align=center valign=middle></td></tr></table>');
			menubar();
		}
		else 
		{
			if (img1lk == "#") //write header with pic and no link
			{
				document.write('<td width=393 align=right valign=middle><img src="/%27);%0A%09%09%09%09cell_one_wout_link()%0A%09%09%09%09document.write(%27"border=0"></td></tr></table>');
				menubar();
			}
			else //write header with pic and link
			{
				document.write('<td width=393 align=right valign=middle><img src="/%27);%0A%09%09%09%09cell_one_with_link()%0A%09%09%09%09document.write(%27"></map></td></tr></table>');
				menubar();
			}
		}
	break;

//This is for having two cells; any of them empty or image with hotspot
	case 2:
		top()
		if (img1 == "*")//write header with no pic
		{
			document.write('<td width=196 align=center valign=middle></td>');
		}
		else 
		{
			if (img1lk == "#") //write header with pic and no link
			{
				document.write('<td width=196 align=right valign=middle><img src="/%27);%0A%09%09%09%09cell_one_wout_link()%0A%09%09%09%09document.write(%27"border=0"></td>');
			}
			else //write header with pic and link
			{
				document.write('<td width=196 align=right valign=middle><img src="/%27);%0A%09%09%09%09cell_one_with_link()%0A%09%09%09%09document.write(%27"></map></td>');
			}
		}
		if (img2 == "*")//write header with no pic
		{
			document.write('<td width=197 align=center valign=middle></td></tr></table>');
			menubar();
		}
		else 
		{
			if (img2lk == "#") //write header with pic and no link
			{
				document.write('<td width=197 align=right valign=middle><img src="/%27);%0A%09%09%09%09cell_two_wout_link()%0A%09%09%09%09document.write(%27"border=0"></td></tr></table>');
				menubar();
			}
			else //write header with pic and link
			{
				document.write('<td width=197 align=right valign=middle><img src="/%27);%0A%09%09%09%09cell_two_with_link()%0A%09%09%09%09document.write(%27"></map></td></tr></table>');
				menubar();
			}
		}
	break;
	
	//This is for having three cells; any of them empty or image with hotspot
	case 3:
		top()
		if (img1 == "*")//write header with no pic
		{
			document.write('<td width=131 align=center valign=middle></td>');
		}
		else 
		{
			if (img1lk == "#") //write header with pic and no link
			{
				document.write('<td width=131 align=right valign=middle><img src="/%27);%0A%09%09%09%09cell_one_wout_link()%0A%09%09%09%09document.write(%27"border=0"></td>');
			}
			else //write header with pic and link
			{
				document.write('<td width=131 align=right valign=middle><img src="/%27);%0A%09%09%09%09cell_one_with_link()%0A%09%09%09%09document.write(%27"></map></td>');
			}
		}
		
		if (img2 == "*")//write header with no pic
		{
			document.write('<td width=131 align=center valign=middle></td>');
		}
		else 
		{
			if (img2lk == "#") //write header with pic and no link
			{
				document.write('<td width=131 align=right valign=middle><img src="/%27);%0A%09%09%09%09cell_one_wout_link()%0A%09%09%09%09document.write(%27"border=0"></td>');
			}
			else //write header with pic and link
			{
				document.write('<td width=131 align=right valign=middle><img src="/%27);%0A%09%09%09%09cell_two_with_link()%0A%09%09%09%09document.write(%27"></map></td>');
			}
		}
		
		if (img3 == "*")//write header with no pic
		{
			document.write('<td width=131 align=center valign=middle></td></tr></table>');
			menubar();
		}
		else 
		{
			if (img3lk == "#") //write header with pic and no link
			{
				document.write('<td width=131 align=right valign=middle><img src="/%27);%0A%09%09%09%09cell_one_wout_link()%0A%09%09%09%09document.write(%27"border=0"></td></tr></table>');
				menubar();
			}
			else //write header with pic and link
			{
				document.write('<td width=131 align=right valign=middle><img src="/%27);%0A%09%09%09%09cell_three_with_link()%0A%09%09%09%09document.write(%27"></map></td></tr></table>');
				menubar();
			}
		}
	break;
}

//**********************************************************************************************************************
function mainindex () {
	document.write('<table border=0 cellpadding=0 cellspacing=0 width=770><tr><td colspan=8><img src="http://www.dcecu.org/DCECU/Shared/top_grey.gif"></td></tr>\
					<tr><td width=12 rowspan=2 align=left><img src="http://www.dcecu.org/DCECU/Shared/top_left.gif"></td><td colspan=6 bgcolor=#EBEBD8>\
					<table cellpadding=0 cellspacing=0 border=0><tr>');
	if (document.URL == "http://webtest/newlook/index.html")
	{
		document.write('<td width=350 align=left valign=middle><img src="http://www.dcecu.org/DCECU/Shared/cu_logo_nohome.gif" border=0></td>');
	}
	else
	{
		if (document.URL == "http://webtest/newlook/")
		{
		document.write('<td width=350 align=left valign=middle><img src="http://www.dcecu.org/DCECU/Shared/cu_logo_nohome.gif" border=0></td>');
		}
		else
		{
		document.write('<td width=350 align=left valign=middle><img src="http://www.dcecu.org/DCECU/Shared/cu_logo.gif" border=0 name="Home" usemap="#Home"></td>');
		}
	}
	document.write('<td width=393 align=right valign=middle><img src="http://www.dcecu.org/DCECU/Shared/mission.gif" border=0></td></tr></table>');
}
	
function cell_one_wout_link (){
	document.write(img1);
	document.write('" width="');
	document.write(img1wd);
	document.write('" height="');
	document.write(img1ht);
}

function cell_one_with_link (){
	document.write(img1);
	document.write('" width="');
	document.write(img1wd);
	document.write('" height="');
	document.write(img1ht);
	document.write('" border=0 usemap="#Map1">');
	document.write('<map name="Map1"><area shape="rect" coords="1,1,');
	document.write(img1wd - 1 );
	document.write(',');
	document.write(img1ht - 1)
	document.write('" href="');
	document.write(img1lk);
}

function cell_two_wout_link (){
	document.write(img2);
	document.write('" width="');
	document.write(img2wd);
	document.write('" height="');
	document.write(img2ht);
}

function cell_two_with_link (){
	document.write(img2);
	document.write('" width="');
	document.write(img2wd);
	document.write('" height="');
	document.write(img2ht);
	document.write('" border=0 usemap="#Map2">');
	document.write('<map name="Map2"><area shape="rect" coords="1,1,');
	document.write(img2wd - 1 );
	document.write(',');
	document.write(img2ht - 1)
	document.write('" href="');
	document.write(img2lk);
}

function cell_three_wout_link (){
	document.write(img3);
	document.write('" width="');
	document.write(img3wd);
	document.write('" height="');
	document.write(img3ht);
}

function cell_three_with_link (){
	document.write(img3);
	document.write('" width="');
	document.write(img3wd);
	document.write('" height="');
	document.write(img3ht);
	document.write('" border=0 usemap="#Map3">');
	document.write('<map name="Map3"><area shape="rect" coords="1,1,');
	document.write(img3wd - 1 );
	document.write(',');
	document.write(img3ht - 1)
	document.write('" href="/%27);%0A%09document.write(img3lk);%0A%7D%0A%0Afunction%20top()%7B%0A%09document.write(%27%3Ctable%20border=0%20cellpadding=0%20cellspacing=0%20width=770%3E%3Ctr%3E%3Ctd%20colspan=8%3E%3Cimg%20src="http://www.dcecu.org/DCECU/Shared/top_grey.gif"></td></tr>\
					<tr><td width="12" rowspan=2 align=left><img src="http://www.dcecu.org/DCECU/Shared/top_left.gif"></td><td colspan="6" bgcolor=#EBEBD8>\
					<table cellpadding=0 cellspacing=0 border=0><tr>');
	if (document.URL == "http://www.dcecu.org/index.html")
	{
		document.write('<td width=350 align=left valign=middle><img src="http://www.dcecu.org/DCECU/Shared/cu_logo_nohome.gif" border=0></td>');
	}
	else
	{
		if (document.URL == "http://www.dcecu.org/")
		{
		document.write('<td width=350 align=left valign=middle><img src="http://www.dcecu.org/DCECU/Shared/cu_logo_nohome.gif" border=0></td>');
		}
		else
		{
		document.write('<td width=350 align=left valign=middle><img src="http://www.dcecu.org/DCECU/Shared/cu_logo.gif" border=0 name="Home" usemap="#Home"></td>');
		}
	}
	document.write('<td width=393 align=right valign=middle><img src="http://www.dcecu.org/DCECU/Shared/mission.gif" border=0></td></tr></table>');
}

function menubar () {
	if (document.URL == "http://webtest/newlook/cyberDiscl.html" || document.URL == "http://webtest/newlook/estatementDiscl.html")
	{
		document.write('</td><td width="15" rowspan=2><img src="http://www.dcecu.org/DCECU/Shared/top_right.gif"></td></tr>\
		<tr><td width=130 height=33 valign=center background="http://www.dcecu.org/DCECU/Shared/blue_bar.gif"></td>\
		<td width=175 valign=center background="http://www.dcecu.org/DCECU/Shared/blue_bar.gif"></td>\
		<td width=115  valign=center background="http://www.dcecu.org/DCECU/Shared/blue_bar.gif"></td>\
		<td width=109 valign=center background="http://www.dcecu.org/DCECU/Shared/blue_bar.gif"></td>\
		<td width=146 valign=center background="http://www.dcecu.org/DCECU/Shared/blue_bar.gif"></td>\
		<td width=69 valign=center background="http://www.dcecu.org/DCECU/Shared/blue_bar.gif"></td>\
		</tr></table>');
	}
	else
	{	
		document.write('</td><td width="15" rowspan=2><img src="http://www.dcecu.org/DCECU/Shared/top_right.gif"></td></tr>\
		<tr><td width=130 height=33 valign=center background="http://www.dcecu.org/DCECU/Shared/blue_bar.gif"><a href="http://www.dcecu.org/au_contact.htm" class="style69" title="About Us" onmouseout="FW_startTimeout();"  onMouseOver="window.FW_showMenu(window.fw_menu_1,10,122);">About Us </a></td>\
		<td width=175 valign=center background="http://www.dcecu.org/DCECU/Shared/blue_bar.gif"><a href="http://www.dcecu.org/ps_savings.htm" class="style69" title="Products and Services" onmouseout="FW_startTimeout();"  onMouseOver="window.FW_showMenu(window.fw_menu_2,142,122);">Product & Services</a></td>\
		<td width=115  valign=center background="http://www.dcecu.org/DCECU/Shared/blue_bar.gif"><a href="http://www.dcecu.org/rates_share.htm" class="style69" title="Rates" onmouseout="FW_startTimeout();"  onMouseOver="window.FW_showMenu(window.fw_menu_3,314,122);">Rates</a></td>\
		<td width=109 valign=center background="http://www.dcecu.org/DCECU/Shared/blue_bar.gif"><a href="http://www.dcecu.org/links.htm" class="style69" title="Links">Links</a></td>\
		<td width=146 valign=center background="http://www.dcecu.org/DCECU/Shared/blue_bar.gif"><a href="http://www.dcecu.org/os_fintools.htm" class="style69" title="Calculators">Calculators</a></td>\
		<td width=69 valign=center background="http://www.dcecu.org/DCECU/Shared/blue_bar.gif"><a href="http://www.dcecu.org/sitemap.htm" class="style69" title="Site Map">Site Map</a></td>\
		</tr></table>');
	}
	document.write('<map name="Home"><area shape="rect" coords="3,1,151,77" href="http://www.dcecu.org/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(');
	document.write("'Home','','http://www.dcecu.org/DCECU/Shared/cu_logo_hi.gif',1)");
	document.write('"></map>');
	if (cuvile)
	{
		document.write('\
		  <table border=0 cellpadding=0 cellspacing=0 width=750><tr><td width=15></td><td wiidth=66 valign="middle"><A href="http://www.cu-village.com/shells/?villid=dcecuorg"><img src="http://www.dcecu.org/Home/cuvilewhite.gif" border="0"></a></td>\
	  	  <td align="center" class="contents_nosapcing">Some links on this page are Courtesy of www.cu-village.com. Opinions, content, products and services  do not necessarily reflect the views, opinions or values of DCECU.\
		  <A href="http://www.dcecu.org/au_disclosure.htm"> <B>Click Here</B> </a>for a thorough explanation.</td>\
		  <td wiidth=66 valign="middle"><A href="http://www.cu-village.com/shells/?villid=dcecuorg"><img src="http://www.dcecu.org/Home/cuvilewhite.gif" border="0"></a></td></tr></table>\
	  	  ');
	}
}

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_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];}
}

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;
}