

function newuser() {
DispWin1 =
window.open('http://www.mlsplug-in.com/mlsplugin/signup.asp?Office=172','detail',
'height=600,width=800,scrollbars=1,resizable=1,toolbars=0,menubars=0');
}

function members() {
DispWin1 =
window.open('http://www.mlsplug-in.com/mlsplugin/default.asp?Office=172','detail',
'height=600,width=800,scrollbars=1,resizable=1,toolbars=0,menubars=0');
}

function openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

function bannerLinkOver(s) {
    if (s) { 
	  s.style.textDecoration='underline' 
	  /* s.style.fontWeight='bold' */
	  s.style.fontSize = 13
	}
}
	
function bannerLinkOut(s) {
    if (s) {
	   s.style.textDecoration='none'
	   s.style.fontSize = 12   
	}
}

function commLinkOver (s) {
   if(s.style) {
       s.style.fontWeight='bold';
	   s.style.textDecoration='none';
	   }
}

function commLinkOut (s) {
   if(s.style) {
       s.style.fontWeight='normal';
	   /*s.style.textDecoration='none'; */
	  /* s.style.textDecoration='underline'; */
   }
}

function staffOver (s) {
   if(s.style) {
       s.style.fontWeight='bold';
	   s.style.textDecoration='none';
	   }
}

function staffOut (s) {
   if(s.style) {
       s.style.fontWeight='normal';
	   s.style.textDecoration='none';
	   /* s.style.textDecoration='underline'; */
	   }
}

function styleUL(s) {
    if (s) { 
	  s.style.textDecoration='underline' 
	  /* s.style.fontWeight='bold' */
	  s.style.fontSize = 14
	}
}
	
function styleNONE(s) {
    if (s) {
	   s.style.textDecoration='none'
	   s.style.fontSize = 12   /* matches class .link3 */
	}
}
function getPicREF () {
        callingURL = window.location.href
		if (callingURL.indexOf('?') != -1) {
		    pic = callingURL.substring(callingURL.indexOf('?')+1, callingURL.length)
			picURL = "../sheet" + pic + "_files/th-" + pic + ".jpg"
			picREF = "<img src=" + picURL + " width=\"140\" height=\"90\">" 
			return picREF
		}
		return ""
}

dayName = new Array ("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
monName = new Array ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December")

	now = new Date
	
function writeDate() {
    document.write(dayName[now.getDay()] + ", " + monName[now.getMonth()] + " " + now.getDate())
}

function writeGreeting(){

if (now.getHours() < 5) {
		document.write("Good Evening!")
	}
	else if (now.getHours() < 12) {
		document.write("Good Morning!")
	}
	else if (now.getHours() < 18) {
		document.write("Good Afternoon!")
	}
	else {
		document.write("Good Evening!")
	}
}

picImages = new Array(
		"sheet273_files/th-273.jpg", 
		"sheet278_files/th-278.jpg",
		"sheet279_files/th-279.jpg",
		"sheet280_files/th-280.jpg",
		"sheet281_files/th-281.jpg" )

	thisPic = 0
	imgCt = picImages.length

	function rotate() {
		if (document.images) {
			thisPic++
			if (thisPic == imgCt) {
				thisPic = 0
			}
			document.picBanner.src=picImages[thisPic]
		  	setTimeout("rotate()", 1 * 1000)
	  	}
	}


document.onmouseover = function ( e ) {   
if ( !e ) e = window.event;   
var el = e.target ? e.target : e.srcElement;   
while ( el != null && el.tagName != "A" ) el = el.parentNode;   
if ( el == null ) return;   
if ( e.preventDefault ) e.preventDefault();   
else e.returnValue = true;};



// including page defines
//  var num
//  var numPics
//  var picArr
//  NAME="thisPic" in the IMG tag

function slideshowUp() {
	  num=num+1
	  if (num == numpics)
	  { num = 0 }
		  
	  document.thisPic.src=picArr[num]
	  document.getElementById('photocount').innerHTML="Photo " + (num+1) + " of " + numpics
}

function slideshowDown() {
	  num=num-1
	  if (num < 0 )
	  { num= numpics-1 }
		  
	  document.thisPic.src=picArr[num]
	  document.getElementById('photocount').innerHTML="Photo " + (num+1) + " of " + numpics
}
		
		
