
    function GetAdress() {
        this.zoomImage = false;
        this.zoomImageSrc = false;
        this.zoomImageWidth = false;
        this.zoomImageHeight = false;
    }
/*
    GetAdress.prototype.changeSizeScale = function() {

    }//changeSizeScale

    GetAdress.prototype.appendSizeGuide = function() {

    }//appendSizeGuide

    GetAdress.prototype.getSize = function(index, lang) {

        var keys = ['32', '34', '36', '38', '40', '42', 'onesize', 
            'j26', 'j27', 'j28', 'j29', 'j30', 'j31', 'j32', 
            'b65', 'b70', 'b75', 'b80', 'b85', 'b90', 'b95', 'b100', 
            's36', 's36½', 's37', 's37½', 's38', 's38½', 's39', 's39½', 's40', 's40½', 's41'];

        var ref = {};
        for ( var c = 0; c < keys.length; c++ ) ref[keys[c]] = c;
 
        var size = {
            xx:['xxs', 'xs', 's', 'm', 'l', 'xl'],
            dk:[32, 34, 36, 38, 40, 42, 'onesize', 26, 27, 28, 29, 30, 31, 32, 65, 70, 75, 80, 85, 90, 95, 100, 36, '36½', 37, '37½', 38, '38½', 39, '39½', 40, '40½', 41],
            it:[38, 40, 42, 44, 46, 48, 'onesize']
        }

        if ( lang !== undefined ) {
            return size[lang][ref[index]];
        } else {

            var result = {};

            for ( var lang in size ) {
                if ( size[lang][ref[index]] !== undefined ) 
                    result[lang] = size[lang][ref[index]];
            }//for

            return result;

        }//if/else

    }//getSize

    GetAdress.prototype.getSizeScheme = function() {

    }//getSizeScheme
*/

/*=============================
  ZOOM IMAGE FUNCTIONS
  =============================*/


    GetAdress.prototype.zoomOn = function() {

        if ( !this.zoomImage ) {

            resExt.theme.paths.gfx = "/graphics/";

            this.img = document.getElementById("productimage");
            this.focusimg = resExt.image({src:'/graphics/highlight.png',width:1000,height:1500,position:'absolute',top:'0px',left:'0px',zIndex:'2'})
            this.img.appendChild(this.focusimg);

            this.zoomDisplay = document.createElement("div");
            this.zoomDisplay.style.position = "absolute";
            this.zoomDisplay.style.zIndex = "5";
            this.zoomDisplay.style.top = "0px";
            this.zoomDisplay.style.left = "313px";
            this.zoomDisplay.style.width = "306px";
            this.zoomDisplay.style.height = "286px";
            this.zoomDisplay.style.backgroundColor = "#ffffff";
            this.zoomDisplay.style.overflow = "hidden";
            this.zoomDisplay.innerHTML = "&nbsp;";

            document.getElementById("productview").appendChild(this.zoomDisplay);

            this.zoomImage1 = document.createElement("img");
            this.zoomImage1.src = "/image.php?image=" + this.zoomImageSrc + "&width=" + this.zoomImageWidth + "&height=" + this.zoomImageHeight;
            this.zoomImage1.style.position = "absolute";
            this.zoomImage1.style.top = "0px";
            this.zoomImage1.style.left = "0px";
            this.zoomDisplay.appendChild(this.zoomImage1);

            this.activeLayer = document.createElement("div");
            this.activeLayer.style.position = "absolute";
            this.activeLayer.style.top = "0px";
            this.activeLayer.style.left = "0px";
            this.activeLayer.style.width = "311px";
            this.activeLayer.style.height = "441px";
            this.activeLayer.style.zIndex = "10";
            this.activeLayer.style.backgroundImage = 'url("/graphics/1x1_transparent.gif")';
            this.activeLayer.style.textAlign = "center";
            this.activeLayer.innerHTML = "Kør musen ud af billedet for at returnere til normal visning";
            resExt.addEventHandler(this.activeLayer,"mousemove",this.zoom.argBind(this));
            resExt.addEventHandler(this.activeLayer,"mouseout",this.zoomOff.bind(this));

            document.getElementById("productview").appendChild(this.activeLayer);


            this.zoomImage = true;
        }//if
    }//zoomOn 

    GetAdress.prototype.zoomOff = function() {
        this.zoomImage = false;
        this.zoomDisplay.removeChild(this.zoomImage1);
        document.getElementById("productview").removeChild(this.zoomDisplay);
        document.getElementById("productview").removeChild(this.activeLayer);
        this.img.removeChild(this.focusimg);
    }//zoomOff

    GetAdress.prototype.zoom = function(e) {
        var pos = resExt.getMousePos(this.img, e);
        this.focusimg.style.top = ( pos.y - 750 ) + "px";
        this.focusimg.style.left = ( pos.x - 500 ) + "px";

        this.zoomImage1.style.top = ( 143 - parseInt(pos.y * ( this.zoomImageWidth / 311 ) ) ) + "px";
        this.zoomImage1.style.left = ( 153 - parseInt(pos.x * ( this.zoomImageWidth / 311 ) ) ) + "px";
    }//highlight


/*=============================
  CREATE OBJECT
  =============================*/


