/*
FIX IMAGES to VIEWPORT II

author: Jens Brueckmann
        http://www.j-a-b.net/

      created: 2004-07-06
last modified: 2004-07-06
________________________________________________________________________________
This script is published under a Creative Commons License. For more information 
about this license visit http://creativecommons.org/licenses/by-sa/2.0/
________________________________________________________________________________
Comments are welcome :-) Use contact form or mail me at jens[at]j-a-b.net
________________________________________________________________________________
*/


  function glueXORImg(dithImgFix) {

    var dithImgObj     = document.getElementById(dithImgFix).style;

    resetImages();

    dithImgObj.position   = 'fixed';
    dithImgObj.top        = '1%';
    dithImgObj.left       = '50%';
    dithImgObj.marginLeft = '-125px';
  }


  function resetImages() {

    var allImagesCount = document.images.length;

    for (var resetImage = 1;resetImage < allImagesCount;resetImage++) {

      var allDithImg = document.getElementsByTagName('img')[resetImage].style;

        if (allDithImg.position == 'fixed') {

          allDithImg.position   = 'relative';
          allDithImg.top        = '0';
          allDithImg.left       = '0';
          allDithImg.marginLeft = '0';
        }
    }
  }

