function popup(path, width, height)
{
	if (popup.arguments.length == 1)
	{
		width = 500;
		height = 420;
	}
	window.open(path, "popup", "toolbar=no,scrollbars=yes,status=no,resizable=yes,width=" + width + ",height=" + height) 
} 


function get_random(maxNum)
{
  if (Math.random && Math.round)
  {
    var ranNum= Math.round(Math.random()*(maxNum-1));
    ranNum+=1;
    return ranNum;
  }
  else
  {
  today= new Date();
  hours= today.getHours();
  mins=   today.getMinutes();
  secn=  today.getSeconds();
  if (hours==19)
   hours=18;
  var ranNum= (((hours+1)*(mins+1)*secn)%maxNum)+1;
  return ranNum;
  }
}

function get_side_image()
{
pic_width=225;   /*change to match the height of all your images */
pic_height=340;   /* change to match the width of all your images */
border_size=0;   /* change to the border size you want on the images */

	
	picS1= new Image(pic_width,pic_height);
    picS1.src="/images/side-pics/pic1.gif";
	picS2= new Image(pic_width,pic_height);
    picS2.src="/images/side-pics/pic2.gif";
	picS3= new Image(pic_width,pic_height);
    picS3.src="/images/side-pics/pic3.gif";
	picS4= new Image(pic_width,pic_height);
    picS4.src="/images/side-pics/pic4.gif";
	picS5= new Image(pic_width,pic_height);
    picS5.src="/images/side-pics/pic5.gif";
	picS6= new Image(pic_width,pic_height);
    picS6.src="/images/side-pics/pic6.gif";
	picS7= new Image(pic_width,pic_height);
    picS7.src="/images/side-pics/pic8.gif";
	picS8= new Image(pic_width,pic_height);
    picS8.src="/images/side-pics/pic8.gif";
	picS9= new Image(pic_width,pic_height);
    picS9.src="/images/side-pics/pic9.gif";
	picS10= new Image(pic_width,pic_height);
    picS10.src="/images/side-pics/pic10.gif";
	picS11= new Image(pic_width,pic_height);
    picS11.src="/images/side-pics/pic11.gif";
	picS12= new Image(pic_width,pic_height);
    picS12.src="/images/side-pics/pic12.gif";
	picS13= new Image(pic_width,pic_height);
    picS13.src="/images/side-pics/pic13.gif";
	picS14= new Image(pic_width,pic_height);
    picS14.src="/images/side-pics/pic14.gif";
	picS15= new Image(pic_width,pic_height);
    picS15.src="/images/side-pics/pic15.gif";	 
	
	
 if (document.images)
 {
  var choose_one= get_random(15);  
  choose_one--;

  var picsS= new Array(15) 
   picsS[0]=picS1.src;
   picsS[1]=picS2.src;
   picsS[2]=picS3.src;
   picsS[3]=picS4.src; 
   picsS[4]=picS5.src;  
   picsS[5]=picS6.src;  
   picsS[6]=picS7.src;  
   picsS[7]=picS8.src;  
   picsS[8]=picS9.src;  
   picsS[9]=picS10.src;  
   picsS[10]=picS11.src;  
   picsS[11]=picS12.src;  
   picsS[12]=picS13.src; 
   picsS[13]=picS14.src; 
   picsS[14]=picS15.src;   

  document.write("<IMG SRC='"+picsS[choose_one]+"' width='"+pic_width+"' height='"+pic_height+"' border='"+border_size+"'>");
 }
}

function getCalendarDate()
{
var months = new Array(13);
months[0] = "January";
months[1] = "February";
months[2] = "March";
months[3] = "April";
months[4] = "May";
months[5] = "June";
months[6] = "July";
months[7] = "August";
months[8] = "September";
months[9] = "October";
months[10] = "November";
months[11] = "December";
var now = new Date();
var monthnumber = now.getMonth();
var monthname = months[monthnumber];
var monthday = now.getDate();
var year = now.getYear();
if(year < 2000) { year = year + 1900; }
var dateString = monthname +
' ' +
monthday +
', ' +
year;
return dateString;
} // function getCalendarDate()

function getClockTime()
{
var now = new Date();
var hour = now.getHours();
var minute = now.getMinutes();
var second = now.getSeconds();
var ap = "AM";
if (hour > 11) { ap = "PM"; }
if (hour > 12) { hour = hour - 12; }
if (hour == 0) { hour = 12; }
if (hour < 10) { hour = "0" + hour; }
if (minute < 10) { minute = "0" + minute; }
if (second < 10) { second = "0" + second; }
var timeString = hour +
':' +
minute +
':' +
second +
" " +
ap;
return timeString;
}


function openWin(section){
	w = screen.availWidth;
	h = screen.availHeight;
	var popW = 600, popH = 590;
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;
	popup1 = window.open(section,"SubMenu","top="+topPos+",left="+leftPos+",height="+popH+",width="+popW+",scrollbars=no,resizable=yes,toolbars=no,menubar=no");
popup1.focus()
}

function openWin2(section){
	w = screen.availWidth;
	h = screen.availHeight;
	var popW = 775, popH = 580;
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;
	popup2 = window.open(section,"SubMenu1","top="+topPos+",left="+leftPos+",height="+popH+",width="+popW+",scrollbars=no,resizable=yes,toolbars=no,menubar=no");
popup2.focus()
}	

function openVid(section){
	w = screen.availWidth;
	h = screen.availHeight;
	var popW = 390, popH = 395;
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;
	popup3 = window.open(section,"SubMenu2","top="+topPos+",left="+leftPos+",height="+popH+",width="+popW+",scrollbars=no,resizable=no,toolbars=no,menubar=no");
popup3.focus()
}	

function openSample(section){
	w = screen.availWidth;
	h = screen.availHeight;
	var popW = 600, popH = 590;
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;
	popup1 = window.open(section,"SubMenu3","top="+topPos+",left="+leftPos+",height="+popH+",width="+popW+",scrollbars=yes,resizable=yes,toolbars=no,menubar=no");
popup1.focus()
}

function openNews(section){
	w = screen.availWidth;
	h = screen.availHeight;
	var popW = 600, popH = 590;
	var title = "new";
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;
	popup1 = window.open(section,title,"top="+topPos+",left="+leftPos+",height="+popH+",width="+popW+",scrollbars=yes,resizable=yes,toolbars=no,menubar=no");
popup1.focus()
}

function openTrans(section){
	w = screen.availWidth;
	h = screen.availHeight;
	var popW = 350, popH = 350;
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;
	popup3 = window.open(section,"SubMenu5","top="+topPos+",left="+leftPos+",height="+popH+",width="+popW+",scrollbars=auto,resizable=yes,toolbars=no,menubar=no");
popup3.focus()
}
function openTrans2(section){
	w = screen.availWidth;
	h = screen.availHeight;
	var popW = 350, popH = 350;
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;
	popup3 = window.open(section,"SubMenu5","top="+topPos+",left="+leftPos+",height="+popH+",width="+popW+",scrollbars=yes,resizable=yes,toolbars=no,menubar=no");
popup3.focus()
}

function openGraphic(section){
	w = screen.availWidth;
	h = screen.availHeight;
	var popW = 450, popH = 500;
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;
	popup3 = window.open(section,"SubMenu5","top="+topPos+",left="+leftPos+",height="+popH+",width="+popW+",scrollbars=no,resizable=yes,toolbars=no,menubar=no");
popup3.focus()
}