//---------------------------------------
//    DL General JavaScript Routines
//        for TDS website system
//---------------------------------------
//
//       Removal of this copyright
//           notice is illegal
//
//   (c)1999-2005 DigiLog multimedia
//         Saarbruecken, Germany
//         http://www.digilog.de
//
//          All rights reserved.
//
//---------------------------------------

// ----------------
// Immediate Inits:
// ----------------



// ----------------
// Functions
// ----------------

function InsertFlashOrStatic(flashURL, staticURL, w, h){
  if(!useRedirect){
    if(hasRightVersion && flashURL!=''){
    // ----- Use Flash Animation -----
      document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+w+'" height="'+h+'">');
      document.write('<param name="allowScriptAccess" value="sameDomain" />');
      document.write('<param name=movie value="'+flashURL+'" />');
      document.write('<param name="quality" value="high" />');
      document.write('<param name="wmode" value="opaque" />');  // this allows DHTML elements in front of Flash and prevents screenreaders (like JAWS) from getting stuck of Flash
      document.write('<embed src="'+flashURL+'" type="application/x-shockwave-flash" quality="high" width="'+w+'" height="'+h+'" wmode="opaque" allowScriptAccess="sameDomain"></embed>');
      document.write('</object>');
    }else{
      // ----- Use Static Image -----
      document.write('<img src="'+staticURL+'" width="'+w+'" height="'+h+'">');
    }
  }
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}



