 //Enter id(s) of SuckerTree UL menus, separated by commas

function buildsubmenus(){

document.getElementById("topmenu").innerHTML="<table class='menuwhite' width='100%' border='0' cellspacing='0' cellpadding='1' style='font-size:9pt;  font-family:Arial, Helvetica, sans-serif'>" +
          "<tr align='center'>"+ 
            "<td width='14%'><font color='#666666'>&nbsp;</font></td>" +
            "<td width='17%'><font color='#666666'><a href='emc_right_to_info.html'>RTI Act</a></font></td>" +
            "<td width='17%'><font color='#666666'><a href='emc_aboutus.html'>About Us</a></font></td>" +
            "<td width='17%'><font color='#666666'><a href='emc_contactus.html'>Contact Us</a></font></td>" +
            "<td width='18%'><font color='#666666'><a href='emc_sitemap.html'>Site Map</a></font></td>" +
            "<td width='17%'><font color='#666666'><a href='emc_links.html'>Useful Links</a></font></td>" +
          "</tr></table>";


//loop='1' behavior='slide' scrolldelay='50' scrollamount='15'
document.getElementById("suckertree1").innerHTML="" +
"<li><a href='/' ><b>&nbsp;Home</b></a></li>" +
"<li ><a href='#' >&nbsp;Energy Efficiency</a>" +
"<ul>" +
  "<li><a href='emc_energy_efficiency.html' style='background-color: #F9FDFF'>Energy Efficiency</a></li>" +
  "<li><a href='emc_reg_firms.html' style='background-color: #F9FDFF'>Registered Audit Firms</a></li>" +
  "</ul></li>" +
"<li><a href='#'>&nbsp;Small Hydro</a>" +
  "<ul>" +
  "<li><a href='emc_small_hydro_cell.html' style='background-color: #F9FDFF'>SHP</a></li>" +
  "<li><a href='http://www.unidorc.org/' style='background-color: #F9FDFF'>UNIDO Regional Centre</a></li>" +
  "<li><a href='emc_shp_cell.html' style='background-color: #F9FDFF'>SHP Cell</a></li>" +  
  "</ul>" +
"</li>" +

"<li><a href='emc_infrastructure.html'>&nbsp;Infrastructure</a></li>" +
//"<li><a href='emc_awards.html' >&nbsp;Energy Cons:Awards &nbsp;<img width=10;height=9; alt='' src='images/anim/ANIMATED-STARS15.gif'; /></a></li>" +
"<li><a href='emc_awards.html' >&nbsp;Energy Cons:Awards </a></li>" +
"<li><a href='emc_policy_documents.html'>&nbsp;Policy Documents</a></li>" +
"<li><a href='emc_energy_conservation.html' >&nbsp;Energy Cons: Act</a></li>" + 
"<TABLE class='emcleftmenu' height='100%' border='0' cellpadding='0' cellspacing='0' width='177px' background='images/Leftmenubg_1.jpg'><tr><td  ></td></tr>" + 
"<tr><td height='1'></td></tr><tr><td style='color: #000040;' ><b>News</td></tr></table>";
 


document.getElementById("suckertree2").innerHTML="<li><a href='emc_announcements.html'>&nbsp;Announcements&nbsp;<img width=10;height=9; alt='' src='images/anim/ANIMATED-STARS15.gif';</a></li>" +
"<li><a href='emc_conservations_tips.html' style='background-image: url('images/index_009.jpg')'>&nbsp;Conservation Tips</a></li>" +
"<li><a href='emc_forth_coming_events.html'>&nbsp;Events</a></li>" +
"<li><a href='emc_training.html'>&nbsp;Training Program</a></li>" +
//"<li><a href='careers.html'>&nbsp;Careers &nbsp;<img width=10;height=9; alt='' src='images/anim/ANIMATED-STARS15.gif';</a></li>" +
"<li><a href='Students_Corner.html'>&nbsp;Students Corner</a></li>" +
"<li><a href='emc_downloads.html'>&nbsp;Downloads</a></li>" +
"<li><a href='emc_photo_gallery.html'>&nbsp;Photo Gallery</a></li>" +
//"<li><a href='http://keralaenergy.gov.in/sda/'>&nbsp;SDA Portal</a></li>" +
"<li align='left'><a href='emc_enq.html'>&nbsp;Suggestion/Enquiry </a>" +
//"<li><a href='emc_tenders.html'>&nbsp;Tenders&nbsp;<img width=10;height=9; alt='' src='images/anim/ANIMATED-STARS15.gif';</a></li>" +
//"<li align='left'><a href='#'>&nbsp;Contact </a>" +
 // "<ul align='left'>" +
 // "<li><a href='subscription.aspx'style='background-color: #F0F0FC'>Email Subscription</a></li>" +
 // "<li><a href='dontactform.aspx'style='background-color: #F0F0FC'>Enquiry/Suggestion</a></li>" +
 // "<li><a href='ask.aspx'style='background-color: #F0F0FC'>Ask a Question</a></li>" +    
  //  "</ul>" +
  "</li>";// +
//  "<li><a href='#'>&nbsp;Energy Calculator</a></li>" +
//"<li><a href='#'>&nbsp;Regd Energy Audit firms</a></li>"
//"<li><a href='emc_forth_coming_events.html'>&nbsp;Events <img width=10;height=9; alt='' src='images/anim/ANIMATED-STARS15.gif';</a></li>" +
var menuids=["suckertree2"]
for (var i=0; i<menuids.length; i++){
  var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
    for (var t=0; t<ultags.length; t++){
    ultags[t].parentNode.getElementsByTagName("a")[0].className="subfolderstyle"
		if (ultags[t].parentNode.parentNode.id==menuids[i]) //if this is a first level submenu
			ultags[t].style.left=ultags[t].parentNode.offsetWidth+"px" //dynamically position first level submenus to be width of main menu item
		else //else if this is a sub level submenu (ul)
		  ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px" //position menu to the right of menu item that activated it
    ultags[t].parentNode.onmouseover=function(){
    this.getElementsByTagName("ul")[0].style.display="block"
    }
    ultags[t].parentNode.onmouseout=function(){
    this.getElementsByTagName("ul")[0].style.display="none"
    }
    }
		for (var t=ultags.length-1; t>-1; t--){ //loop through all sub menus again, and use "display:none" to hide menus (to prevent possible page scrollbars
		ultags[t].style.visibility="visible"
		ultags[t].style.display="none"
		}
  }
  

var menuids=["suckertree1"]
for (var i=0; i<menuids.length; i++){
  var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
    for (var t=0; t<ultags.length; t++){
    ultags[t].parentNode.getElementsByTagName("a")[0].className="subfolderstyle"
		if (ultags[t].parentNode.parentNode.id==menuids[i]) //if this is a first level submenu
			ultags[t].style.left=ultags[t].parentNode.offsetWidth+"px" //dynamically position first level submenus to be width of main menu item
		else //else if this is a sub level submenu (ul)
		  ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px" //position menu to the right of menu item that activated it
    ultags[t].parentNode.onmouseover=function(){
    this.getElementsByTagName("ul")[0].style.display="block"
    }
    ultags[t].parentNode.onmouseout=function(){
    this.getElementsByTagName("ul")[0].style.display="none"
    }
    }
		for (var t=ultags.length-1; t>-1; t--){ //loop through all sub menus again, and use "display:none" to hide menus (to prevent possible page scrollbars
		ultags[t].style.visibility="visible"
		ultags[t].style.display="none"
		}
  }

}

//
if (window.addEventListener)
window.addEventListener("load", buildsubmenus, false)
else if (window.attachEvent)
window.attachEvent("onload", buildsubmenus)


var count=1;
var s;
function ImageShow()
{ 
 	//var numFiles ="<%= filesCount %>";
//alert(count +'/' + numFiles);
document.getElementById('ChangingPix').src = "images/led" + count + ".jpg";
if(count==3){count=0;}
count=count + 1
s=setTimeout("ImageShow()",5000)
}
