function API(topPfx,sidePfx,Obj,OpenDiv_,_CloseDiv,Sfx,RGB,OOO)
{
 document.writeln("<HTML>")			
 document.writeln("<HEAD>")
 document.writeln("<TITLE>Independent Energy Center, Solar Energy Consulting, Design, Installation, Sales<\/TITLE>")
 document.writeln("<META HTTP-EQUIV=\"Title\" CONTENT=\"Independent Energy Center, Solar Energy Consulting, Design, Installation, Sales\">")  
 document.writeln("<SCRIPT  LANGUAGE=\"javascript\" TYPE=\"text\/javascript\">")	
 document.writeln("topPfx=\""+topPfx+"\"")
  document.writeln("sidePfx=\""+sidePfx+"\"")
 document.writeln("Obj =\""+Obj+"\"")
 document.writeln("OpenDiv_ =\""+OpenDiv_+"\"")
 document.writeln("_CloseDiv =\""+_CloseDiv+"\"")
 document.writeln("Sfx=\""+Sfx+"\"")
 document.writeln("RGB=\""+RGB+"\"") 
 document.writeln("OOO=\""+OOO+"\"")

  // EVENTS
 document.writeln("Xcurrent = \"XXX\"")
 

		
 // Xbranch() 
document.writeln("function Xbranch(_Xcurrent)")
document.writeln("{")	
document.writeln(" if(Xcurrent != \"XXX\")")
document.writeln("  {")
document.writeln(" Q=eval(topPfx + Obj + OpenDiv_ + Xcurrent + _CloseDiv)")
document.writeln(" Q.className = 'Xoption'")
document.writeln(" }") 
document.writeln(" if(Xcurrent == _Xcurrent)")
document.writeln("  {")
document.writeln("   Xcurrent = \"XXX\"")
document.writeln("   return ")
document.writeln("  }") 
document.writeln(" Xcurrent = _Xcurrent")  
document.writeln(" Q=eval(topPfx + Obj + OpenDiv_ + Xcurrent + _CloseDiv)")
document.writeln(" Q.className = 'Xbranch'")
document.writeln(" return") 
document.writeln("}") 

	
document.writeln("function Snap(_page)")
document.writeln("{")
document.writeln(" parent.page.document.location.href = _page")
document.writeln("return}")
 	
																									  	
 
 
 document.writeln("function HOME()")
 document.writeln(" {")
 document.writeln("Xcurrent = \"XXX\"")
 document.writeln("	 parent.topmenu.document.location.href = 'topmenu.htm'")
 document.writeln(" parent.page.document.location.href = 'intro.htm'")
 document.writeln(" return}")
 
 document.writeln("<\/SCRIPT>") 
   
 document.writeln("<\/HEAD>")
 document.writeln("<FRAMESET TITLE=\"TOP\"  ROWS=\"130\,*\">")
 document.writeln("<FRAME  NAME=\"topmenu\" SRC=\"topmenu.htm\" FRAMEBORDER=\"1\"      BORDERCOLOR=\"#F8F8F8\"  SCROLLING=\"no\"  MARGINWIDTH=0 MARGINHEIGHT=0>")
 document.writeln("<FRAME NAME=\"page\"  SRC=\"intro.htm\"  FRAMEBORDER=\"1\" BORDERCOLOR=\"#F8F8F8\" SCROLLING=\"yes\"   MARGINWIDTH=0 MARGINHEIGHT=0>")
 document.writeln("<\/FRAMESET>")
 document.writeln("<\/FRAMESET>")							   
 document.writeln("<\/HTML>")

return}
 