<!--
// ==============================================
// Copyright 2003 by jsCode.com
// Source: jsCode.com
// Author: etLux
// Free for all; but please leave in the header.
// ==============================================
// Set up the image files to be used.
var theImages = new Array() // do not change this
var theIklan = new Array()
var theIklanInfo = new Array()
var theIklanLink = new Array()

// To add more image files, continue with the
// pattern below, adding to the array. Rememeber
// to increment the theImages[x] index!

theIklan[0] = 'http://www.vuepalacehotel.com/images/logo-01.jpg'
theIklan[1] = 'http://www.vuepalacehotel.com/images/logo-02.jpg'
theIklan[2] = 'http://www.vuepalacehotel.com/images/logo-03.jpg'
theIklan[3] = 'http://www.vuepalacehotel.com/images/logo-04.jpg'

theIklanInfo[0] = 'Education Card'
theIklanInfo[1] = 'American Express'
theIklanInfo[2] = 'BII'
theIklanInfo[3] = 'Garuda Indonesia'

theIklanLink[0] = 'http://educationcard-web.com/'
theIklanLink[1] = 'http://www.americanexpress.com/indonesia/homepage.shtml'
theIklanLink[2] = 'http://www.bii.co.id'
theIklanLink[3] = 'http://www.garuda-indonesia.com'


theImages[0] = 'http://www.vuepalacehotel.com/images/vp-00.jpg'
theImages[1] = 'http://www.vuepalacehotel.com/images/vp-01.jpg'
theImages[2] = 'http://www.vuepalacehotel.com/images/vp-02.jpg'
theImages[3] = 'http://www.vuepalacehotel.com/images/vp-03.jpg'
theImages[4] = 'http://www.vuepalacehotel.com/images/vp-04.jpg'
theImages[5] = 'http://www.vuepalacehotel.com/images/vp-05.jpg'
theImages[6] = 'http://www.vuepalacehotel.com/images/vp-06.jpg'
theImages[7] = 'http://www.vuepalacehotel.com/images/vp-07.jpg'
theImages[8] = 'http://www.vuepalacehotel.com/images/vp-08.jpg'
theImages[9] = 'http://www.vuepalacehotel.com/images/vp-09.jpg'
theImages[10] = 'http://www.vuepalacehotel.com/images/vp-10.jpg'
theImages[11] = 'http://www.vuepalacehotel.com/images/vp-11.jpg'
theImages[12] = 'http://www.vuepalacehotel.com/images/vp-12.jpg'
theImages[13] = 'http://www.vuepalacehotel.com/images/vp-13.jpg'
theImages[14] = 'http://www.vuepalacehotel.com/images/vp-14.jpg'
theImages[15] = 'http://www.vuepalacehotel.com/images/vp-15.jpg'
theImages[16] = 'http://www.vuepalacehotel.com/images/vp-16.jpg'
theImages[17] = 'http://www.vuepalacehotel.com/images/vp-17.jpg'
theImages[18] = 'http://www.vuepalacehotel.com/images/vp-18.jpg'
theImages[19] = 'http://www.vuepalacehotel.com/images/vp-19.jpg'
theImages[20] = 'http://www.vuepalacehotel.com/images/vp-20.jpg'
theImages[21] = 'http://www.vuepalacehotel.com/images/vp-21.jpg'

// ======================================
// do not change anything below this line
// ======================================
var j = 0
var p = theImages.length;
var d = theIklan.length;
var preBuffer = new Array()

for (i = 0; i < p; i++)
{
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}

	today2=new Date()
	len=1
	today=today2.getTime()/10
	rnd=today % len
	which = Math.round(rnd *(p-1));

if (which > p)
	{
		which = p
	}

if (which < 0)
	{
		which = 0
	}

var whichImage = Math.round(Math.random()*(p-1));

var whichImage2 = Math.round(Math.random()*(d-1));



function showImage()
{
	document.write('<img src="'+theImages[which]+'" />');
}
function showImage1()
{
	document.write('<img src="'+theImages[whichImage]+'" />');
}
function showImage2()
{
        document.write('<a href="'+theIklanLink[whichImage2]+'"><img src="'+theIklan[whichImage2]+'" alt="'+theIklanInfo[whichImage2]+'" /></a>');
}

<!-- image opacity
nereidFadeObjects = new Object();
nereidFadeTimers = new Object();

function nereidFade(object, destOp, rate, delta)
{
	if (!document.all)
	return
	if (object != "[object]")
		{  
			setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
			return;
		}
	clearTimeout(nereidFadeTimers[object.sourceIndex]);
    diff = destOp-object.filters.alpha.opacity;
    direction = 1;
    if (object.filters.alpha.opacity > destOp)
	{
        direction = -1;
    }
    delta=Math.min(direction*diff,delta);
    object.filters.alpha.opacity+=direction*delta;
    if (object.filters.alpha.opacity != destOp)
	{
        nereidFadeObjects[object.sourceIndex]=object;
        nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
    }
}
//-->