var dept = "/";
var domain = "";
var scserver = "http"+"://www.hkrep.com/gb/";
var locapath = document.location.href

var atlang,domname,sitepath,atgb,atindex,org_part,atdiff;
	sc_path = "sc_chi/";
	sctxt_path = "textonly/tc_chi/";
	tc_path = "tc_chi/";
	tctxt_path = "textonly/tc_chi/";
	en_path = "english/";
	entxt_path = "textonly/english/";
	atgb = false;
	atindex = false;

if (locapath.toString().search('/gb/')!= -1){
	atgb = true;
	org_path_start = locapath.indexOf("/gb/") +4;
	org_path_end = locapath.length;
	sitepath = locapath.substring(org_path_start, org_path_end);
}else{
	atgb = false;
	sitepath = locapath.substring(7,locapath.length);
}

if (locapath.toString().search('/textonly/english/')!= -1){
	atlang = "entxt";
	org_part = entxt_path;
}else
if (locapath.toString().search('/textonly/tc_chi/')!= -1){
	atlang = "tctxt";
	org_part = tctxt_path;
}else
if (locapath.toString().search('/textonly/sc_chi/')!= -1){
	atlang = "sctxt";
	org_part = sctxt_path;
}else
if (locapath.toString().search('/english/')!= -1){
	atlang = "en";
	org_part = en_path;
}else
if (locapath.toString().search('/tc_chi/')!= -1){
	atlang = "tc";
	org_part = tc_path;
}else
if (locapath.toString().search('/sc_chi/')!= -1){
	atlang = "sc";
	org_part = sc_path;
}else
if (locapath.toString().search('/textonly/eindex.html')!= -1){
	atlang = "txteindex";
	org_part = "textonly/eindex.html";
	atindex = true;
}else
if (locapath.toString().search('eindex.html')!= -1){
	atlang = "eindex";
	org_part = "eindex.html";
	atindex = true;
}else
if (locapath.toString().search('/textonly/cindex.html')!= -1){
	atlang = "txtcindex";
	org_part = "textonly/cindex.html";
	atindex = true;
}else
if (locapath.toString().search('cindex.html')!= -1){
	atlang = "cindex";
	org_part = "cindex.html";
	atindex = true;
}else
if (locapath.toString().search('/textonly/scindex.html')!= -1){
	atlang = "txtsindex";
	org_part = "textonly/scindex.html";
	atindex = true;
}else
if (locapath.toString().search('scindex.html')!= -1){
	atlang = "sindex";
	org_part = "scindex.html";
	atindex = true;
}else
if (locapath.toString().search('index.html')!= -1){
	atlang = "cindex";
	org_part = "index.html";
	atindex = true;
}else{

	atdiff = true;
}

//domain = sitepath.substring(0, sitepath.indexOf("/"));
domain = "www.hkrep.com/";
subdir = "";

function chglang(lang){

	switch(lang){
		case 'entxt': 
			des_part = entxt_path;
			des_ind_part = "textonly/eindex.html";
			base_path = "http" + "://";
			break;
		case 'tctxt':
			des_part = tctxt_path;
			des_ind_part = "textonly/cindex.html";
			base_path = "http" + "://";
			break;
		case 'sctxt':
			des_part = sctxt_path;
			des_ind_part = "textonly/scindex.html";
			base_path = scserver;
			//base_path = "http" + "://";
			break;
		case 'en':
			des_part = en_path;
			des_ind_part = "index.html";
			base_path = "http" + "://";
			break;
		case 'tc':
			des_part = tc_path;
			des_ind_part = "index.html";
			base_path = "http" + "://";
			break;
		case 'sc':
			des_part = sc_path;
			des_ind_part = "index.html";
			//base_path = scserver;
			base_path = "http" + "://";
			break;
	}
	if (atdiff == true){
		tail = domain + des_ind_part;
	}else
	if (atindex == true){
		tail = sitepath.replace(org_part, des_ind_part);
	}else{
		tail = sitepath.replace(org_part, des_part);
	}

//alert(base_path+tail)
        window.location =  base_path+tail;

}

function tellafriend( lang )
{
  if (lang == 'eng')
  {
     window.location = subdir + '/english/tell/tell.html?base=http%3A//'+ domain + subdir + '/english/tell/&url=' + escape(window.location);
  }else if (lang == 'chi')
  {
     window.location = subdir + '/tc_chi/tell/tell.html?base=http%3A//'+ domain + subdir + '/tc_chi/tell/&url=' + escape(window.location);
  }else if (lang == 'schi')
  {
     window.location = subdir + '/sc_chi/tell/tell.html?base=http%3A//'+ domain + subdir + '/sc_chi/tell/&url=' + escape(window.location);
  }else if (lang == 'eng_txt')  
  {
     window.location = subdir + '/textonly/english/tell/tell.html?base=http%3A//'+ domain + subdir + '/textonly/english/tell/&url=' + escape(window.location);
  }else if (lang == 'chi_txt')
  {
     window.location = subdir + '/textonly/tc_chi/tell/tell.html?base=http%3A//'+ domain + subdir + '/textonly/tc_chi/tell/&url=' + escape(window.location);
  }else if (lang == 'schi_txt')
  {
     window.location = subdir + '/textonly/sc_chi/tell/tell.html?base=http%3A//'+ domain + subdir + '/textonly/sc_chi/tell/&url=' + escape(window.location);
  }
  //window.location = '../tell/tell.html?url=' + escape(window.location);
}

function splitString (stringToSplit,separator) {
 var arrayOfStrings = stringToSplit.split(separator);
 return arrayOfStrings[1];
}



function writefooter(){

						// want to make these code to writefooter(); function;
						
document.write("<tr>");					
	document.write("<td background=\"images/bottom.jpg\" width=\"960\" height=\"93\">");
		document.write("<table width=\"960\" height=\"93\" cellpadding=\"0\" cellspacing=\"0\">");	
			document.write("<tr>");
				document.write("<td width=\"100\"></td>");
				document.write("<td><a href=\"http://www.lcsd.gov.hk/\"><img src=\"images/trans.gif\" border=\"0\" width=\"320\" height=\"93\"></a></td>");
				document.write("<td width=\"300\"></td>");
				document.write("<td>");
					document.write("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">");
						document.write("<tr>");
							document.write("<td height=\"20\"></td>");
						document.write("</tr>");
						document.write("<tr>");
							document.writeln("<td><a href=\"http://www.fancl-hk.com/\"><img src=\"images/trans.gif\" border=\"0\" width=\"60\" height=\"25\"></a></td>");
						document.write("</tr>");
						document.write("<tr>");
							document.write("<td height=\"48\"></td>");
						document.write("</tr>");
					document.write("</table>");
				document.write("</td>");
				document.write("<td width=\"180\"></td>");
						document.write("</tr>");
					document.write("</table>");
				document.write("</td>");
			document.write("</tr>");
		document.write("</table>");
	document.write("</td>");
document.write("</tr>");				
		// -- 



}

function writeheader(){
	
document.write("<table width=\"960\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">");
document.write("<tr>");
document.write("<td height=\"26\">");

	document.write("<table width=\"960\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" background=\"../images/buttonbg01.jpg\">");
	document.write("<tr>");
	document.write("<td width=\"476\"></td>");
	document.write("<td><a href=\"../index/index.html\" onMouseOver=\"ChangeImageOver('bb01','../images/bb01b.png');\" onMouseOut=\"ChangeImageOut('bb01','../images/bb01a.png');\"><img src=\"../images/bb01a.png\" border=\"0\" name=\"bb01\" id=\"bb01\"></a></td>");
	document.write("<td width=\"3\"></td>");
	document.write("<td><a href=\"../contactus/contactus.html\" onMouseOver=\"ChangeImageOver('bb02','../images/bb02b.png');\" onMouseOut=\"ChangeImageOut('bb02','../images/bb02a.png');\"><img src=\"../images/bb02a.png\" border=\"0\" name=\"bb02\" id=\"bb02\"></a></td>");
	document.write("<td width=\"3\"></td>");
	document.write("<td><a href=\"../link/link.html\" onMouseOver=\"ChangeImageOver('bb03','../images/bb03b.png');\" onMouseOut=\"ChangeImageOut('bb03','../images/bb03a.png');\"><img src=\"../images/bb03a.png\" border=\"0\" name=\"bb03\" id=\"bb03\"></a></td>");
	document.write("<td width=\"3\"></td>");
	document.write("<td><a href=\"../sitemap/sitemap.html\" onMouseOver=\"ChangeImageOver('bb04','../images/bb04b.png');\" onMouseOut=\"ChangeImageOut('bb04','../images/bb04a.png');\"><img src=\"../images/bb04a.png\" border=\"0\" name=\"bb04\" id=\"bb04\"></a></td>");
	document.write("<td width=\"3\"></td>");
	document.write("<td><a href=\"../editors/default.asp\"><img src=\"../images/bbut00.png\" border=\"0\"></a></td>");
	document.write("<td width=\"3\"></td>");
	document.write("<td><img src=\"../images/lan01b.png\" border=\"0\" name=\"lan01\" id=\"lan01\"></td>");
	document.write("<td width=\"3\"></td>");
	document.write("<td><a href=\"../../sc_chi/index/\" onMouseOver=\"ChangeImageOver('lan02','../images/lan02b.png');\" onMouseOut=\"ChangeImageOut('lan02','../images/lan02a.png');\"><img src=\"../images/lan02a.png\" border=\"0\" name=\"lan02\" id=\"lan02\"></a></td>");
	document.write("<td width=\"3\"></td>");
	document.write("<td><a href=\"../../english/index/\" onMouseOver=\"ChangeImageOver('lan03','../images/lan03b.png');\" onMouseOut=\"ChangeImageOut('lan03','../images/lan03a.png');\"><img src=\"../images/lan03a.png\" border=\"0\" name=\"lan03\" id=\"lan03\"></a></td>");
	document.write("</tr>");
	document.write("</table>");
document.write("</td>");
document.write("</tr>");

document.write("<tr>");
document.write("<td height=\"2\"></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td height=\"1\"></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td width=\"960\" height=\"3\" bgcolor=\"#f8b00e\"></td>");
document.write("</tr>");
document.write("</table>");

    	document.write("</td>");
  document.write("</tr>");
  document.write("<tr>");
    document.write("<td colspan=\"3\" align=\"center\">");
    
document.write("<table width=\"960\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" background=\"../images/buttonbg02.png\">");
document.write("<tr>");
document.write("<td width=\"10\"></td>");
document.write("<td><a href=\"#\" onMouseOver=\"ChangeImageOver('but01','../images/but01b.png');switchmenu(1);\" onMouseOut=\"ChangeImageOut('but01','../images/but01a.png');switchoffmenu(1)\"><img src=\"../images/but01a.png\" border=\"0\" name=\"but01\" id=\"but01\"></a></td>");
document.write("<td width=\"10\"></td>");
document.write("<td><a href=\"../news/news.html\" onMouseOver=\"ChangeImageOver('but02','../images/but02b.png');\" onMouseOut=\"ChangeImageOut('but02','../images/but02a.png');\"><img src=\"../images/but02a.png\" border=\"0\" name=\"but02\" id=\"but02\"></a></td>");
document.write("<td width=\"10\"></td>");
document.write("<td><a href=\"../adirector/adirector-1.html\" onMouseOver=\"ChangeImageOver('but03','../images/but03b.png');\" onMouseOut=\"ChangeImageOut('but03','../images/but03a.png');\"><img src=\"../images/but03a.png\" border=\"0\" name=\"but03\" id=\"but03\"></a></td>");
document.write("<td width=\"10\"></td>");
document.write("<td><a href=\"../actor/actor.html\" onMouseOver=\"ChangeImageOver('but04','../images/but04b.png');\" onMouseOut=\"ChangeImageOut('but04','../images/but04a.png');\"><img src=\"../images/but04a.png\" border=\"0\" name=\"but04\" id=\"but04\"></a></td>");
document.write("<td width=\"10\"></td>");
//document.write("<td><a href=\"../season/season.html\" onMouseOver=\"ChangeImageOver('but05','../images/but05b.png');\" onMouseOut=\"ChangeImageOut('but05','../images/but05a.png');\"><img src=\"../images/but05a.png\" border=\"0\" name=\"but05\" id=\"but05\"></a></td>");
document.write("<td><a href=\"#\" onMouseOver=\"ChangeImageOver('but05','../images/but05b_new.png');switchmenu(5);\" onMouseOut=\"ChangeImageOut('but05','../images/but05a_new.png');switchoffmenu(5)\"><img src=\"../images/but05a_new.png\" border=\"0\" name=\"but05\" id=\"but05\"></a></td>");
document.write("<td width=\"10\"></td>");
document.write("<td><a href=\"#\" onMouseOver=\"ChangeImageOver('but06','../images/but06b.png');switchmenu(2);\" onMouseOut=\"ChangeImageOut('but06','../images/but06a.png');switchoffmenu(2)\"><img src=\"../images/but06a.png\" border=\"0\" name=\"but06\" id=\"but06\"></a></td>");
document.write("<td width=\"10\"></td>");
document.write("<td><a href=\"#\" onMouseOver=\"ChangeImageOver('but07','../images/but07b.png');switchmenu(3);\" onMouseOut=\"ChangeImageOut('but07','../images/but07a.png');switchoffmenu(3)\"><img src=\"../images/but07a.png\" border=\"0\" name=\"but07\" id=\"but07\"></a></td>");
document.write("<td width=\"10\"></td>");
document.write("<td><a href=\"../review/review.html\" onMouseOver=\"ChangeImageOver('but08','../images/but08b.png');\" onMouseOut=\"ChangeImageOut('but08','../images/but08a.png');\"><img src=\"../images/but08a.png\" border=\"0\" name=\"but08\" id=\"but08\"></a></td>");
document.write("<td width=\"10\"></td>");
document.write("<td><a href=\"../pal/pal2010.html\" onMouseOver=\"ChangeImageOver('but09','../images/but09b.png');\" onMouseOut=\"ChangeImageOut('but09','../images/but09a.png');switchoffmenu(4)\"><img src=\"../images/but09a.png\" border=\"0\" name=\"but09\" id=\"but09\"></a></td>");
document.write("<td width=\"10\"></td>");
document.write("<td><a href=\"../rent/rent.html\" onMouseOver=\"ChangeImageOver('but10','../images/but10b.png');\" onMouseOut=\"ChangeImageOut('but10','../images/but10a.png');\"><img src=\"../images/but10a.png\" border=\"0\" name=\"but10\" id=\"but10\"></a></td>");
document.write("<td width=\"10\"></td>");
document.write("</tr>");
document.write("</table>");


document.write("</td>");
document.write("</tr>");

document.write("<tr>");
document.write("<td height=\"25\" valign=\"top\" colspan=\"3\" align=\"center\">");

document.write("<table width=\"960\" cellspacing=\"0\" cellpadding=\"0\">");
document.write("<tr>");
document.write("<td>");
							document.write("<div style=\"position:relative; z-index:2;\" id=\"sm2\">");
							document.write("<div style=\"position:absolute;left:30px;top:0px;display:none;\" id=\"submenu1\">");
								document.write("<table width=\"960\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">");
								document.write("<tr>");
								document.write("<td height=\"3\" colspan=\"19\" onmouseover=\"switchmenu(1)\"></td>");
								document.write("</tr>");
								document.write("<tr>");
								document.write("<td width=\"1\" onmouseover=\"switchoffmenu(1)\"></td>");
								document.write("<td><a href=\"../aboutus/aboutus-intro.html\" onMouseOver=\"ChangeImageOver('sbutton1_1','../images/sbut01b.png');\" onMouseOut=\"ChangeImageOut('sbutton1_1','../images/sbut01a.png');\"><img src=\"../images/sbut01a.png\" id=\"sbutton1_1\" name=\"sbutton1_1\" border=\"0\"></a></td>");
								document.write("<td width=\"15\"></td>");
								document.write("<td><a href=\"../aboutus/aboutus-mission.html\" onMouseOver=\"ChangeImageOver('sbutton1_2','../images/sbut02b.png');\" onMouseOut=\"ChangeImageOut('sbutton1_2','../images/sbut02a.png');\"><img src=\"../images/sbut02a.png\" id=\"sbutton1_2\" name=\"sbutton1_2\" border=\"0\"></a></td>");
								document.write("<td width=\"15\"></td>");
								document.write("<td><a href=\"../aboutus/aboutus-list-1.html\" onMouseOver=\"ChangeImageOver('sbutton1_3','../images/sbut03b.png');\" onMouseOut=\"ChangeImageOut('sbutton1_3','../images/sbut03a.png');\"><img src=\"../images/sbut03a.png\" id=\"sbutton1_3\" name=\"sbutton1_3\" border=\"0\"></a></td>");
								document.write("<td width=\"15\"></td>");
								document.write("<td><a href=\"../aboutus/aboutus-artisticadvisors.html\" onMouseOver=\"ChangeImageOver('sbutton1_4','../images/sbut04b.png');\" onMouseOut=\"ChangeImageOut('sbutton1_4','../images/sbut04a.png');\"><img src=\"../images/sbut04a.png\" id=\"sbutton1_4\" name=\"sbutton1_4\" border=\"0\"></a></td>");
								document.write("<td width=\"15\"></td>");
								document.write("<td><a href=\"../aboutus/aboutus-directorlaureate.html\" onMouseOver=\"ChangeImageOver('sbutton1_5','../images/sbut05b.png');\" onMouseOut=\"ChangeImageOut('sbutton1_5','../images/sbut05a.png');\"><img src=\"../images/sbut05a.png\" id=\"sbutton1_5\" name=\"sbutton1_5\" border=\"0\"></a></td>");
								document.write("<td width=\"15\"></td>");
								document.write("<td><a href=\"../aboutus/aboutus-vps.html\" onMouseOver=\"ChangeImageOver('sbutton1_6','../images/sbut06b.png');\" onMouseOut=\"ChangeImageOut('sbutton1_6','../images/sbut06a.png');\"><img src=\"../images/sbut06a.png\" id=\"sbutton1_6\" name=\"sbutton1_6\" border=\"0\"></a></td>");
								document.write("<td width=\"15\"></td>");
								document.write("<td><a href=\"../aboutus/aboutus-annual.html\" onMouseOver=\"ChangeImageOver('sbutton1_7','../images/sbut07b.png');\" onMouseOut=\"ChangeImageOut('sbutton1_7','../images/sbut07a.png');\"><img src=\"../images/sbut07a.png\" id=\"sbutton1_7\" name=\"sbutton1_7\" border=\"0\"></a></td>");
								document.write("<td width=\"15\"></td>");
								document.write("<td><a href=\"../aboutus/aboutus-gift.html\" onMouseOver=\"ChangeImageOver('sbutton1_8','../images/sbut08b.png');\" onMouseOut=\"ChangeImageOut('sbutton1_8','../images/sbut08a.png');\"><img src=\"../images/sbut08a.png\" id=\"sbutton1_8\" name=\"sbutton1_8\" border=\"0\"></a></td>");
								document.write("<td width=\"15\"></td>");
								document.write("<td><a href=\"../aboutus/aboutus-joinus.html\" onMouseOver=\"ChangeImageOver('sbutton1_9','../images/sbut09b.png');\" onMouseOut=\"ChangeImageOut('sbutton1_9','../images/sbut09a.png');\"><img src=\"../images/sbut09a.png\" id=\"sbutton1_9\" name=\"sbutton1_9\" border=\"0\"></a></td>");
								document.write("<td width=\"194\" onmouseover=\"switchoffmenu(1)\"></td>");
								document.write("</tr>");
								document.write("<tr>");
								document.write("<td colspan=\"19\"></td>");
								document.write("</tr>");
								document.write("<tr>");
								document.write("<td colspan=\"19\" onmouseover=\"switchoffmenu(1)\"></td>");
								document.write("</tr>");
								document.write("</table>");
							document.write("</div>");
							document.write("</div>");
							
							document.write("<div style=\"position:relative; z-index:3;\" id=\"sm3\">");
								document.write("<div style=\"position:absolute;left:0px;top:0px;display:none;\" id=\"submenu2\">");
											document.write("<table width=\"960\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">");
												document.write("<tr>");
													document.write("<td height=\"3\" colspan=\"8\" onmouseover=\"switchmenu(2)\"></td>");
												document.write("</tr>");
												document.write("<tr>");
													document.write("<td width=\"498\"></td>");
													document.write("<td width=\"1\" onmouseover=\"switchoffmenu(2)\"></td>");
													document.write("<td><a href=\"../outreach/outreach.html\" onMouseOver=\"ChangeImageOver('sbutton2_1','../images/sbut10b.png');\" onMouseOut=\"ChangeImageOut('sbutton2_1','../images/sbut10a.png');\"><img src=\"../images/sbut10a.png\" id=\"sbutton2_1\" name=\"sbutton2_1\" border=\"0\"></a></td>");
													//document.write("<td><a href=\"../outreach/outreach-2.html\" onMouseOver=\"ChangeImageOver('sbutton2_2','../images/sbut11b.png');\" onMouseOut=\"ChangeImageOut('sbutton2_2','../images/sbut11a.png');\"><img src=\"../images/sbut11a.png\" id=\"sbutton2_2\" name=\"sbutton2_2\" border=\"0\"></a></td>");
													document.write("<td><a href=\"../outreach/outreach-3.html\" onMouseOver=\"ChangeImageOver('sbutton2_3','../images/sbut12b.png');\" onMouseOut=\"ChangeImageOut('sbutton2_3','../images/sbut12a.png');\"><img src=\"../images/sbut12a.png\" id=\"sbutton2_3\" name=\"sbutton2_3\" border=\"0\"></a></td>");
													document.write("<td><a href=\"../outreach/outreach-4.html\" onMouseOver=\"ChangeImageOver('sbutton2_4','../images/sbut13b.png');\" onMouseOut=\"ChangeImageOut('sbutton2_4','../images/sbut13a.png');\"><img src=\"../images/sbut13a.png\" id=\"sbutton2_4\" name=\"sbutton2_4\" border=\"0\"></a></td>");
													//document.write("<td><a href=\"../outreach/oep.html\" onMouseOver=\"ChangeImageOver('sbutton2_5','../images/sbut14b.png');\" onMouseOut=\"ChangeImageOut('sbutton2_5','../images/sbut14a.png');\"><img src=\"../images/sbut14a.png\" id=\"sbutton2_5\" name=\"sbutton2_5\" border=\"0\"></a></td>");
													document.write("<td width=\"150\" colspan=\"2\"></td>");
													document.write("<td width=\"1\" onmouseover=\"switchoffmenu(2)\"></td>");
												document.write("</tr>");
												document.write("<tr>");
													document.write("<td colspan=\"8\"></td>");
												document.write("</tr>");
												document.write("<tr>");
													document.write("<td colspan=\"8\" onmouseover=\"switchoffmenu(2)\"></td>");
												document.write("</tr>");
											document.write("</table>");
								document.write("</div>");
							document.write("</div>");
					
							document.write("<div style=\"position:relative; z-index:4;\" id=\"sm4\">");
								document.write("<div style=\"position:absolute;left:0px;top:0px;display:none;\" id=\"submenu3\">");
										document.write("<table width=\"960\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">");
											document.write("<tr>");
												document.write("<td height=\"3\" colspan=\"8\" onmouseover=\"switchmenu(3)\"></td>");
											document.write("</tr>");
											document.write("<tr>");
												document.write("<td width=\"620\"></td>");
												document.write("<td width=\"1\" onmouseover=\"switchoffmenu(3)\"></td>");
												document.write("<td><a href=\"../support/support-donation.html\" onMouseOver=\"ChangeImageOver('sbutton3_1','../images/sbut15b.png');\" onMouseOut=\"ChangeImageOut('sbutton3_1','../images/sbut15a.png');\"><img src=\"../images/sbut15a.png\" id=\"sbutton3_1\" name=\"sbutton3_1\" border=\"0\"></a></td>");
												document.write("<td><a href=\"../support/support-donation-2.html\" onMouseOver=\"ChangeImageOver('sbutton3_2','../images/sbut16b.png');\" onMouseOut=\"ChangeImageOut('sbutton3_2','../images/sbut16a.png');\"><img src=\"../images/sbut16a.png\" id=\"sbutton3_2\" name=\"sbutton3_2\" border=\"0\"></a></td>");
												document.write("<td><a href=\"../support/sponsor.asp\" onMouseOver=\"ChangeImageOver('sbutton3_3','../images/sbut17b.png');\" onMouseOut=\"ChangeImageOut('sbutton3_3','../images/sbut17a.png');\"><img src=\"../images/sbut17a.png\" id=\"sbutton3_3\" name=\"sbutton3_3\" border=\"0\"></a></td>");
												document.write("<td><a href=\"../support/support-donation-4.html\" onMouseOver=\"ChangeImageOver('sbutton3_4','../images/sbut18b.png');\" onMouseOut=\"ChangeImageOut('sbutton3_4','../images/sbut18a.png');\"><img src=\"../images/sbut18a.png\" id=\"sbutton3_4\" name=\"sbutton3_4\" border=\"0\"></a></td>");
												document.write("<td width=\"1\" onmouseover=\"switchoffmenu(3)\"></td>");
												document.write("<td width=\"29\"></td>");
											document.write("</tr>");
											document.write("<tr>");
												document.write("<td colspan=\"8\"></td>");
											document.write("</tr>");
											document.write("<tr>");
												document.write("<td colspan=\"8\" onmouseover=\"switchoffmenu(3)\"></td>");
											document.write("</tr>");
										document.write("</table>");
								document.write("</div>");
							document.write("</div>");
							
							document.write("<div style=\"position:relative; z-index:5;\" id=\"sm5\">");
								document.write("<div style=\"position:absolute;left:0px;top:0px;display:none;\" id=\"submenu4\">");
										document.write("<table width=\"960\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">");
											document.write("<tr>");
												document.write("<td height=\"3\" colspan=\"8\" onmouseover=\"switchmenu(4)\"></td>");
											document.write("</tr>");
											document.write("<tr>");
											document.write("<td width=\"668\"></td>");
												document.write("<td width=\"1\" onmouseover=\"switchoffmenu(4)\"></td>");					
												document.write("<td><a href=\"../pal/doc/pal-join.pdf\" target=\"_blank\" onMouseOver=\"ChangeImageOver('sbutton4_1','../images/sbut19b.png');\" onMouseOut=\"ChangeImageOut('sbutton4_1','../images/sbut19a.png');\"><img src=\"../images/sbut19a.png\" id=\"sbutton4_1\" name=\"sbutton4_1\" border=\"0\"></a></td>");
												document.write("<td width=\"10\"></td>");
												document.write("<td><a href=\"../pal/pal.html\" onMouseOver=\"ChangeImageOver('sbutton4_2','../images/sbut20b.png');\" onMouseOut=\"ChangeImageOut('sbutton4_2','../images/sbut20a.png');\"><img src=\"../images/sbut20a.png\" id=\"sbutton4_2\" name=\"sbutton4_2\" border=\"0\"></a></td>");
												document.write("<td width=\"10\"></td>");
												document.write("<td><a href=\"../pal/pal-2.html\" onMouseOver=\"ChangeImageOver('sbutton4_3','../images/sbut21b.png');\" onMouseOut=\"ChangeImageOut('sbutton4_3','../images/sbut21a.png');\"><img src=\"../images/sbut21a.png\" id=\"sbutton4_3\" name=\"sbutton4_3\" border=\"0\"></a></td>");
												document.write("<td width=\"1\" onmouseover=\"switchoffmenu(4)\"></td>");
											document.write("</tr>");
											document.write("<tr>");
												document.write("<td colspan=\"8\"></td>");
											document.write("</tr>");
											document.write("<tr>");
												document.write("<td colspan=\"8\" onmouseover=\"switchoffmenu(4)\"></td>");
											document.write("</tr>");
										document.write("</table>");
								document.write("</div>");
							document.write("</div>");
							
							document.write("<div style=\"position:relative; z-index:6;\" id=\"sm6\">");
								document.write("<div style=\"position:absolute;left:0px;top:0px;display:none;\" id=\"submenu5\">");
										document.write("<table width=\"960\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">");
											document.write("<tr>");
												document.write("<td height=\"3\" colspan=\"8\" onmouseover=\"switchmenu(5)\"></td>");
											document.write("</tr>");
											document.write("<tr>");
											document.write("<td width=\"368\"></td>");
												document.write("<td width=\"1\" onmouseover=\"switchoffmenu(5)\"></td>");					
												//document.write("<td><a href=\"../season/booking2010.html\" onMouseOver=\"ChangeImageOver('sbutton5_1','../images/sbut01b_chi_01a.png');\" onMouseOut=\"ChangeImageOut('sbutton5_1','../images/sbut01b_chi_01b.png');\"><img src=\"../images/sbut01b_chi_01b.png\" id=\"sbutton5_1\" name=\"sbutton5_1\" border=\"0\"></a></td>");
												document.write("<td width=\"10\"></td>");
												document.write("<td><a href=\"../season/season.html\" onMouseOver=\"ChangeImageOver('sbutton5_2','../images/sbut01b_chi_02a.png');\" onMouseOut=\"ChangeImageOut('sbutton5_2','../images/sbut01b_chi_02b.png');\"><img src=\"../images/sbut01b_chi_02b.png\" id=\"sbutton5_2\" name=\"sbutton5_2\" border=\"0\"></a></td>");
												document.write("<td width=\"10\"></td>");
												document.write("<td width=\"10\"></td>");
												//document.write("<td><a href=\"../season/season2009.html\" onMouseOver=\"ChangeImageOver('sbutton5_3','../images/sbut01b_chi_03a.png');\" onMouseOut=\"ChangeImageOut('sbutton5_3','../images/sbut01b_chi_03b.png');\"><img src=\"../images/sbut01b_chi_03b.png\" id=\"sbutton5_3\" name=\"sbutton5_3\" border=\"0\"></a></td>");
												document.write("<td width=\"300\" onmouseover=\"switchoffmenu(5)\"></td>");
											document.write("</tr>");
											document.write("<tr>");
												document.write("<td colspan=\"8\"></td>");
											document.write("</tr>");
											document.write("<tr>");
												document.write("<td colspan=\"8\" onmouseover=\"switchoffmenu(5)\"></td>");
											document.write("</tr>");
										document.write("</table>");
								document.write("</div>");
							document.write("</div>");

							document.write("</td>");							
							document.write("</tr>");
							document.write("</table>");

}

function ChangeImageOver(img,imgsrc) {
	if (document.images)
		document.images[img].src = imgsrc
}

// function to change images when mouse out
function ChangeImageOut(img,imgsrc) {
	if (document.images)
		document.images[img].src = imgsrc
}

function switchmenu(itm){
	
		document.getElementById('submenu1').style.display = 'none';
		document.getElementById('submenu2').style.display = 'none';
		document.getElementById('submenu3').style.display = 'none';
		document.getElementById('submenu4').style.display = 'none';
		document.getElementById('submenu5').style.display = 'none';


	if (itm == 1){
		document.getElementById('submenu1').style.display = 'block';
	}
	if (itm == 2){
		document.getElementById('submenu2').style.display = 'block';
	}
	if (itm == 3){
		document.getElementById('submenu3').style.display = 'block';
	}
	if (itm == 4){
		document.getElementById('submenu4').style.display = 'block';
	}
	if (itm == 5){
		document.getElementById('submenu5').style.display = 'block';
	}

}

function switchoffmenu(itm){
	
	if (itm == 1){
		document.getElementById('submenu1').style.display = 'none';
	}
	if (itm == 2){
		document.getElementById('submenu2').style.display = 'none';
	}
	if (itm == 3){
		document.getElementById('submenu3').style.display = 'none';
	}
	if (itm == 4){
		document.getElementById('submenu4').style.display = 'none';
	}
	if (itm == 5){
		document.getElementById('submenu5').style.display = 'none';
	}

}
