// www.orangeview.net

function oop_slideshow()
{
runSlideShow(true);
}

var slideShowSpeed = 5000; // ms
var crossFadeDuration = 4; // sec
var pic_count = 0;
var Pic = new Array();
var Url = new Array();



Pic[pic_count++] = 'http://www.orangeview.net/pix/ss_moonball_shadowy.jpg';
Url[pic_count] = 'http://www.orangeview.net/3d/';
Pic[pic_count++] = 'http://www.orangeview.net/pix/ss_moonball_terrain.jpg';
Url[pic_count] = 'http://www.orangeview.net/3d/';
Pic[pic_count++] = 'http://www.orangeview.net/pix/ss_moonball_radar.jpg';
Url[pic_count] = 'http://www.orangeview.net/3d/';
Pic[pic_count++] = 'http://www.orangeview.net/pix/ss_moonball_bloody.jpg';
Url[pic_count] = 'http://www.orangeview.net/3d/';
Pic[pic_count++] = 'http://www.orangeview.net/pix/ss_moonball_bots.jpg';
Url[pic_count] = 'http://www.orangeview.net/3d/';
Pic[pic_count++] = 'http://www.orangeview.net/pix/ss_moonball_shadows.jpg';
Url[pic_count] = 'http://www.orangeview.net/3d/';
Pic[pic_count++] = 'http://www.orangeview.net/pix/ss_moonball_team.jpg';
Url[pic_count] = 'http://www.orangeview.net/3d/';
Pic[pic_count++] = 'http://www.orangeview.net/pix/ss_moonball_battles.jpg';
Url[pic_count] = 'http://www.orangeview.net/3d/';
Pic[pic_count++] = 'http://www.orangeview.net/pix/ss_moonball_viewports.jpg';
Url[pic_count] = 'http://www.orangeview.net/3d/';








var t;	var j = 0;	// $CK2002 j is the pic num to start with
var preLoad = new Array();
for (i = 0; i < Pic.length; i++) 
{
	preLoad[i] = new Image();
	preLoad[i].src = Pic[i];	
}

function runSlideShow(loop_it) {
	if (document.all) 
	{
		document.images.SlideShow.style.filter="blendTrans(duration=2)";
		document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
		document.images.SlideShow.filters.blendTrans.Apply();	
	}
	
	// IN ORDER 
	document.images.SlideShow.src = preLoad[j].src;
	// RANDOM ORDER BUGGY 
	//document.images.SlideShow.src = preLoad[random(pic_count)].src;
	
	if (document.all) {	document.images.SlideShow.filters.blendTrans.Play();	}
	
	if (loop_it)
	{
		j = j + 1;
		if (j > (Pic.length - 1)) j = 0;
		t = setTimeout('runSlideShow(true)', slideShowSpeed);	
	}
}

function slideshowclick()
{
	//debug: alert("slideshowclick\nj=" + j);
	parent.oopmid.location=Url[j];
}



// $CK silence all error messages on old or broken browsers
function stopErrors() { return true; }	
window.onerror = stopErrors;

//$CK insert an image right HERE
//document.write('<img width=100% height=100% style="border:0; padding:0; margin:0; cursor:hand;" title="Click here for a CASE STUDY." name="SlideShow" src="http://www.orangeview.net/pix/orange.gif" onclick="slideshowclick();">');

// $CK start right NOW - NAH WAIT TILL PAGE LOAD FOR FASTER DL
//oop_slideshow();
document.onload=oop_slideshow();
