var Pic = new Array() // don't touch this

	if(location.search == "?printerfriendly") {
	}
	else {
		browser = false;
		if(navigator.appName == "Microsoft Internet Explorer") {
		//	if(navigator.appName.indexOf("Explorer") >= 0) {
			if(parseInt(navigator.appVersion) != 6 ) {
				browser = true;
			}
		}
		//	CREATE AN INSTANCE OF THE OBJECT 
		if(browser) {
			//	IE CODE
			var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP.3.0");
		}
		else {
			//	NETSCAPE CODE
			var xmlhttp = new XMLHttpRequest();
		}
	
		//	OPEN THE CONNECTION TO THE SERVER
		fileName = "/scripts/index_banner.asp?" + location.href ;
		xmlhttp.open("GET",fileName,false);
		//	SEND THE XML DOCUMENT
		xmlhttp.send(null);
		document.writeln('<br /><br /><br /><br />');
		document.writeln(xmlhttp.responseText);

		//	func_get_a_page('/asp/photo_list.asp?StartPath=/Images/old_root');
	}

	function func_pfv() {
		location.href = location.href + '?printerfriendly';
	}


	function func_get_a_page(pageName) {
		browser = false;
		if(navigator.appName == "Microsoft Internet Explorer") {
		//	if(navigator.appName.indexOf("Explorer") >= 0) {
			if(parseInt(navigator.appVersion) != 6 ) {
				browser = true;
			}
		}
		//	CREATE AN INSTANCE OF THE OBJECT 
		if(browser) {
			//	IE CODE
			var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP.3.0");
		}
		else {
			//	NETSCAPE CODE
			var xmlhttp = new XMLHttpRequest();
		}
		xmlhttp.open("GET",pageName,false);
		//	SEND THE XML DOCUMENT
		xmlhttp.send(null);
		document.writeln(xmlhttp.responseText);
		
	}

	function func_load_SlideShow(StartPath) {
		pageName = '/scripts/SlideShow.asp';
		if(StartPath != '') {
			pageName = pageName + '?StartPath=' + StartPath;
		}
		else {
			pageName = pageName + '?StartPath=' + (location.href);
		}
		//	alert(pageName);
		func_get_a_page(pageName)
	}

	function runSlideShow(){
		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()      
		}
		document.images.SlideShow.src = preLoad[j].src
	//	document.images.SlideShow.src = Pic[j]
		if (document.all){
			document.images.SlideShow.filters.blendTrans.Play()
		}
		j = j + 1
		if (j > (p-1)) j=0
		t = setTimeout('runSlideShow()', slideShowSpeed)
	}

	function func_SlideShow_Image_Click() {
		imageName = document.images.SlideShow.src;
		window.open(imageName,"_blank");
	}

	function func_select_list(newURL) {
		if(newURL != "") {
			location.href = newURL;
		}
		else {
			alert("Coming soon!");
		}
	}



