
/*  +++-- DOCUMENTATION --+++

    setImgPath('/images/')
    .............. string path to image directory; terminate with backslash
    setSequences(repeat,start)
    .............. repeat --- number of times to repeat animation
    .............. start ---- start n-seconds after page loads; 1000=1second;
    myImage(img,left,top,delay,max,speed)
    .............. img ------ your image
    .............. left ----- left start position of image
    .............. top ------ top start position of image
    .............. delay ---- wait state between fliks
    .............. max ------ boundary that animation reaches before stopping
    .............. speed ---- speed<0=move left; speed>0=move right; speed==0=no animation

    *DEFAULTS*
    .............. ImgPath is empty string
    .............. repeat=0
    .............. start=0
    .............. left=0
    .............. top=0
    .............. delay=0
    .............. max=0
    .............. speed=0
    
    *NOTE*
    [1] each successive parameter requires the previous
    [2] to use defaults pass 0; except for image of course
    [3] defaults are used when trailing parameters are dropped
    [4] if no parameters, then image not added to animation .. duh  ;o)
    [5] order of myImage() is order of animation
    
    *OTHER*
      - between <body> tags
        <div id="myani" style="position:absolute;visibility:hidden;z-index:1000;"></div>
      - between <head> tags
        <script language="JavaScript" src="scripts/myani.js"></script>
        <script language="JavaScript" src="scripts/myanidat.js"></script>
      - onload event within opening <body> tag
        onload="eAni()"
*/

doc_width_ani = 1024;
var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!document.all) ? 1 : 0;
		    
//    function iecompat(){
//	    return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
//    }
//    } else if (ie4up) {
//	doc_width = iecompattest().clientWidth;
//	doc_height = iecompattest().clientHeight;
//    }
				        
if (ns6up) {
	doc_width_ani = self.innerWidth;
// Doesn't work in IE
//} else if (ie4up) {
//	doc_width_ani = document.body.clientWidth;
}

set_width_max_ani = (doc_width_ani-220);
setImgPath('/christmas/');
setSequences(3,3000);

myImage('santa20.gif',set_width_max_ani,450,2000,-300,-22);
myImage('santa-sleigh1.gif',1,350,2000,set_width_max_ani,22);
myImage('santa-sleigh.gif',set_width_max_ani,150,2000,-300,-22);
myImage('reindeer12.gif',set_width_max_ani,450,5000);
myImage('santa-sleigh1.gif',1,250,2000,set_width_max_ani,22);
myImage('santa-sleigh.gif',set_width_max_ani,100,1000,-300,-28);
myImage('reindeer12.gif',10,450,5000);
myImage('santa43.gif',450,50,5000);


