var tInterval;


function init_style2() {
//   qInterval = setInterval("runLoad()",14000);
   jiggle_init(); 
}

function replaceHTML(nodeName, urlName) {
//      document.getElementById(nodeName).innerHTML = fetchURL(urlName);


var reqb = _si_req();
reqb.open('GET', urlName, true);
reqb.onreadystatechange = function() {
  if (reqb.readyState == 4 && reqb.status == 200) {
     // Bugfix due to firefox responseXML truncation (or getElements)
     var textStuff = reqb.responseText;
     //var textStuff = getElementTextNS("","text",reqb.responseXML.getElementsByTagName("xml")[0],0);
     textStuff = textStuff.replace(/<xml><text>/,'');
     textStuff = textStuff.replace(/<\/text><\/xml>/,'');
     textStuff = textStuff.replace(/&lt;/g,'<');
     textStuff = textStuff.replace(/&gt;/g,'>');
     textStuff = textStuff.replace(/&aslt;/g,'&lt;');
     textStuff = textStuff.replace(/&asgt;/g,'&gt;');
     document.getElementById(nodeName).innerHTML = textStuff;

  }
}
reqb.send(null);
}


function breakoutOfFrame()
   {
     if (top.location != location) {
       top.location.href = document.location.href ;
     }
   }

// retrieve text of an XML document element, including
// elements using namespaces
function getElementTextNS(prefix, local, parentElem, index) {
       var result = "";
           if (prefix && isIE) {
                      // IE/Windows way of handling namespaces
                      result = parentElem.getElementsByTagName(prefix + ":" + local)[index];
                          } else {
                                     // the namespace versions of this method 
                                     // (getElementsByTagNameNS()) operate
                                     // differently in Safari and Mozilla, but both
                                     // return value with just local name, provided 
                                     // there aren't conflicts with non-namespace element
                                     // names
                                     if (parentElem) {
                                        result = parentElem.getElementsByTagName(local)[index];
                                     } else {
                                       return '';
                                     }
                                         }
               if (result) {
                          // get text, accounting for possible
                          // whitespace (carriage return) text nodes 
                          if (result.childNodes.length > 1) {
                                         return result.childNodes[1].nodeValue;
                                                 } else {
                                                                if (result.firstChild) { 
                                                                return result.firstChild.nodeValue;         
                                                                } else {
                                                                   return "";
                                                                }
                                                                        }
                              } else {
                                         return "n/a";
                                             }
}

// Obtain a new object implementing the XMLHttpRequest interface
// Helpful testing flag
function _si_req() {
            // Safari 1.2 and Mozilloid browsers: use the XMLHttpRequest constructor.
            // In Mozilla, override response type to avoid odd errors.
            //
            if (window.XMLHttpRequest) {
                     var request= new XMLHttpRequest();
                           if (request.overrideMimeType)
                                      request.overrideMimeType('text/xml');
                                 return request;
                                     }
              
                // IE/Windows: try to get an XmlHttp ActiveX object. May fail due to
                // security settings etc.
                if (window.ActiveXObject) {
                         try {
                                 var requa= new ActiveXObject('MSXML2.XmlHttp');
                                                              return requa;
                                                                                       } catch (e) {
                                                                                                                      try {
                                                                                                                                                          requa = new ActiveXObject("Microsoft.XMLHTTP");
                                                                                                                                                                                           return requa;
                                                                                                                                                                                                                       } catch (E) { }
                                                                                                                                               }
                                           }

                //       if (_si_backupAppletIndex!=-1 &&
                //             _si_backupAppletIndex<document.applets.length) {
                          //    document.applets[_si_backupAppletIndex].setDebug(true);
                //              return document.applets[_si_backupAppletIndex];
                //                }

                         // No client/server communication mechanism found
                         return null;
}



