

Xoffset= 0;    // modify these values to ...
Yoffset= 10;    // change the popup position.

var pstyle;
var timerId;
var ns4=document.layers;
var ns6=document.getElementById&&!document.all;
var ie4=document.all;	

var menu1=new Array();
menu1[0]="<tr><td class='sub' onmouseover='pause()'><a href='Chairman.html'>Chairman&acute;s Message</a></td></tr>";
menu1[1]="<tr><td class='sub' onmouseover='pause()'><a href='Reports.html'>Annual Report</a></td></tr>";


var menu2=new Array();
menu2[0]="<tr><td class='sub' onmouseover='pause()'><a href='../EVENTS/golf_challenge_2005.html'>Golf Challenge 2005</a></td></tr>";
menu2[1]="<tr><td class='sub' onmouseover='pause()'><a href='../EVENTS/cultural_rhythms_2004.html'>Cultural Rhythms 2004</a></td></tr>";

function getLeft(td)
{
	var left = td.offsetLeft;
	var el = td;
	while (el = el.offsetParent){
		left += el.offsetLeft;
	}
	return left;
}

function getTop(td)
{
	var top = td.offsetTop;
	var el = td;
	while (el = el.offsetParent){
		top += el.offsetTop;
	}
	return top;
}

function populate(menu){
	var s='';
	for(i=0;i<menu.length;i++){
		s+=menu[i];
	}
	return s;
}



function popup(t,name,num){
	t.src='../images/navbar2_0'+num+'.gif';
	timerId = null;
	
	if (ns4){
	pstyle=document.dek;
	}else if (ns6){
	pstyle=document.getElementById("dek").style;
	}else if (ie4){
	pstyle=document.all.dek.style;
	}
		
	pstyle.visibility="visible";
	pstyle.display="none";
	pstyle.position="absolute";
	
	pstyle.left = getLeft(t)+Xoffset+t.offsetWidth+"px";
    pstyle.top = getTop(t)+Yoffset+"px";
	
	var content="<div><TABLE bgcolor=#055AAF BORDER=0 CELLPADDING=0 CELLSPACING=0  onmouseover='pause()' onmouseout='kill3()'>\
					"+populate(name)+"\
					</TABLE></div>";
	
	if(ns4){pstyle.document.write(content);pstyle.document.close();pstyle.visibility="visible";}
	if(ns6){document.getElementById("dek").innerHTML=content;pstyle.display='';}
	if(ie4){document.all("dek").innerHTML=content;pstyle.display='';}
	
}

function ad1(){
	
	timerId = null;
	var ad = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"375\" height=\"266\">\
                                <param name=\"movie\" value=\"../flash/fete_ad.swf\">\
                                <param name=\"quality\" value=\"high\">\
								<param name=\"wmode\"value=\"transparent\">\
                                <embed src=\"../flash/fete_ad.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"375\" height=\"266\" wmode=\"transparent\" ></embed>\
						      </object>";
	
	
							  
	if (ns4){
	pstyle=document.dek;
	}else if (ns6){
	pstyle=document.getElementById("dek").style;
	}else if (ie4){
	pstyle=document.all.dek.style;
	}
		
	pstyle.visibility="visible";
	pstyle.display="none";
	pstyle.position="absolute";
	
	pstyle.left =(450)+"px";
    pstyle.top =(200)+"px";
	
	var content="<div><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>\
					"+ad+"\
					</TABLE></div>";
	
	if(ns4){pstyle.document.write(content);pstyle.document.close();pstyle.visibility="visible";}
	if(ns6){document.getElementById("dek").innerHTML=content;pstyle.display='';}
	if(ie4){document.all("dek").innerHTML=content;pstyle.display='';}
	
	if (ie4||ns6){
		timerId = setTimeout("noshow()",10000);
	}
	
	
}
function ad2(){
	var ad2 = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"144\" height=\"150\">\
                                <param name=\"movie\" value=\"../flash/fete_ad.swf\">\
                                <param name=\"quality\" value=\"high\">\
								<param name=\"wmode\"value=\"transparent\">\
                                <embed src=\"../flash/fete_ad.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"144\" height=\"150\" wmode=\"transparent\" ></embed>\
						      </object>";
	
	document.write(ad2);
}

function noshow(){	
/**/
	if(ns4){pstyle.visibility="hidden";}
	else if (ns6||ie4)
		pstyle.display="none";/**/
}

function pause(){
	clearTimeout(timerId);
}


function kill(t,num){	
	t.src='../images/navbar_0'+num+'.gif';
	kill2();

}	

function kill_(){
	if (ie4||ns6){
		timerId = setTimeout("noshow()",0);
	}
}

function kill2(){		
	if (ie4||ns6){
		timerId = setTimeout("noshow()",3000);
	}
}
function kill3(){
	if (ie4||ns6){
		timerId = setTimeout("noshow()",5000);
	}
}


