Resize Javascript slideshow from pixels to %
<p>currently my JS slideshow is resizing my images to 1800px height and 1000px width... How can i change that to 100% width/100% height??</p>

<p>I've almost all the code as i'm not sure if px is declared elsewhere (i've removed some to remain within the character limit), but if you ctr+F 1800 &amp; 1000 you can see find where it's declared</p>

<p>Thanks!</p>

<pre><code>    uagent = window.navigator.userAgent.toLowerCase();
IEB = (uagent.indexOf('msie') != -1) ? true : false;
OPB = (uagent.indexOf('opera') != -1) ? true : false;
CRB = (uagent.indexOf('chrome') != -1) ? true : false;
SFB = (uagent.indexOf('safari') != -1) ? true : false;
FFB = (uagent.indexOf('firefox') != -1) ? true : false;
var scompat = document.compatMode;
function secondcomplate() {
    this.c = 1;
}
function slide1ScSlideShow() {
    var CursorStr = "default";
    var Xpos = 0;
    var yy = 0;
    function CreateThumbnails() {
        if (thumbgoster != 1) {
            return;
        }
        tleft = 0;
        ttop = 0;
        lll1llll = 0;
        lll1lllll = 0;
        lllllllllll = 70 + 2 * 2 + 2 * 1;
        llllllllllll = 70 + 2 * 2 + 2 * 1;
        if (0 == 0) {
            ll1llll = llllllllllll;
            if ((IEB == true) &amp;&amp; (scompat == "BackCompat")) {
                lll1lllll = llllllllllll + (2 * 0) + (0 + 0);
                lll1llll = ll1lll + (2 * 0) + (0 + 0);
            } else {
                lll1lllll = llllllllllll + (0 + 0);
                lll1llll = ll1lll + (0 + 0);
            }
            lllllllll = (5 * lllllllllll) + ((5 - 1) * 4);
            llllllllll = llllllllllll;
        } else {
            ll1lll = lllllllllll;
            if ((IEB == true) &amp;&amp; (scompat == "BackCompat")) {
                lll1llll = lllllllllll + (2 * 0) + (0 + 0);
                lll1lllll = ll1llll + (2 * 0) + (0 + 0);
            } else {
                lll1llll = lllllllllll + (0 + 0);
                lll1lllll = ll1llll + (0 + 0);
            }
            lllllllll = lllllllllll;
            llllllllll = (5 * llllllllllll) + ((5 - 1) * 4);
        }
        MoveIcWidth = lllllllll - 2 * lllllllllll;
        MoveIcHeight = llllllllll - 2 * llllllllllll;
        lll1 = spageObj.appendChild(document.createElement("DIV"));
        lll1.style.position = "absolute";
        lll1.style.left = "" + 10 + "px";
        lll1.style.top = "" + 160 + "px";
        lll1.style.borderStyle = "" + 'solid';
        lll1.style.borderWidth = "" + 0 + "px";
        lll1.style.borderColor = "#000000";
        lll1.style.zIndex = 0 + 4;
        lll1.style.width = "" + lll1llll + "px";
        lll1.style.height = "" + lll1lllll + "px";
        lll1.style.visibility = "inherit";
        lll1.style.backgroundColor = "";
        lll1.style.backgroundImage = "";
        lll1.style.backgroundRepeat = "no-repeat";
        lll1.style.backgroundPosition = "" + 0 + "px " + 0 + "px";
        l1lllllllll = lll1.appendChild(document.createElement("DIV"));
        l1lllllllll.id = "thumbsid";
        l1lllllllll.style.position = "absolute";
        l1lllllllll.style.width = "" + ll1lll + "px";
        l1lllllllll.style.height = "" + ll1llll + "px";
        l1lllllllll.style.visibility = "inherit";
        l1lllllllll.style.overflow = "hidden";
        l1lllllllll.style.left = "" + 0 + "px";
        l1lllllllll.style.top = "" + 0 + "px";
        l1lllllllll.style.zIndex = 0 + 4;
        l1lllllllll.style.borderStyle = "solid";
        l1lllllllll.style.borderWidth = "0px";
        l1lllllllll.onmousemove = ffffffff;
        l1lllllllll.onmouseover = ff;
        l1lllllllll.onmouseout = fff;
        l1llllllllll = l1lllllllll.appendChild(document.createElement("DIV"));
        l1llllllllll.id = "altid";
        l1llllllllll.style.position = "absolute";
        l1llllllllll.style.width = "" + ll1lll + "px";
        l1llllllllll.style.height = "" + ll1llll + "px";
        l1llllllllll.style.visibility = "inherit";
        l1llllllllll.style.overflow = "hidden";
        l1llllllllll.style.left = "0px";
        l1llllllllll.style.top = "0px";
        l1llllllllll.style.borderStyle = "solid";
        l1llllllllll.style.borderWidth = "0px";
        l1llllllllll.style.borderColor = "#000000";
        l1llllllllll.style.zIndex = 0;
        l1llllllllll.style.backgroundColor = "#000000";
        if (IEB == true) {
            l1llllllllll.style.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=1)";
        } else {
            l1llllllllll.style.opacity = 0.01;
        }
        l1lllllllllll = l1lllllllll.appendChild(document.createElement("DIV"));
        l1lllllllllll.id = "movingdiv";
        l1lllllllllll.style.position = "absolute";
        l1lllllllllll.style.left = "0px";
        l1lllllllllll.style.top = "0px";
        l1lllllllllll.style.zIndex = 1;
        l1lllllllllll.style.width = "" + lllllllll + "px";
        l1lllllllllll.style.height = "" + llllllllll + "px";
        l1lllllllllll.style.visibility = "inherit";
        l1lllllllllll.style.overflow = "visible";
        l1lllllllllll.style.borderStyle = "solid";
        l1lllllllllll.style.borderWidth = "0px";
        l1lllllllllll.style.borderColor = "#000000";
        var lll1llllll = 0;
        var lll1lllllll = 0;
        if (1 == 1) {
            lll1llllll = 70 - (2 * 0);
            lll1lllllll = 70 - (2 * 0);
        } else {
            lll1llllll = 60;
            lll1lllllll = 60;
        }
        for (i = 0; i &lt; 5; i++) {
            if (0 == 0) {
                tleft = ((i * lllllllllll) + (i * 4));
                ttop = 0;
            } else {
                tleft = 0;
                ttop = ((i * llllllllllll) + (i * 4));
            }
            lll1l = l1lllllllllll.appendChild(document.createElement("DIV"));
            lll1l.id = "thumb" + i;
            lll1l.style.position = "absolute";
            lll1l.style.left = "" + tleft + "px";
            lll1l.style.top = "" + ttop + "px";
            lll1l.style.cursor = 'pointer';
            lll1l.indx = i;
            lll1l.style.overflow = "hidden";
            lll1l.style.width = "" + (lllllllllll) + "px";
            lll1l.style.height = "" + (llllllllllll) + "px";
            lll1l.hs = 0;
            lll1l.mouse_pos = 0;
            lll1l.onclick = ffffffffffff;
            lll1l.onmouseover = fffff;
            lll1l.onmouseout = ffff;
            l1llllllllllll = lll1l.appendChild(document.createElement("DIV"));
            l1llllllllllll.style.zIndex = 1;
            l1llllllllllll.style.padding = "" + 2 + "px";
            l1llllllllllll.style.cursor = 'pointer';
            l1llllllllllll.style.backgroundColor = '';
            l1llllllllllll.style.borderStyle = "" + 'solid';
            l1llllllllllll.style.borderWidth = "" + 1 + "px";
            l1llllllllllll.style.borderColor = "" + "#999999";
            l1llllllllllll.indx = i;
            l1llllllllllll.style.overflow = "hidden";
            if ((IEB == true) &amp;&amp; (scompat == "BackCompat")) {
                l1llllllllllll.style.width = "" + (lllllllllll) + "px";
                l1llllllllllll.style.height = "" + (llllllllllll) + "px";
            } else {
                l1llllllllllll.style.width = "" + (lllllllllll - (2 * 2 + 2 * 1)) + "px";
                l1llllllllllll.style.height = "" + (llllllllllll - (2 * 2 + 2 * 1)) + "px";
            }
            l1llllllllllll.style.backgroundImage = "";
            l1llllllllllll.style.backgroundRepeat = "no-repeat";
            l1llllllllllll.style.backgroundPosition = "" + 0 + "px " + 0 + "px";
            l1llllllllllll.style.color = "#000000";
            l1llllllllllll.style.fontFamily = "Arial,Verdana,Tahoma";
            l1llllllllllll.style.fontSize = 12 + "pt";
            l1llllllllllll.style.fontStyle = "normal";
            l1llllllllllll.style.fontWeight = "normal";
            l1llllllllllll.style.textAlign = "center";
            lll1ll = l1llllllllllll.appendChild(document.createElement("IMG"));
            lll1ll.src = thumbimgstr[i];
            lll1ll.style.display = "block";
            lll1ll.style.position = "relative";
            lll1ll.style.left = "0px";
            lll1ll.style.top = "0px";
            lll1ll.style.width = "" + lll1llllll + "px";
            lll1ll.style.height = "" + lll1lllllll + "px";
            lll1ll.style.margin = "0px auto 0px auto";
            lll1ll.style.borderStyle = "" + "solid";
            lll1ll.style.borderWidth = "" + 0 + "px";
            lll1ll.style.borderColor = "" + "#000000";
            if (0 == 0) {
                lll1ll.style.styleFloat = "none";
                lll1ll.style.cssFloat = "none";
            } else if (0 == 1) {
                lll1ll.style.styleFloat = "left";
                lll1ll.style.cssFloat = "left";
            } else if (0 == 2) {
                lll1ll.style.styleFloat = "right";
                lll1ll.style.cssFloat = "right";
            }

        ll1llllllllllll.innerHTML = "" + "" + (gcur + 1) + "&amp;nbsp;of&amp;nbsp;" + 5 + "";
    }
    function f1fffffffffffff() {
        if (0 != 1) {
            return;
        }
        ll1llllllllllll = spageObj.appendChild(document.createElement("DIV"));
        ll1llllllllllll.style.position = "absolute";
        ll1llllllllllll.style.zIndex = 0 + 6;
        ll1llllllllllll.style.display = "block";
        ll1llllllllllll.style.left = "" + 0 + "px";
        ll1llllllllllll.style.top = "" + 0 + "px";
        ll1llllllllllll.style.borderWidth = "" + 0 + "px";
        ll1llllllllllll.style.borderStyle = "solid";
        ll1llllllllllll.style.visibility = "inherit";
        ll1llllllllllll.style.textAlign = "left";
        ll1llllllllllll.style.cursor = 'default';
        ll1llllllllllll.style.overflow = "visible";
        ll1llllllllllll.style.fontFamily = "Verdana";
        ll1llllllllllll.style.fontSize = 10 + "pt";
        ll1llllllllllll.style.fontStyle = "normal";
        ll1llllllllllll.style.fontWeight = "bold";
        ll1llllllllllll.style.color = "#000000";
        ll1llllllllllll.innerHTML = "";
    }

        Beklemedemi = 1;
        if (llllllll == 1) {
            if (!((ReachedTheEnd == 1) &amp;&amp; (1 == 0))) {
                if (tam == 0) {
                    if (ll1lllllll == 0) {
                        devam(fname, 4000);
                    }
                } else {
                    if (ll1lllllll == 0) {
                        ll1ll = setTimeout('slide1.' + fname + '()', 4000);
                    }
                }
            } else {
                ll1ll = setTimeout('slide1.ff1ffff()', 4000);
            }
        }
    }
    function ContinueSlideshow() {
        Beklemedemi = 1;
        Sonraki();
        if ((1 == 0) || (1 == 1)) {} else {
            if ((1 == 3) || (1 == 5)) {
                lllll = icheight;
                lllllllllllll[lll].style.top = "" + lllll + "px";
            } else {
                lllll = icwidth;
                lllllllllllll[lll].style.left = "" + lllll + "px";
            }
        }
        if ((1 != 0) &amp;&amp; (1 != 1)) {
            zindx();
        }
        if (llllllll == 1) {
            if (!((ReachedTheEnd == 1) &amp;&amp; (1 == 0))) {
                if (tam == 0) {
                    if (ll1lllllll == 0) {
                        devam("f1ffff", 50);
                    }
                } else {
                    if (ll1lllllll == 0) {
                        ll1ll = setTimeout("slide1." + "f1ffff" + "()", 50);
                    }
                }
            } else {
                ll1ll = setTimeout('slide1.ff1ffff()', 50);
            }
        }
    }
    function Sonraki() {
        ll = lll;
        lll = lll + 1;
        if (lll &gt;= vnumbofimages) {
            lll = 0;
            ReachedTheEnd = 1;
        } else {
            ReachedTheEnd = 0;
        }
    }
    function zindx() {
        lllllllllllll[lll].style.visibility = "visible";
        lllllllllllll[ll].style.zIndex = 2;
        lllllllllllll[lll].style.zIndex = 3;
    }
    function DoJustSwitch() {
        if (0 == 1) {
            fffffffffffffff();
        }
        lllllllllllll[lll].style.visibility = "visible";
        lllllllllllll[ll].style.visibility = "hidden";
        f1ffffffffffffff(trans_func_str);
    }
    function f1f(c, n) {
        ll = c;
        lll = n;
        if (1 != 1) {
            lllllllllllll[ll].style.visibility = "visible";
            lllllllllllll[lll].style.visibility = "visible";
        }
        lllllllllllll[ll].style.zIndex = 2;
        lllllllllllll[lll].style.zIndex = 3;
    }
    function ff1ffff() {
        if (ActionofLastImage == 1) {
            if (URLtoGo.length &gt; 3) {
                if (URLtoGo.substring(0, 11) == "javascript:") {
                    eval("" + URLtoGo);
                    return;
                } else {
                    if (IEB) {
                        window.open('' + URLtoGo, '_self');
                    } else {
                        window.open('' + URLtoGo, '_self');
                    }
                }
            }
        }
    }
    function devam(fm, pt) {
        if ((imgarr[lll].c == 1) &amp;&amp; (imgarr[ll].c == 1)) {
            ll1ll = setTimeout('slide1.' + fm + '()', pt);
        } else {
            ll1ll = setTimeout('slide1.devam("' + fm + '",' + pt + ')', 4000);
        }
        var cagain = 1;
        for (i = 0; i &lt; vnumbofimages; i++) {
            if (imgarr[i].c == 1) {} else {
                cagain = 0;
            }
        }
        if (cagain == 1) {
            tam = 1;
        }
    }
    function ff1fffff(msec) {
        if (tam == 0) {
            devam(trans_func_str, msec);
        } else {
            if (1 == 0) {
                ll1ll = setTimeout("slide1.DoJustSwitch()", msec);
            } else if (1 == 1) {
                ll1ll = setTimeout("slide1.f1ffff()", msec);
            } else {
                ll1ll = setTimeout("slide1.f1fffffffffffffff()", msec);
            }
        }
    }
    function ff1ffffff() {
        if (descgoster == 1) {
            ff1ff();
        }
        if (thumbgoster == 1) {
            CreateThumbnails();
        }
        for (i = 0; i &lt; 5; i++) {
            lllllllllllll[i] = document.getElementById("slide1d" + i);
        }
        if (0 == 1) {
            f1fffffffffffff();
        }
        if (0 == 1) {
            f1fffffffffff();
        }
        if ((0 == 1) || (0 == 1) || (0 == 1) || (0 == 1)) {
            f1ffffffffff();
        }
        if (5 &gt; 0) {
            lllllllllllll[ll].style.visibility = "visible";
        }
        if (5 &gt; 1) {
            ll = 0;
            lll = 0;
            llll = 0;
            Sonraki();
            if (0 == 1) {
                ffffffffffffff();
            }
            fffffffffffff();
            if (1 == 0) {} else if (1 == 1) {} else if (1 == 2) {
                lllll = icwidth;
                lllllllllllll[lll].style.left = "" + lllll + "px";
                zindx();
            } else if (1 == 3) {
                lllll = icheight;
                lllllllllllll[lll].style.top = "" + lllll + "px";
                zindx();
            } else if (1 == 4) {
                lllll = icwidth;
                lllllllllllll[lll].style.left = "" + lllll + "px";
                zindx();
            } else if (1 == 5) {
                lllll = icheight;
                lllllllllllll[lll].style.top = "" + lllll + "px";
                zindx();
            } else if (1 == 6) {
                zindx();
            }
            if (ll1lllllll == 0) {
                ff1fffff(4000);
            }
        }
    }
    function ff1fffffff() {
        spageObj = DisObj.appendChild(document.createElement("DIV"));
        spageObj.style.position = "relative";
        spageObj.style.width = "" + cwidth + "px";
        spageObj.style.height = "" + cheight + "px";
        spageObj.style.overflow = "hidden";
        spageObj.style.borderStyle = "" + "solid";
        spageObj.style.borderWidth = "" + 0 + "px";
        spageObj.style.borderColor = "#" + "CCCCCC";
        if (0 == 1) {
            spageObj.style.backgroundColor = "" + "";
        }
        if (0 == 1) {
            spageObj.style.backgroundImage = "";
            spageObj.style.backgroundRepeat = "no-repeat";
            spageObj.style.backgroundPosition = "" + 0 + "px " + 0 + "px";
        }
        spageObj.style.visibility = "inherit";
        if ((0 == 1) || (0 == 1) || (0 == 1) || (0 == 1)) {
            spageObj.onmouseover = ff1ffffffff;
            spageObj.onmouseout = ff1fffffffff;
        }
        spageIcObj = spageObj.appendChild(document.createElement("DIV"));
        spageIcObj.style.position = "relative";
        spageIcObj.style.width = "" + icwidth + "px";
        spageIcObj.style.height = "" + icheight + "px";
        spageIcObj.style.overflow = "hidden";
        spageIcObj.style.margin = "0px";
        spageIcObj.style.padding = "0px";
        spageIcObj.style.zIndex = (0 + 1);
        if (IEB == true) {
            spageIcObj.style.filter = 'FILTER: progid:DXImageTransform.Microsoft.Fade(Overlap=1.00,duration=0.6,enabled=false);';
            spageIcObj.onfilterchange = f1ff;
        }
        dstr1 = '&lt;div id="';
        dstr2 = '" style="position:absolute;visibility:hidden;left:0px;top:0px;padding:0px;margin:0px;overflow:hidden;"&gt;';
        dstr23 = '&lt;table cellspacing="0" cellpadding="0" style="position:relative;left:0px;top:0px;padding:0px;margin:0px;"&gt;&lt;tr&gt;&lt;td style="width:' + icwidth + 'px;height:' + icheight + 'px;left:0px;top:0px;padding:0px;margin:0px;text-align:' + 'center' + ';vertical-align:' + 'middle' + ';"&gt;';
        dstr3 = '&lt;img id="img';
        dstr4 = '" src="';
        dstr5 = '"  border="0" style="position:relative;' + 'left:0px;top:0px;' + 'border-style:' + 'solid' + ';border-width:' + '0' + 'px;border-color:' + '#CCCCCC' + ';' + 'width:' + icwidth + 'px;height:' + icheight + 'px;' + '" alt=""&gt;&lt;/img&gt;';
        dstr56 = '&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;';
        dstr6 = '&lt;/div&gt;';
        i = 0;
        innertxt = "";
        lnkstr = "";
        lnkstrclose = "";
        for (i = 0; i &lt; 5; i++) {
            if (linkstr[i].length &gt; 2) {
                lnkstr = '&lt;a href="' + linkstr[i] + '" target="' + targetstr[i] + '" style="text-decoration: none;"&gt;';
                lnkstrclose = "&lt;/a&gt;";
            } else {
                lnkstr = '';
                lnkstrclose = '';
            }
            innertxt = innertxt + dstr1 + "slide1d" + i + dstr2 + dstr23 + lnkstr + dstr3 + i + dstr4 + imgstr[i] + dstr5 + lnkstrclose + dstr56 + dstr6;
        }
        spageIcObj.innerHTML = "" + innertxt;
        setTimeout('slide1.ff1ffffff()', 100);
    }
    function Bas() {
        DisObj = document.getElementById('slide1sodis');
        if (!DisObj) {
            setTimeout('slide1.Bas()', 200);
            return;
        }
        ff1fffffff();
    }
    var imgarr = new Array();
    var imgstr = new Array();
    var linkstr = new Array();
    var targetstr = new Array();
    var titarr = new Array();
    var desarr = new Array();
    var thumbimgstr = new Array();
    var thumbtextarr = new Array();
    imgarr[0] = new Image();
    imgarr[0].c = 0;
    imgarr[0].onload = secondcomplate;
    imgarr[0].src = slide1foldername + '_MG_5000.jpg';
    imgstr[0] = slide1foldername + '_MG_5000.jpg';
    thumbimgstr[0] = slide1foldername + '_MG_5000.jpg';
    linkstr[0] = '';
    targetstr[0] = "";
    titarr[0] = "";
    desarr[0] = "";
    thumbtextarr[0] = "";
    imgarr[1] = new Image();
    imgarr[1].c = 0;
    imgarr[1].onload = secondcomplate;
    imgarr[1].src = slide1foldername + '_MG_5247.jpg';
    imgstr[1] = slide1foldername + '_MG_5247.jpg';
    thumbimgstr[1] = slide1foldername + '_MG_5247.jpg';
    linkstr[1] = '';
    targetstr[1] = "";
    titarr[1] = "";
    desarr[1] = "";
    thumbtextarr[1] = "";
    imgarr[2] = new Image();
    imgarr[2].c = 0;
    imgarr[2].onload = secondcomplate;
    imgarr[2].src = slide1foldername + '_MG_5267.jpg';
    imgstr[2] = slide1foldername + '_MG_5267.jpg';
    thumbimgstr[2] = slide1foldername + '_MG_5267.jpg';
    linkstr[2] = '';
    targetstr[2] = "";
    titarr[2] = "";
    desarr[2] = "";
    thumbtextarr[2] = "";
    imgarr[3] = new Image();
    imgarr[3].c = 0;
    imgarr[3].onload = secondcomplate;
    imgarr[3].src = slide1foldername + '2.jpg';
    imgstr[3] = slide1foldername + '2.jpg';
    thumbimgstr[3] = slide1foldername + '2.jpg';
    linkstr[3] = '';
    targetstr[3] = "";
    titarr[3] = "";
    desarr[3] = "";
    thumbtextarr[3] = "";
    imgarr[4] = new Image();
    imgarr[4].c = 0;
    imgarr[4].onload = secondcomplate;
    imgarr[4].src = slide1foldername + 'verbier.jpg';
    imgstr[4] = slide1foldername + 'verbier.jpg';
    thumbimgstr[4] = slide1foldername + 'verbier.jpg';
    linkstr[4] = '';
    targetstr[4] = "";
    titarr[4] = "";
    desarr[4] = "";
    thumbtextarr[4] = "";
    var spageObj = null;
    var spageIcObj = null;
    var llllllllllllll = new Array();
    var lllllllllllllll = new Array();
    var ThumbContArr = new Array();
    var lll1llArr = new Array();
    var ThumbCurtainImgArr = new Array();
    var lllllllllllll = new Array();
    var lllllll = 0;
    var llllllll = 1;
    var descgoster = 0;
    var thumbgoster = 1;
    var ll1lllllll = 0;
    var ActionofLastImage = 0;
    var URLtoGo = "";
    var moving_obj = null;
    var DisObj = null;
    var lll1llllllllll = null;
    var ll1ll = null;
    var ll = 0;
    var lll = 0;
    var llll = 0;
    var Beklemedemi = 1;
    var ReachedTheEnd = 0;
    var llllll = 0;
    var CY = 0;
    var Art = 0;
    var ll1l = null;
    var Tutyy = 0;
    var Kalan = 0;
    var TutFark = 0;
    var ll1llllllllll = 0;
    var ThumbScrollReason = 0;
    var tam = 0;
    var lllll = 0;
    var ll1llllllllllll = null;
    var l1l = null;
    var l1ll = null;
    var l1lll = null;
    var l1llll = null;
    var IsManualAction = 0;
    var DescCalcWidth = 0;
    var ll1lllllllll = 0;
    var DesAnimTimer = null;
    var ll1llllllll = 2;
    var vnumbofimages = 5;
    var varrrplc = null;
    var ll1lll = 340;
    var ll1llll = 340;
    var lllllllll = 0;
    var llllllllll = 0;
    var lllllllllll = 0;
    var llllllllllll = 0;
    var MoveIcWidth = 0;
    var MoveIcHeight = 0;
    var TBW = 0;
    var thumbmouseic = 0;
    var stepc = parseInt(20 * (0.6));
    var dif = 0.00;
    var op = 1.00;
    dif = (1.00 / stepc);
    var currstep = 20;
    var stepcount = 20;
    var ll1lllll = 100;
    var ll1llllll = 1.0;
    var BottomClip = 0;
    var XStep = 0;
    var YStep = 0;
    var stepsay = 0;
    var cwidth = 0;
    var cheight = 0;
    if ((IEB == true) &amp;&amp; (scompat == "BackCompat")) {
        cwidth = 1800;
        cheight = 1000;
    } else {
        cwidth = 1800 - 2 * (0);
        cheight = 1000 - 2 * (0);
    }
    var icwidth = 1800 - 2 * (0);
    var icheight = 1000 - 2 * (0);
    var bgd = 0;
    var trans_func_str = "f1ffff";
    if (thumbgoster == 1) {
        this.CreateThumbnails = CreateThumbnails;
        this.ff = ff;
        this.fff = fff;
        this.ffff = ffff;
        this.fffff = fffff;
        this.ffffff = ffffff;
        this.fffffff = fffffff;
        this.ffffffff = ffffffff;
        this.fffffffff = fffffffff;
        this.ffffffffff = ffffffffff;
        this.fffffffffff = fffffffffff;
        this.ffffffffffff = ffffffffffff;
        this.fff1f = fff1f;
        this.fff1 = fff1;
        this.thumbjustswitch = thumbjustswitch;
    }
    if (0 == 1) {
        this.ff1ff = ff1ff;
        this.ffffffffffffff = ffffffffffffff;
        this.fffffffffffffff = fffffffffffffff;
        this.ffffffffffffffff = ffffffffffffffff;
        this.fffffffffffffffff = fffffffffffffffff;
        this.ff1f = ff1f;
    }
    if ((0 == 1) || (0 == 1) || (0 == 1) || (0 == 1)) {
        this.f1ffffff = f1ffffff;
        this.f1fffffff = f1fffffff;
        this.f1ffffffff = f1ffffffff;
        this.f1fffffffff = f1fffffffff;
        this.f1ffffffffff = f1ffffffffff;
        this.ff1ffffffff = ff1ffffffff;
        this.ff1fffffffff = ff1fffffffff;
    }
    this.fffffffffffff = fffffffffffff;
    this.ff1fff = ff1fff;
    this.f1f = f1f;
    this.f1ff = f1ff;
    this.f1fff = f1fff;
    this.f1ffff = f1ffff;
    this.f1fffff = f1fffff;
    this.f1fffffffffff = f1fffffffffff;
    this.f1ffffffffffff = f1ffffffffffff;
    this.f1fffffffffffff = f1fffffffffffff;
    this.devam = devam;
    this.f1ffffffffffffff = f1ffffffffffffff;
    this.Sonraki = Sonraki;
    this.zindx = zindx;
    this.f1fffffffffffffff = f1fffffffffffffff;
    this.ff1ffff = ff1ffff;
    this.ff1fffff = ff1fffff;
    this.ff1ffffff = ff1ffffff;
    this.ff1fffffff = ff1fffffff;
    this.Bas = Bas;
    this.DoJustSwitch = DoJustSwitch;
    this.ContinueSlideshow = ContinueSlideshow;
}
document.write("&lt;div id=\"slide1sodis\"&gt;&lt;/div&gt;");
slide1 = new slide1ScSlideShow();
slide1.Bas();
</code></pre>
