/*************************************************************************** * * * AUTHOR: Willie@elaba.net * * * * NOTE: Reproduction of any part of this file is permitted only * * when a reference to the owner (willie@elaba.net) is made * * * ***************************************************************************/ /* declare global variables here */ var New_Window = ""; var thumbnail_number = 0; var opacity = 250; var direction = -1; /* preload images */ preloadImage("theme/blauw/bg_menu_top.gif"); preloadImage("theme/blauw/bg_menu_body.gif"); preloadImage("theme/blauw/bg_menu_selected.gif"); preloadImage("theme/blauw/bg_menu_hover.gif"); preloadImage("theme/blauw/bg_menu_bottom.gif"); preloadImage("theme/blauw/bg_menu_items.gif"); preloadImage("theme/blauw/bg_foto_top.gif"); preloadImage("theme/blauw/bg_foto_left.gif"); preloadImage("theme/blauw/bg_foto_bottom.gif"); preloadImage("theme/blauw/bg_foto_right.gif"); preloadImage("theme/blauw/bg_foto_middle.gif"); preloadImage("theme/blauw/bg_foto_start.gif"); preloadImage("theme/blauw/bg_body_topleft.gif"); preloadImage("theme/blauw/bg_body_top.gif"); preloadImage("theme/blauw/bg_body_topright.gif"); preloadImage("theme/blauw/bg_body_left.gif"); preloadImage("theme/blauw/bg_body_right.gif"); preloadImage("theme/blauw/bg_body_bottomleft.gif"); preloadImage("theme/blauw/bg_body_bottom.gif"); preloadImage("theme/blauw/bg_body_bottomright.gif"); preloadImage("gfx/fade/image12.jpg"); preloadImage("gfx/fade/image09.jpg"); preloadImage("gfx/fade/image06.jpg"); preloadImage("gfx/fade/image11.jpg"); preloadImage("gfx/fade/image10.jpg"); /* declare functions here */ function preloadImage(image) { var oImage; oImage = new Image(); oImage.src = image; } function NewWindow(pagename,features) { New_Window = window.open(pagename,"pop_up",features); if (window.focus) setTimeout('New_Window.focus()',1000); } function cycleThumbnails() { var images = new Array('image12.jpg','image09.jpg','image06.jpg','image11.jpg','image10.jpg'); document.thumbnail_show.src = 'gfx/fade/'+images[thumbnail_number]; thumbnail_number++; if (thumbnail_number > 4) { thumbnail_number=0 } } function fade() { if (is_gecko) { document.thumbnail_show.style.MozOpacity = opacity/100; } if (is_ie5up) { document.thumbnail_show.filters.alpha.opacity=opacity; } opacity = opacity + (10*direction); if (opacity < 0) { cycleThumbnails(); direction=direction*-1; } if (opacity > 250) { direction=direction*-1; } }