﻿var BROWSERNAME = "";
switch (navigator.appName.toLowerCase()) {
    case "netscape":
        BROWSERNAME = "ns";
        break;
    case "microsoft internet explorer":
    default:
        BROWSERNAME = "ie";
        break;
}

var titlea = new Array();
var texta = new Array();
var linka = new Array();
var trgfrma = new Array();
var heightarr = new Array();
var cyposarr = new Array();

cyposarr[0] = 0;
cyposarr[1] = 1;
cyposarr[2] = 2;
cyposarr[3] = 3;
cyposarr[4] = 4;
cyposarr[5] = 5;
cyposarr[6] = 6;

titlea[0] = " Ajax is Here!";
texta[0] = "Convert and creat ajax pages just as easy as it never been. see how the ajax magic is working.";
linka[0] = "index.html?l=pages/tout/ajax.html";
trgfrma[0] = "_blank";

titlea[1] = " Build 1.0.9 is released";
texta[1] = "The new build of JSPX 1.0.9 is released and available for free download";
linka[1] = "index.html?l=pages/build/download.html";
trgfrma[1] = "_blank";

titlea[2] = " Demo + Project";
texta[2] = "See the simple 3 steps of starting developing in JSPX, Download JSPX Demo Project...";
linka[2] = "index.html?l=pages/tout/helloweb.html";
trgfrma[2] = "_blank";

titlea[3] = " XML Schema jspx.xsd file has been uploaded";
texta[3] = "It's my pleasure to announce that an XML Schema file (jspx.xsd) has been developed for the JSPX framework";
linka[3] = "https://sourceforge.net/forum/forum.php?forum_id=900786";
trgfrma[3] = "_blank";

titlea[4] = " Features";
texta[4] = "Some of the many features in JSPX framework..";
linka[4] = "index.html?l=pages/jspx/features.html";
trgfrma[4] = "_blank";

titlea[5] = " JSPX Roadmap";
texta[5] = "2008 was not the end of the journey for the framework. 2009 has its plans for JSPX .";
linka[5] = "index.html?l=pages/jspx/roadmap.html";
trgfrma[5] = "_blank";

titlea[6] = " Localization";
texta[6] = "Not only resource bundle localization is supported in JSPX, also pages can be localized i.e. (myPage.jspx, myPage_fr.jspx) .";
linka[6] = "index.html?l=pages/jspx/features.html#localization";
trgfrma[6] = "_blank";

var mc = 7;


var inoout = false;
var spage;
var cvar = 0, say = 0, tpos = 0, enson = 0, hidsay = 0, hidson = 0;
var tmpv;
tmpv = 180 - 8 - 8 - (2 * 1);
var psy = new Array();
divtextb = "<div id=d";
divtextb2 = "<div id=dz";
divtev1 = " onmouseover=\"mdivmo(";
divtev2 = ")\" onmouseout =\"restime(";
divtev3 = ")\" onclick=\"butclick(";
divtev4 = ")\"";

divtexts = " style=\"position:absolute; visibility:hidden; width:" + tmpv + "; COLOR: 1281C2;  left:0;  top:0;  FONT-FAMILY: Calibri,Tahoma,Arial;  FONT-SIZE: 8pt;  FONT-STYLE: normal;  FONT-WEIGHT: normal;  TEXT-DECORATION: none;  margin:0px;  LINE-HEIGHT: 12pt;  text-align:left; padding:0px; \">";
ns6span = " style=\"position:relative;  COLOR: 000000;  width:" + tmpv + ";  FONT-FAMILY: verdana,arial,helvetica;  FONT-SIZE: 9pt;  FONT-STYLE: normal;  FONT-WEIGHT: bold;  TEXT-DECORATION: none;  LINE-HEIGHT: 14pt;  text-align:left; padding:0px; \"";
uzun = "<div id=\"enuzun\" style=\"position:absolute; left:0; top:0; \">";
uzun2 = "<div id=\"enuzun2\" style=\"position:absolute; left:0; top:0; \">";
var uzunobj = null, uzunobj2 = null;
var uzuntop = 0;
var toplay = 0;
function mdivmo(gnum, gnum5) {
    inoout = true;
    if ((linka[gnum].length) > 2) {
        if (gnum5 == 1) {
            objd = document.getElementById('dz' + gnum);
            objd2 = document.getElementById('hgdz' + gnum);
        } else {
            objd = document.getElementById('d' + gnum);
            objd2 = document.getElementById('hgd' + gnum);
        } objd.style.color = "#1281C2";
        objd2.style.color = "#1281C2";
        objd.style.cursor = 'pointer';
        objd2.style.cursor = 'pointer';
        objd.style.textDecoration = 'underline';
        objd2.style.textDecoration = 'underline';
        window.status = "" + linka[gnum];
    }
} function restime(gnum2, gnum5) {
    inoout = false;
    if (gnum5 == 1) {
        objd = document.getElementById('dz' + gnum2);
        objd2 = document.getElementById('hgdz' + gnum2);
    } else {
        objd = document.getElementById('d' + gnum2);
        objd2 = document.getElementById('hgd' + gnum2);
    } objd.style.color = "#1281C2";
    objd2.style.color = "#000000";
    objd.style.textDecoration = 'none';
    objd2.style.textDecoration = 'none';
    window.status = "";
} function butclick(gnum3) {
    if (linka[gnum3].substring(0, 11) == "javascript:") {
        eval("" + linka[gnum3]);
    } else {
        if ((linka[gnum3].length) > 3) {
            if ((trgfrma[gnum3].indexOf("_parent") > -1)) {
                eval("parent.window.location='" + linka[gnum3] + "'");
            } else if ((trgfrma[gnum3].indexOf("_top") > -1)) {
                eval("top.window.location='" + linka[gnum3] + "'");
            } else {
                window.open('' + linka[gnum3], '' + trgfrma[gnum3]);
            }
        }
    }
} function dotrans() {
    if (inoout == false) {
        uzuntop--;
        if (uzuntop < (-1 * toplay)) {
            uzuntop = 0;
            uzunobj2.style.top = 220 + "px";
        } uzunobj.style.top = uzuntop + "px";
        if ((uzuntop + toplay) < 220) {
            uzunobj2.style.top = "" + (uzuntop + toplay) + "px";
        }
    } if (psy[(uzuntop * (-1)) + 8] == 3) {
        setTimeout('dotrans()', 2000 + 35);
    } else {
        setTimeout('dotrans()', 35);
    }
} function initte2() {
    i = 0;
    for (i = 0;
 i < mc;
 i++) {
        objd = document.getElementById('d' + i);
        heightarr[i] = objd.offsetHeight;
    } toplay = 8;
    for (i = 0;
 i < mc;
 i++) {
        objd = document.getElementById('d' + i);
        objd2 = document.getElementById('dz' + i);
        objd.style.visibility = "visible";
        objd2.style.visibility = "visible";
        objd.style.top = "" + toplay + "px";
        objd2.style.top = "" + toplay + "px";
        psy[toplay] = 3;
        toplay = toplay + heightarr[i] + 10;
    } uzunobj = document.getElementById('enuzun');
    uzunobj.style.left = 8 + "px";
    uzunobj.style.height = toplay + "px";
    uzunobj.style.width = tmpv + "px";
    uzunobj.style.top = 220 + "px";
    uzunobj2 = document.getElementById('enuzun2');
    uzunobj2.style.left = 8 + "px";
    uzunobj2.style.height = toplay + "px";
    uzunobj2.style.width = tmpv + "px";
    uzunobj2.style.top = 220 + "px";
    uzuntop = 220;
    dotrans();
}

function initte() {
    i = 0;
    innertxt = "" + uzun;
    for (i = 0;
 i < mc;
 i++) {
        innertxt = innertxt + "" + divtextb + "" + i + "" + divtev1 + i + ",0" + divtev2 + i + ",0" + divtev3 + i + divtev4 + divtexts + "<div id=\"hgd" + i + "\"" + ns6span + ">" + titlea[i] + "<br></div>" + texta[i] + "</div>";
    } innertxt = innertxt + "</div>";
    innertxt = "" + innertxt + uzun2;
    for (i = 0;
 i < mc;
 i++) {
        innertxt = innertxt + "" + divtextb2 + "" + i + "" + divtev1 + i + ",1" + divtev2 + i + ",1" + divtev3 + i + divtev4 + divtexts + "<div id=\"hgdz" + i + "\"" + ns6span + ">" + titlea[i] + "<br></div>" + texta[i] + "</div>";
    } innertxt = innertxt + "</div>";
    spage = document.getElementById('spagens');
    if (BROWSERNAME=="ns") {
        spage.style.position = 'relative';
        spage.style.width = '175px';
    }
    spage.innerHTML = "" + innertxt;
    spage.style.left = "0px";
    spage.style.top = "0px";
    setTimeout('initte2()', 500);
} 
initte (); 
