﻿

// ######################################### Start
    // new prototype defintion
    document.include = function (url) {
     if ('undefined' == typeof(url)) return false;
     var p,rnd;
     if (document.all){
       // For IE, create an ActiveX Object instance 
       p = new ActiveXObject("Microsoft.XMLHTTP");
     } 
     else {
       // For mozilla, create an instance of XMLHttpRequest.
       p = new XMLHttpRequest();
     }
     // Prevent browsers from caching the included page
     // by appending a random  number
     rnd = Math.random().toString().substring(2);
     url = url.indexOf('?')>-1 ? url+'&rnd='+rnd : url+'?rnd='+rnd;
     // Open the url and write out the response
     p.open("GET",url,false);
     p.send(null);
     document.write( p.responseText );
    }


// ######################################### END


// ######################################### 
window.onerror = null;
 var bName = navigator.appName;
 var bVer = parseInt(navigator.appVersion);
 var NS4 = (bName == "Netscape" && bVer >= 4);
 var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
 var NS3 = (bName == "Netscape" && bVer < 4);
 var IE3 = (bName == "Microsoft Internet Explorer" && bVer < 4);
 var blink_speed=600;
 var i=0;
 
if (NS4 || IE4) {
 if (navigator.appName == "Netscape") {
 layerStyleRef="layer.";
 layerRef="document.layers";
 styleSwitch="";
 }else{
 layerStyleRef="layer.style.";
 layerRef="document.all";
 styleSwitch=".style";
 }
}
// ######################################### END

