var left_menu_arr = new Array();
var top_menu_arr = new Array();
//var loc = document.location.pathname.toString();
var filename = window.location.href.substring(window.location.href.lastIndexOf("/")+1,window.location.href.length);
left_menu_arr[0] = Array("leftmenu_home_off_mint", "leftmenu_home_on_mint", "home");
left_menu_arr[1] = Array("leftmenu_treasure_off_mint", "leftmenu_treasure_on_mint", "treasure");
left_menu_arr[2] = Array("leftmenu_overview_off_mint", "leftmenu_overview_on_mint", "overview");
left_menu_arr[3] = Array("leftmenu_programme_off_mint", "leftmenu_programme_on_mint", "programme");
left_menu_arr[4] = Array("leftmenu_faculty_off_mint", "leftmenu_faculty_on_mint", "faculty");
left_menu_arr[5] = Array("leftmenu_paper_off_mint", "leftmenu_paper_on_mint", "paper");
left_menu_arr[6] = Array("leftmenu_registration_off_mint", "leftmenu_registration_on_mint", "registration");
left_menu_arr[7] = Array("leftmenu_accom_off_mint", "leftmenu_accom_on_mint", "accom");
left_menu_arr[8] = Array("leftmenu_tours_off_mint", "leftmenu_tours_on_mint", "tours");
left_menu_arr[9] = Array("leftmenu_map_off_mint", "leftmenu_map_on_mint", "map");
left_menu_arr[10] = Array("leftmenu_contact_off_mint", "leftmenu_contact_on_mint", "contact");

top_menu_arr[0] = Array("topmenu_home_off_mint", "topmenu_home_on_mint", "home");
top_menu_arr[1] = Array("topmenu_sitemap_off_mint", "topmenu_sitemap_on_mint", "sitemap");
top_menu_arr[2] = Array("topmenu_contact_off_mint", "topmenu_contact_on_mint", "contact");
top_menu_arr[3] = Array("topmenu_lang_off_mint", "topmenu_lang_on_mint", filename);
 
function topmenu() {	
	document.write("<table cellpadding=0 cellspacing=0 border=0 width=920 align=center>");
	document.write("<tr valign=top>");
	topimg = (cSection == 'home') ? "topimage_home_mint.jpg" : "topimage_mint.jpg";
	document.write("	<td><img src=images/"+topimg+" width=650 height=110></td>");
	s=0;
	for (i=0; i<(top_menu_arr.length); i++) {
		s++;
		IMGS = (cSection == top_menu_arr[i][2]) ? top_menu_arr[i][1] : top_menu_arr[i][0] ;
		LINKS = (cSection == top_menu_arr[i][2]) ? "javascript:void(0);" : top_menu_arr[i][2]+".html" ;
		if(s==4){
            LINKS = (cSection == top_menu_arr[i][2]) ? "javascript:void(0);" : top_menu_arr[i][2];
			document.write("<td><a href='../chi/"+LINKS+"' target='_top' ");
		}
		else{
		document.write("<td><a href='"+LINKS+"' target='_top' ");
		}
		document.write("onmouseover=rollover('top_"+top_menu_arr[i][2]+"','images/"+top_menu_arr[i][1]+".gif') ");
		document.write("onmouseout=rollover('top_"+top_menu_arr[i][2]+"','images/"+top_menu_arr[i][0]+".gif')>");
		document.write("<img src='images/"+IMGS+".gif' name='top_"+top_menu_arr[i][2]+"'></a></td>");
	}
	document.write("</tr>");
	document.write("</table>");
}






function leftmenu() {		
	for (i=0; i<(left_menu_arr.length); i++) {
		IMGS = (cSection == left_menu_arr[i][2]) ? left_menu_arr[i][1] : left_menu_arr[i][0] ;
		LINKS = (cSection == left_menu_arr[i][2]) ? "javascript:void(0);" : left_menu_arr[i][2]+".html" ;
		document.write("<a href='"+LINKS+"' target='_top' ");
		document.write("onmouseover=rollover('left_"+left_menu_arr[i][2]+"','images/"+left_menu_arr[i][1]+".gif') ");
		document.write("onmouseout=rollover('left_"+left_menu_arr[i][2]+"','images/"+left_menu_arr[i][0]+".gif')>");
		document.write("<img src='images/"+IMGS+".gif' name='left_"+left_menu_arr[i][2]+"'></a><br>");
	}
}

function banner() {	
	document.write("<img src=images/banner_"+cSection+"_mint.gif width=724 height=104><br><br>");
}


function sheader() {
	document.write("<META HTTP-EQUIV='imagetoolbar' CONTENT='no'>");
	document.write("<META NAME='robots' content='index,follow'>");
	document.write("<META NAME='author' CONTENT='MINT Asia Ltd'>");
	document.write("<meta name='MINT_src' Content='Created by MINT Asia'>");
	document.write("<meta name='MINT_URL' Content='http://www.mint-asia.com'>");
	document.write("<meta name='MINT_email' Content='info@mint-asia.com'>");
	document.write("<meta name='robots' content='ALL'>");
	document.write("<meta name='distribution' content='Global'>");
	document.write("<meta name='rating' content='Safe For Kids'>");
	document.write("<meta name='PICS-Label' content='General'>");
	document.write("<meta name='revisit-after' content='15 days'>");
	document.write("<META NAME='reply-to' CONTENT='info@mint-asia.com'>");
	document.write("<META NAME='placename' CONTENT='hongkong'>");
	document.write("<meta name='keywords' content='satir, conference, , MINT, Mint Asia, mint-asia.com'>");
	document.write("<meta name='description' content='Satir World Conference 2010. Created by MINT, MINT Asia, mint-asia.com'>");
}


function footer() {		
document.write("<table cellpadding=0 cellspacing=0 border=0 width=920 align=center id=footer>");
document.write("<tr valign=top>");
document.write("<td align=left>&copy Satir World Conference 2010. All Right Reserved.  created by <a href=http://www.mint-asia.com target=_blank>MINT</a></td>");
document.write("</tr>");
document.write("</table>");
}




function rollover(imgname,imgsrc){
	var left_name = "left_"+cSection;
	var top_name = "top_"+cSection;
	if (left_name != imgname)
		if (top_name != imgname ) 
			document.images[imgname].src=imgsrc
}




