
view1=0;
view2=0;
view3=0;
view4=0;
view5=0;

isIE5 = false;
isNS4 = (document.layers) ? true : false;
isIE5 = (document.all && document.getElementById) ? true : false;
isNS6 = (!document.all && document.getElementById) ? true : false;
/* This is the start of the code for the layers */
function show(object){
   if (isIE5 || isNS6)
      document.getElementById(object).style.visibility = "visible";
   if (isNS4)
      eval('document.' + object + '.visibility = "visible"');
}
function hide(object){
   if (isIE5 || isNS6){
   document.getElementById(object).style.visibility = "hidden";}
   if (isNS4){
      eval('document.' + object + '.visibility = "hidden"');}
}

function checka(){
	if(view1==0) {
	hide('news');
	}
}

function checkb(){
	if(view2==0) {
	hide('navTour');
	}
}

function checkc(){
	if(view3==0) {
	hide('navTee');
	}
}

function checkd(){
	if(view4==0) {
	hide('navgreen');
	}
}

function showp(object){
	if(document.getElementById(object).style.visibility != "visible"){
		hideportfolio();
		if (isIE5 || isNS6)
		document.getElementById(object).style.visibility = "visible";
		if (isNS4)
		eval('document.' + object + '.visibility = "visible"');
	}
}


function newcontent(pageid){
	document.getElementById('folio').src = 'folio_detail.cfm?pageid='+pageid;
}

function showhide(clearpw, encpw){
	if (document.getElementById(clearpw).style.display == 'none'){
		document.getElementById(clearpw).style.display = 'inline';
		document.getElementById(encpw).style.display = 'none';
	}
	else{
		document.getElementById(clearpw).style.display = 'none';
		document.getElementById(encpw).style.display = 'inline';
	}
}



/* Function that preloads images. */

var arImages=new Array();
function Preload() {
 var temp = Preload.arguments; 
 for(x=0; x < temp.length; x++) {
  arImages[x]=new Image();
  arImages[x].src=Preload.arguments[x];
 }
}

/* Function that swaps images. */

function di20(id, newSrc) {
    //var theImage = FWFindImage(document, id, 0);
    //if (theImage) {
        document.getElementById(id).src = newSrc;
    //}
}

/* Functions that track and set toggle group button states. */

function FWFindImage(doc, name, j) {
    var theImage = false;
    if (doc.images) {
        theImage = doc.images[name];
    }
    if (theImage) {
        return theImage;
    }
    if (doc.layers) {
        for (j = 0; j < doc.layers.length; j++) {
            theImage = FWFindImage(doc.layers[j].document, name, 0);
            if (theImage) {
                return (theImage);
            }
        }
    }
    return (false);
}

function popMpg(source){
	newView = window.open(source,"popup","width=350,height=320,resizable=0,scrollbars=0,toolbar=0,menubar=0,location=0")
	newView.focus();
}

function popPort(source){
	newView = window.open(source,"pic","width=400,height=530,resizable=0,scrollbars=0,toolbar=0,menubar=0,location=0")
	newView.focus();
}

function popLand(source){
	newView = window.open(source,"landscp","width=530,height=400,resizable=0,scrollbars=0,toolbar=0,menubar=0,location=0")
	newView.focus();
}

function popLegal(source){
	newView = window.open(source,"legal","width=400,height=300,resizable=0,scrollbars=1,toolbar=0,menubar=0,location=0")
	newView.focus();
}

function popExt(source){
	newView = window.open(source,"out","width=800,height=600,resizable=1,scrollbars=1,toolbar=1,menubar=1,location=1")
	newView.focus();
}

function popLnx(source){
	newView = window.open(source,"links","width=600,height=450,resizable=0,scrollbars=1,toolbar=0,menubar=0,location=0")
	newView.focus();
}