// NOMEN: Univerzalna provera klijentovog browsera - Universal client's browser check
// ANNUS: Smileyright (S) 2002 CyberLabs Shangri-La
// INSCRIPTIO: http://www.e-shangri-la.net
// CODE: Rade Seslija - NeuroMancer
// DESCRIPTIO: Ne gubite dragoceno vreme trazeci univerzalnu skriptu za proveru browseru - evo je!!! Ova je podesena da 'propusti': IE v5.x, v6.x+ (+ = i vece), Netscape v6.x+, a da upozori na: IE v4.x, v3.x i manje, Netscape v4.xx i manje, Operu v6.x i v5.x preusmeravajuci ih na "iewarning.html". Analiziranjem koda se lako moze podesiti prema sopstvenim potrebama.
// Don't waste your precious time looking for the universal browser check script - it's here !!! This one's adjusted to let 'through': IE v5.x, v6.x+ (+ = and higher), Netscape v6.x+, and to warn on: IE v4.x, v3.x and lower, Netscape v4.xx and lower, Opera v6.x i v5.x redirecting them to "iewarning.html". Analyzing the code one may easily adjust it according to his/her needs.

var skipPage = true;
bAgent = window.navigator.userAgent;
bAppName = window.navigator.appName;
bVer = navigator.appVersion;
prekidKodMSIE = bVer.split("MSIE");
pravaVer = parseFloat(prekidKodMSIE[1]);
bMozIdx = bAgent.indexOf("Mozilla/");

if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/4") >= 0)) skipPage = false;
if ((bAppName.indexOf("Netscape") >= 0) && (bAgent.indexOf("Mozilla/5") >= 0)) skipPage = false;
if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/5") >= 0)) skipPage = false;
if ((bAppName.indexOf("Netscape") >= 0) && (bMozIdx >= 0) &&
    (parseInt(bAgent.substring(bMozIdx+8, bMozIdx+10)) >= 6)) skipPage = false;
if ((bAppName.indexOf("Explorer") >= 0) && (bMozIdx >= 0) &&
    (parseInt(bAgent.substring(bMozIdx+8, bMozIdx+10)) >= 6)) skipPage = false;
if (skipPage) document.location.href="iewarning.html";
// { location = /*URL*/'../../../iewarning.html'; }

if ((bAppName.indexOf("Microsoft")) && (pravaVer < 5.0)) document.location.href="iewarning.html";

if ((navigator.userAgent.indexOf("Opera 6")!=-1)
	||(navigator.userAgent.indexOf("Opera/6")!=-1)) document.location.href="iewarning.html";

if ((navigator.userAgent.indexOf("Opera 5")!=-1)
	||(navigator.userAgent.indexOf("Opera/5")!=-1)) document.location.href="iewarning.html";

