<!-- Beginning of JavaScript -

// CREDITS:
// Slideshow with unique image-dissolving transition effect 
// by Urs Dudli and Peter Gehrig 
// Copyright (c) 2000 Peter Gehrig and Urs Dudli. All rights reserved.
// Permission given to use the script provided that this notice remains as is.
// Additional scripts can be found at http://www.24fun.com.
// info@24fun.ch
// 7/21/2000

// IMPORTANT: 
// If you add this script to a script-library or script-archive 
// you have to add a link to http://www.24fun.com on the webpage 
// where the scrips will be running.

// CONFIGURATION:
// Go to www.24fun.com, open category 'image' and download 
// the full-version of this script as ZIP-file containing the sample images and the 
// script-file with step-by-step instructions for non-programmers.

// the URL of your images. Add as many images as you like
var imgsname = new Array()
imgsname[0]="http://www12.iwebcenters.com/marcrubingallery3/images/11x14-YELLOW-ROSES.JPG"
imgsname[1]="http://www12.iwebcenters.com/marcrubingallery3/images/cafepress-DANCER-GREEN-DRESS-tile-blue.jpg"
imgsname[2]="http://www12.iwebcenters.com/marcrubingallery3/images/musee-GIRL-WITH-BLUEBIRD23X35-.JPG"
imgsname[3]="http://www12.iwebcenters.com/marcrubingallery3/images/COMPOTECORRECT.gif"
imgsname[4]="http://www12.iwebcenters.com/marcrubingallery3/images/SUMMERSEEBIG.gif" 
imgsname[5]="http://www12.iwebcenters.com/marcrubingallery3/images/musee-DINNER-FOR-ONE-24X30.jpg"
imgsname[6]="http://www12.iwebcenters.com/marcrubingallery3/images/bigbang3.jpg"
imgsname[7]="http://www12.iwebcenters.com/marcrubingallery3/images/ASANTAFEVIEW.gif"
imgsname[8]="http://www12.iwebcenters.com/marcrubingallery3/images/Girlrose.gif"
imgsname[9]="http://www12.iwebcenters.com/marcrubingallery3/images/musee-SANTA-FE-JAZZ24X30.jpg"
imgsname[10]="http://www12.iwebcenters.com/marcrubingallery3/images/musee-GRAPHIC-7-LIGHT-24X36.jpg"
imgsname[11]="http://www12.iwebcenters.com/marcrubingallery3/images/musee-GRAPHIC26-EARTHGATE-DAYLIGHT-2.jpg"
imgsname[12]="http://www12.iwebcenters.com/marcrubingallery3/images/musee-GRAPHIC27-REED-FLOWER-GATE4.jpg"
imgsname[13]="http://www12.iwebcenters.com/marcrubingallery3/images/cafe-press-DOWNTOWN-NY.jpg"
imgsname[14]="http://www12.iwebcenters.com/marcrubingallery3/images/33x44CITYSCAPE-OAKST-new33x44.jpg"
imgsname[15]="http://www12.iwebcenters.com/marcrubingallery3/images/24x36-CHICAGO24X36.jpg"
imgsname[16]="http://www12.iwebcenters.com/marcrubingallery3/images/cafepress-LAJOLLA-BATHER.jpg"
imgsname[17]="http://www12.iwebcenters.com/marcrubingallery3/images/11x14-ELLA-in-puddle.jpg"
imgsname[18]="http://www12.iwebcenters.com/marcrubingallery3/images/CONFUSED-GIRL-2.JPG"
imgsname[19]="http://www12.iwebcenters.com/marcrubingallery3/images/ENOCH400.jpg"
imgsname[20]="http://www12.iwebcenters.com/marcrubingallery3/images/musee-CORAL-READY-44X38.jpg"
imgsname[21]="http://www12.iwebcenters.com/marcrubingallery3/images/musee-SEA-SHELLS-44X37.jpg"
imgsname[22]="http://www12.iwebcenters.com/marcrubingallery3/images/musee-CANTILLEVERED-WINDOW24X36.jpg"
imgsname[23]="http://www12.iwebcenters.com/marcrubingallery3/images/musee-APPLE-TREE-8X8-PRINT.jpg"
imgsname[24]="http://www12.iwebcenters.com/marcrubingallery3/images/ladies-nov-3.jpg"
imgsname[25]="http://www12.iwebcenters.com/marcrubingallery3/images/musee-SUNSET-NEW-LAND24X36.jpg"
imgsname[26]="http://www12.iwebcenters.com/marcrubingallery3/images/musee-SUNRISE-ON-THE-MESA3.jpg"
imgsname[27]="http://www12.iwebcenters.com/marcrubingallery3/images/musee-CORAL-REEF-FISH-24X36-AGAIN.jpg"
imgsname[28]="http://www12.iwebcenters.com/marcrubingallery3/images/Glory-aug06-1.jpg"
imgsname[29]="http://www12.iwebcenters.com/marcrubingallery3/images/musee-BLISS-3-44X35.jpg"
imgsname[30]="http://www12.iwebcenters.com/marcrubingallery3/images/musee-STRETCH-44X33-BORDER.jpg"
imgsname[31]="http://www12.iwebcenters.com/marcrubingallery3/images/8X10-guitarmusic-poster8X10.jpg"
imgsname[32]="http://www12.iwebcenters.com/marcrubingallery3/images/CHICAGO-SKYLINE-small-tif.jpg"
imgsname[33]="http://www12.iwebcenters.com/marcrubingallery3/images/cafepress-TREE-OF-LIFE15x15-upright-title.jpg"
imgsname[34]="http://www12.iwebcenters.com/marcrubingallery3/images/18x24-POSTER-WATER-TOWER-pastel3-18x24tif-spa-border.jpg"
imgsname[35]="http://www12.iwebcenters.com/marcrubingallery3/images/DANCERREDRM.gif"
imgsname[36]="http://www12.iwebcenters.com/marcrubingallery3/images/GAILARDIAS---new12x12peg.jpg"
imgsname[37]="http://www12.iwebcenters.com/marcrubingallery3/images/DIVERSEY-6x8-peg.jpg"
// the the links of your images
var imgsurl = new Array()
imgsurl[0]="#"
imgsurl[1]="#"
imgsurl[2]="#"
imgsurl[3]="#"
imgsurl[4]="#"
imgsurl[5]="#"
imgsurl[6]="#"
imgsurl[7]="#"
imgsurl[8]="#"
imgsurl[9]="#"
imgsurl[10]="#"
imgsurl[11]="#"
imgsurl[12]="#"
imgsurl[13]="#"
imgsurl[14]="#"
imgsurl[15]="#"
imgsurl[16]="#"
imgsurl[17]="#"
imgsurl[18]="#"
imgsurl[19]="#"
imgsurl[20]="#"
imgsurl[21]="#"
imgsurl[22]="#"
imgsurl[23]="#"
imgsurl[24]="#"
imgsurl[25]="#"
imgsurl[26]="#"
imgsurl[27]="#"
imgsurl[28]="#"
imgsurl[29]="#"
imgsurl[30]="#"
imgsurl[31]="#"
imgsurl[32]="#"
imgsurl[33]="#"
imgsurl[34]="#"
imgsurl[35]="#"
imgsurl[36]="#"
imgsurl[37]="#"
// the target of your links. Accepted values: '_blank', '_self', '_top'
// '_parent' or the name of your window
var linktarget="_blank"

// standstill of each image(seconds)
var pause=5

// horizontal position of the slideshow (distance to the left margin of the browser-window, pixels)
var posleft=225

// vertical position of the slideshow (distance to the top margin of the browser-window, pixels)
var postop=150

// do not edit the variables below
var contentimage=""
var i_image=0
var i_stepwave=0
var i_maxstepwave=40
var imgpreload=new Array()
for (i=0;i<=imgsname.length-1;i++) {
	imgpreload[i]=new Image()
	imgpreload[i].src=imgsname[i]
}
pause=pause*1000

function initiate() {
      contentimage="<a href='"+imgsurl[i_image]+"' target='"+linktarget+"'><img src='"+imgsname[i_image]+"' border='0'></a>"
    if (document.all) {
		waveimage.innerHTML=contentimage
		waveimage.style.posLeft=posleft
		waveimage.style.posTop=postop
		enlargewave()
    }
    if (document.layers) {
        document.waveimage.left=posleft
		document.waveimage.top=postop
        changeimage()
    }
}

function enlargewave() {
    if (i_stepwave<=i_maxstepwave) {
	    waveimage.filters.wave.phase=i_stepwave
	    waveimage.filters.wave.strength=i_stepwave
        waveimage.filters.wave.lightstrength=i_stepwave
	    waveimage.filters.wave.freq=i_stepwave
        i_stepwave++
	    var timer=setTimeout("enlargewave()",50)
    }
    else {
        clearTimeout(timer)
        changeimage()
    }
}

function reducewave() {
    if (i_stepwave>0) {
	    waveimage.filters.wave.phase=i_stepwave
	    waveimage.filters.wave.strength=i_stepwave
	    waveimage.filters.wave.lightstrength=i_stepwave
	    waveimage.filters.wave.freq=i_stepwave
        i_stepwave--
	    var timer=setTimeout("reducewave()",50)
    }
    else {
        clearTimeout(timer)
        var timer=setTimeout("enlargewave()",pause)
    }
}

function changeimage() { 
    i_image++
    if (i_image>=imgsname.length) {i_image=0}
    contentimage="<a href='"+imgsurl[i_image]+"' target='"+linktarget+"'><img src='"+imgsname[i_image]+"' border='0'></a>"
 
    if (document.all) { 
        waveimage.innerHTML=contentimage
        reducewave()
    }
    
    if (document.layers) {
        document.waveimage.document.write(contentimage)
        document.waveimage.document.close()
        var timer=setTimeout("changeimage()",pause)
    }
    
}

// - End of JavaScript - --> 