﻿/* Sets images used for transitions */
var imgs = ['i/slideshow/frame_01.jpg', 
            'i/slideshow/frame_03.jpg',
			'i/slideshow/frame_05.jpg',
			'i/slideshow/frame_1.jpg', 
            'i/slideshow/frame_4.jpg',
			'i/slideshow/frame_7.jpg',
            'i/slideshow/frame_8.jpg',
			'i/slideshow/frame_kn2.jpg',
			'i/slideshow/frame_kn4.jpg',
			'i/slideshow/frame_kn7.jpg',
			'i/slideshow/frame_kn9.jpg'];
            
/* Caches images */
cacheImages(imgs);

/* Attach event to onload */
// Something like the correct way, never got to work */
// document.body.attachEvent('onload', transitionImages('logo-2',imgs,4000)) */

/* Hack way of adding to onload event */
var currentLoadEvent = window.onload;
if (typeof window.onload != 'function')
    window.onload = transitionImages('logo-2',imgs,4000);
else
    window.onload = function() {currentLoadEvent(); transitionImages('logo-2',imgs,4000);}