/***********************************************
* Flexi Slideshow- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var variableslide_0x=new Array()

//variableslide_0x[x]=["path to image", "OPTIONAL link for image", "OPTIONAL text description (supports HTML tags)","OPTIONAL but recommended IMG ALT Text"]

variableslide_0x[0]=['Images/SponsorLogos/clc.jpg', 'LinkRedirect.aspx?link=http://www.capelightcompact.org/', '', 'Cape Light Compact']

variableslide_0x[1]=['Images/SponsorLogos/nationalgrid.jpg', 'LinkRedirect.aspx?link=http://www.nationalgrid.com/', '', 'National Grid']
variableslide_0x[2]=['Images/SponsorLogos/nstar.jpg', 'LinkRedirect.aspx?link=http://www.nstaronline.com/', '', 'NSTAR Electric']
variableslide_0x[3]=['Images/SponsorLogos/westernma.jpg', 'LinkRedirect.aspx?link=http://www.wmeco.com/', '', 'Western Massachusetts Electric']
//variableslide_0x[1]=['Images/SponsorLogos/effvt.jpg', 'LinkRedirect.aspx?link=http://www.efficiencyvermont.com/', '', 'Efficiency Vermont']
//variableslide_0x[4a]=['Images/SponsorLogos/clp.jpg', 'LinkRedirect.aspx?link=http://www.cl-p.com/', '', 'Connecticut Light & Power']
variableslide_0x[4]=['Images/SponsorLogos/unitil.jpg', 'LinkRedirect.aspx?link=http://www.unitil.com/', '', 'Unitil Corporation']
//variableslide_0x[3]=['Images/SponsorLogos/nstar.jpg', 'LinkRedirect.aspx?link=http://www.nstaronline.com/', '', 'NSTAR Electric']
//variableslide_0x[7]=['Images/SponsorLogos/lipa.jpg', 'http://www.lipower.org/cei/', '', 'The Long Island Power Authority']
//variableslide_0x[8]=['Images/SponsorLogos/ui.jpg', 'http://www.uinet.com/', '', 'The United Illuminating Co.']

//variableslide_0x[9]=['Images/SponsorLogos/masselectric.jpg', 'http://www.masselectric.com/', '', 'Massachusetts Electric Company']
//variableslide_0x[10]=['Images/SponsorLogos/neco.jpg', 'http://www.narragansett.com/', '', 'Narragansett Electric Co.']
//variableslide_0x[11]=['Images/SponsorLogos/ntuck.jpg', 'http://www.nantucketelectric.com/', '', 'Nantucket Electric Co.']

//configure the below 3 variables to set the dimension/background color of the slideshow

var slidewidth_0x='200px' //set to width of LARGEST image in your slideshow
var slideheight_0x='80px' //set to height of LARGEST iamge in your slideshow, plus any text description
var slidebgcolor_0x='#FFFFFF'

//configure the below variable to determine the delay between image rotations (in miliseconds)
var slidedelay_0x=3000

////Do not edit pass this line////////////////
var ie_0x=document.all
var dom_0x=document.getElementById

for (i_0x=0;i_0x<variableslide_0x.length;i_0x++){
var cacheimage_0x=new Image()
cacheimage_0x.src=variableslide_0x[i_0x][0]
}

var currentslide_0x= Math.round(Math.random()*(i_0x - 1)) //starts show on random slide

var contentcontainer_0x

function rotateimages_0x(){
contentcontainer_0x='<center>'
if (variableslide_0x[currentslide_0x][1]!="")
contentcontainer_0x+='<a href="'+variableslide_0x[currentslide_0x][1]+'" target="_blank">'
contentcontainer_0x+='<img src="'+variableslide_0x[currentslide_0x][0]+'" border="0" vspace="0" hspace="0" alt="'+variableslide_0x[currentslide_0x][3]+'">'
if (variableslide_0x[currentslide_0x][1]!="")
contentcontainer_0x+='</a>'
contentcontainer_0x+='</center>'
if (variableslide_0x[currentslide_0x][2]!="")
contentcontainer_0x+=variableslide_0x[currentslide_0x][2]

if (document.layers){
crossrotateobj_0x.document.write(contentcontainer_0x)
crossrotateobj_0x.document.close()
}
else if (ie_0x||dom_0x)
crossrotateobj_0x.innerHTML=contentcontainer_0x
if (currentslide_0x==variableslide_0x.length-1) currentslide_0x=0
else currentslide_0x++
setTimeout("rotateimages_0x()",slidedelay_0x)
}

if (ie_0x||dom_0x)
document.write('<div id="slidedom_0x" style="width:'+slidewidth_0x+';height:'+slideheight_0x+'; background-color:'+slidebgcolor_0x+'"></div>')

function start_slider_0x(){
crossrotateobj_0x=dom_0x? document.getElementById("slidedom_0x") : ie_0x? document.all.slidedom_0x : document.slidensmain_0x.document.slidenssub_0x
if (document.layers)
document.slidensmain_0x.visibility="show"
rotateimages_0x()
}

if (ie_0x||dom_0x)
start_slider_0x()
else if (document.layers)
window.onload=start_slider_0x
