// JavaScript Document

	

	function changeFocusFocus(x){
		var fcsTabs = "focusTab";
		var imageArray = new Array();
		var fcsTxt = new Array();
		imageArray[1] = "url(images/backgroundTab1.png)"
		imageArray[2] = "url(images/backgroundTab2.png)"
		imageArray[3] = "url(images/backgroundTab3.png)"
		imageArray[4] = "url(images/backgroundTab4.png)"
		imageArray[5] = "url(images/backgroundTab7.png)" // 7 cellphones
		imageArray[6] = "url(images/backgroundTab5.png)" // 5 sarah with dude on bike
		imageArray[7] = "url(images/backgroundTab6.png)" // 	
		
		fcsTxt[1] = "<div style=\"color:#336;font-weight:bold;margin-bottom:4px;\" title=\"Become a consumer champion. Since 1984, hundreds of thousands of people throughout the state of Illinois have supported CUB. CUB is the only organization in Illinois focused 100 percent on lowering utility rates. The St. Louis Post-Dispatch described as the gold standard of consumer groups nationwide.\"><a href=\"http://cerf.convio.net/donate\" class=\"bluebold\" target=\"_blank\">Become a consumer champion</a></div>Since 1984, hundreds of thousands of people throughout the state of Illinois have supported CUB. CUB is the only organization in Illinois focused 100&#160;percent on lowering utility rates. The&#160;St.&#160;Louis Post-Dispatch described as&#160;the \"gold&#160;standard\" of consumer groups nationwide.";
		
		fcsTxt[2] = "<div style=\"color:#336;font-weight:bold;margin-bottom:4px;\"><a href=\"mission.html\" class=\"bluebold\" target=\"_blank\">CUB's Mission</a></div>When the Illinois General Assembly created CUB in 1983, it gave the nonprofit, nonpartisan organization a clear mission: to represent the interests of residential utility customers across the state. "
		
		// fcsTxt[3] = "</a><div style=\"color:#336;font-weight:bold;margin-bottom:4px;\"><a href=\"cubServices_eventcalendar.php\" class=\"bluebold\" target=\"_blank\">View CUB's Complete Calendar</a></div><div style=\"margin-bottom:4px;\">" + rtnCalendar('4', "small") + "<br /></div>";
		
		
fcsTxt[3] = "</a><div style=\"color:#336;font-weight:bold;margin-bottom:4px;\"><iframe src=\"http://www.citizensutilityboard.org/cubcalendarsmall.php\" scrolling=\"no\" frameborder=\"0\" width=\"240\" style=\"margin:0px;margin-left:-12px;margin-top:-12px;width:266px;height:152px;\"></iframe><br /></div>";		
		
		fcsTxt[4] = "<div style=\"color:#336;font-weight:bold;margin-bottom:4px;\"><a href=\"cubphonesaver_1.html\" class=\"bluebold\">Head to CUB's Phone Savings Center</a></div>The bad news is you're probably paying too much for phone service. The good news is CUB can help you save.<div style=\"margin-left:6px;text-indent:-6px;\">1. Make the Consumer's Choice</div><div style=\"margin-left:6px;text-indent:-6px;\">2. Use CUB's Cellphone Saver</div><div style=\"margin-left:6px;text-indent:-6px;\">3. Drop \"Line-Backer\"</div><div style=\"margin-left:14px;text-indent:-14px;\">4. Take Advantage of Pioneer's $10 \"CUB&#160;Credit\" </div><div style=\"margin-left:6px;text-indent:-6px;\">5. Don't pay for directory assistance</div>";

		fcsTxt[5] = "<div style=\"color:#336;font-weight:bold;margin-bottom:4px;\"><a href=\"cellphonesaver.html\" class=\"bluebold\">Save with the CUB Cellphone Saver</a></div>The CUB Cellphone Saver analyzes your wireless bill and show you how to save hundreds of dollars a year. It combs the hundreds of complicated and confusing plans offered by the nation's biggest carriers&#8212;AT&T, Sprint, T-Mobile, U.S.&#160;Cellular, Verizon&#8212;and tells you if there's a&#160;cheaper plan out there, based on your&#160;usage.";	
		
		fcsTxt[6] = "<div style=\"color:#336;font-weight:bold;margin-bottom:4px;\"><a href=\"https://www.cubenergysaver.com\" class=\"bluebold\" target=\"_blank\">Sign up for CUB Energy Saver</a></div>CUB Energy Saver is a free online service to help you cut your utility bills. This program is currently only open to residents of Illinois. You must be a ComEd customer to earn rewards. Only the first 10,000 users are eligible to earn rewards.";
		
fcsTxt[7] = "<div style=\"color:#336;font-weight:bold;margin-bottom:4px;\"><iframe src=\"http://www.citizensutilityboard.org/echtzeit/yourstories_small.php\" scrolling=\"no\" frameborder=\"0\" width=\"240\" style=\"margin:0px;margin-left:-12px;margin-top:-12px;width:266px;height:152px;\"></iframe><br /></div>";			

/*		original version of 7
fcsTxt[7] = "<div style=\"float:right;margin-left:12px;width:60;\"><img src=\"http://www.citizensutilityboard.org/images/gasmarketmonitorad.jpg\" style=\"width:60px;height:60px;\"><br><br><img src=\"http://www.citizensutilityboard.org/images/pioneer20credit1.jpg\" style=\"width:60px;height:60px;\"></div><div style=\"color:#336;font-weight:bold;margin-bottom:4px;\">Pocketbook Protection</div>CUB has created three sources to save you money on these pages for electric savings, <a href=\"ciDontGetShocked.html\" class=\"bluebold\">CUB's \"Don't Get Shocked\" Help Center</a>, natural gas savings, <a href=\"ciNaturalGas.html\" class=\"bluebold\">CUB\'s Home Heating Survival Guide</a>, and phone savings, <a href=\"ciTelecom.html\" class=\"bluebold\">CUB\'s Phone Cost-Cutting Kit</a>.";	
*/
		
															
		
		for(i = 1; i < 8; i++){
			if(i != 1){
				document.getElementById(fcsTabs + i).style.backgroundColor = "#ABC";
			}
			
		
			document.getElementById(fcsTabs + i).style.color = "#FFF";
			document.getElementById("focusTab" + i).style.backgroundImage = "url(images/tabbluegray.png)"; 
			if(i == 7){
				//document.getElementById(fcsTabs + i).style.backgroundColor = "#FFF";
				document.getElementById("focusTab" + i).style.backgroundImage = "url(images/tabbluegrayend.png)"; 
			}			
		}
		
	//	document.getElementById("focusTab" + x).style.backgroundColor = "#FFF";
		document.getElementById("focusTab" + x).style.color = "#933";
		document.getElementById("focusBody").style.backgroundImage = imageArray[x]; 
		if(x==7){
			document.getElementById("focusTab" + x).style.backgroundImage = "url(images/tabgrayend.png)"; 
		} else {
			document.getElementById("focusTab" + x).style.backgroundImage = "url(images/tabgray.png)"; 
			document.getElementById(fcsTabs + (x+1)).style.backgroundColor = "#EEE";
		}
		document.getElementById("focusText").innerHTML = fcsTxt[x];
	}
	
	
	function imageRand(nm, cnt, over){
		var rtn = "";
		imgi = Math.floor(Math.random()*cnt);
		// alert(imgi);
		if(over > 0){imgi = over}
		rtn = "<img id="+ nm +" name="+ nm +" style=\"margin-top:16px;\" src=\"http://www.citizensutilityboard.org/images/" + nm + "" + imgi + ".png\"/>";
		// alert(rtn);
		return rtn;
	} // end imageRand()
	
	function dropDown(dd, sh){
		// dropdown_
		// dd_
		for(var i = 1; i < 3 ; i++){
			if((dd == i) && (sh == 1)){
				document.getElementById("dropdown_" + i).style.visibility = "visible";
				document.getElementById("dd_" + i).style.backgroundColor = "#FFF";
				document.getElementById("dd_" + i).style.backgroundImage = "url(images/trans_69C.png)";	
								// background-color:#336;background-image:url(images/trans_all.png);
			} else {
				document.getElementById("dropdown_" + i).style.visibility = "hidden";
				document.getElementById("dd_" + i).style.backgroundColor = "#336";
				document.getElementById("dd_" + i).style.backgroundImage = "url(images/trans_all.png)";					
				
				// background-color:#336;background-image:url(images/trans_all.png);
			} // end if
		}// end for 
	}// end dropDown function

function rtnHeader2011(){
var headerNav  = "";
 headerNav  += "<!-- start header -->";
 headerNav  += "<a name='top' id='top'></a>";
 headerNav  += "<!-- start header http://www.citizensutilityboard.org/images/CUB.gif-->";
 headerNav  += "<div>";
 headerNav  += "<div style=\"float:left;margin-left:-12px;margin-top:4px;width:238px;\">";
 headerNav  += "<div style=\"text-align:center;margin-top:0px;\">";
 headerNav  += "<img src=\"http://www.citizensutilityboard.org/images/CUBtranslogo.png\" /><br />";
 headerNav  += "<!-- <img src=\"http://www.citizensutilityboard.org/images/CUB.gif\" />";
 headerNav  += "<span style=\"color:#336;font-weight:bold;font-size:1.2em;\">Citizens Utility Board</span>";
 headerNav  += "<br />";
 headerNav  += "<span style=\"color:#336;font-weight:bold;font-size:.8em;\">Fighting for Illinois Consumers Since 1984</span>";
 headerNav  += "-->";
 headerNav  += "</div>";
 headerNav  += "</div>";

 headerNav  += "<div  ";
 headerNav  += "style=\"float:right;width:796px;height:86px;margin-right:0px; ";
 headerNav  += "position:relative;padding:8px;padding-left:0px;\">";
 headerNav  += "<!-- START: special message content goes here height:152px;-->";
 headerNav  += "<div style=\"text-align:left;margin-top:0px;margin-left:0px;\">";
 headerNav  += "<img name=\"cubbanner\" id=\"cubbanner\" "; 
 headerNav  += "src=\"http://www.citizensutilityboard.org/images/banner_007.png\" style=\"margin-top:-4px;margin-left:-20px;\"/>";
 headerNav  += "<!-- ";
 headerNav  += "<span style=\"color:#336;font-weight:bold;font-size:3.2em;\">Citizens Utility Board</span>";
 headerNav  += "<br />";
 headerNav  += "<span style=\"color:#336;font-weight:bold;font-size:1.4em;margin-left:36px;\">Fighting for Illinois Consumers";  
 headerNav  += " Since 1984</span>";
 headerNav  += "-->";
 headerNav  += "<!-- END: special message content goes here  -->";
 headerNav  += "</div>";

 headerNav  += "</div>";

 headerNav  += "<div style=\"height:8px;clear:both;\"></div>";
 headerNav  += "<!-- start global nav div inherit-->";
 headerNav  += "<div";
 headerNav  += " style=\"position:static;padding:0px;background-color:#336;width:1088px;color:#FFF;font-weight:bold;";
 headerNav  += "font-size:.9em;margin-left:-8px;margin-bottom:6px;height:26px;\">";
 headerNav  += "<!-- start global nav div -->";
 headerNav  += "<div style=\"width:112px;float:left;margin-left:8px;padding:4px;\"><a class=\"white\" href=\"index.html\">Home</a></div>";
 headerNav  += "<!-- trans_all.png -->";
 headerNav  += "<div id=\"dd_1\" name=\"dd_1\" style=\"width:112px;float:left;";  
 headerNav  += "margin-left:8px;";
 headerNav  += "padding:4px;padding-left:8px;background-color:#336;background-image:url(images/trans_all.png);height:18px;\" "; 
 headerNav  += "onmouseover=\"dropDown(1, 1);\" onmouseout=\"dropDown(1, 0);\">About CUB</div>";
 
 headerNav  += "<div id=\"dd_2\" name=\"dd_2\" style=\"width:112px;float:left;"; 
 headerNav  += "margin-left:8px;padding:4px;padding-left:8px;background-color:#336;background-image:url ";
 headerNav  += "(images/trans_all.png);height:18px;\" onmouseover=\"dropDown(2, 1);\"";
 headerNav  += " onmouseout=\"dropDown(2, 0);\">News Room</div>";
 
 headerNav  += "<div style=\"width:136px;float:left;margin-left:8px;padding:4px;background-color:#336;\">";
 headerNav  += "<a href=\"CUBfaq.html\" class=\"white\">Answers and Help</a></div>";
 headerNav  += "<div style=\"width:144px;float:left;margin-left:24px;padding:4px;\"><a href=\"http://cerf.convio.net/site/Survey?ACTION_REQUIRED=URI_ACTION_USER_REQUESTS&SURVEY_ID=1921\" class=\"white\" target=\"_blank\">Get E-mail Updates</a></div>";
 headerNav  += "<!-- end global nav div -->";
 headerNav  += "</div>";
 headerNav  += "<!-- end global nav div -->";

 headerNav  += "<!-- end header -->";
 headerNav  += "</div>";
 headerNav  += "<!-- end header -->";
 headerNav  += "<div style=\"height:8px;clear:both;\"></div>";
 	return headerNav;
	}

function rtnRightColumn(page){
var rtnRight = "";
if(page != "index"){
 rtnRight += "<div style=\"float:right;margin-left:12px;width:156px;border:solid 0px #ABC;";
 rtnRight += "padding:8px;padding-top:0px;text-align:right;\">";
 rtnRight += "<!-- END right -->";
 rtnRight += "<a href='http://cerf.convio.net/donate' target='_blank'><img id='become' border='0' name='become' onmouseover='fnBon(this)' onmouseout='fnBoff(this)' src='http://www.citizensutilityboard.org/images/becomeOff.gif'></a><br /><br />";
 // rtnRight += rtnimgB7SC() + "<br /><br />";

if(page == "cubphonesaver"){
 rtnRight += "<a href='CostCutter.php'><img ";
 rtnRight += "src=http://www.citizensutilityboard.org/images/rcphone2.jpg border='0'></a><br><br>";
} else {
 rtnRight += "<a href='http://www.citizensutilityboard.org/cubphonesaver_1.html'><img  ";
 rtnRight += "src=http://www.citizensutilityboard.org/images/rcphone1.jpg border='0'></a>";
 //rtnRight +=   wrtLPBCCiRightFrame();
} 
 rtnRight += "<a href='http://www.citizensutilityboard.org/cellphonesaver.html'><img src=http://www.citizensutilityboard.org/images/cpsad1.jpg border='0' title='The CUB Cellphone Saver checks your wireless bill to make sure you are not paying for unnecessary services and alerts you to cheaper plans among the nations top five carriers.'></a><br><br>";
 rtnRight += "<a href='http://www.citizensutilityboard.org/ciTelecommPioneerCredit.html' class=bluebold ><img src='http://www.citizensutilityboard.org/images/pioneer20credit1.jpg' border=0></a></span><br><br>";
 rtnRight += "<a href='http://www.citizensutilityboard.org/GasMarketMonitor.php' title='Will I save money by switching to\nan alternative gas supplier?\nClick here to find out.'><img src='http://www.citizensutilityboard.org/images/gasmarketmonitorad.jpg' border=0></a></span><br>"; 
/*
 rtnRight += "";
*/
 rtnRight += "</div>";

}
return rtnRight;
}
	
function rtnLeftNav2011(page, subpage, sub2page, sub3page, sub4page){
var leftnav = "";
leftnav += "<div style=\"float:left;width:240px;\">";
leftnav += "<div style=\"background-color:#336;width:240px;padding:0px;font-size:.9em;\">";
leftnav += "<div style=\"color:#FFF;font-weight:bold;border-bottom:groove 2px #933;padding:6px;background-color:#69C;\">";
leftnav += displayDate();
leftnav += "</div>";


leftnav += "<div style=\"color:#FFF;font-weight:bold;border-bottom:groove 2px #933;padding:6px;\"><a href=\"http://cerf.convio.net/donate\" class=\"white\" target=\"_blank\">Join CUB</a></div>";

leftnav += "<div style=\"color:#FFF;font-weight:bold;border-bottom:groove 2px #933;padding:6px;\"><a href=\"takeaction.html\" class=\"white\">Take Action</a></div>";

if(page == "takeaction"){
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:6px;font-size:.9em;\"><a href=\"http://cerf.convio.net/donate\" class=\"whiteblue\" target=\"_blank\">Contribute to CUB</a></div>";	
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:6px;font-size:.9em;\"><a href=\"http://cerf.convio.net/site/Survey?ACTION_REQUIRED=URI_ACTION_USER_REQUESTS&SURVEY_ID=1921\" class=\"whiteblue\" target=\"_blank\">Send an E-mail</a></div>";		
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:6px;font-size:.9em;\"><a href=\"ratehikefighterscenter.html\" class=\"whiteblue\">Fight Rate Hikes</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:6px;font-size:.9em;\"><a href=\"lte.html\" class=\"whiteblue\">Letters to the Editor</a></div>"; 
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:6px;font-size:.9em;\"><a href=\"surveys.html\" class=\"whiteblue\">Surveys</a></div>";
/* one blank row */
leftnav += "<div style=\"background-color:#ABC;height:4px;color:#FFF;font-weight:bold;padding:0px;padding-left:12px;border: solid 1px #CCC;border-top:0px;border-bottom:0px;\"></div>";
}

leftnav += "<div style=\"color:#FFF;font-weight:bold;border-bottom:groove 2px #933;padding:6px;\"><a href=\"savingmoney.html\" class=\"white\">Saving Money</a></div>";

if(page == "savingmoney"){
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:6px;font-size:.9em;\"><a href=\"cuttingphonebills.html\" class=\"whiteblue\">Cutting Phone Bills</a></div>";

if(subpage =="cuttingphonebills"){
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"phonetips.html\" class=\"whiteblue\">General Phone Tips</a></div>";

if(sub2page =="generalphonetips"){
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"cubphonesaver_1.html\" class=\"whiteblue\">Phone Savings Center</a></div>";	
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"untanglingyourtelephonebill.html\" class=\"whiteblue\">Untangling Your Telephone Bill</a></div>";	

if(sub3page == "untangling"){
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:42px;font-size:.9em;\"><a href=\"untanglingyourtelephonebill.html\" class=\"whiteblue\" >How Much Do You Pay for Phone Service?</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:42px;font-size:.9em;\"><a href=\"whatsthenameofthatcall.html\" class=\"whiteblue\">What's the Name of That&#160;Call?</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:42px;font-size:.9em;\"><a href=\"decipheringyourphonebills.html\" class=\"whiteblue\">Deciphering Your Phone Bills</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:42px;font-size:.9em;\"><a href=\"opportunitiestosaveforattcustomers.html\" class=\"whiteblue\">Opportunities to Save for AT&T Customers</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:42px;font-size:.9em;\"><a href=\"optionalmonthlyservices.html\" class=\"whiteblue\">Optional Monthly Services</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:42px;font-size:.9em;\"><a href=\"otherchargesonyourlocalbill.html\" class=\"whiteblue\">Other Charges on Your Local&#160;Bill</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:42px;font-size:.9em;\"><a href=\"misleadingorfraudulentpractices.html\" class=\"whiteblue\">Misleading or Fraudulent Practices</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:42px;font-size:.9em;\"><a href=\"localstateandfederalcharges.html\" class=\"whiteblue\">Local, State and Federal&#160;Charges</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:42px;font-size:.9em;\"><a href=\"taxes.html\" class=\"whiteblue\">Taxes</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:42px;font-size:.9em;\"><a href=\"otherphoneoptions.html\" class=\"whiteblue\">Other Phone Options</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:42px;font-size:.9em;\"><a href=\"moreoncellphones.html\" class=\"whiteblue\">More On Cell Phones</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:42px;font-size:.9em;\"><a href=\"longdistance_guide.html\" class=\"whiteblue\">Long-Distance</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:42px;font-size:.9em;\"><a href=\"yourrightsasaphonecustomer.html\" class=\"whiteblue\">Your Rights as a Phone&#160;Customer</a></div>";
/* one blank row */
leftnav += "<div style=\"background-color:#ABC;height:4px;color:#FFF;font-weight:bold;padding:0px;padding-left:12px;border: solid 1px #CCC;border-top:0px;border-bottom:0px;\"></div>";	
}
	
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"ciTelecom_RulesToLiveBy.html\" class=\"whiteblue\">A Caller's Rules to Live By</a></div>";	
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"ciTelecom_Cramming.html\" class=\"whiteblue\">What is Cramming?</a></div>";	
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"http://www.citizensutilityboard.org/pdfs/ConsumerInfo/VoIPGuide.pdf\" class=\"whiteblue\" target=\"_blank\">The Facts on VoIP</a></div>";
/* one blank row */
leftnav += "<div style=\"background-color:#ABC;height:4px;color:#FFF;font-weight:bold;padding:0px;padding-left:12px;border: solid 1px #CCC;border-top:0px;border-bottom:0px;\"></div>";	
}

leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"phonelocal.html\" class=\"whiteblue\">Local</a></div>";


if(sub2page =="phonelocal"){
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"CostCutter.php\" class=\"whiteblue\">Local-phone Cost-cutter</a></div>";

leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"http://www.citizensutilityboard.org/pdfs/ConsumerInfo/ConsumersChoiceBrochure.pdf\" class=\"whiteblue\" target=\"_blank\">Consumer's Choice Local-calling Plans</a></div>";

leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"http://www.citizensutilityboard.org/pdfs/ConsumerInfo/NameThatCall.pdf\" class=\"whiteblue\" target=\"_blank\">Defining Calls</a></div>";

leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"http://localcalling.sbc.com/LCA/lca_input.jsp\" class=\"whiteblue\" target=\"_blank\">Local vs. Local Toll</a></div>";
/* one blank row */
leftnav += "<div style=\"background-color:#ABC;height:4px;color:#FFF;font-weight:bold;padding:0px;padding-left:12px;border: solid 1px #CCC;border-top:0px;border-bottom:0px;\"></div>";	
}



leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"longdistance.html\" class=\"whiteblue\">Long Distance</a></div>";

if(sub2page =="longdistance"){
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"ciTelecommPioneerCredit.html\" class=\"whiteblue\">Low-cost Long Distance</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"http://www.tollchaser.com/compare/\" class=\"whiteblue\" target=\"_blank\">Long-distance Calculator</a></div>";
/* one blank row */
leftnav += "<div style=\"background-color:#ABC;height:4px;color:#FFF;font-weight:bold;padding:0px;padding-left:12px;border: solid 1px #CCC;border-top:0px;border-bottom:0px;\"></div>";	
}


leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"international.html\" class=\"whiteblue\">International</a></div>";        
           
if(sub2page =="international"){

leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"http://www.abtolls.com/compare/international/longdistancerates/index.html\" class=\"whiteblue\" target=\"_blank\">International Calculator</a></div>";

leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"CallingCardsMexico.html\" class=\"whiteblue\">CUB's Calling Mexico Center</a></div>";
/* one blank row */
leftnav += "<div style=\"background-color:#ABC;height:4px;color:#FFF;font-weight:bold;padding:0px;padding-left:12px;border: solid 1px #CCC;border-top:0px;border-bottom:0px;\"></div>";	
}


leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"cellphones.html\" class=\"whiteblue\">Cell Phones</a></div>";

if(sub2page =="cellphones"){
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"cellphonesaver.html\" class=\"whiteblue\">CUB Cellphone Saver</a></div>";

if(sub3page =="cellphonesaver"){
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:42px;font-size:.9em;\"><a href=\"cellphonesaver_faq.html\" class=\"whiteblue\" >Frequently Asked Questions</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:42px;font-size:.9em;\"><a href=\"mailto:chilsen@citizensutilityboard.org\" class=\"whiteblue\">Comments</a></div>";
/* one blank row */
leftnav += "<div style=\"background-color:#ABC;height:4px;color:#FFF;font-weight:bold;padding:0px;padding-left:12px;border: solid 1px #CCC;border-top:0px;border-bottom:0px;\"></div>";	
}


leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"http://www.citizensutilityboard.org/pdfs/ConsumerInfo/CellphoneShoppersGuide.pdf\" class=\"whiteblue\" target=\"_blank\">Cell-phone Shopper's Guide</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"ciTelecom_FactsPrepaidCell.html\" class=\"whiteblue\">Prepaid Cell Phones</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:22px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"ciTelecom_DataGuide.html\" class=\"whiteblue\" target=\"_blank\">CUB's Guide to Cell Phone Data&#160;Plans</a></div>";
/* one blank row */
leftnav += "<div style=\"background-color:#ABC;height:4px;color:#FFF;font-weight:bold;padding:0px;padding-left:12px;border: solid 1px #CCC;border-top:0px;border-bottom:0px;\"></div>";	
}

/* one blank row */
leftnav += "<div style=\"background-color:#ABC;height:4px;color:#FFF;font-weight:bold;padding:0px;padding-left:12px;border: solid 1px #CCC;border-top:0px;border-bottom:0px;\"></div>";

}

leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:6px;font-size:.9em;\"><a href=\"cuttingelectricgasbills.html\" class=\"whiteblue\">Cutting Electric/Gas Bills</a></div>"; 


if(subpage =="cuttingelectricgasbills"){	
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"http://www.cubenergysaver.com/\" class=\"whiteblue\" target=\"_blank\">CUB Energy Saver</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"ciLiveWire_RI_ComEd_RTP.html\" class=\"whiteblue\">ComEd Real Time Pricing</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"http://www.citizensutilityboard.org/pdfs/ConsumerInfo/AmerenPowerSmart.pdf\" class=\"whiteblue\" target=\"_blank\">Ameren Power Smart Pricing</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"ciLiveWire_SaveEnergy_HomeEnergyAudits.html\" class=\"whiteblue\">Home Energy Audits</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"ciLiveWire_SaveEnergy_CFLs.html\" class=\"whiteblue\">The Facts About CFLs</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:22px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"http://www.citizensutilityboard.org/pdfs/ConsumerInfo/EnergyEfficiencyTips.pdf\" class=\"whiteblue\" target=\"_blank\">Energy-saving Tips for All&#160;Seasons</a></div>";
/* one blank row */
leftnav += "<div style=\"background-color:#ABC;height:4px;color:#FFF;font-weight:bold;padding:0px;padding-left:12px;border: solid 1px #CCC;border-top:0px;border-bottom:0px;\"></div>";	
}	



leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:6px;font-size:.9em;\"><a href=\"electricgaschoice.html\" class=\"whiteblue\">Electric/Gas Choice</a></div>";


if(subpage =="electricgaschoice"){
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"ciElectric_cubfacts_alternativesuppliers.html\" class=\"whiteblue\">Electric Competition: What You Should Know</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"ciElectric_cubfacts_alternativesuppliersameren.html\" class=\"whiteblue\">Electric Competition: What Ameren customers should know</a></div>";
// leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"ciElectric_cubfacts_illini.html\" class=\"whiteblue\">What's the scoop on Fighting Illini Energy</a></div>";

leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"GasMarketMonitor.php\" class=\"whiteblue\">Gas Market Monitor</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"ciNaturalGas_CUBFactsChoicesForYou.html\" class=\"whiteblue\">Choosing a Supplier-Peoples Gas</a></div>";



if(sub2page =="choicesforyouoffers"){
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"#top\" class=\"whiteblue\">Choices For You Offers</a></div>";
/* one blank row */
leftnav += "<div style=\"background-color:#ABC;height:4px;color:#FFF;font-weight:bold;padding:0px;padding-left:12px;border: solid 1px #CCC;border-top:0px;border-bottom:0px;\"></div>";	
}
/* Choices For You Offers */


leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"ciNaturalGas_CUBFactsCustomerSelect.html\" class=\"whiteblue\">Choosing a Supplier-Nicor Gas</a></div>";

if(sub2page =="customerselectoffers"){
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"#top\" class=\"whiteblue\">Customer Select Offers</a></div>";
/* one blank row */
leftnav += "<div style=\"background-color:#ABC;height:4px;color:#FFF;font-weight:bold;padding:0px;padding-left:12px;border: solid 1px #CCC;border-top:0px;border-bottom:0px;\"></div>";	
}
/* Customer Select Offers */



if(sub2page =="gasmarketmonitor"){
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"ags32.php\" class=\"whiteblue\">An Analysis of Integrys Energy Services'&#160;Offers</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"ags33.php\" class=\"whiteblue\">An Analysis of Santanna Energy Services'&#160;Offers</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:40px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"ags34.php\" class=\"whiteblue\">An Analysis of Just Energy, formerly U.S. Energy Savings Corp.'s&#160;Offers</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"ags35.php\" class=\"whiteblue\">An Analysis of Dominion Retail's&#160;Offers</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"ags36.php\" class=\"whiteblue\">An Analysis of MXenergy's&#160;Offers</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"ags37.php\" class=\"whiteblue\">An Analysis of IGS Energy's&#160;Offers</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"ags38.php\" class=\"whiteblue\">An Analysis of Cornbelt's&#160;Offers</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"ags39.php\" class=\"whiteblue\">An Analysis of Illinois Natural Gas Corp's&#160;Offers</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"ags40.php\" class=\"whiteblue\">An Analysis of Direct Energy Services'&#160;Offers</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"ags44.php\" class=\"whiteblue\">An Analysis of Nordic Energy Services'&#160;Offers</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"ags52.php\" class=\"whiteblue\">An Analysis of WPS Energy's&#160;Offers</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"ags59.php\" class=\"whiteblue\">An Analysis of Spark Energy's&#160;Offers</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"ags60.php\" class=\"whiteblue\">An Analysis of Ambit Energy's&#160;Offers</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"ags62.php\" class=\"whiteblue\">An Analysis of Nicor Advanced Energy's&#160;Offers</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:30px;font-size:.9em;\"><a href=\"gasbalancingcharges.php\" class=\"whiteblue\">Balancing Charges</a></div>";
/* one blank row */
leftnav += "<div style=\"background-color:#ABC;height:4px;color:#FFF;font-weight:bold;padding:0px;padding-left:12px;border: solid 1px #CCC;border-top:0px;border-bottom:0px;\"></div>";	
}

leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"factsheet_NicorAdvancedEnergyPlans.html\" class=\"whiteblue\">Nicor Advanced Energy Plans</a></div>";
/* one blank row */
leftnav += "<div style=\"background-color:#ABC;height:4px;color:#FFF;font-weight:bold;padding:0px;padding-left:12px;border: solid 1px #CCC;border-top:0px;border-bottom:0px;\"></div>";	
}

leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:6px;font-size:.9em;\"><a href=\"energyefficiencyincentives.html\" class=\"whiteblue\">Energy-efficiency Incentives</a></div>";


if(subpage =="energyefficiencyincentives"){
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"ciLiveWire_RI_ComEd_SmartIdeas.html\" class=\"whiteblue\">ComEd Incentives</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"ciLiveWire_RI_Ameren_ActOnEnergy.html\" class=\"whiteblue\">Ameren \"Act On Energy\"</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"ciLiveWire_RI_Peoples.html\" class=\"whiteblue\">Peoples Gas Rebates</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"ciLiveWire_RI_North_Shore.html\" class=\"whiteblue\">North Shore Gas Rebates</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"ciLiveWire_RI_Nicor.html\" class=\"whiteblue\">Nicor Gas Rebates</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"ciLiveWire_RI_Federal.html\" class=\"whiteblue\">Federal Tax Credits</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"ciLiveWire_RI_IHWAP.html\" class=\"whiteblue\">Illinois Home Weatherization Assistance&#160;Program</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"http://www.citizensutilityboard.org/pdfs/ConsumerInfo/NetMetering.pdf\" class=\"whiteblue\" target=\"_blank\">Illinois Net Metering</a></div>";
/* one blank row */
leftnav += "<div style=\"background-color:#ABC;height:4px;color:#FFF;font-weight:bold;padding:0px;padding-left:12px;border: solid 1px #CCC;border-top:0px;border-bottom:0px;\"></div>";	
}
/*
 

*/

leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:6px;font-size:.9em;\"><a href=\"aboutyourbill.html\" class=\"whiteblue\">About Your Bill</a></div>";


if(subpage =="aboutyourbill"){
	
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"ciNaturalGas_MakingSenseOfYourGasBill.html\" class=\"whiteblue\">Making Sense of Your Gas Bill</a></div>";

leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"ciElectric_cubfacts_makingsense.html\" class=\"whiteblue\">Making Sense of Your Electric Bill</a></div>";	

leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"pga.php\" class=\"whiteblue\">Natural Gas Price Checker</a></div>";

leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"ciNaturalGas_ReadingYourMeter.html\" class=\"whiteblue\">Reading Your Meter</a></div>";

leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"utilitychecklistforrenters.html\" class=\"whiteblue\">Utility Checklist for Renters</a></div>";

leftnav += "<div style=\"background-color:#ABC;height:24px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"ciNaturalGas_UnderstandingYourBudgetBillingPlan.html\" class=\"whiteblue\">Understanding Your <br>Budget-billing Plan</a></div>";

leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:18px;font-size:.9em;\"><a href=\"pdfs/ConsumerInfo/MaintenancePlans.pdf\" class=\"whiteblue\" target=\"_blank\">Maintenance Plan</a></div>";
}

/* one blank row */
leftnav += "<div style=\"background-color:#ABC;height:4px;color:#FFF;font-weight:bold;padding:0px;padding-left:12px;border: solid 1px #CCC;border-top:0px;border-bottom:0px;\"></div>";
}




leftnav += "<div style=\"color:#FFF;font-weight:bold;border-bottom:groove 2px #933;padding:6px;\"><a href=\"utilitypolicy.html\" class=\"white\">Illinois Utility Policy</a></div>";

if(page =="ILUTPOLICY"){
	
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:6px;font-size:.9em;\"><a href=\"http://www.citizensutilityboard.org/pdfs/ConsumerInfo/ICC.pdf\" class=\"whiteblue\" target=\"_blank\">Illinois Commerce Commission</a></div>";

leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:6px;font-size:.9em;\"><a href=\"news20100406_SmartGrid.html\" class=\"whiteblue\">Smart Grid</a></div>";

leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:6px;font-size:.9em;\"><a href=\"ciElectric_cubfacts_SmartMeterRF.html\" class=\"whiteblue\">Digital Smart Meters</a></div>";

leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:6px;font-size:.9em;\"><a href=\"legislation_SmartGrid.html\" class=\"whiteblue\">Illinois' smart-grid legislation</a></div>";

leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:6px;font-size:.9em;\"><a href=\"ciElectric_Ameren_QS.html\" class=\"whiteblue\">Compensation for power&#160;outages</a></div>";

leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:6px;font-size:.9em;\"><a href=\"http://www.citizensutilityboard.org/pdfs/ConsumerInfo/FTCsNoCallList.pdf\" class=\"whiteblue\" target=\"_blank\">FTC's no-call list</a></div>";

leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:6px;font-size:.9em;\"><a href=\"ciElectric_cubfacts_communityaggregation.html\" class=\"whiteblue\">Community aggregation of&#160;electricity</a></div>";

leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:6px;font-size:.9em;\"><a href=\"http://www.citizensutilityboard.org/pdfs/Legislation/TelecomAct2010.pdf\" class=\"whiteblue\" target=\"_blank\">Telecommunications Act of&#160;2010</a></div>";

leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:6px;font-size:.9em;\"><a href=\"ciElecSumILHB362.html\" class=\"whiteblue\">Illinois' 1997 Electric Restructuring&#160;Law</a></div>";

leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:6px;font-size:.9em;\"><a href=\"http://www.ilga.gov/legislation/BillStatus.asp?DocNum=1592&GAID=9&DocTypeID=SB&LegId=29675&SessionID=51&GA=95\" class=\"whiteblue\" target=\"_blank\">Electric Rate Relief Reform Act of&#160;2007</a></div>";

leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:6px;font-size:.9em;\"><a href=\"ciLiveWire_IEP_ICCR.html\" class=\"whiteblue\">ICC Reform Act of&#160;2009</a></div>";

leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:6px;font-size:.9em;\"><a href=\"ciLiveWire_IEP_EEBC.html\" class=\"whiteblue\">Energy Efficient Building Act<br>of&#160;2009</a></div>";

leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:6px;font-size:.9em;\"><a href=\"ciLiveWire_IEP_Peoples_2007.html\" class=\"whiteblue\">2007 Peoples and North Shore Gas rate&#160;case</a></div>";

leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:6px;font-size:.9em;\"><a href=\"ciLiveWire_IEP_Nicor_2009.html\" class=\"whiteblue\">2009 Nicor Gas rate case</a></div>";

/* one blank row */
leftnav += "<div style=\"background-color:#ABC;height:4px;color:#FFF;font-weight:bold;padding:0px;padding-left:12px;border: solid 1px #CCC;border-top:0px;border-bottom:0px;\"></div>";
}

// http://cerf.convio.net/site/PageServer?pagename=deploymenthome
leftnav += "<div style=\"color:#FFF;font-weight:bold;border-bottom:groove 2px #933;padding:6px;\"><a href=\"http://cerf.convio.net/site/Survey?ACTION_REQUIRED=URI_ACTION_USER_REQUESTS&SURVEY_ID=1921\" target=\"_blank\" class=\"white\" title=\"CUB Action Network\">CUB's Action Network</a></div>";

leftnav += "<div style=\"color:#FFF;font-weight:bold;border-bottom:groove 2px #933;padding:6px;\"><a href=\"http://www.cubenergysaver.com\" class=\"white\" target=\"_blank\">CUB Energy Saver</a></div>";

leftnav += "<div style=\"color:#FFF;font-weight:bold;border-bottom:groove 2px #933;padding:6px;\"><a href='http://www.citizensutilityboard.org/ean.php' target='_blank' class='white' title='The Energy Action Network (EAN) is a diverse network of community organizations that help Chicago families reduce their utility bills.'>Energy Action Network</a></div>";

if(page=="ean"){
 	
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:6px;font-size:.9em;\"><a href=\"ean_info.html\" class=\"whiteblue\">About EAN</a></div>";	

leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:6px;font-size:.9em;\"><a href=\"ean_eligible.html\" class=\"whiteblue\">Program Eligibility</a></div>";

leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:6px;font-size:.9em;\"><a href=\"http://www.citizensutilityboard.org/pdfs/EAN_Sitemap.pdf\" target=\"_blank\" class=\"whiteblue\">Location map</a></div>";

// one blank 
leftnav += "<div style=\"background-color:#ABC;height:4px;color:#FFF;font-weight:bold;padding:0px;padding-left:12px;border: solid 1px #CCC;border-top:0px;border-bottom:0px;\"></div>";

}

/* standard spanish left navigation */

/*******************************************/
/*******************************************/
/*******************************************/
/*
leftnav += "<div style=\"color:#FFF;font-weight:bold;border-bottom:groove 2px #933;padding:6px;\"><a href=\"espanol.html\" class=\"white\">Ahorre dinero e infÃ³rmese</a> </div>";

if(page=="espanol"){

// function rtnLeftNav2011(page, subpage, sub2page, sub3page){

	
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:6px;font-size:.9em;\"><a href=\"ahorrosenelhogar.html\" class=\"whiteblue\">Ahorros en el Hogar</a></div>";

if(subpage =="ahorrosenelhogar"){
	
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:12px;font-size:.9em;\"><a href=\"rebajesufactura.html\" class=\"whiteblue\">Rebaje Su Factura de Gas y&#160;Electricidad</a></div>";


if(sub2page == "rebajesufactura"){ // reduzcaloscostostelefonicos.html

leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:24px;font-size:.9em;\"><a href=\"ahorredineroalahorrarenergia.html\" class=\"whiteblue\">Ahorre Dinero Al Ahorrar&#160;Energ&#237;a</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:24px;font-size:.9em;\"><a href=\"todospodemosahorrardinerosinpasarfrio.html\" class=\"whiteblue\">Ahorrando Dinero Sin Pasar&#160;Frio</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:24px;font-size:.9em;\"><a href=\"ahorrandodineroenelverano.html\" class=\"whiteblue\">Ahorrando Dinero En El&#160;Verano</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:24px;font-size:.9em;\"><a href=\"medidaseficientesparaelhogardeuninquilino.html\" class=\"whiteblue\">Medidas Eficientes Para El Hogar De Un&#160;Inquilino</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:24px;font-size:.9em;\"><a href=\"ahorrehasta100alanoconlostermostatosprogramables.html\" class=\"whiteblue\">Ahorre Hasta $100 al A&#241;o Con Los Termostatos&#160;Programables</a></div>";  
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:24px;font-size:.9em;\"><a href=\"ahorrecambiandosusbombillos.html\" class=\"whiteblue\">Ahorre Cambiando Sus&#160;Bombillos</a></div>"; 
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:24px;font-size:.9em;\"><a href=\"comodesecharlosbombilloscompactosfluorescentes.html\" class=\"whiteblue\">Como Desechar Los Bombillos Compactos&#160;Fluorescentes</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:24px;font-size:.9em;\"><a href=\"portalecohogar.html\" class=\"whiteblue\">Portal Eco-Hogar</a></div>";


if(sub3page == "portalecohogar"){ // portalecohogar.html
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:36px;font-size:.9em;\"><a href=\"energiaeficienteycreditosdelgobiernofederal.html\" class=\"whiteblue\">Energ&#237;a Eficiente Y Cr&#233;ditos Del Gobierno&#160;Federal</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:44px;color:#FFF;font-weight:bold;padding:5px;padding-left:36px;font-size:.9em;\"><a href=\"programasdeincentivosparahogares.html\" class=\"whiteblue\">Programas De Incentivos Para Hogares Que Usan La Energ&#237;a De Forma&#160;Eficiente</a></div>";

if(sub4page == "programasdeincentivosparahogares"){  
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:48px;font-size:.9em;\"><a href=\"programasmartideasdecomed.html\" class=\"whiteblue\">Programa \"Smart Ideas\" de&#160;ComEd</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:48px;font-size:.9em;\"><a href=\"reembolsosdepeoples.html\" class=\"whiteblue\">Re-embolsos De Peoples Gas</a></div>";  
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:48px;font-size:.9em;\"><a href=\"reembolsosdenicorgas.html\" class=\"whiteblue\">Re-embolsos De Nicor Gas</a></div>";
} // sub4page = programasdeincentivosparahogares

leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:36px;font-size:.9em;\"><a href=\"http://cubenergysaver.com\" class=\"whiteblue\" target=\"_blank\">Analizador y Calculadora de Energ&#237;a De&#160;CUB</a></div>";

} // sub3page = portalecohogar

} // sub2page = rebajesufactura 

leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:12px;font-size:.9em;\"><a href=\"reduzcaloscostostelefonicos.html\" class=\"whiteblue\">Reduzca los Costos Telef&#243;nicos</a></div>";
 
if(sub2page =="reduzcaloscostostelefonicos"){ //  
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:24px;font-size:.9em;\"><a href=\"consejosbasicos_telecom.html\" class=\"whiteblue\">Consejos B&#225;sicos</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:24px;font-size:.9em;\"><a href=\"http://www.citizensutilityboard.org/pdfs/ConsumerInfo/CUBPhoneBrochureSpanish.pdf\" class=\"whiteblue\" target=\"_blank\">Opciones Baratas Para L&#237;nea Fija</a></div>"; 
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:24px;font-size:.9em;\"><a href=\"bajocostosparalargadistancianacional.html\" class=\"whiteblue\">Bajo Costos Para Larga Distancia&#160;Nacional</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:24px;font-size:.9em;\"><a href=\"analizadorycalculadoraparaplanesdecelular.html\" class=\"whiteblue\">Analizador y Calculadora Para Planes de&#160;Celular</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:24px;font-size:.9em;\"><a href=\"tarjetastelefonicas.html\" class=\"whiteblue\">Tarjetas Telef&#243;nicas</a></div>"; 
 
if(sub3page == "tarjetastelefonicas"){ 
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:36px;font-size:.9em;\"><a href=\"consejosbasicos_tel.html\" class=\"whiteblue\">Consejos B&#225;sicos</a></div>"; 
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:36px;font-size:.9em;\"><a href=\"quejas_tel.html\" class=\"whiteblue\">Quejas</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:36px;font-size:.9em;\"><a href=\"evitandofraude.html\" class=\"whiteblue\">Evitando Fraude</a></div>";      
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:36px;font-size:.9em;\"><a href=\"llamadaamexico.html\" class=\"whiteblue\">Llamadas a M&#233;xico</a></div>";    
	} // sub3page ==   tarjetastelefonicas 
  } // sub2page ==   reduzcaloscostostelefonicos 
} // subpage ==



leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:6px;font-size:.9em;\"><a href=\"sobresuserviciodegas.html\" class=\"whiteblue\">Sobre su Servicio de Gas</a></div>";

if(subpage =="sobresuserviciodegas"){
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:12px;font-size:.9em;\"><a href=\"opcionesparasuserviciodegas.html\" class=\"whiteblue\">Opciones Para Su Servicio de Gas</a></div>";



if(sub2page == "opcionesparasuserviciodegas"){
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:24px;font-size:.9em;\"><a href=\"opcionesparaclientesresidenciales.html\" class=\"whiteblue\">Opciones Para Clientes Residenciales</a></div>";
 

if(sub3page == "opcionesparaclientesresidenciales"){
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:36px;font-size:.9em;\"><a href=\"companiasensuarea.html\" class=\"whiteblue\">Compa&#241;ias En Su Area</a></div>"; 
 

if(sub4page == "companiasensuarea"){
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:48px;font-size:.9em;\"><a href=\"paraclientesdepeoplesgasynorthshoregas.html\" class=\"whiteblue\">Para Clientes De Peoples Gas Y North Shore&#160;Gas</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:48px;font-size:.9em;\"><a href=\"paraclientesdenicorgas.html\" class=\"whiteblue\">Para Clientes de Nicor Gas</a></div>";
} // if(sub3page == "companiasensuarea"){
	
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:36px;font-size:.9em;\"><a href=\"segurosyplanesopcionales.html\" class=\"whiteblue\">Seguros y Planes Opcionales</a></div>"; 
 
if(sub4page == "segurosyplanesopcionales"){ 
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:48px;font-size:.9em;\"><a href=\"tuberiasinternasyfugasdegas.html\" class=\"whiteblue\">Tuber&#237;as Internas y Fugas De&#160;Gas</a></div>";
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:48px;font-size:.9em;\"><a href=\"budgetplan_esp1.html\" class=\"whiteblue\">Budget Plan</a></div>"; 
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:48px;font-size:.9em;\"><a href=\"lock12_esp1.html\" class=\"whiteblue\">Lock 12</a></div>"; 
} // if(sub4page == "segurosyplanesopcionales"){
} // if(sub3page == "opcionesparasuserviciodegas"){

leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:24px;font-size:.9em;\"><a href=\"preciosdelgasnatural.html\" class=\"whiteblue\">Precios Del Gas Natural</a></div>";

if(sub3page == "preciosdelgasnatural"){
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:36px;font-size:.9em;\"><a href=\"comparaciondeprecios.html\" class=\"whiteblue\">Comparaci&#243;n De&#160;Precios</a></div>";   
leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:36px;font-size:.9em;\"><a href=\"espanol_pga.php\" class=\"whiteblue\">Precios Del Gas Natural Por&#160;Unidad</a></div>"; 
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:36px;font-size:.9em;\"><a href=\"costoporenvioycargosfijos.html\" class=\"whiteblue\">Costo Por Env&#237;o y Cargos&#160;Fijos</a></div>";
}

leftnav += "<div style=\"background-color:#ABC;height:28px;color:#FFF;font-weight:bold;padding:5px;padding-left:24px;font-size:.9em;\"><a href=\"alertaalconsumidornosedejeenganarporvendedores.html\" class=\"whiteblue\">Alerta Al Consumidor No Se Deje Enga&#241;ar Por&#160;Vendedores</a></div>"; 
 
} // sub2page == opcionesparasuserviciodegas


leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:12px;font-size:.9em;\"><a href=\"entendiendomifacutadegas.html\" class=\"whiteblue\">Entendiendo Mi Facuta De Gas</a></div>";

if(sub2page == "entendiendomifacutadegas"){
leftnav += "<div style=\"background-color:#ABC;height:10px;color:#FFF;font-weight:bold;padding:5px;padding-left:24px;font-size:.9em;\"><a href=\"consejosbasicos.html\" class=\"whiteblue\">Consejos B&#225;sicos</a></div>";

if (sub3page == "consejosbasicos"){
leftnav += "<div style=\"background-color:#ABC;height:42px;color:#FFF;font-weight:bold;padding:5px;padding-left:36px;font-size:.9em;\"><a href=\"reglasquedebenseguirlosconsumidoresenloreferentealgasnatural.html\" class=\"whiteblue\">Reglas que deben seguir los consumidores en lo referente al gas&#160;natural</a></div>"; 
leftnav += "<div style=\"background-color:#ABC;height:44px;color:#FFF;font-weight:bold;padding:5px;padding-left:36px;font-size:.9em;\"><a href=\"evitandomalasexperienciasalalquilarconsejosparalosinquilinos.html\" class=\"whiteblue\">Evitando malas experiencias al alquilar: Consejos para los&#160;inquilinos</a></div>";
} // if(sub3page == "consejosbasicos"
} // if(sub2page == "entendiendomifacutadegas"
} // subpage =="sobresuserviciodegas"

leftnav += "<div style=\"background-color:#ABC;height:4px;color:#FFF;font-weight:bold;padding:5px;padding-left:36px;font-size:.9em;\"></div>";
}


*/
/*******************************************/
/*******************************************/
/*******************************************/
leftnav += "</div>";



// Conectar con CUB en estas redes sociales.
if(page=="espanol"){
leftnav += "<div style=\"font-size:.8em;margin-bottom:4px;margin-top:8px;\">Conectar con CUB en estas redes&#160;sociales.</div>";
leftnav += "<a href=\"http://www.facebook.com/?ref=home#!/profile.php?id=100000227978537\" target=\"_blank\"><img src=\"http://www.citizensutilityboard.org/images/facebook01.png\" style=\"float:left;border:0px;\" title=\"Haga clic aquÃ­ para convertirse en un fan de la CUB en Facebook.\"></a><a href=\"http://twitter.com/cubespanol\" target=\"_blank\"><img src=\"http://www.citizensutilityboard.org/images/twitter01.png\" style=\"float:left;margin-left:4px;border:0px;\" title=\"Haga clic aquÃ­ para seguir CUB en Twitter.\"></a><a href=\"http://www.cubenergysaver.com\" target=\"_blank\"><img src=\"http://www.citizensutilityboard.org/images/cubes.png\" style=\"float:left;margin-left:4px;border:0px;\"  title=\"Click here to follow CUB on CUB's Energy Saver, learn how to save money on your energy usage.\"></a> <a href=\"http://www.youtube.com/Cubespanol\" title=\"CUB Illinois Espanol\" target=\"_blank\"><img src=\"images/youtubelogo.png\"></a>";
} else {
leftnav += "<div style=\"font-size:.8em;margin-bottom:4px;margin-top:8px;\">Connect to CUB on these social networks.</div>";
leftnav += "<a href=\"http://bit.ly/2S1bGD\" target=\"_blank\"><img src=\"http://www.citizensutilityboard.org/images/facebook01.png\" style=\"float:left;border:0px;\" title=\"Click here to become a fan of CUB on ";
leftnav += "Facebook.\"></a><a href=\"http://twitter.com/cubillinois\" target=\"_blank\"><img src=\"http://www.citizensutilityboard.org/images/twitter01.png\" style=\"float:left;margin-left:4px;border:0px;\" title=\"Click here to follow CUB on Twitter.\"></a><a href=\"http://www.cubenergysaver.com\" target=\"_blank\"><img src=\"http://www.citizensutilityboard.org/images/cubes.png\" style=\"float:left;margin-left:4px;border:0px;\"  title=\"Click here to follow CUB on CUB's Energy Saver, learn how to save money on your energy usage.\"></a></a> <a href=\"http://www.youtube.com/user/CUBIllinois\" title=\"Watch CUB videos on YouTube.\" target=\"_blank\"><img src=\"images/youtubelogo.png\"></a>";
}
// leftnav += wrtSocial();

leftnav += "<a href=\"http://www.cubenergysaver.com/?utm_source=cubhomepage&utm_medium=referral&utm_campaign=banner&kme=clicked+link\" target=\"_blank\"><img src=\"http://www.citizensutilityboard.org/images/CubEnergy_BannerAd1B.jpg\" style=\"margin-top:24px;margin-bottom:8px;\"></a>";
leftnav += "<br />";
leftnav += imageRand('cartoon', 30, 0);
leftnav += "</div>";

return leftnav;
}

function rtnFoot2011(page){

var rtnFoot = "";
rtnFoot += "<div style=\"clear:both;height:48px;margin-top:0px;\"><img src=\"images/CUBtagline.png\"></div>";
rtnFoot += "<div style=\"background-color:#FFF;padding:12px;font-size:.75em;text-align:center;border-top:solid 1px #933;\">";
rtnFoot += "Copyright &copy;1997&#8211;" +	updateCopyright() + " Citizens Utility Board <a href=\"legaldisclaimer.html\" class=\"bluebold\">Terms and Conditions</a>.<br /> ";
rtnFoot += "309 West Washington Street, Suite 800, Chicago, Illinois 60606<br /> ";
rtnFoot += "(312) 263-4282  Fax (312) 263-4329  (800) 669-5556 <br /> <br /> ";

// rtnFoot += "Nam et ipsa scientia potestas est<br /> ";
// rtnFoot += "Knowledge is power - Francis Bacon (1561â€"1626)<br /><br />  ";  
 
if(page == "index"){
rtnFoot += "<div style=\"width:608px;\"><a href=\"legaldisclaimer.html\" class=\"bluebold\">LEGAL NOTICE</a>: BY ACCESSING THE CITIZENSUTILITYBOARD.ORG WEB SITE YOU ARE AFFIRMATIVELY STATING THAT YOU HAVE READ AND UNDERSTAND THE TERMS AND CONDITIONS SET FORTH HEREIN AND ARE AFFIRMATIVELY INDICATING THAT YOU AGREE TO BE BOUND BY SAME.</div>";
}

rtnFoot += "</div>";
return rtnFoot;
}

function rtnDropDowns(){

var rtnDD = "";
rtnDD += "<div id=\"dropdown_1\" name=\"dropdown_1\" style=\"position:absolute;left:141px;top:153px;width:168px;z-index:40;background-image:url(images/trans_69C.png);padding:8px;padding-top:2px;font-size:.9em;font-weight:bold;visibility:hidden;\" onmouseover=\"dropDown(1, 1);\" onmouseout=\"dropDown(1, 0);\">";
rtnDD += "<a class=\"white\" href=\"mission.html\" >Mission</a><br />";
// rtnDD += "<a class=\"white\" href=\"mission.html\" >CUB Act</a><br />";
rtnDD += "<a class=\"white\" href=\"funding.html\" >Funding</a><br />";
rtnDD += "<a class=\"white\" href=\"accompfull.html\" >Accomplishments</a><br />";
rtnDD += "<a class=\"white\" href=\"abtStaff.html\" >Staff</a><br />";
rtnDD += "<a class=\"white\" href=\"abtBoard.html\" >Board of Directors</a><br />";
rtnDD += "<a class=\"white\" href=\"abtCareer.html\" >Career opportunities</a><br />";
rtnDD += "</div>";

rtnDD += "<div id=\"dropdown_2\" name=\"dropdown_2\" style=\"position:absolute;left:273px;top:153px;width:272px;z-index:40;background-image:url(images/trans_69C.png);padding:8px;padding-top:2px;font-size:.9em;font-weight:bold;visibility:hidden;\" onmouseover=\"dropDown(2, 1);\" onmouseout=\"dropDown(2, 0);\">";
//rtnDD += "<a class=\"white\" href=\"http://www.citizensutilityboard.org/CITN_2011.php\" >CUB in the News</a><br />";
rtnDD += "<a class=\"white\" href=\"newsReleases2012.html\" >News Releases</a><br />";
rtnDD += "<a class=\"white\" href=\"consumernews.html\" >Consumer News</a><br />";
rtnDD += "<a class=\"white\" href=\"dkColumns.html\" >Columns by CUB's Executive Director</a><br />";
rtnDD += "<a class=\"white\" href=\"newsCUBVoice.html\" >The CUB Voice Newsletter</a><br />";
rtnDD += "<a class=\"white\" href=\"yourstories.html\" >Your Stories</a><br />";
// rtnDD += "<a class=\"white\" href=\"yourstories.html\" >Your Stories</a><br />";
//rtnDD += "<a class=\"white\" href=\"http://www.youtube.com/user/CUBIllinois\" target=\"_blank\">CUB TV</a><br />";
rtnDD += "</div>";
return rtnDD;
}

function rtnTabImagesHP(){
var rtntabimages = "";
rtntabimages += "<img src=\"http://www.citizensutilityboard.org/images/backgroundTab1.png\" style=\"display: none\" />";
rtntabimages += "<img src=\"http://www.citizensutilityboard.org/images/backgroundTab2.png\" style=\"display: none\" />";
rtntabimages += "<img src=\"http://www.citizensutilityboard.org/images/backgroundTab3.png\" style=\"display: none\" />";
rtntabimages += "<img src=\"http://www.citizensutilityboard.org/images/backgroundTab4.png\" style=\"display: none\" />";
rtntabimages += "<img src=\"http://www.citizensutilityboard.org/images/backgroundTab5.png\" style=\"display: none\" />";
rtntabimages += "<img src=\"http://www.citizensutilityboard.org/images/backgroundTab6.png\" style=\"display: none\" />";
rtntabimages += "<img src=\"http://www.citizensutilityboard.org/images/backgroundTab7.png\" style=\"display: none\" />";
rtntabimages += "<img src=\"http://www.citizensutilityboard.org/images/transgray.png\" style=\"display: none\" />";
return rtntabimages;
}


function rtnFocus(page){
var rtnFocus = "";
if(page == "index"){
rtnFocus += "<!-- START: Focus -->";
rtnFocus += "<div id=\"focus\" name=\"focus\" style=\"float:right;width:480px;border:solid 2px #FFF;height:376px;background-color:#FFF;margin-top:0px;margin-left:24px;margin-bottom:12px;margin-right:-24px;\">";
rtnFocus += "<!-- START: Focus -->";

rtnFocus += "<!-- START: Focus Tabs -->";
rtnFocus += "<div id=\"focusTab1\" name=\"focusTab1\"  style=\"height:28px;background-color:#FFF; background-image:url(images/tabgray.png);width:46px;float:left;padding-left:12px;padding-top:4px;padding-bottom:2px;color:#933;font-weight:bold;font-size:.8em;\" onmouseover=\"changeFocusFocus(1)\"><a href=\"http://cerf.convio.net/donate\" class=\"bluebold\" target=\"_blank\" title=\"Become a consumer champion. Since 1984, hundreds of thousands of people throughout the state of Illinois have supported CUB. CUB is the only organization in Illinois focused 100 percent on lowering utility rates. The St. Louis Post-Dispatch described as the gold standard of consumer groups nationwide.\">Join CUB</a></div>";
rtnFocus += "<div id=\"focusTab2\" name=\"focusTab2\" style=\"height:28px;background-color:#EEE; background-image:url(images/tabbluegray.png);width:60px;float:left;padding:8px;padding-top:4px;padding-bottom:2px;color:#FFF;font-weight:bold;font-size:.8em;\" onmouseover=\"changeFocusFocus(2)\"><a href=\"ratehikefighterscenter.html\" class=\"bluebold\" title=\"Read about the major battles CUB is fighting before state regulators, the courts, and in Springfield to protect your bottom line.\">Fight Rate Hikes</a></div>";
rtnFocus += "<div id=\"focusTab3\" name=\"focusTab3\" style=\"height:28px;background-color:#ABC; background-image:url(images/tabbluegray.png);width:46px;float:left;padding:8px;padding-top:4px;padding-bottom:2px;color:#FFF;font-weight:bold;font-size:.8em;\" onmouseover=\"changeFocusFocus(3)\"><a href=\"cubServices_eventcalendar.php\" class=\"bluebold\" title=\"View the complete calendar of CUB outreach events.\">Event Calendar</a></div>";
rtnFocus += "<div id=\"focusTab4\" name=\"focusTab4\" style=\"height:28px;background-color:#ABC; background-image:url(images/tabbluegray.png);width:48px;float:left;padding:8px;padding-top:4px;padding-bottom:2px;color:#FFF;font-weight:bold;font-size:.8em;\" onmouseover=\"changeFocusFocus(4)\" title=\"Local phone users can save by using this free service provided by CUB.\"><a href=\"cubphonesaver_1.html\" class=\"bluebold\">Phone Savings</a></div>";

rtnFocus += "<div id=\"focusTab5\" name=\"focusTab5\" style=\"height:28px;background-color:#ABC; background-image:url(images/tabbluegray.png);width:64px;float:left;padding:8px;padding-top:4px;padding-bottom:2px;color:#FFF;font-weight:bold;font-size:.8em;\" onmouseover=\"changeFocusFocus(5)\"><a href=\"cellphonesaver.html\" class=\"bluebold\" title=\"Cell-phone users can save by using this free service provided by CUB.\">Cellphone Savings</a></div>";

rtnFocus += "<div id=\"focusTab6\" name=\"focusTab6\" style=\"height:28px;background-color:#ABC; background-image:url(images/tabbluegray.png);width:46px;float:left;padding:8px;padding-top:4px;padding-bottom:2px;color:#FFF;font-weight:bold;font-size:.8em;\" onmouseover=\"changeFocusFocus(6)\"><a href=\"https://www.cubenergysaver.com\" class=\"bluebold\" target=\"_blank\" title=\"Sign up for this free service and learn how you can save on all your energy usage and earn reward points that can be redeemed on energy saving products.\">Saving Energy</a></div>";

rtnFocus += "<div id=\"focusTab7\" name=\"focusTab7\" style=\"height:28px;background-color:#ABC; background-image:url(images/tabbluegrayend.png);width:62px;float:left;padding:8px;padding-top:4px;padding-bottom:2px;color:#FFF;font-weight:bold;font-size:.8em;\" onmouseover=\"changeFocusFocus(7)\"><a href=\"yourstories.html\" class=\"bluebold\" title=\"Over the years CUB has been a hero to thousands upon thousands of Illinois consumers who have saved money or gotten better utility service because of the consumer group.  Here are just a few stories from our files.\">Your Stories</a></div>";



rtnFocus += "<!-- END: Focus Tabs-->";
rtnFocus += "<!-- START bodyback -->";
rtnFocus += "<div id=\"bodyback\" name=\"bodyback\" style=\"clear:left;background:#EEE;height:330px;float:left;width:472px;padding-top:0px;padding-right:8px;\">";

rtnFocus += "<!-- START bodyback -->";
rtnFocus += "<!-- START focusBody1 -->";
rtnFocus += "<div id=\"focusBody\" name=\"focusBody\" style=\"width:100%;height:100%;background-color:#FFF;padding:4px;padding-top:8px;font-size:.9em;background-image:url(images/backgroundTab1.png);\" title=\"Become a consumer champion. Since 1984, hundreds of thousands of people throughout the state of Illinois have supported CUB. CUB is the only organization in Illinois focused 100 percent on lowering utility rates. The St. Louis Post-Dispatch described as the gold standard of consumer groups nationwide.\">";

rtnFocus += "<!-- START focusBody1 border-top:solid 2px #EEE; -->";
rtnFocus += "<!-- START focusText1 -->";
rtnFocus += "<div id=\"focusText\" name=\"focusText\" style=\"float:right;width:240px;height:128px;border:solid 2px #fff;background-image:url(images/transgray.png);padding:12px;margin-top:176px;font-size:.9em;\">";

rtnFocus += "<!-- START focusText1 -->";
rtnFocus += "<div style=\"color:#336;font-weight:bold;margin-bottom:4px;\"><a href=\"#\" class=\"bluebold\">Become a consumer champion</a></div>";

rtnFocus += "Since 1984, hundreds of thousands of people throughout the state of Illinois have supported CUB. CUB is the only organization in Illinois focused 100&#160;percent on lowering utility rates. The&#160;St.&#160;Louis Post-Dispatch described as&#160;the \"gold&#160;standard\" of consumer groups nationwide.";

rtnFocus += "<!-- END focusText1 -->";
rtnFocus += "</div>";
rtnFocus += "<!-- END focusText1 -->";
rtnFocus += "<!-- END focusBody1 -->";
rtnFocus += "</div>";
rtnFocus += "<!-- END focusBody1 -->";





rtnFocus += "</div> ";
rtnFocus += "<!-- END bodyback -->";
rtnFocus += "</div>";
rtnFocus += "<!-- END bodyback -->";
rtnFocus += "<!-- END: Focus -->";

rtnFocus += "<!-- END: Focus -->";

rtnFocus += wrtFlags('index');
rtnFocus += "<br><br>";
rtnFocus += rtnMediaContacts('english', 'generalCC');
rtnFocus += wrtSocial();
rtnFocus += "</div>";

} // end if(page == "homepage")



return rtnFocus;
}

// <div id="flags0" name="flags0" style='float:right;width:196px;margin-top:8px;margin-bottom:2px;margin-left:4px;'>
function wrtFlags(page){
	var rtnFocus = "";
	if(page=='index'){
rtnFocus += "<div id=\"flags0\" name=\"flags0\" style=\"float:right;clear:right;width:196px;margin-top:0px;margin-bottom:12px;margin-left:12px;margin-right:-24px;background-color:#ABC;padding:6px;\">";
rtnFocus += "<!-- english = A | spanish = B | polish = C | chinese = D | korean = E -->";

rtnFocus += "<a href=\"index.html\">";
rtnFocus += "<img id=\"flagA0\" name=\"flagA0\" src=\"http://www.citizensutilityboard.org/images/flag_english.gif\" title=\"Translate article to English.\" ";
rtnFocus += "style=\"margin-left:0px;visibility:visible;border: solid 1px #CCC;\"/></a>";

rtnFocus += "<a href=\"http://translate.google.com/translate?hl=en&sl=en&tl=es&u=http%3A%2F%2Fwww.citizensutilityboard.org%2Findex.html\" target=\"_blank\">";
rtnFocus += "<img id=\"flagB0\" name=\"flagB0\" src=\"http://www.citizensutilityboard.org/images/flag_spanish.gif\" title=\"Traducir al espaÃ±ol.\" ";
rtnFocus += "style=\"margin-left:4px;visibility:visible;border: solid 1px #CCC;\"/></a>";

rtnFocus += "<a href=\"http://translate.google.com/translate?hl=en&sl=en&tl=pl&u=http%3A%2F%2Fwww.citizensutilityboard.org%2Findex.html\" target=\"_blank\">";
rtnFocus += "<img id=\"flagC0\" name=\"flagC0\" src=\"http://www.citizensutilityboard.org/images/flag_polish.gif\" title=\"TÅ‚umacz na jÄ™zyk polski.\" ";
rtnFocus += "style=\"margin-left:4px;visibility:visible;border: solid 1px #CCC;\"/></a>";

rtnFocus += "<a href=\"http://translate.google.com/translate?hl=en&sl=en&tl=zh-CN&u=http%3A%2F%2Fwww.citizensutilityboard.org%2Findex.html\" target=\"_blank\">";
rtnFocus += "<img id=\"flag0d\" name=\"flag0d\" src=\"http://www.citizensutilityboard.org/images/flag_chinese.gif\" title=\"Translate to Chinese.\" style=\"margin-left:4px;visibility:visible;border: solid 1px #CCC;\"/></a>";
rtnFocus += "<a href=\"http://translate.google.com/translate?hl=en&sl=en&tl=ko&u=http%3A%2F%2Fwww.citizensutilityboard.org%2Findex.html\" target=\"_blank\">";
rtnFocus += "<img id=\"flag0e\" name=\"flag0e\" src=\"http://www.citizensutilityboard.org/images/flag_korean.gif\" title=\"Translate to Korean.\" style=\"margin-left:4px;visibility:visible;border: solid 1px #CCC;\"/></a>";
rtnFocus += "<a href=\"http://translate.google.com/translate?hl=en&sl=en&tl=fr&u=http%3A%2F%2Fwww.citizensutilityboard.org%2Findex.html\" target=\"_blank\">";
rtnFocus += "<img id=\"flag0e\" name=\"flag0e\" src=\"http://www.citizensutilityboard.org/images/flag_french.gif\" title=\"Traduire en franÃ§ais.\" style=\"margin-left:4px;visibility:visible;border: solid 1px #CCC;\"/></a>";	
	}
	return rtnFocus;
}



var eventName = new Array();
var eventDateWritten = new Array();
var eventDate= new Array();
var eventDescription = new Array();

var eVentX = 0;

eventName[eVentX] = "<b>Oak Lawn Phone-bill Clinic</b>";
eventDateWritten[eVentX] = "Friday, March 11, 2011 at 2:00 p.m.";
eventDate[eVentX] = new Date(2011, 02, 30); // YYYY, MM, DD
eventDescription[eVentX] = "Oak Lawn Public Library<br>9427 S. Raymond Ave<br>(5300 W. 95th ST)<br>Oak Lawn, IL 60453<br>Please register for this event in person at the library or by calling 708-422-4990.";
eVentX++;


eventName[eVentX] = "<b>Oak Lawn Phone-bill Clinic</b>";
eventDateWritten[eVentX] = "2 Friday, March 16, 2011 - 2:00 PM ";
eventDate[eVentX] = new Date(2011, 03, 16); // YYYY, MM, DD
eventDescription[eVentX] = "Oak Lawn Public Library<br>9427 S. Raymond Ave<br>(5300 W. 95th ST)<br>Oak Lawn, IL 60453<br>Please register for this event in person at the library or by calling 708-422-4990.";
eVentX++;


eventName[eVentX] = "<b>Oak Lawn Phone-bill Clinic</b>";
eventDateWritten[eVentX] = "Friday, May 13, 2011 at 3:00 p.m.";
eventDate[eVentX] = new Date(2011, 05, 13); // YYYY, MM, DD
eventDescription[eVentX] = "Oak Lawn Public Library<br>9427 S. Raymond Ave<br>(5300 W. 95th ST)<br>Oak Lawn, IL 60453<br>Please register for this event in person at the library or by calling 708-422-4990.";
eVentX++;


eventName[eVentX] = "<b>Oak Lawn Phone-bill Clinic</b>";
eventDateWritten[eVentX] = "Friday, May 11, 2012 at noon";

eventDate[eVentX] = new Date(2012, 04, 11); // YYYY, MM, DD
d = "";
eventDescription[eVentX] = "Oak Lawn Public Library<br>9427 S. Raymond Ave<br>(5300 W. 95th ST)<br>Oak Lawn, IL 60453<br>Please register for this event in person at the library or by calling 708-422-4990.";
eVentX++;


function rtnCalendar(qty, type){
var rtnCal = "";
var dtest = new Date(); // 

if(type == "small"){
	for(var i = 0; i < eVentX; i++){
		if((eventDate[i].getFullYear() > dtest.getFullYear())){ 
			rtnCal += eventName[i] + "<br>";
			rtnCal += eventDateWritten[i] + "<br><br>";
			qty--;
			if(qty==0){break;}
		} else if((eventDate[i].getFullYear() == dtest.getFullYear())){ // 
		if((eventDate[i].getMonth() > dtest.getMonth())){ 
			rtnCal += eventName[i] + "<br>";
			rtnCal += eventDateWritten[i] + "<br><br>";
			qty--;
			if(qty==0){break;}
		} else if((eventDate[i].getMonth() == dtest.getMonth())){ // 
		if((eventDate[i].getDate() >= dtest.getDate())){ // 		
			rtnCal += eventName[i] + "<br>";
			rtnCal += eventDateWritten[i] + "<br><br>";
			qty--;
			if(qty==0){break;}
		} 
	}
}// end if 
	}// end for loop
} // end if 

return rtnCal;
}

function setSpacer(dv, pxls) {
	document.getElementById(dv).style.marginTop = pxls.toString()  + "px";
}

function rtnMediaContacts(contact, dcontact){
	var cntxt = "";
	
	if(contact == "english"){
		cntxt = "<div name=\"specialinfonest2\" id=\"specialinfonest2\">Media contact: ";
		cntxt += "<a href=\"mailto:chilsen@citizensutilityboard.org\" class=\"gray\">Jim Chilsen</a> at&#160;312.263.4282 x121 or<br> 312.513.1784 (cell).</div>";	

		if(dcontact == "pdeignan"){
			cntxt = "<div name=\"specialinfonest2\" id=\"specialinfonest2\">Media contact: ";
			cntxt += " <a href=\"mailto:pdeignan@citizensutilityboard.org\" class=\"bluebold\">Patrick Deignan</a> <br>at 312-263-4282 (office) or <br>847-636-0677&#160;(cell).</div>";
		}

		if(dcontact == "celia"){
			cntxt = "<div name=\"specialinfonest2\" id=\"specialinfonest2\">Media contact: ";
			cntxt += " <a href=\"mailto:cchristensen@citizensutilityboard.org\" class=\"bluebold\">Celia Christensen</a> at 312-263-4282 (office) or<br>773-698-3397 (cell). </div>";
		}	
		
		if(dcontact == "outreachEvan"){
			cntxt = "<div name=\"specialinfonest2\" id=\"specialinfonest2\">Outreach contact: ";
			cntxt += " <a href=\"mailto:elaruffa@CitizensUtilityBoard.org\" class=\"bluebold\">Evan LaRuffa</a>, Outreach Specialist at 312-263-4282</div>";
		}	
		
		if(dcontact == "generalCC"){
			cntxt = "<div name=\"specialinfonest2\" id=\"specialinfonest2\">General inqueries: <br />";
			cntxt += "800-669-5556</div>";
		}					

	}
	
	
	
	if(contact == "spanish"){
		cntxt = "<div name=\"specialinfonest2\" id=\"specialinfonest2\">Contacto de prensa: ";
		cntxt += "<a href=\"mailto:awarnock@citizensutilityboard.org\" 	class=\"gray\">Annie Warnock</a>";
		cntxt += "<div style=\"margin-top:4px;\">&iquest;";
		cntxt += "<a href=\"http://www.citizensutilityboard.org/pdfs/ConsumerInfo/20100401_WhatIsCUBSPANISH.pdf\" ";
		cntxt += "target=\"_blank\" class=\"gray\">Qu&eacute; es el Citizens Utility Board</a>?</div></div>";
	}
		
	return cntxt;
}

function setDateLine(m, d, y, b){
	var rtnDL = writeDate(m, d, y);
	var time = new Date();
	var day = time.getDate();
	//alert("day = " + day);
	// alert("d = " + d);
	var month = time.getMonth()+1;
	var year = time.getFullYear();
	
	if(b == "yes"){
	if(y > year){
		//alert("y > year " + y);
		rtnDL = "<span class=\"breakingnews\">Breaking News </span>&#8212; "  + writeDate(m, d, y);
	} else if(y == year){
		//alert("y == year " + y);
		if(m > month){
			//alert("m < month " + m);
			//alert("month = " + month);
			rtnDL = "<span class=\"breakingnews\">Breaking News </span>&#8212;"  + writeDate(m, d, y);
		} else if (m == month){
			//alert("m == month " + m);
			//alert("month =" + month);
			if(d >= day){
				//alert("d >= day " + d + " | " + day);
				rtnDL = "<span class=\"breakingnews\">Breaking News </span>&#8212; "  + writeDate(m, d, y);
			}
		}
	}
	}
	// <span class="breakingnews">Breaking News  &#8212;</span>  March 10, 2011
	return rtnDL;
}

function writeDate(m, d, y){
	//alert("test 1");
	var month = "";
	var dwritten = "";
	switch(m)
	{
	case '01':
	 month = "January";
 	 break;
	case '02':
	 month = "February";
  	break;
	case '03':
	 month = "March";
  	break;
	case '04':
	 month = "April";
  	break;
	case '05':
	 month = "May";
  	break;
	case '06':
	 month = "June";
  	break;
	case '07':
	 month = "July";
  	break;
	case '08':
	 month = "August";
  	break;
	case '09':
	 month = "September";
  	break;
	case '10':
	 month = "October";
  	break;
	case '11':
	 month = "November";
  	break;
	case '12':
	 month = "December";
  	break;
	default:
	 month = "oops";
	} 
	//alert("test 2");
	var dt = month + " " + d + ", " + y;
	//alert("dt = " + dt);
	return dt;
}

function toTop2011(btm){
	var top= "<div style=\"margin-left:4px;margin-top:4px;margin-bottom:"+ btm.toString() + "px;\"><a href='#top' title='Return to the top of the page.'><img src='http://www.citizensutilityboard.org/images/arrow.gif' border=0></a></div>";
	return top;
}


/* switch images */
var espimg1 = new Array();					 
var espcap1 = new Array();
var x = 0;

espimg1[x] = "espanol" + x; 
espcap1[x] = "Annie Warnock";					 

x++;					 
espimg1[x] = "espanol" + x; 
espcap1[x] = "Moraima Fuentes"; 					 

x++;					 
espimg1[x] = "espanol" + x; 
espcap1[x] = "Annie Warnock con un consumidor.";					 

x++;			 
espimg1[x] = "espanol" + x; 
espcap1[x] = "Annie Warnock";  

x++;					 
espimg1[x] = "espanol" + x; 
espcap1[x] = "Bryan McDaniel"; 

x++;					 
espimg1[x] = "espanol" + x; 
espcap1[x] = "Evan LaRuffa con un consumidor."; 
x++

var cnt = 0;					 
function switchImagesCaps(img, txt){

if(img == "espImg1"){
	if(cnt < x){
 		document.getElementById(img).src = "http://www.citizensutilityboard.org/images/" + espimg1[cnt] + ".jpg";
 		document.getElementById(txt).innerText = espcap1[cnt];
		cnt++
	} else {
		cnt = 0;
 		document.getElementById(img).src = "http://www.citizensutilityboard.org/images/" + espimg1[cnt] + ".jpg";
 		document.getElementById(txt).innerText = espcap1[cnt];		
	}
	setTimeout("switchImagesCaps('espImg1', 'espText1')", 4000);
}// if(img == "espImg1"){
	
}




/* switch images */


function wrtSocial(){
	 /* = "<div style=\"clear:both;\">&#160;</div><iframe ";
	url += "src=\"http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.citizensutilityboard.org%2F";
	url += document.location.href.replace("http://www.citizensutilityboard.org/", "");
	url += "&amp;layout=button_count&amp;show_faces=false&amp;width=450&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21\" scrolling=\"no\" frameborder=\"0\" style=\"float:left; border:none; overflow:hidden; width:120px; height:21px;margin-bottom:4px;\" allowTransparency=\"true\"></iframe><a href=\"http://twitter.com/share\" class=\"twitter-share-button\" data-count=\"horizontal\" data-via=\"cubillinois\">Tweet</a><script type=\"text/javascript\" src=\"http://platform.twitter.com/widgets.js\"></script>"; 
	*/
	var url = "<div style=\"clear:both;\">&#160;</div><!-- AddThis Button BEGIN --><div class=\"addthis_toolbox addthis_default_style \"><a href=\"http://www.addthis.com/bookmark.php?v=250&amp;pubid=ra-4d94cc3a35fb1bc4\" class=\"addthis_button_compact\" style=\"color:#336;\">Share</a><span class=\"addthis_separator\">|</span><a class=\"addthis_button_preferred_1\"></a><a class=\"addthis_button_preferred_2\"></a><a class=\"addthis_button_preferred_3\"></a><a class=\"addthis_button_preferred_4\"></a></div><script type=\"text/javascript\">var addthis_config = {\"data_track_clickback\":true};</script><script type=\"text/javascript\" src=\"http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4d94cc3a35fb1bc4\"></script><!-- AddThis Button END -->";
	return url;
}

function rndMessage(cnt) {
	n = Math.round(Math.random()*(cnt));
	return n;
}

function rtnNewsReleasesYears(year){
rtnYrs = "";

if(year != "2012"){	
rtnYrs += "<div style=\"margin-top:4px;margin-left:4px;\"><a href=\"newsReleases2012.html\" class=\"gray\">News Releases 2012</a></div>";
}
if(year != "2011"){	
rtnYrs += "<div style=\"margin-top:4px;margin-left:4px;\"><a href=\"newsReleases2011.html\" class=\"gray\">News Releases 2011</a></div>";
}
/*
if(year != "2010"){
rtnYrs += "<div style=\"margin-top:4px;margin-left:4px;\"><a href=\"newsReleases2010.html\" class=\"gray\">News Releases 2010</a></div>";
}
if(year != "2009"){
rtnYrs += "<div style=\"margin-top:4px;margin-left:4px;\"><a href=\"newsReleases2009.html\" class=\"gray\">News Releases 2009</a></div>";
}
if(year != "2008"){
rtnYrs += "<div style=\"margin-top:4px;margin-left:4px;\"><a href=\"newsReleases2008.html\" class=\"gray\">News Releases 2008</a></div>";
}
if(year != "2007"){
rtnYrs += "<div style=\"margin-top:4px;margin-left:4px;\"><a href=\"newsReleases2007.html\" class=\"gray\">News Releases 2007</a></div>";
}
if(year != "2006"){
rtnYrs += "<div style=\"margin-top:4px;margin-left:4px;\"><a href=\"newsReleases2006.html\" class=\"gray\">News Releases 2006</a></div>";
}
if(year != "2005"){
rtnYrs += "<div style=\"margin-top:4px;margin-left:4px;\"><a href=\"newsReleases2005.html\" class=\"gray\">News Releases 2005</a></div>";
}
if(year != "2014"){
rtnYrs += "<div style=\"margin-top:4px;margin-left:4px;\"><a href=\"newsReleases2004.html\" class=\"gray\">News Releases 2004</a></div>";
}
if(year != "2003"){
rtnYrs += "<div style=\"margin-top:4px;margin-left:4px;\"><a href=\"newsReleases2003.html\" class=\"gray\">News Releases 2003</a></div>";
}
if(year != "2002"){
rtnYrs += "<div style=\"margin-top:4px;margin-left:4px;\"><a href=\"newsReleases2002.html\" class=\"gray\">News Releases 2002</a></div>";
}
if(year != "2001"){
rtnYrs += "<div style=\"margin-top:4px;margin-left:4px;\"><a href=\"newsReleases2001.html\" class=\"gray\">News Releases 2001</a></div>";
}
if(year != "2000"){
rtnYrs += "<div style=\"margin-top:4px;margin-left:4px;\"><a href=\"newsReleases2000.html\" class=\"gray\">News Releases 2000</a></div>";
}
*/
rtnYrs += "<br />";
	
return rtnYrs;	
}




function wrtTranslate(url){

rtnURL = "";

rtnURL = "<a href=\"" + url + "\">";

rtnURL += "<img id=\"flagA0\" name=\"flagA0\" src=\"http://www.citizensutilityboard.org/images/flag_english.gif\" title=\"Translate article to English.\" style=\"margin-left:0px;visibility:visible;border: solid 1px #CCC;\"/></a>";

rtnURL += "<a href=\"http://translate.google.com/translate?hl=en&sl=en&tl=es&u=http%3A%2F%2Fwww.citizensutilityboard.org%2F" + url  + "\" target=\"_blank\">";

rtnURL += "<img id=\"flagB0\" name=\"flagB0\" src=\"http://www.citizensutilityboard.org/images/flag_spanish.gif\" title=\"Traducir al espa&#241;ol.\" style=\"margin-left:4px;visibility:visible;border: solid 1px #CCC;\" /></a>";

rtnURL += "<a href=\"http://translate.google.com/translate?hl=en&sl=en&tl=pl&u=http%3A%2F%2Fwww.citizensutilityboard.org%2F" + url  + "\" target=\"_blank\">";

rtnURL += "<img id=\"flagC0\" name=\"flagC0\" src=\"http://www.citizensutilityboard.org/images/flag_polish.gif\" title=\"T&#322;umacz na j&#281;zyk polski.\" style=\"margin-left:4px;visibility:visible;border: solid 1px #CCC;\"/></a>";

rtnURL += "<a href=\"http://translate.google.com/translate?hl=en&sl=en&tl=zh-CN&u=http%3A%2F%2Fwww.citizensutilityboard.org%2F" + url  + "\" target=\"_blank\">";

rtnURL += "<img id=\"flag0d\" name=\"flag0d\" src=\"http://www.citizensutilityboard.org/images/flag_chinese.gif\" title=\"Translate to Chinese.\" style=\"margin-left:4px;visibility:visible;border: solid 1px #CCC;\"/></a>";

rtnURL += "<a href=\"http://translate.google.com/translate?hl=en&sl=en&tl=ko&u=http%3A%2F%2Fwww.citizensutilityboard.org%2F" + url + "\" target=\"_blank\">";

rtnURL += "<img id=\"flag0e\" name=\"flag0e\" src=\"http://www.citizensutilityboard.org/images/flag_korean.gif\" title=\"Translate to Korean.\" style=\"margin-left:4px;visibility:visible;border: solid 1px #CCC;\"/></a>";

rtnURL += "<a href=\"http://translate.google.com/translate?hl=en&sl=en&tl=fr&u=http%3A%2F%2Fwww.citizensutilityboard.org%2F" + url  + "\" target=\"_blank\">";

rtnURL += "<img id=\"flag0e\" name=\"flag0e\" src=\"http://www.citizensutilityboard.org/images/flag_french.gif\" title=\"Traduire en fran&#231;ais.\" style=\"margin-left:4px;visibility:visible;border: solid 1px #CCC;\" /></a>";

return rtnURL;

}


function wrtTranslateESP(url){
	

rtnURL = "<a href=\"" + url + "\">";

rtnURL += "<img id=\"flagB0\" name=\"flagB0\" src=\"http://www.citizensutilityboard.org/images/flag_spanish.gif\" title=\"Traducir al espa&#241;ol.\" style=\"margin-left:0px;visibility:visible;border: solid 1px #CCC;\" /></a>";


rtnURL += "<a href=\"http://translate.google.com/translate?hl=en&sl=es&tl=en&u=http%3A%2F%2Fwww.citizensutilityboard.org%2F"+ url +"\">";

rtnURL += "<img id=\"flagA0\" name=\"flagA0\" src=\"http://www.citizensutilityboard.org/images/flag_english.gif\" title=\"Translate article to English.\" style=\"margin-left:4px;visibility:visible;border: solid 1px #CCC;\"/></a>";

rtnURL += "<a href=\"http://translate.google.com/translate?hl=en&sl=es&tl=pl&u=http%3A%2F%2Fwww.citizensutilityboard.org%2F" + url  + "\" target=\"_blank\">";

rtnURL += "<img id=\"flagC0\" name=\"flagC0\" src=\"http://www.citizensutilityboard.org/images/flag_polish.gif\" title=\"T&#322;umacz na j&#281;zyk polski.\" style=\"margin-left:4px;visibility:visible;border: solid 1px #CCC;\"/></a>";

rtnURL += "<a href=\"http://translate.google.com/translate?hl=en&sl=es&tl=zh-CN&u=http%3A%2F%2Fwww.citizensutilityboard.org%2F" + url  + "\" target=\"_blank\">";

rtnURL += "<img id=\"flag0d\" name=\"flag0d\" src=\"http://www.citizensutilityboard.org/images/flag_chinese.gif\" title=\"Translate to Chinese.\" style=\"margin-left:4px;visibility:visible;border: solid 1px #CCC;\"/></a>";

rtnURL += "<a href=\"http://translate.google.com/translate?hl=en&sl=es&tl=ko&u=http%3A%2F%2Fwww.citizensutilityboard.org%2F" + url + "\" target=\"_blank\">";

rtnURL += "<img id=\"flag0e\" name=\"flag0e\" src=\"http://www.citizensutilityboard.org/images/flag_korean.gif\" title=\"Translate to Korean.\" style=\"margin-left:4px;visibility:visible;border: solid 1px #CCC;\"/></a>";

rtnURL += "<a href=\"http://translate.google.com/translate?hl=en&sl=es&tl=fr&u=http%3A%2F%2Fwww.citizensutilityboard.org%2F" + url  + "\" target=\"_blank\">";

rtnURL += "<img id=\"flag0e\" name=\"flag0e\" src=\"http://www.citizensutilityboard.org/images/flag_french.gif\" title=\"Traduire en fran&#231;ais.\" style=\"margin-left:4px;visibility:visible;border: solid 1px #CCC;\" /></a>";

return rtnURL;

}



function wrtCallBoxPBC(){
cbpbc = "";

cbpbc += "<div class=\"callbox\">";
cbpbc += "<a href=\"http://www.citizensutilityboard.org/cellphonesaver.html\" class=\"blue\" style=\"font-weight:bold;\">The CUB Cellphone Saver</a>&#8212;a state-of-the art online tool that automatically analyzes individual wireless bills. The Cellphone Saver, created by a Texas-based company called Validas, has been showing consumers how to cut their wireless bills by an average of more than $300 a year.";
cbpbc += "</div>";

cbpbc += "<div class=\"callbox\">";
cbpbc += "The low-cost <a href=\"https://p2.secure.hostingprod.com/@citizensutilityboard.org/ssl/CostCutter.php\" class=\"blue\" style=\"font-weight:bold;\">Consumer's Choice local-calling plans</a>, which allow consumers to avoid AT&T's recent rate hikes and are under a price freeze through at least June of&#160;2013."; 
cbpbc += "</div>";

cbpbc += "<div class=\"callbox\">";
cbpbc += "Illinois' best long-distance plans, including how to get an automatic <a href=\"http://www.citizensutilityboard.org/ciTelecommPioneerCredit.html\" class=\"blue\" style=\"font-weight:bold;\">$10&#160;credit</a> negotiated by CUB. That amounts to more than 5 hours of free calls.";
cbpbc += "</div>";

cbpbc += "<div class=\"callbox\">";
cbpbc += "Line-Backer, a costly&#8212;and optional&#8212;AT&T service that most people don't&#160;need.";
cbpbc += "</div>";

return cbpbc;
	
}

function cbEnergy(){
cbEnergy = "";

cbEnergy += "<div class=\"callbox\">";  
cbEnergy += "<a href=\"http://www.cubenergysaver.com\" class=\"blue\" style=\"font-weight:bold;\">CUB Energy Saver</a>, a free online service that helps consumers build a personalized plan to cut their energy bills by hundreds of dollars a year, tracks real energy and monetary savings on ComEd bills, and rewards consumers who reduce their energy usage with restaurant and shopping discounts."; 
cbEnergy += "</div>";
                    
cbEnergy += "<div class=\"callbox\">";
cbEnergy += "<a href=\"http://www.citizensutilityboard.org/ciElectric_cubfacts_alternativesuppliers.html\" class=\"blue\" style=\"font-weight:bold;\">Alternative electric supplier offers</a> in northern Illinois. Consumers now have the option of choosing a company other than ComEd to supply their electricity, but the utility is still responsible for delivering power to homes, meaning consumers will not be immune to rate hikes.";
cbEnergy += "</div>";
                   
                                       
cbEnergy += "<div class=\"callbox\">";
cbEnergy += "<a href=\"http://www.citizensutilityboard.org/ciLiveWire_RI_ComEd_RTP.html\" class=\"blue\" style=\"font-weight:bold;\">ComEd's Real-Time Pricing program</a>, and how it's been helping participants save an average of 15 percent on their electric bills. ";
cbEnergy += "</div>";
                    
cbEnergy += "<div class=\"callbox\">";
cbEnergy += "Efficiency incentives worth hundreds of dollars and how to get paid $35 for having ComEd junk an old refrigerator.";
cbEnergy += "</div>";

return cbEnergy;
}


function tagPBC(){
tag = "";
tag += "<div class=\"subhead2011\">Attendees should bring their phone bills so CUB experts can analyze them and give cost-cutting tips.</div>";
tag += "CUB is Illinois' leading nonprofit utility watchdog organization. It was created by the Illinois legislature in 1983 to represent the interests of residential and small-business utility customers. Since then, CUB has saved consumers more than $10 billion by helping to block rate hikes and secure refunds. For more information, call CUB's Consumer Hotline at <b>1-800-669-5556</b>.<br><br>";	
return tag;
}

function tagCuB(){
tag = "";
tag += "CUB is Illinois' leading nonprofit utility watchdog organization. It was created by the Illinois legislature in 1983 to represent the interests of residential and small-business utility customers. Since then, CUB has saved consumers more than $10 billion by helping to block rate hikes and secure refunds. For more information, call CUB's Consumer Hotline at <b>1-800-669-5556</b>.<br><br>";	
return tag;
}

