ddaccordion.init({
	headerclass: "expandable", //Shared CSS class name of headers group that are expandable
	contentclass: "categoryitems", //Shared CSS class name of contents group
	revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
	mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
	collapseprev: true, //Collapse previous content (so only one open at any time)? true/false 
	defaultexpanded: [0], //index of content(s) open by default [index1, index2, etc]. [] denotes no content
	onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
	animatedefault: false, //Should contents open by default be animated into view?
	persiststate: true, //persist state of opened contents within browser session?
	toggleclass: ["", "openheader"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
	togglehtml: ["prefix", "", ""], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
	animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
	oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
		//do nothing
	},
	onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
		//do nothing
	}
})
	
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

<!-- Original:  Dion (biab@iinet.net.au) -->
<!-- Web Site:  http://www.iinet.net.au/~biab -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
var item = new Array();

// "Page Name","path","Page Title","Many,Key,Words","Descriptive Comments"
c=0; item[c]=new Array("index.html","","Home Page","ally, webinar, news, map,service area, service area map, ineligible, ineligible rate codes, participant manual, overview,home,lighting,motor,drive,HVAC,custom,specialty,government,audit","EnergySavePA - Save Energy in PA, and get paid for it.");
c++; item[c]=new Array("nslighting.html","","Non Standard Incentives","non standard,lighting,Compact fluorescent lamps,cfl,LED,exit signs,occupancy sensors,daylighting photosensors","FirstEnergy high-efficiency incentive program for non-standard lighting.");
c++; item[c]=new Array("government.html","","Government Incentives","government,audit,local government,school,retail,municipal,county","FirstEnergy high-efficiency government incentive programs.");
c++; item[c]=new Array("governmentfaq.html","","Government Incentives FAQs","government,audit,local government,school,retail,municipal,county,faq,churches,colleges,universities,church,college,university","FirstEnergy high-efficiency government incentive programs FAQs.");
c++; item[c]=new Array("hvac.html","","HVAC Incentives","hvac,heating,air conditioning,a/c,chillers,chiller,refrigerant,heat pump","FirstEnergy High-efficiency incentive HVAC programs.");
c++; item[c]=new Array("hvacfaq.html","","HVAC Incentives FAQs","hvac,heating,air conditioning,a/c,chillers,chiller,refrigerant,heat pump,faq","FirstEnergy High-efficiency incentive HVAC programs FAQs.");																																					
c++; item[c]=new Array("lightingfaq.html","","Lighting Incentives FAQs","Non Standard Incentives, non standard,lighting,Compact fluorescent lamps,cfl,LED,exit signs,occupancy sensors,daylighting photosensors,faq","FAQs for the FirstEnergy high-efficiency incentive program for lighting.");
c++; item[c]=new Array("motor.html","","Motor and Drive Incentives","motor,drives,nema,drip-proof,fan-cooled,fan cooled,drip proof,vsd,horsepower","FirstEnergy high-Efficiency Motors and Drives Incentive Programs.");
c++; item[c]=new Array("motorfaq.html","","Motor and Drive Incentives FAQs","motor,drives,nema,drip-proof,fan-cooled,fan cooled,drip proof,vsd,horsepower,faq","FAQs for FirstEnergy high-Efficiency Motors and Drives Incentive Programs.");
c++; item[c]=new Array("specialty.html","","Specialty Programs","specialty,specialty programs,retrofits,new construction","FirstEnergy's High-efficiency Incentive Specialty Program.");
c++; item[c]=new Array("street.html","","Street Lighting, Outdoor Lighting and Traffic Signals","Street Lighting,Outdoor Lighting,Traffic Signals,dusk-to-dawn,photocell,hps,led,induction,traffic,pedestrian,retrofit","High-Efficiency incentive Programs for Street Lighting, Outdoor Lighting and Traffic Signals.");
c++; item[c]=new Array("streetfaq.html","","FAQs for Street Lighting, Outdoor Lighting and Traffic Signals Incentives","Street Lighting,Outdoor Lighting,Traffic Signals,dusk-to-dawn,photocell,hps,led,induction,traffic,pedestrian,retrofit,faq","FAQs for Street Lighting, Outdoor Lighting and Traffic Signals Incentives.");
c++; item[c]=new Array("webinar.html","","Weekly Webinars","weekly,webinar,overview,timeline,instructions,eligibility,requirements,information,answers,questions,help,conference","Weekly Webinars on how to Save Energy in PA, and get paid for it.");
c++; item[c]=new Array("altenergyfaq.html","","PA Alternative Energy Credits FAQs","alternative energy,alternative energy credits,credits,energy credits,AEPS,tier 2,tier II,eligibility,requirements,information,answers,questions,faqs,faq","What are PA Alternative Energy Credits.");
c++; item[c]=new Array("custom.html","","Custom Incentive Programs","Custom Incentive Programs,Custom Programs,custom,custom incentive","Custom Incentive Programs.");
c++; item[c]=new Array("WPP.html","","West Penn Power Programs","wwp,WWP,west penn power,West Penn Power,West Pennsylvania Power,non standard,lighting,non-standard,non standard,custom,streetlighting,street lighting,outdoor lighting,traffic,smart strip,hvac,HVAC,heating,cooling","West Penn Power Energy Efficiency Incentive Programs.");


page="<html><head><title>Search Results</title>\r\n";
page += "<SCRIPT TYPE='text/javascript'>\r\n";
page += "function targetopener(mylink, closeme, closeonly){\r\n";
page += "if (! (window.focus && window.opener))return true;\r\n";
page += "window.opener.focus();\r\n";
page += "if (! closeonly)window.opener.location.href=mylink.href;\r\n";
page += "if (closeme)window.close();\r\n";
page += "return false;\r\n";
page += "}\r\n";
page += "</SCRIPT>\r\n";
page += "</head><body bgcolor='white'><center><table border=0 cellspacing=10 width=80%>";

function search(frm) {
win = window.open("","","scrollbars=yes,width=400,height=400");
win.document.write(page);
txt = frm.srchval.value.split(" ");
fnd = new Array(); total=0;
for (i = 0; i < item.length; i++) {
fnd[i] = 0; order = new Array(0, 4, 2, 3);
for (j = 0; j < order.length; j++)
for (k = 0; k < txt.length; k++)
if (item[i][order[j]].toLowerCase().indexOf(txt[k]) > -1 && txt[k] != "")
fnd[i] += (j+1);
}
for (i = 0; i < fnd.length; i++) {
n = 0; w = -1;
for (j = 0;j < fnd.length; j++)
if (fnd[j] > n) { n = fnd[j]; w = j; };
if (w > -1) total += show(w, win, n);
fnd[w] = 0;
}
win.document.write("</table><br>Total found: "+total+"<br></body></html>");
win.document.close();
}
function show(which,wind,num) {
link = item[which][1] + item[which][0]; 
line = "<tr><td><a href='"+link+"'onClick='return targetopener(this)'>"+item[which][2]+"</a> Score: "+num+"<br>";

line += item[which][4] + "<br>"+link+"</td></tr>";
wind.document.write(line);
return 1;
}
//  End -->

var item2 = new Array();

/* Here is where all the magic happens.  
    Just enter as many additional pages that
    that you want to search, then fill in the
    additional listings for each page.
*/

// "Page Name","path","Page Title","Many,Key,Words","Descriptive Comments"
c=0; item2[c]=new Array("specialtyfaq.html","","Specialty Incentives FAQs","special,energy,efficient,equipment,Met-Ed,Penelec,Penn,faq,firstenergy,first,energy,incentive,cash,save,money,specialty,used,equipment,custom,not listed,faq","FAQs for the FirstEnergy high-efficiency specialty program.");
c++; item2[c]=new Array("customfaq.html","","Custom Incentives FAQs","M&V,energy,efficient,equipment,Met-Ed,Penelec,Penn,faq,firstenergy,first,energy,incentive,cash,save,money,custom,measurement,verification,newly installed,custom,not listed,international,code iecc,code-compliant,estimate,kwh,architect,engineer consultant,trc,129,calculator resource,efficiency,ratings,preliminary,assumptions,faq","FAQs for the FirstEnergy high-efficiency specialty program.");
c++; item2[c]=new Array("generalfaq.html","","General Incentives FAQs","energy,efficient,equipment,Met-Ed,Penelec,Penn,faq,firstenergy,first,energy,incentive,cash,save,money,why,giving,away,Met-Ed,Penelec,Penn,nonresidential,Art 129,EDC,faq,general,money, money end,2013,natural gas,payback, mixed-use,church,governments, school,non-profit,eligible,tax,third party,account,model,purchase,pre-approval,3,000,website,fax,email,address,ally,sign up,webinar,mailing","General FAQs for FirstEnergy high-efficiency incentive programs.");
c++; item2[c]=new Array("governmentfaq.html","","Government Incentives FAQs","energy,efficient,equipment,Met-Ed,Penelec,Penn,faq,firstenergy,first,energy,incentive,cash,save,money,government,audit,local government,school,retail,municipal,county,faq,churches,colleges,universities,church,college,university","FirstEnergy high-efficiency government incentive programs FAQs.");
c++; item2[c]=new Array("hvacfaq.html","","HVAC Incentives FAQs","energy,efficient,equipment,Met-Ed,Penelec,Penn,faq,firstenergy,first,energy,incentive,cash,save,money,hvac,heating,air conditioning,a/c,chillers,chiller,refrigerant,heat pump,faq","FirstEnergy High-efficiency incentive HVAC programs FAQs.");
c++; item2[c]=new Array("lightingfaq.html","","Lighting Incentives FAQs","energy,efficient,equipment,Met-Ed,Penelec,Penn,faq,firstenergy,first,energy,incentive,cash,save,money,Non Standard Incentives","non standard,lighting,Compact fluorescent lamps,cfl,LED,exit signs,occupancy sensors,daylighting photosensors,faq","FAQs for the FirstEnergy high-efficiency incentive program for lighting.");
c++; item2[c]=new Array("motorfaq.html","","Motor and Drive Incentives FAQs","energy,efficient,equipment,Met-Ed,Penelec,Penn,faq,firstenergy,first,energy,incentive,cash,save,money,motor,drives,nema,drip-proof,fan-cooled,fan cooled,drip proof,vsd,horsepower,faq","FAQs for FirstEnergy high-Efficiency Motors and Drives Incentive Programs.");
c++; item2[c]=new Array("streetfaq.html","","FAQs for Street Lighting, Outdoor Lighting and Traffic Signals Incentives","energy,efficient,equipment,Met-Ed,Penelec,Penn,faq,firstenergy,first,energy,incentive,cash,save,money,Street Lighting,Outdoor Lighting,Traffic Signals,dusk-to-dawn,photocell,hps,led,induction,traffic,pedestrian,retrofit,faq","FAQs for Street Lighting, Outdoor Lighting and Traffic Signals Incentives.");
c++; item2[c]=new Array("altenergyfaq.html","","PA Alternative Energy Credits FAQs","energy,efficient,equipment,Met-Ed,Penelec,Penn,faq,firstenergy,first,energy,incentive,cash,save,money,alternative energy,alternative energy credits,credits,energy credits,AEPS,tier 2,tier II,eligibility,requirements,information,answers,questions,faqs,faq","What are PA Alternative Energy Credits.");

page2="<html><head><title>Search Results</title>\r\n";
page2 += "<SCRIPT TYPE='text/javascript'>\r\n";
page2 += "function targetopener2(mylink, closeme, closeonly){\r\n";
page2 += "if (! (window.focus && window.opener))return true;\r\n";
page2 += "window.opener.focus();\r\n";
page2 += "if (! closeonly)window.opener.location.href=mylink.href;\r\n";
page2 += "if (closeme)window.close();\r\n";
page2 += "return false;\r\n";
page2 += "}\r\n";
page2 += "</SCRIPT>\r\n";
page2 += "</head><body bgcolor='white'><center><table border=0 cellspacing=10 width=80%>";

function search2(frm) {
win = window.open("","","scrollbars=yes,width=400,height=400");
win.document.write(page2);
txt = frm.srchval2.value.split(" ");
fnd2 = new Array(); total=0;
for (i = 0; i < item2.length; i++) {
fnd2[i] = 0; order = new Array(0, 4, 2, 3);
for (j = 0; j < order.length; j++)
for (k = 0; k < txt.length; k++)
if (item2[i][order[j]].toLowerCase().indexOf(txt[k]) > -1 && txt[k] != "")
fnd2[i] += (j+1);
}
for (i = 0; i < fnd2.length; i++) {
n = 0; w = -1;
for (j = 0;j < fnd2.length; j++)
if (fnd2[j] > n) { n = fnd2[j]; w = j; };
if (w > -1) total += show2(w, win, n);
fnd2[w] = 0;
}
win.document.write("</table><br>Total found: "+total+"<br></body></html>");
win.document.close();
}
function show2(which,wind,num) {
link = item2[which][1] + item2[which][0]; 
line = "<tr><td><a href='"+link+"'onClick='return targetopener2(this)'>"+item2[which][2]+"</a> Score: "+num+"<br>";

line += item2[which][4] + "<br>"+link+"</td></tr>";
wind.document.write(line);
return 1;
}


