/* Cyclebox */

function buildBoxes(){
	var i = 0;
	var html = '';
	for(i=0;i<pvtxt.length;i++){
		html+='<div id="pvtxt'+ i +'" class="pvTxtArea" onmouseover="pauseCycle('+i+')" onmouseout="resumeCycle()">'+ pvtxt[i] +'</div>';
	}
	document.write(html)
}	

function colorBox(id){
	for(i=0;i<pvtxt.length;i++){
		document.getElementById('pvtxt'+i).style.backgroundColor='';
	}
	document.getElementById('pvtxt'+id).style.backgroundColor='#d8e0de;';
}

function pauseCycle(id){
	activateBox(id)
	run = 0;
	cycle=id;
}

function resumeCycle(){
	run=1;
}

function activateBox(id){
	document.getElementById('pvImgArea').style.backgroundImage='url('+pvpic[id]+')';
	colorBox(id);
}

var cycle = 0;
var run = 1;

function cycleBoxes(){
	if(cycle==pvtxt.length){
		cycle=0;
	}
	if(run==1){
		activateBox(cycle);
		cycle++;		
	}
	setTimeout("cycleBoxes()", 2000);
}







/* Something?? */

function icon(theicon) {
document.reply.message.value += ""+theicon;
document.reply.message.focus();
}






/* Popup window */

function openNew(theURL,winName,features) {
  window.open(theURL,winName,features);
}