function toggleSub(submenu) {
	//if (document.getElementById(submenu).style.display == 'none') {
	//	document.getElementById(submenu).style.display = 'block'
	//} else {
		document.getElementById(submenu).style.display = 'block'
	//}
}

function CloseSub(submenu) {
	document.getElementById(submenu).style.display = 'none'
}

function EmbedFlash(URL, width, height, menu, quality, flash, transparency){
 //Is version nuber entered.
 if(flash == null){
  flash = "7,0,19,0"; //Replace with default version number. Default = 6,0,0,0.
 }
 
 //Checks if the menu constance is entered (correctly)
 if(menu != true && menu != false && menu != "true" && menu != "false"){
  menu = true; //Replace with default. Default = true.
 }
 
 //Checks if the quality constance is entered (correctly)
 if(quality != "high" && quality != "normal" && quality != "low"){
  quality = "best"; //Replace with default. Defautl = high.
 }
 
 //See if we can continue. 
 if(URL == null || width == null || height == null){
  //Nope, we can't.
  document.writeln("No URL, width or height entered");
 }else{
  //Add the code to the document.
  document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="' + flash + '" width="' +  width + '" height="' + height + '">');
  document.writeln('<param name="movie" value="' + URL + '" />');
  document.writeln('<param name="quality" value="' + quality + '" />');
  document.writeln('<param name="menu" value="' + menu + '" />');
  addtrans="";
  if(transparency==true)
  {
  document.writeln('<param name="wmode" value="transparent" />');
  addtrans = " wmode=\"transparent\" ";
  }
  document.writeln('<embed src="' + URL + '" quality="' + quality + '" menu="' + menu + '"' + addtrans + 'pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' +  width + '" height="' + height + '"></embed></object>');
 }
}
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or higher.
  {
  for(var i=0; i<document.images.length; i++)
      {
          var img = document.images[i]
          var imgName = img.src.toUpperCase()
          if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
            {
                var imgID = (img.id) ? "id='" + img.id + "' " : ""
                var imgClass = (img.className) ? "class='" + img.className + "' " : ""
                var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
                var imgStyle = "display:inline-block;" + img.style.cssText 
                var imgAttribs = img.attributes;
                for (var j=0; j<imgAttribs.length; j++)
                        {
                        var imgAttrib = imgAttribs[j];
                        if (imgAttrib.nodeName == "align")
                          {                  
                          if (imgAttrib.nodeValue == "left") imgStyle = "float:left;" + imgStyle
                          if (imgAttrib.nodeValue == "right") imgStyle = "float:right;" + imgStyle
                          break
                          }
            }
                var strNewHTML = "<span " + imgID + imgClass + imgTitle
                strNewHTML += " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
            strNewHTML += "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
                strNewHTML += "(src=\'" + img.src + "\');\"></span>" 
                img.outerHTML = strNewHTML
                i = i-1
            }
      }
  }
window.attachEvent("onload", correctPNG);

function Start(page) {
OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=no,resize=no,width=525,height=350");
}