
var win=null;
function NewWindow(mypage,myname,w,h,pos,infocus){
if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";win=window.open(mypage,myname,settings);
win.focus();}
//var quotations = new Array()

//quotations[0]="<a href='students.asp'><img src='images/OldDogYoungPupTY.gif' width='540' height='65' border=0/></a>"
//quotations[0]="<a href='http://guest.cvent.com/EVENTS/Info/Summary.aspx?i=8eaadd88-4996-48c9-9c81-52daed806586' target='_blank'><img src='images/BellBanner.gif' width='540' height='65' border=0/></a>"
//quotations[1]="<a href='golf.asp'><img src='images/GolfBanner.gif' width='540' height='65' border=0/></a>"
//quotations[2]="<a href='membership.asp'><img src='images/BannerJoinToday.gif' width='540' height='65' border=0/></a>"

/*quotations[1]="<a href='pete.asp' target='_self'><img src='images/BMA-SpecialEvent-Banner_without_link.gif' width='540' height='65' border=0/></a>"*/
var num = 0

function display()
{
//	document.write("<a href='pete.asp' target='_self'><img src='images/BMA-SpecialEvent-Banner_without_link.gif' width='540' height='65' border=0/></a>")
a=Math.floor(Math.random()*quotations.length)
document.getElementById('quotation').innerHTML=quotations[a]
 
setTimeout("display()",2000)

}

/*function changeImage(){
	for(i = 100; i >= 0; i--) {
     	setTimeout("changeOpac(" + i + ",'quotation')",(3000));
     	timer++;
	 	if(i ==0 && num == 0){
			num = 1
	 		display(num)
		}else if (i == 0 && num == 1){
			num = 0
			display(num)
		}
	}
}

function changeOpac(opacity, id){
	var object = document.getElementById(id).style;
    object.opacity = (opacity / 100);
    object.MozOpacity = (opacity / 100);
    object.KhtmlOpacity = (opacity / 100);
    object.filter = "alpha(opacity=" + opacity + ")";
}
*/		
