

bIsIE=false;
var bLoad = false;	

// RunSafe function.  All errors sent to black hole.
function rs(code)
{
	try
	{
		eval(code);
	}
	catch(oops)
	{
		
	}
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}


function changeImages() 
{
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i< changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		preloadFlag = true;
	}
}

function OpenWindow(URL, Height, Width)
{

	var wn;
	wn = window.open(URL,'BrandServerWindow','scrollbars=1,height=' + Height  + ',width=' + Width + ',resizable=1,status=0');
	wn.focus();
}



// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 3000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 2;

var Picture = new Array(); // don't change this
var Caption = new Array(); // don't change this
var showHot = true;       // don't change this

Caption[1]  = "&nbsp;";
Caption[2]  = "&nbsp;";
Caption[3]  = "&nbsp;";
Caption[4]  = "&nbsp;";
Caption[5]  = "&nbsp;";
Caption[6]  = "&nbsp;";
Caption[7]  = "&nbsp;";
Caption[8]  = "&nbsp;";
Caption[9]  = "&nbsp;";
Caption[10] = "&nbsp;";


var tss;
var iss;
var jss = 0;
var pss = Picture.length-1;

var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];}

function control(how){
if (showHot){
if (how=="H") jss = 1;
if (how=="F") jss = jss + 1;
if (how=="B") jss = jss - 1;
if (jss > (pss)) jss=1;
if (jss < 1) jss = pss;
if (document.all){

document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;
if (document.getElementById) document.getElementById("CaptionBox").innerHTML= Caption[jss];
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
}}