// JScript source code


var scrpa;

DaysofWeek1 = new Array();
  DaysofWeek1[0]="Sunday";
  DaysofWeek1[1]="Monday";
  DaysofWeek1[2]="Tuesday";
  DaysofWeek1[3]="Wednesday";
  DaysofWeek1[4]="Thursday";
  DaysofWeek1[5]="Friday";
  DaysofWeek1[6]="Saturday";
  
MonthOfYear = new Array();
  MonthOfYear[1] = "January";
  MonthOfYear[2] = "February";
  MonthOfYear[3] = "March";
  MonthOfYear[4] = "April";
  MonthOfYear[5] = "May";
  MonthOfYear[6] = "June";
  MonthOfYear[7] = "July";
  MonthOfYear[8] = "August";
  MonthOfYear[9] = "September";
  MonthOfYear[10] = "October";
  MonthOfYear[11] = "November";
  MonthOfYear[12] = "December";



	 
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

	
    

	function doMenu11(id, x, y) {
		var thisMenu = document.all(id);
		// check if we're already animating the requested menu
		alert(id);
		if (thisMenu == AnimatedMenu) {
			//window.event.cancelBubble = true;return false;
		}
		// if were animating a different menu then hide that one and animate the requested on
		if (AnimatedMenu != null) AnimatedMenu.style.display = "none";
		window.event.cancelBubble = true;
		// set x and y location for the menu
		// if x is negative then subtract from screen width
		if( x < 0) {	x = document.body.clientWidth + x;
					}
		thisMenu.style.left = x;
		thisMenu.style.top = y;
		AnimatedMenu = thisMenu;
		if (bAnimate) {
			thisMenu.style.display = "list-item";
			thisMenu.style.borderstyle = "groove"
			nChunk = nStep;
			AnimatedMenu.style.clip = "rect(0 100% 100% 1)"
			//document.all(id).style.border = "1px #87cefa ridge"// changed
			var a =  ChangeColor1();
			document.all(id).style.border = "1px white ridge"// changed
		//	document.all(id).style.borderstyle = "ridge";
			//*
			document.all(id).style.borderTopWidth = "0px"// changed
			document.all(id).style.borderLeftWidth = "0px"// changed
			
			document.all(id).style.borderRightColor ="#808080"// changed
			document.all(id).style.borderRightWidth = "5px"// changed
			
			document.all(id).style.borderBottomColor ="#808080"// changed
			document.all(id).style.borderBottomWidth = "5px"// changed
			//*/
			
		}
		else {	AnimatedMenu.style.display = "";
			}
	}// END FUCN
	
	
	function keepMenu(){
		window.event.cancelBubble = true;
	}
	
	
	

function upclock11(){



var dte = new Date();

//dte.setTime(dte.getTime() + (incr * 1000));
var hrs = dte.getHours();
var min = dte.getMinutes();
var sec = dte.getSeconds();
var wkday;
var mnth;
var incr;
//alert(dte.toGMTString())
mnth = MonthOfYear[dte.getMonth()+1];
if(dte.getDay()==0)
	wkday=6;
else
	wkday=dte.getDay()-1;

var day = DaysofWeek1[wkday];
day = ' ' + dte.getDate()+ ', '+ dte.getFullYear() + '  ' + day;
var apm;

if (12 <= hrs) {
	apm=" PM";
	hrs-=12;
}
else
apm=" AM";


if (hrs==0) hrs=12;
if (hrs<=9) hrs="0"+hrs;
if (min<=9) min="0"+min;
if (sec<=9) sec="0"+sec;

incr++;
tags_before_clock="<font size=1 color=white face='arial'> "

if (navigator.appVersion.indexOf("MSIE") != -1){
clock.innerHTML = tags_before_clock+ MonthOfYear[dte.getMonth()+1] + day +' '+hrs+':'+min+':'+sec+' '+apm+'</font>'	;
}


return true;
}

//--------------------------------------------------------

function doMenu(id, x, y) {

var thisMenu = document.all(id);
	x= thisMenu.left ;
	y=thisMenu.offsetTop + thisMenu.offsetHeight;
	alert(thisMenu.offsetTop );
	alert(thisMenu.offsetTop + thisMenu.offsetHeight);
	TOOLTIP.left = x;
	TOOLTIP.height= y;
	//	TOOLTIP.style.top = y;
		TOOLTIP.style.display = "list-item";
			TOOLTIP.style.borderstyle = "groove"
	return false;

}// END FUCN


