﻿
//var windowWidth = screen.availWidth-20;

//var stop = 0;


function ThumbBlack() {
    var ThumbImg = document.getElementById("ThumbImg");
    ThumbImg.setAttribute("src", "/images/thumb_black.jpg");
}

function ThumbNorm() {
    var ThumbImg = document.getElementById("ThumbImg");
    ThumbImg.setAttribute("src", "/images/thumb.jpg");
}

function al(){
    alert("hi");
}

function resizeMe2(stop) {

}

function recheck(imgSrc, myHeight, myWidth, AR, widthTD, heightTD) {
    if (imgSrc.getAttribute("height") > myHeight - 140) {

        imgSrc.setAttribute("height", myHeight - 120 - 20);
        imgSrc.setAttribute("width", imgSrc.offsetHeight * AR);
    }
    if (imgSrc.getAttribute("width") > myWidth - 100) {

        imgSrc.setAttribute("width", myWidth - 250);
        imgSrc.setAttribute("height", imgSrc.offsetWidth / AR);
    }
    return 0;
}

/*function addLoadEvent(func) {
    var oldonload = window.onload;
    if (typeof window.onload != 'function') {
        //window.onload = func;
    } else {
        window.onload = function () {
            if (oldonload) {
                oldonload();
            }
            func();
        }
    }
}*/

//window.onresize = resizeMe2;
