function PopImg(picURL,picTitle,w,h,pos,scroll,picText){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
newWindow=window.open(picURL,'newWin',',width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrolling='+scroll+',toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no')
newWindow.document.write('<html><title>'+picTitle+'<\/title><head><\/head><body topmargin="0" leftmargin="0"><img src="'+picURL+'"alt="'+picText+'"><\/body><\/html>')
newWindow.focus()
}

//randomly alternating header images
var altimage = new Array() // do not change this

altimage[0] = 'wc1.jpg'
altimage[1] = 'wc2.jpg'
altimage[2] = 'wc3.jpg'
altimage[3] = 'wc4.jpg'
altimage[4] = 'wc5.jpg'

var j = 0
var p = altimage.length;

var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = altimage[i]
}

var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img alt="" width=463 height=304 src="images/'+altimage[whichImage]+'">');
}

//-->





