var od = 0;
function divOpen(divID)
{   
   var d = document.getElementById('faq_text_'+divID);
   if (od != divID)
   {
      if (od != 0)
      {
          var old = document.getElementById('faq_text_'+od);
       	  old.style.display = 'none';
      }
      d.style.display = 'block';
      od = divID;
   }
   else 
   {
      d.style.display = 'none';
      od = 0;
   }

   var c = document.getElementById('faq_q_'+divID);
   c && c.blur();

   /* trick for IE6 */
   var lc = document.getElementById('left_col');
   lc && (lc.style.height = lc.offsetHeight + 'px');
   lc && (lc.style.height = '');

   window.adjustWindowHeight && window.adjustWindowHeight();
}

function playFlash(path)
{
   var flashDiv = document.getElementById('fly_contaner');
   y = document.documentElement.scrollTop;
   x = document.documentElement.scrollLeft; 
   if (!document.all)
   {
   	if ((x == 0) || (x == null)) x = window.pageXOffset;
   	if ((y == 0) || (y == null)) y = window.pageYOffset; 
   }
   flashDiv.style.top = (y + document.documentElement.offsetHeight/2 - 350) + 'px'; 
   flashDiv.style.left = (x + document.documentElement.offsetWidth/2 - 200) + 'px'; 
   flashDiv.style.height = '360px';
   flashDiv.style.display = 'block';
   var enter= new SWFObject("/upload/images/i/mpw_player.swf", "enter", "400", "320", "7", "000000");
   enter.addParam("allowScriptAccess", "sameDomain");
   enter.addParam("quality", "high"); 
   enter.addParam("play", "true");
   enter.addParam("wmode", "transparent");
   enter.addParam("allowFullScreen","true");
   enter.addVariable("flv", path);
   enter.write('fly_flash');
}

function flashClose()
{
   var playdiv = document.getElementById('fly_flash');
   for (var i = 0; i< playdiv.childNodes.Count; i++)
   {
       playdiv.removeChild(0);
   }	
   var flashDiv = document.getElementById('fly_contaner');
   flashDiv.style.display  = 'none';
   playdiv.innerText=""; 
   playdiv.innerHTML="";
}
