/* 
   Flashfenster was written by Benjamin Schemberg on 03.09.2001.
   Homepage: http://www.networker.de/bs/
   eMail: bs@networker.de 
   edited by FreeLiner_GX
   Please don't remove this comment....Thanks...
*/

/*
   JavaScript Browser Sniffer 
   Eric Krok, Andy King, Michel Plungjan Jan. 31, 2002
   see http://www.webreference.com/ for more information
   edited by FreeLiner_GX
*/


var url1600 = "http://www.flashmark-benchmark.de/2003/konzept/konzept1600.html";
var url1280 = "http://www.flashmark-benchmark.de/2003/konzept/konzept1280.html";
var url1024 = "http://www.flashmark-benchmark.de/2003/konzept/konzept1024.html";
var url800 = "http://www.flashmark-benchmark.de/2003/konzept/konzept800.html";
var bgColor = "white";
var txtColor = "black";

    var agt=navigator.userAgent.toLowerCase();
    var appVer = navigator.appVersion.toLowerCase();

    // *** BROWSER VERSION ***

    var is_minor = parseFloat(appVer);
    var is_major = parseInt(is_minor);

    var is_opera = (agt.indexOf("opera") != -1);
    var is_opera2 = (agt.indexOf("opera 2") != -1 || agt.indexOf("opera/2") != -1);
    var is_opera3 = (agt.indexOf("opera 3") != -1 || agt.indexOf("opera/3") != -1);
    var is_opera4 = (agt.indexOf("opera 4") != -1 || agt.indexOf("opera/4") != -1);
    var is_opera5 = (agt.indexOf("opera 5") != -1 || agt.indexOf("opera/5") != -1);
    var is_opera6 = (agt.indexOf("opera 6") != -1 || agt.indexOf("opera/6") != -1); // new 020128- abk
    var is_opera7 = (agt.indexOf("opera 7") != -1 || agt.indexOf("opera/7") != -1); // new 021205- dmr
    var is_opera5up = (is_opera && !is_opera2 && !is_opera3 && !is_opera4);
    var is_opera6up = (is_opera && !is_opera2 && !is_opera3 && !is_opera4 && !is_opera5); // new020128
    var is_opera7up = (is_opera && !is_opera2 && !is_opera3 && !is_opera4 && !is_opera5 && !is_opera6); // new021205 -- dmr

    // Note: On IE, start of appVersion return 3 or 4
    // which supposedly is the version of Netscape it is compatible with.
    // So we look for the real version further on in the string

    var iePos  = appVer.indexOf('msie');
    if (iePos !=-1) {
       is_minor = parseFloat(appVer.substring(iePos+5,appVer.indexOf(';',iePos)))
       is_major = parseInt(is_minor);
       BrowserType = is_minor;
    }

// Fenster oeffnen 1024
function open1024moz(){
window.open("http://www.flashmark-benchmark.de/2003/run1024moz.html");
}

// Fenster oeffnen 800
function open800moz(){
window.open("http://www.flashmark-benchmark.de/2003/run800moz.html");
}

// Fenster oeffnen 1280
function open1280moz(){
window.open("http://www.flashmark-benchmark.de/2003/run1280moz.html");
}

// Fenster oeffnen 1600
function open1600moz(){
window.open("http://www.flashmark-benchmark.de/2003/run1600moz.html");
}


// Fenster oeffnen 1024
function open1024(){
window.open("http://www.flashmark-benchmark.de/2003/run1024.html");
}

// Fenster oeffnen 800
function open800(){
window.open("http://www.flashmark-benchmark.de/2003/run800.html");
}

// Fenster oeffnen 1280
function open1280(){
window.open("http://www.flashmark-benchmark.de/2003/run1280.html");
}

// Fenster oeffnen 1600
function open1600(){
window.open("http://www.flashmark-benchmark.de/2003/run1600.html");
}

// Aktuelles Fenster -Grösse verändern-
function veraendern(weite,hoehe){
window.resizeTo(weite,hoehe);
}
// Aktuelles Fenster -Bewegen-
function bewegen(x,y){
window.moveTo(x,y);
}

// Aktuelles Fenster -schliessen-
function schliessen(){
window.close();
}
// Fenster -Animation1024-
function animation1024(wide,high,xani,yani,xtempo,ytempo){
var fensterani1024 = window.open("","fensterneu","fullscreen,status=no,resizeable=no");
fensterani1024.document.write('<HTML><BODY BGCOLOR='+bgColor+' SCROLL=NO><table><tr><td nowrap><FONT FACE=verdana COLOR='+txtColor+' size=2><b>FlashMark 2003 Engine (1024*768)</b><br><br>Please wait until the screen has been scanned.<br>Do not change your display resolution anymore, or the Benchmark will not work allright.</td></tr></table></FONT></BODY></HTML>');
fensterani1024.moveTo(xani,yani);
fensterani1024.focus();
for (H=1; H<high; H+= ytempo){
         fensterani1024.resizeTo(1,H);
}
for (W=1; W<wide; W+= xtempo){
         fensterani1024.resizeTo(W,H);
}
fensterani1024.location = url1024;
}
// Fenster -Animation800-
function animation800(wide,high,xani,yani,xtempo,ytempo){
var fensterani800 = window.open("","fensterneu","fullscreen,status=no,resizeable=no");
fensterani800.document.write('<HTML><BODY BGCOLOR='+bgColor+' SCROLL=NO><table><tr><td nowrap><FONT FACE=verdana COLOR='+txtColor+' size=2><b>FlashMark 2003 Engine (800*600)</b><br><br>Please wait until the screen has been scanned.<br>Do not change your display resolution anymore, or the Benchmark will not work allright.</td></tr></table></FONT></BODY></HTML>');
fensterani800.moveTo(xani,yani);
fensterani800.focus();
for (H=1; H<high; H+= ytempo){
         fensterani800.resizeTo(1,H);
}
for (W=1; W<wide; W+= xtempo){
         fensterani800.resizeTo(W,H);
}
fensterani800.location = url800;
}
// Fenster -Animation1280-
function animation1280(wide,high,xani,yani,xtempo,ytempo){
var fensterani1280 = window.open("","fensterneu","fullscreen,status=no,resizeable=no");
fensterani1280.document.write('<HTML><BODY BGCOLOR='+bgColor+' SCROLL=NO><table><tr><td nowrap><FONT FACE=verdana COLOR='+txtColor+' size=2><b>FlashMark 2003 Engine (1280*1024)</b><br><br>Please wait until the screen has been scanned.<br>Do not change your display resolution anymore, or the Benchmark will not work allright.</td></tr></table></FONT></BODY></HTML>');
fensterani1280.moveTo(xani,yani);
fensterani1280.focus();
for (H=1; H<high; H+= ytempo){
         fensterani1280.resizeTo(1,H);
}
for (W=1; W<wide; W+= xtempo){
         fensterani1280.resizeTo(W,H);
}
fensterani1280.location = url1280;
}
// Fenster -Animation1600-
function animation1600(wide,high,xani,yani,xtempo,ytempo){
var fensterani1600 = window.open("","fensterneu","fullscreen,status=no,resizeable=no");
fensterani1600.document.write('<HTML><BODY BGCOLOR='+bgColor+' SCROLL=NO><table><tr><td nowrap><FONT FACE=verdana COLOR='+txtColor+' size=2><b>FlashMark 2003 Engine (1600*1200)</b><br><br>Please wait until the screen has been scanned.<br>Do not change your display resolution anymore, or the Benchmark will not work allright.</td></tr></table></FONT></BODY></HTML>');
fensterani1600.moveTo(xani,yani);
fensterani1600.focus();
for (H=1; H<high; H+= ytempo){
         fensterani1600.resizeTo(1,H);
}
for (W=1; W<wide; W+= xtempo){
         fensterani1600.resizeTo(W,H);
}
fensterani1600.location = url1600;
}