<!-- hide from old browsers

function scbg(objRef, state) {
	objRef.style.backgroundColor = (1 == state) ? '#f6f3ec' : '#fff';
	return;
}

/*
if(window.addEventListener){
window.addEventListener('load',boldLabels,false);
}
else {
if(window.attachEvent){
window.attachEvent('onload',boldLabels);
}
}

function boldLabels(){
inps=document.forms[0].getElementsByTagName('input');
for(c=0;c<inps.length;c++) {
if(inps[c].type=='radio' || inps[c].type=='checkbox'){
inps[c].checked=false;
inps[c].onclick=function() {
for(c=0;c<inps.length;c++) {
if(inps[c].name==this.name){
inps[c].parentNode.className='';
}
}
this.parentNode.className='bold';
}
}
}
}
*/

function swapfeature(str){
    document.getElementById("features1").style.display = "none";
    document.getElementById("features2").style.display = "none";
    document.getElementById("features3").style.display = "none";
    if(str == "1") document.getElementById("features1").style.display = "block";
    if(str == "2") document.getElementById("features2").style.display = "block";
    if(str == "3") document.getElementById("features3").style.display = "block";
}
function swapfeature1(str){
    document.getElementById("features1b").style.display = "none";
    document.getElementById("features2b").style.display = "none";
    document.getElementById("features3b").style.display = "none";
    if(str == "1") document.getElementById("features1b").style.display = "block";
    if(str == "2") document.getElementById("features2b").style.display = "block";
    if(str == "3") document.getElementById("features3b").style.display = "block";
}

var _nTimerID = -1;

function showLargePhoto(photo)
{
	document.getElementById('imgMain').src = photo;
}
	
function RunSlideShow(photoArrayIndex)
{
	var nNextIndex = photoArrayIndex + 1;
	if(nNextIndex > _aPhotoArray.length - 1)
		nNextIndex = 0;	
	showLargePhoto(_aPhotoArray[nNextIndex]);
	
	// If first time, then immediately show the first photo
	_nTimerID = setTimeout("RunSlideShow(" + nNextIndex + ")", 3000);
	ToggleslideShowButton(true);		
}

function StopSlideShow()
{
	if(_nTimerID != -1)
	{
		clearTimeout(_nTimerID);
		ToggleslideShowButton(false)
	}
}

function ToggleslideShowButton(start)
{
	if(start)
	{
		document.getElementById("lnkStartSlideShow").style.display='none';
		document.getElementById("lnkStopSlideShow").style.display='inline'
	}
	else
	{
		document.getElementById("lnkStartSlideShow").style.display='inline';
		document.getElementById("lnkStopSlideShow").style.display='none'
	}
}
function ToggleSmallImageSelected(image, selected)
{
	if (selected)
	{
		image.style.borderColor = "#e68b00";
	}
	else
	{
		image.style.borderColor = "#fff";
	}
}


function initScrollLayer() {
  // arguments: id of layer containing scrolling layers (clipped layer), id of layer to scroll, 
  // if horizontal scrolling, id of element containing scrolling content (table?)
  var wndo = new dw_scrollObj('wn', 'lyr1', 't1');
  
  // pass id('s) of scroll area(s) if inside table(s)
  dw_scrollObj.GeckoTableBugFix('wn'); 
}

function initScrollLayer1() {
  // arguments: id of layer containing scrolling layers (clipped layer), id of layer to scroll, 
  // if horizontal scrolling, id of element containing scrolling content (table?)
  var wndo = new dw_scrollObj('wn2', 'lyr2', 't2');
  
  // pass id('s) of scroll area(s) if inside table(s)
  dw_scrollObj.GeckoTableBugFix('wn2'); 
}

function getDateStr(){
    var today = new Date()
    var year = today.getYear()
    if(year<1000) year+=1900
    var month=new Array(12)
    month[0]="January"
    month[1]="February"
    month[2]="March"
    month[3]="April"
    month[4]="May"
    month[5]="June"
    month[6]="July"
    month[7]="August"
    month[8]="September"
    month[9]="October"
    month[10]="November"
    month[11]="December"
    var date = today.getDate()
    var todayStr = (month[today.getMonth()] + " " + date + ", " + year)
    return todayStr

}

function getYearStr(){
    var today = new Date()
    var year = today.getYear()
    if(year<1000) year+=1900
    var todayStr = year
    return todayStr

}

//-->
