/**
 * @author ableeb
 */
function MM_preloadImages(){ //v3.0
    var d = document;
    if (d.images) {
        if (!d.MM_p)
            d.MM_p = new Array();
        var i, j = d.MM_p.length, a = MM_preloadImages.arguments;
        for (i = 0; i < a.length; i++)
            if (a[i].indexOf("#") != 0) {
                d.MM_p[j] = new Image;
                d.MM_p[j++].src = a[i];
            }
    }
}

function MM_swapImgRestore(){ //v3.0
    var i, x, a = document.MM_sr;
    for (i = 0; a && i < a.length && (x = a[i]) && x.oSrc; i++)
        x.src = x.oSrc;
}

function MM_findObj(n, d){ //v4.01
    var p, i, x;
    if (!d)
        d = document;
    if ((p = n.indexOf("?")) > 0 && parent.frames.length) {
        d = parent.frames[n.substring(p + 1)].document;
        n = n.substring(0, p);
    }
    if (!(x = d[n]) && d.all)
        x = d.all[n];
    for (i = 0; !x && i < d.forms.length; i++)
        x = d.forms[i][n];
    for (i = 0; !x && d.layers && i < d.layers.length; i++)
        x = MM_findObj(n, d.layers[i].document);
    if (!x && d.getElementById)
        x = d.getElementById(n);
    return x;
}

function MM_swapImage(){ //v3.0
    var i, j = 0, x, a = MM_swapImage.arguments;
    document.MM_sr = new Array;
    for (i = 0; i < (a.length - 2); i += 3)
        if ((x = MM_findObj(a[i])) != null) {
            document.MM_sr[j++] = x;
            if (!x.oSrc)
                x.oSrc = x.src;
            x.src = a[i + 2];
        }
}

function flvFLSS4(){//v1.0
    var v1 = arguments, v2 = v1[0], v3 = MM_findObj(v2);
    if (v3 && v3.LSS7 != null) {
        clearTimeout(v3.LSS7);
    }
}

function flvFLSS3(){//v1.0
    var v1 = arguments, v2 = v1[0], v3 = MM_findObj(v2), v4 = v1[1], v5 = '', v6;
    if (!v3.LSS4.complete) {
        v6 = "flvFLSS3('" + v2 + "'," + v4 + ")";
        setTimeout(v6, 50);
        return;
    }
    if (v3.LSS3[v4][1] != "") {
        v5 += '<a href="' + v3.LSS3[v4][1] + '"';
        if (v3.LSS2 != "") {
            v5 += ' target="' + v3.LSS2 + '"';
        }
        v5 += '>';
    }
    v5 += '<img src="' + v3.LSS3[v4][0] + '" border="0" alt="">';
    if (v3.LSS3[v4][1] != "") {
        v5 += '</a>';
    }
    if (v3.LSS3[v4][2] != "") {
        v5 += '<br>' + unescape(v3.LSS3[v4][2]);
    }
    if (document.layers) {
        v3.document.open();
        v3.document.write(v5);
        v3.document.close();
    }
    else {
        v3.innerHTML = v5;
    }
}

function flvFLSS2(){//v1.0
    var v1 = arguments, v2 = v1[0], v3 = MM_findObj(v2), v4 = v1[1], v5 = v1[2], v6, v7, v8;
    if (v3 && v3.LSS3) {
        flvFLSS4(v2);
        if (v4 == 1) {
            v6 = v3.LSS8 + 1;
            if (v6 > v3.LSS3.length - 1) {
                v6 = 0;
                if (v3.LSS9 == 0) {
                    return;
                }
            }
            v8 = v3.LSS3[v6][0];
        }
        else {
            v6 = v3.LSS8 - 1;
            if (v6 < 0) {
                v6 = v3.LSS3.length - 1;
                if (v3.LSS9 == 0) {
                    return;
                }
            }
            v8 = v3.LSS3[v6][0];
        }
        v3.LSS8 = v6;
        if (!document.layers && !v3.LSS6) {
            v3.LSS4 = new Image();
        }
        v3.LSS4.src = v8;
        flvFLSS3(v2, v6);
        if (v5 == 1) {
            v7 = "flvFLSS2('" + v2 + "'," + v4 + "," + v5 + ")";
            v3.LSS7 = setTimeout(v7, v3.LSS5);
        }
    }
}

function flvFLSS1(){//v1.0
    // Copyright 2003, Marja Ribbers-de Vroed, FlevOOware (www.flevooware.nl/dreamweaver/)
    var v1 = arguments, v2 = v1[0], v3 = MM_findObj(v2), v4, v5;
    if (v3) {
        v3.LSS5 = v1[1];
        v5 = v1[2];
        v3.LSS9 = v1[3];
        v3.LSS2 = v1[4];
        v3.LSS3 = new Array();
        for (var v6 = 5; v6 < v1.length; v6 += 3) {
            v3.LSS3[v3.LSS3.length] = new Array(v1[v6], v1[v6 + 1], v1[v6 + 2]);
        }
        v3.LSS8 = 0;
        v3.LSS6 = (navigator.userAgent.toLowerCase().indexOf("netscape6") != -1);
        v3.LSS4 = new Image();
        v3.LSS4.src = v1[5];
        flvFLSS3(v2, 0);
        if (v5) {
            v4 = "flvFLSS2('" + v2 + "',1," + v5 + ")";
            v3.LSS7 = setTimeout(v4, v3.LSS5);
        }
    }
}

