<!--
// browser detection:
var ua = navigator.userAgent;
var ie = (navigator.appName.toLowerCase().indexOf("internet explorer")!=-1)?1:0;
var ns = (navigator.appName.toLowerCase().indexOf("netscape")!=-1)?1:0;
var ns4 = (document.layers)?1:0;
var ns6 = (document.getElementById && ns)?1:0;
var mac = (navigator.userAgent.toLowerCase().indexOf("mac")!=-1)?1:0;
var macie4 = (mac && !ns && parseInt(ua.substr(ua.indexOf("MSIE")+4,2)) <= 4)?1:0;
var macie = (mac && !ns)?1:0;

if (ns4) document.write('<LINK rel="stylesheet" type="text/css" href="css_academy_ns.css" />')
else document.write('<LINK rel="stylesheet" type="text/css" href="css_academy.css" />')

var newWin;
function OpenImage(img,w,h){
	w=parseInt(w)
	h=parseInt(h)
	if (!mac) if (new String(newWin)!="undefined" && newWin!=null) if (!newWin.closed) newWin.close();
	newWin=window.open('','AcademyLondonPicture',"width="+w+",height="+h+",top=0,left=0,location=no,directories=no,hotkeys=no,copyhistory=no,resizable=yes,menubar=no,status=no,toolbar=no,scrollbars=no,z-lock=yes");
	if (mac) win.resizeTo(w+25,h+50)
	var str='<HTML><HEAD><TITLE>Academy of London</TITLE></HEAD><BODY marginwidth=0 marginheight=0 leftmargin=0 topmargin=0><IMG src="' + img + '" width="'+w+'" height="'+h+'"></BODY></HTML>'
	newWin.document.write(str)
	newWin.document.close()
	newWin.focus()
}


// START: fixing the page content on resize >>>

//getting the content height:
var contH="100%"
var contW="100%"
var headerH=124
var footerH=4
function GetContentH(){
	if (ns) 
		{
			if(ns6)
			{
				contH=window.innerHeight-headerH-footerH+1
			}
			else
			contH=window.innerHeight-headerH-footerH
			if (window.innerWidth>778)
				contW=(window.innerWidth-778)/2-8
			else
				contW=0
		}
	else 
		{
			contH=document.body.clientHeight-headerH-footerH
			if (document.body.clientWidth>778)
				contW=parseInt((document.body.clientWidth-778)/2)
			else
				contW=0		
			
		}
}

// END : getting the content height: >>>
FixNSWindow();
function FixNSWindow() {
	if (ns6 || ns && (parseInt(navigator.appVersion) == 4)) {
		if (typeof document.NS == 'undefined') document.NS = new Object;
		if (typeof document.NS.NS_scaleFont == 'undefined') {
			document.NS.FixCssInNS = new Object;
			document.NS.FixCssInNS.initWindowWidth = window.innerWidth;
			document.NS.FixCssInNS.initWindowHeight = window.innerHeight;
		}
		window.onresize = FixCssInNS;
	}
}
function FixCssInNS() {
	if (document.NS.FixCssInNS.initWindowWidth != window.innerWidth || document.NS.FixCssInNS.initWindowHeight != window.innerHeight) document.location = document.location;
}
ReloadWindow();
function ReloadWindow(){if (!ns) setTimeout("window.onresize=new Function('window.location.reload()')",200);}
// <<< END: fixing the page content on resize

//-->