//---------------------------------------
// DL FrameDocument JavaScript Routines
//        DLframeScript.js v1.4
//---------------------------------------
//
//       Removal of this copyright
//           notice is illegal
//
//   (c)1999-2002 DigiLog multimedia
//         Saarbruecken, Germany
//         http://www.digilog.de
//
//          All rights reserved.
//
//---------------------------------------

// ----------------
// Immediate Inits:
// ----------------

//check if frame document is loaded into external frame.
//if true -> break free!
if(top != self){
  top.location = self.location
}else{
  // In Opera5 history.back does not rerun scripts (neither onload scripts nor scripts in body block). 
  // Workaround: cyclical checking of unnoticed changes of MainDoc used to detect history.backs!
  if(navigator.userAgent.indexOf("Opera 5")>=0 && !window.gCycEvent){
    gCycEvent = setInterval('CheckMaindocChange()', 1500);
  }
};
// ----------------
// End of Immediate Inits
// ----------------

// WIRD NICHT MEHR BENUTZT!:
function CheckSearch(){
//if URL for main frame is given in location.search string -> load it!
  if(top.DLbaseFrame.DLmainFrame){
    var MainFrameURL  = top.DLbaseFrame.DLmainFrame.location.toString();
    if(window.location.search){
      if(MainFrameURL.indexOf("00Home/00.")>=0){
        top.DLbaseFrame.DLmainFrame.location = window.location.search.substring(1,9999);
  } } }
};


function CheckMaindocChange(){
  // In Opera5 history.back does not rerun scripts (neither onload scripts nor scripts in body block). 
  // Workaround: cyclical checking of unexpected changes of MainDoc used to detect history.backs!
  // This is the function that is called cyclically (only on Opera5!).
  
  if(top.DLheadFrame.gURL){ //check if needed var exists
    if(top.DLbaseFrame.DLmainFrame){
      if(top.DLbaseFrame.DLmainFrame.location.toString()!=top.DLheadFrame.gURL){
        top.DLbaseFrame.DLmainFrame.UpdateFrames();
  } } }
};