function changePicture(name, src) {
    if (document.images && (preload == true)) {
        document.getElementById(name).src = src;
    }
}

function openPicture(url) {
    var height = 660;
    var width = 800;
    var x, y = 10;
    if (window.screen) {
        x = (screen.availWidth - width) / 2;
        y = (screen.availHeight - height) / 2;
    }
    var properties = 'resizable,width=' + width + ',height=' + height + ',screenX=' + x + ',screenY=' + y + ',left=' + x + ',top=' + y;
    var win = window.open(url, '_blank', properties);
}

//Classes

function class_Pictures() {
    this.href = "";
    this.img = new Image();
    
}

