ddaccordion.init({
headerclass: "accordion_toggle", //Shared CSS class name of headers group that are expandable
contentclass: "accordion_content", //Shared CSS class name of contents group
collapseprev: false, //Collapse previous content (so only one open at any time)? true/false
callapseall: true, //Collapse clicked content (so never all closed)? true/false
defaultexpanded: [], //index of content(s) open by default [index1, index2, etc]. [] denotes no content
animatedefault: false, //Should contents open by default be animated into view?
persiststate: false, //persist state of opened contents within browser session?
toggleclass: ["", "accordion_toggle_active"], //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: "slow" //speed of animation: "fast", "normal", or "slow"
})
    
function displayVideo(videoFile,videoDuration,flashcontent){
	
 
	var so = new SWFObject("/flash/player_simple.swf", "sotester", "440", "290", "9", "#FFFFFF");
	so.addVariable("width", 440);
	so.addVariable("height", 328);
	so.addVariable("autoPlay", "true");
	so.addVariable("flvPath", "/flash/energy-smart/"+ videoFile +'.flv');
	so.addVariable("videoDuration", videoDuration); 
	so.write(flashcontent);
}



function tab_change(id)
{
	 
	
	for(var i=1;i<=4;i++){
	document.getElementById('tab_'+i+'_panel').className="hide_panel";}
	document.getElementById(id+'_panel').className="show_panel";
	document.getElementById('tab_header').className="help_center_header_"+id;
	document.getElementById(id+'_panel').className="show_panel";
}

 
function nav_change(id)
{
	for(var i=1;i<=4;i++){
	document.getElementById('nav'+i).className="";}	 
	document.getElementById(id).className="selected";
}


function changeImage(img,id){ 

resetallimage();
document.getElementById(id).src='/images/EnergySmart/'+img;

}

function resetallimage(){
document.getElementById('img11').src='/images/EnergySmart/bes.jpg';
document.getElementById('img12').src='/images/EnergySmart/aaes03.jpg';
document.getElementById('img13').src='/images/EnergySmart/em01.jpg';

}

function changeImagetab1(img,id){ 

resetallimagetab1();
document.getElementById(id).src='/images/EnergySmart/'+img;

}

function resetallimagetab1(){
document.getElementById('img21').src='/images/EnergySmart/bes.jpg';
//document.getElementById('img22').src='/images/EnergySmart/mr02.jpg';
//document.getElementById('img23').src='/images/EnergySmart/mr03.jpg';

}


function changeImagetab2(img,id){ 
 
resetallimagetab2();
document.getElementById(id).src='/images/EnergySmart/'+img;
 

}

function resetallimagetab2(){
document.getElementById('img31').src='/images/EnergySmart/em_03.jpg';
document.getElementById('img32').src='/images/EnergySmart/em01.jpg';
document.getElementById('img33').src='/images/EnergySmart/em03.jpg';

}


 function changeImagetab3(img,id){ 
  
 resetallimagetab3();
 document.getElementById(id).src='/images/EnergySmart/'+img; 
 
 }
 
 function resetallimagetab3(){
 document.getElementById('img41').src='/images/EnergySmart/bes.jpg';
 document.getElementById('img42').src='/images/EnergySmart/aaes03.jpg';
 document.getElementById('img43').src='/images/EnergySmart/mr01.jpg';
 
 }
 
 
 
