function chkBrowser(){this.ver=navigator.appVersion;this.dom=document.getElementById?1:0;this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;this.ie4=(document.all && !this.dom)?1:0;
this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;this.ns4=(document.layers && !this.dom)?1:0;this.bVer=(this.ie5 || this.ie4 || this.ns4 || this.ns5);return this;}
bVer=new chkBrowser();ns4 = (document.layers)? true:false;ie4 = (document.all)? true:false;function AttB(f){if(bVer.ie4)f.style.display='block';}function AttN(f){if(bVer.ie4)f.style.display='none';}

function show(idLayer,idParent){
cLayer=bVer.dom?document.getElementById(idLayer).style:bVer.ie4?document.all[idLayer].style:bVer.ns4?idParent?document[idParent].document[idLayer]:document[idLayer]:0;
cLayer.display='block';divLinksForm=(ns4)?document.divLinks.document.divLinks:document.divLinks;}

function hide(idLayer,idParent){cLayer=bVer.dom?document.getElementById(idLayer).style:bVer.ie4?document.all[idLayer].style:bVer.ns4?idParent?document[idParent].document[idLayer]:document[idLayer]:0;
var d=document.Wiz;cLayer.display='none';}

function VirtualTour() {
var externalWin1 = null;
externalWin1 = window.open('360Web/default.htm','VirtualTour','width=740,height=300,top=20,left=20,Resizable=0');
}
function PhotoGallery(){
window.open("PhotoGallery/default.htm","","fullscreen, scrollbars")
}
function AA_openBrWindow(theURL) {
var externalWin2 = null;
externalWin2 = window.open(theURL,'Foto','width=300,height=300,top=20,left=20,Resizable=1');
}

function Note(theURL) {
var externalWin4 = null;
externalWin4 = window.open(theURL,'Foto','width=600,height=450,top=20,left=20,Resizable=1, Scrollbars=1');
}

function A_openBrWindow(theURL) {
var externalWin1 = null;
externalWin1 = window.open(theURL,'FotoA','width=300,height=300,top=0,left=0,Resizable=1');
}

var flashlinks=new Array()

function changelinkcolor(){
for (i=0; i< flashlinks.length; i++){
var flashtype=document.getElementById? flashlinks[i].getAttribute("flashtype")*1 : flashlinks[i].flashtype*1
var flashcolor=document.getElementById? flashlinks[i].getAttribute("flashcolor") : flashlinks[i].flashcolor
if (flashtype==0){
if (flashlinks[i].style.color!=flashcolor)
flashlinks[i].style.color=flashcolor
else
flashlinks[i].style.color=''
}
else if (flashtype==1){
if (flashlinks[i].style.backgroundColor!=flashcolor)
flashlinks[i].style.backgroundColor=flashcolor
else
flashlinks[i].style.backgroundColor=''
}
}
}

function init(){
var i=0
if (document.all){
while (eval("document.all.flashlink"+i)!=null){
flashlinks[i]= eval("document.all.flashlink"+i)
i++
} 
}
else if (document.getElementById){
while (document.getElementById("flashlink"+i)!=null){
flashlinks[i]= document.getElementById("flashlink"+i)
i++
}
}
setInterval("changelinkcolor()", 470)
}
if (window.addEventListener)
window.addEventListener("load", init, false)
else if (window.attachEvent)
window.attachEvent("onload", init)
else if (document.all)
window.onload=init
