function opensite(doPreview) {
	
	if (doPreview == 1) {
		theURL = "flash5ebe.html?preview";
	} else {
		theURL = "flash.html";
	}

	//window.open(theURL,winName,features);
	var vpos = 0;
	var hpos = 0;
	if (navigator.userAgent.indexOf("Mac")!=-1 && navigator.userAgent.indexOf("IE")!=-1) { 
	  	var wid = screen.availWidth;
		var hei = screen.availHeight;
		var hpos = 9; //seems to be uniformly out of place on different resolutions
	} else if (navigator.userAgent.indexOf("Mac")!=-1 && navigator.userAgent.indexOf("Safari")!=-1) {
		var wid = screen.availWidth +10;
		var hei = screen.availHeight -20;
	} else {
		var wid = screen.availWidth -10;
		var hei = screen.availHeight -30;
	}
	details =  "location=no,menubar=no,scrollbars=no,status=no,resizable=no,width=" + wid + ",height=" + hei + ",left=" + hpos + ",top=" + vpos + ",screenX=0,screenY=0";
	var win = window.open(theURL, "aaflashsite", details);
	win.focus();
	
}


function runBGSlideShow(Pic,j){
	
	// Set speed (milliseconds)
	var speed = 12000
	var t
	var p = Pic.length
		
	var preLoad = new Array()
	for (i = 0; i < p; i++){
		preLoad[i] = new Image()
		preLoad[i].src = Pic[i]
	}
	
	document.body.background = Pic[j]
	j = j + 1
	if (j > (p-1)) j=0
	t = setTimeout('runBGSlideShow(Pic,'+j+')', speed)

}
