<!--
window.defaultStatus='';
if (parent.frames.length > 0) {
    // parent.location.href = self.document.location;
}

function NavRollOver(oTd,spanId,bgcolor,color)
{
/* Mystery to me. Looks like some IE thing.
Just as easier to code it to work for all
web broswers.
if (!oTd.contains(event.fromElement))
{
oTd.bgColor="#CC0000";
}
end of IE stuff. */

oTd.style.backgroundColor = bgcolor;
var spanElem = document.getElementById(spanId);
spanElem.style.color = color;
}

function NavRollOut(oTd,spanId,bgcolor,color)
{
oTd.style.backgroundColor = bgcolor;
var spanElem = document.getElementById(spanId);
spanElem.style.color = color;
}


function ipad(echo) {
	var isiPad = navigator.userAgent.match(/iPad/i) != null;
	if (isiPad) document.write(echo);
}

function displayInfo(filename,params) {
	var generator=window.open(filename,'infoWindow',params);
}

function displayInfoCenter(filename,width,height) {
	var generator = null;
	var left = (screen.width - width) / 2;
	var top = (screen.height - height) / 2;
	var windef = 'height=' + height + ',width=' + width + ', top=' + top + ', left=' + left;

	var generator=window.open(filename,'infoWindow', windef);
}

function galleryimage(filename,width,height) {
	var generator = null;
	var left = (screen.width - width) / 2;
	var top = (screen.height - height) / 2;
	var windef = 'height=' + height + ',width=' + width + ', top=' + top + ', left=' + left;
	
	generator = window.open('','',windef);
	generator.document.write('<html><head><title>IANTD UK</title>\n');
	generator.document.write('<style>BODY { background-position: center; background-repeat: no-repeat; } </style></head>\n');
	generator.document.write('<body background=\"gfx/pleasewait.png\" bgcolor=\"#FFFFFF\" leftmargin=\"0\" topmargin=\"0\" onBlur=\"javascript:window.close();\">\n');
	generator.document.write('<img src='+filename+'>\n');
	generator.document.write('</body></html>');
}

function galleryimage(filename,width,height) {
	var generator = null;
	var left = (screen.width - width) / 2;
	var top = (screen.height - height) / 2;
	var windef = 'height=' + height + ',width=' + width + ', top=' + top + ', left=' + left;
	
	generator = window.open('','',windef);
	generator.document.write('<html><head><title>IANTD Picture Gallery</title></head>');
	generator.document.write('<body bgcolor=#FFFFFF leftmargin=0 topmargin=0>');
	generator.document.write('<img src='+filename+'>');
	generator.document.write('</body></html>');
}

function displayInfo(filename,params) {
	var generator=window.open(filename,'infoWindow',params);
}

function onbutton(button) {
	if (navigator.appVersion >= "3") {
		document[button].src = "gfx/" + button + "001.png"
		}
	}

function offbutton(button) {
	if (navigator.appVersion >= "3") {
		document[button].src = "gfx/" + button + "000.png"
		}
	}

function photo(photoID, captionID, filename, caption, wsize, hsize) {
	if (navigator.appVersion >= "3") {
		document.getElementById(photoID).src = "gallery/" + filename;
		document.getElementById(photoID).width = wsize;
		document.getElementById(photoID).height = hsize;
		document.getElementById(captionID).innerHTML = caption;
		}
	}	
	
function preload(filename) {
	var image = new Image;
	image.src = filename;
	}
	
function playvideo(id, clipname, image, auto, wsize, hsize, dsize, repeat) {
	var FLV = {
		movie:"flash/flvplayer.swf",
		width: wsize,
		height: hsize,
		majorversion: "7",
		build: "0",
		bgcolor: "#FFFFFF",
		allowfullscreen: "false",
		flashvars: "file=" + clipname + "&image="+ image + "&autostart=" + auto + "&repeat=" + repeat + 		
			"&displayheight=" + dsize
	};
	UFO.create(FLV, id);
	}

function playmp3(clipname, wsize, hsize) {
	document.write('<object type=\"application/x-shockwave-flash\" data=\"flash/mp3player.swf\" id=\"audioplayer1\" height=' + hsize + ' width=' + wsize + '>');
	document.write('<param name=\"movie\" value=\"flash/mp3player.swf\">');
	document.write('<param name=\"FlashVars\" value=\"playerID=1&amp;soundFile=' + clipname + '\">');
	document.write('<param name=\"quality\" value=\"high\">');
	document.write('<param name=\"menu\" value=\"false\">');
	document.write('<param name=\"wmode\" value=\"transparent\">');
	document.write('</object>');
	}

-->



