<!--
//<SCRIPT LANGUAGE="JavaScript">

	//
	// set date vars
	//
	monthNames = new MakeArray(12)
	monthNames[1] = "Jan."
	monthNames[2] = "Feb."
	monthNames[3] = "March"
	monthNames[4] = "April"
	monthNames[5] = "May"
	monthNames[6] = "June"
	monthNames[7] = "July"
	monthNames[8] = "Aug."
	monthNames[9] = "Sept."
	monthNames[10] = "Oct."
	monthNames[11] = "Nov."
	monthNames[12] = "Dec."

	dayNames = new MakeArray(7)
	dayNames[1] = "Sunday"
	dayNames[2] = "Monday"
	dayNames[3] = "Tuesday"
	dayNames[4] = "Wednesday"
	dayNames[5] = "Thursday"
	dayNames[6] = "Friday"
	dayNames[7] = "Saturday"

	//
	// ns browser
	//
	var NS = (navigator.appName=="Netscape")?true:false;


	//
	// js image rotation
	//
	var imgArray = new Array(3);
	var counter = 1;
	var loopcount=0;
	if(document.images) //pre-load images
	{
	 // for(i = 0; i < 3; i++)
	 // {
	 //   imgArray[i] = new Image(261, 85);
	 //   imgArray[i].src = "/images/rside/top_silverqueen" + (i+1) + ".jpg";
	 // }
	}

	// start the silver queen rotate
	var timer = '';
	function SliverQRotate()  {
		var timer = window.setInterval("changeImage()", 8000);
	}

	function changeImage()
	{
	  if(counter > 2){
	  	counter = 0;
	  };
	  document.ximg.src = imgArray[counter].src;
	  counter++;
	  loopcount++;
	  if(loopcount>16) {
	  	clearInterval(timer);
	  	document.ximg.src = imgArray[0].src;
		};
	}


	//
	// Functions
	//

	function cal_jumpdate(ur, xd) {
		if ( ( xd == "" ) || ( xd == "" ) ) {
	    	alert("You cannot jump to unknown date!");
	    } else {
	    	xd = xd.replace('/',"");
	    	xd = xd.replace('/',"");
	    	//alert(ur+xd);
			document.location.href=ur+xd;
	    }
	}


	function popwin (url, title, width, height, scrollbars, toolbar, resizeable, status, menubar) {
			//'url','thisisatitle','width','height','scrollbars','toolbars','resizeable', 'statusbar','menubar'
			opts = 'width='+width+',height='+height+',scrollbars='+scrollbars+',toolbar='+toolbar+',resizable='+resizeable+',status='+status+',menubar='+menubar;
		    popup = window.open(url, title, opts);
	}


	function popwin_n(url, title, width, height, xopts) {
		if (xopts=='') {
			xopts = ',scrollbars=no,toolbar=no,resizable=yes,status=no,menubar=no';
		}
	     popup = window.open(url, title,'width=' + (width+34) + ',' + 'height=' + (height+(width/3)+34) + xopts);
	}

	function popwin_print(url, title) {
		     popup = window.open(url, title,'width=500,height=400,scrollbars=yes,toolbar=no,resizable=yes,status=no,menubar=yes')
		}

	function resize_window() {
		    winHeight=document['ht'].height;
		    if (winHeight==0) {
		    	winHeight=document['bt'].offsetTop+10;
		    }
		    winWidth=document['wd'].width;
	 	    window.resizeTo(winWidth+30,winHeight+70);
		    if (window.moveTo) window.moveTo((screen.availWidth-winWidth)/2,(screen.availHeight-winHeight)/2);
			window.focus();
	}

	function MakeArray(n) {
		this.length = n
		return this
	}

	function customDateString() {
		currentDate = new Date()
		var theDay = dayNames[currentDate.getDay() + 1]
		var theMonth = monthNames[currentDate.getMonth() + 1]
		msie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ));
		if (msie4) {
		    var theYear = currentDate.getYear()
		}
		else {
		     var theYear = currentDate.getYear() +1900
		}
		return "Today is " +theDay + ", " + theMonth + " " + currentDate.getDate() + ", " + theYear
	}

	function jumpdate(xd) {
		if ( ( xd == "" ) || ( xd == "" ) ) {
	    	alert("You cannot jump to unknown date!");
	    } else {
			document.location.href="?date="+xd;
	    }
	}

//</script>
//-->
