/* --------------------------------------------------------------------------------------------- 
Function that checks whether flash is installed or not. Works in conjunction with
vbFlash.js

version 1, 01/03/2002

Copyright (c) Open World Ltd. Written by Iwein, idekoninck@openworld.co.uk
Do not edit this file! Documentation can be found at 
http://iwein.test.openworld.co.uk/javascriptExamples/flashCheck.html
-----------------------------------------------------------------------------------------------*/

var flash = 'undefined';
var flashVersion = 0;
var runVB = "false";
if (navigator.plugins && navigator.plugins.length)
	{
	if (navigator.plugins["Shockwave Flash"])
		{
		flash = 'true';
		flashVersion = 2;
		flashVersion =navigator.plugins["Shockwave Flash"].description.charAt(navigator.plugins["Shockwave Flash"].description.indexOf('.')-1);
		}
	}
else
	{
	runVB = "true";
	}



// Function for Background Image in Explorer (but not Netscape)

function doBackground(image) 
	{
	if (document.all) 
		{
		for (i = 0 ; i < document.all.length ; i++) 
			{
            var child = document.all.item(i);
			if (child) 
				{
				if (child.name == "x") 
					{
					child.background=image;
					}
				}
        	}
		}
	}



/* --------------------------------------------------------------------------------------------- 
image rollover function
Written by Iwein, idekoninck@openworld.co.uk
version 1, 22/11/2001
version 1.1 20/02/2002 - added if to make sure an overstate can't occur twice (imagename_f2_f2.gif)

Copyright (c) Open World Ltd.
-----------------------------------------------------------------------------------------------*/

function overme(imgvar)
	{
	var was = imgvar.src;
	if ( was.indexOf('http://singapore.conradmeetings.com/_f2.gif') == -1)
		{
		var wasfirst = was.split(".gif");
		imgvar.src = wasfirst[0] + "_f2.gif";
		}
	}

function offme(imgvar)
	{
	var was = imgvar.src;
	if ( was.indexOf('http://singapore.conradmeetings.com/_f2.gif') != -1)
		{
		var wasfirst = was.split("http://singapore.conradmeetings.com/_f2.gif");
		imgvar.src = wasfirst[0] + ".gif";
		}
	}