// JavaScript Document
var oSolution;
var iSolution;
var SolutionT;
var SolutionH;
 function flSolution(f) {
  var swf=document.getElementById('hpswf') || document.embeds["hpswf"];
  if (swf) {
  try { swf.TGotoLabel("_level0/myVars",f); } catch(e) {}
  }
 }
 function doSolution(s,t) {
  var sn=['home','voice','data','business'];
  var sSolution=(s ? document.getElementById('solution-'+s) : false);
  var swf=document.getElementById('hpswf') || document.embeds["hpswf"];
  var f=(t==2 ? 'f1' : s=='home' ? 'f3' : s=='business' ? 'f4' : 'f2');
  if (!t) {
   for (i=0;i<sn.length;i++) {
    var e=document.getElementById('solution-'+sn[i]);
    var sli=e.getElementsByTagName('LI');
    if (sli) { sli[sli.length-1].className="last"; }
    if (s && s==sn[i]) {
     var h=e.getElementsByTagName('IMG')[0].offsetHeight+e.getElementsByTagName('UL')[0].offsetHeight;
     e.style.height=h+"px";
     iSolution=sSolution;
    } else { 
     e.style.height=e.getElementsByTagName('IMG')[0].offsetHeight+'px';
    }
   }
  } else if (sSolution != iSolution) {
   if (oSolution) { oSolution.style.height=oSolution.getElementsByTagName('IMG')[0].offsetHeight+"px"; }
   oSolution=iSolution;
   var o1="";
   var o2="";
   var o3="";
   if (oSolution) {
     var i=oSolution.getElementsByTagName('IMG')[0].offsetHeight;
     var h=2+oSolution.getElementsByTagName('UL')[0].offsetHeight;
     oSolution.style.height=Math.ceil(i+h*0.75)+"px";
     o1="oSolution.style.height='"+Math.ceil(i+h*0.5)+"px'";
     o2="oSolution.style.height='"+Math.ceil(i+h*0.15)+"px'";
     o3="oSolution.style.height='"+i+"px'";
   }
   iSolution=sSolution;
   if (iSolution) {
     var i=iSolution.getElementsByTagName('IMG')[0].offsetHeight;
     var h=2+iSolution.getElementsByTagName('UL')[0].offsetHeight;
     iSolution.style.height=Math.ceil(i+h*0.25)+"px";
     setTimeout("iSolution.style.height='"+Math.ceil(i+h*0.5)+"px';"+o1,120);
     setTimeout("iSolution.style.height='"+Math.ceil(i+h*0.75)+"px';"+o2,240);
     setTimeout("iSolution.style.height='"+(i+h)+"px';"+o3,360);
     if (swf) {
      if (SolutionT) { clearTimeout(SolutionT); }
      SolutionT=setTimeout("doSolution('"+s+"',2)",20000);
     } 
     if (t) {
      try {_hbLink('hover'+iSolution.id.substring(8),'hover','0,0,0,0'); } catch(e) {}
     }
   }
  }
  if (swf) {
     if (SolutionH) { clearTimeout(SolutionH); }
     SolutionH=setTimeout("flSolution('"+f+"')",400);
  }

}
setTimeout("doSolution('voice',0)",300);