﻿/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var menu1=new Array()
menu1[0]='<a href="about/index.html" class="dropdown">ABOUT PPEC</a>'
menu1[1]='<a href="about/history.html" class="dropdown">HISTORY</a>'
menu1[2]='<a href="about/touchstone.html" class="dropdown">ABOUT TOUCHSTONE ENERGY</a>'
menu1[3]='<a href="about/employees.html" class="dropdown">EMPLOYEES</a>'
menu1[4]='<a href="about/board.html" class="dropdown">BOARD OF DIRECTORS</a>'
menu1[5]='<a href="about/principles.html" class="dropdown">COOP PRINCIPLES</a>'
menu1[6]='<a href="http://www.jobtarget.com/c/copro.cfm?site_id=227&co=139874" target="_blank" class="dropdown">CAREERS</a>'
menu1[7]='<a href="about/contact.html" class="dropdown">CONTACT US</a>'

var menu2=new Array()
menu2[0]='<a href="community/local.html" class="nav">LOCAL SCHOLARSHIPS</a>'
menu2[1]='<a href="community/orec.html" class="nav">OREC SCHOLARSHIPS</a>'
menu2[2]='<a href="community/energy.html" class="nav">ENERGY CONSERVATION</a>'

var menu3=new Array()
//menu3[0]='<a href="member/billing.html" class="dropdown">BILLING PROCEDURES</a>'
menu3[0]='<a href="member/faq.html" target="_blank" class="dropdown">FAQ</a>'
menu3[1]='<a href="pdf/PPEC_Rate_Schedules_2010.pdf" target="_blank" class="dropdown">RATES</a>'
menu3[2]='<a href="pdf/code_of_regulations.pdf" target="_blank" class="dropdown">CODE OF REGULATIONS</a>'
menu3[3]='<a href="pdf/TERMS_AND_CONDITIONS_OF_SERVICE_Final_2010.pdf" target="_blank" class="dropdown">TERMS AND CONDITIONS</a>'
menu3[4]='<a href="pdf/Misc_Fees_Final_2010.pdf" target="_blank" class="dropdown">MISC FEES</a>'
menu3[5]='<a href="member/renewableenergy.html" class="dropdown">RENEWABLE ENERGY</a>'

var menu4=new Array()
menu4[0]='<a href="news/bulletin.html" class="dropdown">BULLETIN BOARD</a>'
menu4[1]='<a href="news/countryliving.html" class="dropdown">COUNTRY LIVING</a>'
menu4[2]='<a href="news/press.html" class="dropdown">PRESS RELEASES</a>'

var menu5=new Array()
menu5[0]='<a href="rebate/Info.html" class="dropdown">REBATE INFO</a>'
menu5[1]='<a href="rebate/heater.html" class="dropdown">WATER HEATER</a>'
menu5[2]='<a href="rebate/Air.html" class="dropdown">AIR CONDITIONER</a>'
menu5[3]='<a href="rebate/IndianaOnly.html" class="dropdown">INDIANA REBATES</a>'

var menu6=new Array()
menu6[0]='<a href="links/index.html" class="dropdown">LINKS</a>'

var menu1a=new Array()
menu1a[0]='<a href="../about/index.html" class="dropdown">ABOUT PPEC</a>'
menu1a[1]='<a href="../about/history.html" class="dropdown">HISTORY</a>'
menu1a[2]='<a href="../about/touchstone.html" class="dropdown">ABOUT TOUCHSTONE ENERGY</a>'
menu1a[3]='<a href="../about/employees.html" class="dropdown">EMPLOYEES</a>'
menu1a[4]='<a href="../about/board.html" class="dropdown">BOARD OF DIRECTORS</a>'
menu1a[5]='<a href="../about/principles.html" class="dropdown">COOP PRINCIPLES</a>'
menu1a[6]='<a href="http://www.jobtarget.com/c/copro.cfm?site_id=227&co=139874" target="_blank" class="dropdown">CAREERS</a>'
menu1a[7]='<a href="../about/contact.html" class="dropdown">CONTACT US</a>'

var menu2a=new Array()
menu2a[0]='<a href="../community/local.html" class="nav">LOCAL SCHOLARSHIPS</a>'
menu2a[1]='<a href="../community/orec.html" class="nav">OREC SCHOLARSHIPS</a>'
menu2a[2]='<a href="../community/energy.html" class="nav">ENERGY CONSERVATION</a>'

var menu3a=new Array()
//menu3a[0]='<a href="../member/billing.html" class="dropdown">BILLING PROCEDURES</a>'
menu3a[0]='<a href="../member/faq.html" target="_blank" class="dropdown">FAQ</a>'
menu3a[1]='<a href="../pdf/PPEC_Rate_Schedules_2010.pdf" target="_blank" class="dropdown">RATES</a>'
menu3a[2]='<a href="../pdf/code_of_regulations.pdf" target="_blank" class="dropdown">CODE OF REGULATIONS</a>'
menu3a[3]='<a href="../pdf/TERMS_AND_CONDITIONS_OF_SERVICE_Final_2010.pdf" target="_blank" class="dropdown">TERMS AND CONDITIONS</a>'
menu3a[4]='<a href="../pdf/Misc_Fees_Final_2010.pdf" target="_blank" class="dropdown">MISC FEES</a>'
menu3a[5]='<a href="../member/renewableenergy.html" class="dropdown">RENEWABLE ENERGY</a>'

var menu4a=new Array()
menu4a[0]='<a href="../news/bulletin.html" class="dropdown">BULLETIN BOARD</a>'
menu4a[1]='<a href="../news/countryliving.html" class="dropdown">COUNTRY LIVING</a>'
menu4a[2]='<a href="../news/press.html" class="dropdown">PRESS RELEASES</a>'

var menu5a=new Array()
menu5a[0]='<a href="../rebate/Info.html" class="dropdown">REBATE INFO</a>'
menu5a[1]='<a href="../rebate/heater.html" class="dropdown">WATER HEATER</a>'
menu5a[2]='<a href="../rebate/Air.html" class="dropdown">AIR CONDITIONER</a>'
menu5a[3]='<a href="../rebate/IndianaOnly.html" class="dropdown">INDIANA REBATES</a>'

var menu6a=new Array()
menu6a[0]='<a href="../links/index.html" class="dropdown">LINKS</a>'

var menuwidth='190px' //default menu width
var menubgcolor='white'  //menu bgcolor
var disappeardelay=100  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)

dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu