// JavaScript Document

var detect = navigator.userAgent.toLowerCase();
var OS,browser,total,thestring;
var version = 0;
if (checkIt('konqueror'))
{
browser = "Konqueror";
OS = "Linux";
}
else if (checkIt('safari')) browser = "Safari";
else if (checkIt('omniweb')) browser = "OmniWeb";
else if (checkIt('opera')) browser = "Opera";
else if (checkIt('firefox')) browser = "Firefox";
else if (checkIt('msie')) browser = "Internet Explorer";
else if (checkIt('compatible'))
{
browser = "Netscape Navigator"
version = detect.charAt(8);
}
else browser = "An unknown browser";
if (!version) version = detect.charAt(place + thestring.length);
if (!OS)
{
if (checkIt('linux')) OS = "Linux";
else if (checkIt('x11')) OS = "Unix";
else if (checkIt('mac')) OS = "Mac";
else if (checkIt('win')) OS = "Windows";
else OS = "an unknown operating system";
}
function checkIt(string)
{
place = detect.indexOf(string) + 1;
thestring = string;
return place;
}


function WriteCaption(whichcaption) {
switch(whichcaption) {
case '0':
whichcaption = 'Click and drag the image in any direction'
break
case '1':
whichcaption = 'Pan Left'
break
case '2':
whichcaption = 'Pan Right'
break
case '3':
whichcaption = 'Tilt Up'
break
case '4':
whichcaption = 'Tilt Down'
break
case '5':
whichcaption = 'Zoom Out'
break
case '6':
whichcaption = 'Zoom In'
break
case '7':
whichcaption = 'Turn On the autopan'
break
case '8':
whichcaption = 'Turn Off the autopan'
break
case '9':
whichcaption = 'Turn Off Audio'
break
case '10':
whichcaption = 'Turn On Audio'
break
}
document.getElementById('MyCaption').innerHTML = whichcaption;
}






window.moveTo(0,0);
if (browser == "Firefox" && OS == "Mac" && version <= "1")
{
window.resizeTo(window.screen.availWidth,window.screen.availHeight-16);
}
else
{
window.resizeTo(window.screen.availWidth,window.screen.availHeight);
}
window.focus();
