function openWindow(theImg, w, h) {
	var myref;
	myref = window.open(theImg, 'img_on', 'left=0,top=0,width=' + w + ',height=' + h + ',toolbar=0,menubar=0,resizable=0,location=0,status=0,scrollbars=0');
	myref.focus();
}
function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
      return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds[movieName])
      return document.embeds[movieName]
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}
function StopFlash(flash)
{
     var flashMovie=getFlashMovieObject(flash);
     if(flashMovie != null)
	     flashMovie.StopPlay();
}
function StartFlash(flash)
{
     var flashMovie=getFlashMovieObject(flash);
     if(flashMovie != null) {
	     flashMovie.Rewind();
	     flashMovie.Play();
	  }
}
var curr = new Array();
var m_iInterval;
if (window.addEventListener){
	window.addEventListener("load",init,false);
} else if (window.attachEvent){
	window.attachEvent("onload",init);
}
function showTab(szDivID, n, bCT)
{
	if(curr.length > n)
		toggleBox(curr[n], 0);
	toggleBox(szDivID, 1);
	curr[n] = szDivID;
	if(bCT > 0) ;
		//clearInterval(m_iInterval);
}
function toggleBox(szDivID, iState) // 1 visible, 0 hidden
{
	if(document.layers)	   //NN4+
	{
		document.layers[szDivID].visibility = iState ? "show" : "hide";
		document.layers[szDivID].display = iState ? "block" : "none";
	}
	else if(document.getElementById)	  //gecko(NN6) + IE 5+
	{
		var obj = document.getElementById(szDivID);
		obj.style.visibility = iState ? "visible" : "hidden";
		obj.style.display = iState ? "block" : "none";
	}
	else if(document.all)	// IE 4
	{
		document.all[szDivID].style.visibility = iState ? "visible" : "hidden";
		document.all[szDivID].style.display = iState ? "block" : "none";
	}
}